|
@@ -274,30 +274,30 @@ public class SealHandoverController extends BladeController {
|
|
|
if (sealHandoverService.updateById(sealHandover)){
|
|
if (sealHandoverService.updateById(sealHandover)){
|
|
|
SealHandover keep = sealHandoverService.getKeyOneByOrgNoSealTypeNo(sealHandover.getBankNo(), sealHandover.getOrgNo(), sealHandover.getSealType(), sealHandover.getSealNo());
|
|
SealHandover keep = sealHandoverService.getKeyOneByOrgNoSealTypeNo(sealHandover.getBankNo(), sealHandover.getOrgNo(), sealHandover.getSealType(), sealHandover.getSealNo());
|
|
|
Long keepId = null;
|
|
Long keepId = null;
|
|
|
|
|
+ keepId = keep.getId();
|
|
|
|
|
+
|
|
|
if (keep == null){
|
|
if (keep == null){
|
|
|
- keep = BeanUtil.clone(sealHandover);
|
|
|
|
|
|
|
+ keep = sealHandover;
|
|
|
keep.setId(null);
|
|
keep.setId(null);
|
|
|
keep.setStatus(2);
|
|
keep.setStatus(2);
|
|
|
- }else{
|
|
|
|
|
- keepId = keep.getId();
|
|
|
|
|
-
|
|
|
|
|
- keep.setPid(sealHandover.getId());
|
|
|
|
|
- keep.setReceiverId(sealHandover.getReceiverId());
|
|
|
|
|
- keep.setReceiverNo(sealHandover.getReceiverNo());
|
|
|
|
|
- keep.setReceiverName(sealHandover.getReceiverName());
|
|
|
|
|
- keep.setCreateDept(sealHandover.getCreateDept());
|
|
|
|
|
-
|
|
|
|
|
- keep.setHandoverDate(sealHandover.getHandoverDate());
|
|
|
|
|
- keep.setHandoverPersonId(sealHandover.getHandoverPersonId());
|
|
|
|
|
- keep.setHandoverPersonNo(sealHandover.getHandoverPersonNo());
|
|
|
|
|
- keep.setHandoverPersonName(sealHandover.getHandoverPersonName());
|
|
|
|
|
- keep.setRemark(sealHandover.getRemark());
|
|
|
|
|
- keep.setFillingPerson(sealHandover.getHandoverPersonName());
|
|
|
|
|
- keep.setFillingDate(sealHandover.getFillingDate());
|
|
|
|
|
- keep.setCreateUser(sealHandover.getCreateUser());
|
|
|
|
|
- keep.setCreateTime(sealHandover.getCreateTime());
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ keep.setPid(sealHandover.getId());
|
|
|
|
|
+ keep.setReceiverId(sealHandover.getReceiverId());
|
|
|
|
|
+ keep.setReceiverNo(sealHandover.getReceiverNo());
|
|
|
|
|
+ keep.setReceiverName(sealHandover.getReceiverName());
|
|
|
|
|
+ keep.setCreateDept(sealHandover.getCreateDept());
|
|
|
|
|
+
|
|
|
|
|
+ keep.setHandoverDate(sealHandover.getHandoverDate());
|
|
|
|
|
+ keep.setHandoverPersonId(sealHandover.getHandoverPersonId());
|
|
|
|
|
+ keep.setHandoverPersonNo(sealHandover.getHandoverPersonNo());
|
|
|
|
|
+ keep.setHandoverPersonName(sealHandover.getHandoverPersonName());
|
|
|
|
|
+ keep.setRemark(sealHandover.getRemark());
|
|
|
|
|
+ keep.setFillingPerson(sealHandover.getHandoverPersonName());
|
|
|
|
|
+ keep.setFillingDate(sealHandover.getFillingDate());
|
|
|
|
|
+ keep.setCreateUser(sealHandover.getCreateUser());
|
|
|
|
|
+ keep.setCreateTime(sealHandover.getCreateTime());
|
|
|
|
|
+
|
|
|
if (sealHandover.getIsTurnIn().equals(1) && keepId != null){
|
|
if (sealHandover.getIsTurnIn().equals(1) && keepId != null){
|
|
|
//上繳,刪除原持有人記錄
|
|
//上繳,刪除原持有人記錄
|
|
|
sealHandoverService.removeById(keepId);
|
|
sealHandoverService.removeById(keepId);
|