| | |
| | | .createBy(sysUser.getNickName()) |
| | | .updateUser(Long.valueOf(procurementRecordOutAdd.getUserId())) |
| | | .updateTime(LocalDateTime.now()); |
| | | this.save(procurementRecordOut.build()); |
| | | ProcurementRecordOut saved = procurementRecordOut.build(); |
| | | this.save(saved); |
| | | if (StringUtils.isNotEmpty(procurementRecordOutAdd.getRequisitionNum()) && saved.getId() != null) { |
| | | ProcurementRecordOut upd = ProcurementRecordOut.builder() |
| | | .id(saved.getId()) |
| | | .requisitionNum(new BigDecimal(procurementRecordOutAdd.getRequisitionNum())) |
| | | .build(); |
| | | procurementRecordOutMapper.updateById(upd); |
| | | } |
| | | return 0; |
| | | } |
| | | |