Merge pull request 'demand: 客户账单查询-cpu飙升问题定位解决' (#242) from aike into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/242
This commit is contained in:
commit
06b5be2eb4
@ -157,32 +157,32 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
* @param emisWaybillSave
|
* @param emisWaybillSave
|
||||||
*/
|
*/
|
||||||
private void saveOrUpdateWaybillOther(EmisWaybill emisWaybillSave) {
|
private void saveOrUpdateWaybillOther(EmisWaybill emisWaybillSave) {
|
||||||
if (emisWaybillSave == null || emisWaybillSave.getId() == null) {
|
// if (emisWaybillSave == null || emisWaybillSave.getId() == null) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
String salesSupport = emisWaybillSave.getSalesSupport();
|
// String salesSupport = emisWaybillSave.getSalesSupport();
|
||||||
String billCode = emisWaybillSave.getBillCode();
|
// String billCode = emisWaybillSave.getBillCode();
|
||||||
Long waybillId = emisWaybillSave.getId();
|
// Long waybillId = emisWaybillSave.getId();
|
||||||
|
//
|
||||||
// 查询是否已存在
|
// // 查询是否已存在
|
||||||
EmisWaybillOther existing = emisWaybillOtherMapper.selectEmisWaybillOtherByWaybillId(waybillId);
|
// EmisWaybillOther existing = emisWaybillOtherMapper.selectEmisWaybillOtherByWaybillId(waybillId);
|
||||||
|
//
|
||||||
if (existing != null) {
|
// if (existing != null) {
|
||||||
// 更新
|
// // 更新
|
||||||
existing.setSalesSupport(salesSupport);
|
// existing.setSalesSupport(salesSupport);
|
||||||
existing.setBillCode(billCode);
|
// existing.setBillCode(billCode);
|
||||||
existing.preUpdate();
|
// existing.preUpdate();
|
||||||
emisWaybillOtherMapper.updateEmisWaybillOther(existing);
|
// emisWaybillOtherMapper.updateEmisWaybillOther(existing);
|
||||||
} else {
|
// } else {
|
||||||
// 新增
|
// // 新增
|
||||||
EmisWaybillOther waybillOtherEntity = new EmisWaybillOther();
|
// EmisWaybillOther waybillOtherEntity = new EmisWaybillOther();
|
||||||
waybillOtherEntity.setWaybillId(waybillId);
|
// waybillOtherEntity.setWaybillId(waybillId);
|
||||||
waybillOtherEntity.setBillCode(billCode);
|
// waybillOtherEntity.setBillCode(billCode);
|
||||||
waybillOtherEntity.setSalesSupport(salesSupport);
|
// waybillOtherEntity.setSalesSupport(salesSupport);
|
||||||
waybillOtherEntity.preInsert();
|
// waybillOtherEntity.preInsert();
|
||||||
emisWaybillOtherMapper.insertEmisWaybillOther(waybillOtherEntity);
|
// emisWaybillOtherMapper.insertEmisWaybillOther(waybillOtherEntity);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user