| | |
| | | return list; |
| | | } |
| | | |
| | | public CheckUpdateResult updateCheckItems(String checkId, String companyId, |
| | | List<CheckItemData> checkItems) { |
| | | public CheckUpdateResult updateCheckItems(String checkId, String companyId, List<CheckItemData> checkItems) { |
| | | |
| | | CheckUpdateResult result = new CheckUpdateResult(); |
| | | if (null == checkItems || checkItems.isEmpty()) { |
| | |
| | | result.setDePriceSum(result.getDePriceSum() + item.getDePrice()); |
| | | } |
| | | |
| | | //如果没有外键不执行持久化操作 |
| | | if (null == checkId) return result; |
| | | |
| | | // 先更新,更新失败则新增 |
| | | int i = checkStandardService.updateCheckItem(item); |
| | | if (i < 1) { |