demand: 客户账单查询-cpu飙升问题定位解决

committer: heyu
This commit is contained in:
aike 2025-11-25 18:55:48 +08:00
parent 3af3a3d37c
commit 1caa0df5c1
3 changed files with 39 additions and 39 deletions

View File

@ -248,7 +248,7 @@ public class EmisTmsSiteBatchMissServiceImpl extends EmisBaseService implements
// 3) 调用scanSiteBatchByWaybills重新扫描
if (!waybills.isEmpty()) {
this.scanSiteBatchByWaybills(waybills);
// this.scanSiteBatchByWaybills(waybills);
}
}

View File

@ -509,7 +509,7 @@ public class EmisTmsSiteBatchServiceImpl extends EmisBaseService implements IEmi
if (CollectionUtil.isEmpty(waybills)) {
return;
}
scanSiteBatchByWaybills(waybills);
// scanSiteBatchByWaybills(waybills);
}
@Override

View File

@ -157,32 +157,32 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
* @param emisWaybillSave
*/
private void saveOrUpdateWaybillOther(EmisWaybill emisWaybillSave) {
// if (emisWaybillSave == null || emisWaybillSave.getId() == null) {
// return;
// }
//
// String salesSupport = emisWaybillSave.getSalesSupport();
// String billCode = emisWaybillSave.getBillCode();
// Long waybillId = emisWaybillSave.getId();
//
// // 查询是否已存在
// EmisWaybillOther existing = emisWaybillOtherMapper.selectEmisWaybillOtherByWaybillId(waybillId);
//
// if (existing != null) {
// // 更新
// existing.setSalesSupport(salesSupport);
// existing.setBillCode(billCode);
// existing.preUpdate();
// emisWaybillOtherMapper.updateEmisWaybillOther(existing);
// } else {
// // 新增
// EmisWaybillOther waybillOtherEntity = new EmisWaybillOther();
// waybillOtherEntity.setWaybillId(waybillId);
// waybillOtherEntity.setBillCode(billCode);
// waybillOtherEntity.setSalesSupport(salesSupport);
// waybillOtherEntity.preInsert();
// emisWaybillOtherMapper.insertEmisWaybillOther(waybillOtherEntity);
// }
if (emisWaybillSave == null || emisWaybillSave.getId() == null) {
return;
}
String salesSupport = emisWaybillSave.getSalesSupport();
String billCode = emisWaybillSave.getBillCode();
Long waybillId = emisWaybillSave.getId();
// 查询是否已存在
EmisWaybillOther existing = emisWaybillOtherMapper.selectEmisWaybillOtherByWaybillId(waybillId);
if (existing != null) {
// 更新
existing.setSalesSupport(salesSupport);
existing.setBillCode(billCode);
existing.preUpdate();
emisWaybillOtherMapper.updateEmisWaybillOther(existing);
} else {
// 新增
EmisWaybillOther waybillOtherEntity = new EmisWaybillOther();
waybillOtherEntity.setWaybillId(waybillId);
waybillOtherEntity.setBillCode(billCode);
waybillOtherEntity.setSalesSupport(salesSupport);
waybillOtherEntity.preInsert();
emisWaybillOtherMapper.insertEmisWaybillOther(waybillOtherEntity);
}
}
/**