|
@@ -163,16 +163,26 @@ public class JdjcWebService extends BaseController {
|
|
|
dcService.claim(entity.getId().toString(), Utils.getCurrentUser()
|
|
|
.getId().toString());
|
|
|
}
|
|
|
+ DcEntity dcEntity = new DcEntity();
|
|
|
if (null == entity.getId()) {
|
|
|
entity.setAddUser(Utils.getCurrentUser());
|
|
|
entity.setAddDate(new Date());
|
|
|
entity.setRecordCode("100100100100");
|
|
|
+ dcEntity=entity;
|
|
|
} else {
|
|
|
- entity.setUpdateUser(Utils.getCurrentUser());
|
|
|
- entity.setUpdateDate(new Date());
|
|
|
+ dcEntity=dcService.findOne(entity.getId());
|
|
|
+ dcEntity.setUpdateUser(Utils.getCurrentUser());
|
|
|
+ dcEntity.setUpdateDate(new Date());
|
|
|
+ dcEntity.setMqzt(entity.getMqzt());
|
|
|
+ dcEntity.setByzd2(entity.getByzd2());
|
|
|
+ dcEntity.setJdjcqk(entity.getJdjcqk());
|
|
|
+ dcEntity.setYzgbz(entity.getYzgbz());
|
|
|
+ dcEntity.setZgtrzj(entity.getZgtrzj());
|
|
|
+ dcEntity.setYqzgqx(entity.getYqzgqx());
|
|
|
+ dcEntity.setYqzgyy(entity.getYqzgyy());
|
|
|
}
|
|
|
- entity.setRecordStatus(BaseEntity.RECORD_STATE_SUBMIT);
|
|
|
- DcEntity dcEntity = dcService.save(entity);
|
|
|
+ dcEntity.setRecordStatus(BaseEntity.RECORD_STATE_SUBMIT);
|
|
|
+ dcEntity = dcService.save(dcEntity);
|
|
|
if (null != accessoryList) {
|
|
|
for (AccessoryEntity acc : accessoryList) {
|
|
|
acc = accessoryService.findOne(acc.getId());
|