| | |
| | | private InoutSettle getNewSettle(InoutData data) { |
| | | InoutSettle inoutSettle = new InoutSettle(); |
| | | inoutSettle.setId(data.getId()); |
| | | inoutSettle.setType(data.getType()); |
| | | inoutSettle.setCustomerId(data.getCustomerId()); |
| | | inoutSettle.setCustomerName(data.getCustomerName()); |
| | | inoutSettle.setFullWeight(data.getFullWeight()); |
| | | inoutSettle.setEmptyWeight(data.getEmptyWeight()); |
| | | inoutSettle.setNetWeight(data.getNetWeight()); |
| | | // inoutSettle.setType(data.getType()); |
| | | // inoutSettle.setCustomerId(data.getCustomerId()); |
| | | // inoutSettle.setCustomerName(data.getCustomerName()); |
| | | // inoutSettle.setFullWeight(data.getFullWeight()); |
| | | // inoutSettle.setEmptyWeight(data.getEmptyWeight()); |
| | | // inoutSettle.setNetWeight(data.getNetWeight()); |
| | | inoutSettle.setSettleWeight(data.getSettleWeight()); |
| | | inoutSettle.setDeSum(data.getDeSum()); |
| | | // inoutSettle.setDeSum(data.getDeSum()); |
| | | |
| | | inoutSettle.setCompleteTime(data.getCompleteTime()); |
| | | // inoutSettle.setCompleteTime(data.getCompleteTime()); |
| | | inoutSettle.setDepotId(data.getDepotId()); |
| | | inoutSettle.setDeptId(data.getDeptId()); |
| | | inoutSettle.setUserName(data.getUserName()); |
| | | inoutSettle.setPlateNum(data.getPlateNum()); |
| | | inoutSettle.setFoodLevel(data.getFoodLevel()); |
| | | inoutSettle.setFoodVariety(data.getFoodVariety()); |
| | | // inoutSettle.setUserName(data.getUserName()); |
| | | // inoutSettle.setPlateNum(data.getPlateNum()); |
| | | // inoutSettle.setFoodLevel(data.getFoodLevel()); |
| | | // inoutSettle.setFoodVariety(data.getFoodVariety()); |
| | | |
| | | if (data.getPrice() != null) { |
| | | inoutSettle.setPayPrice(data.getPrice()); |
| | |
| | | @Expose |
| | | @Transactional |
| | | public String saveData(InoutSettle data) { |
| | | if (null == data.getType()) { |
| | | data.setType(InoutConstant.TYPE_IN); |
| | | } |
| | | // if (null == data.getType()) { |
| | | // data.setType(InoutConstant.TYPE_IN); |
| | | // } |
| | | |
| | | hSettleService.saveOrUpdateData(data); |
| | | |