Merge pull request 'demand: 修改虚拟单后对应主单对应虚拟单备注消失bug修复' (#98) from develop into master

Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/98
This commit is contained in:
heyu 2025-07-07 16:13:10 +08:00
commit aadb49af24

View File

@ -5129,8 +5129,8 @@ public class EmisBaseService {
emisWaybill.setVirtualRemark(virtualRemark);
emisWaybill.setId(masterWaybill.getId());
emisWaybillMapper.updateEmisWaybill(emisWaybill);
if(StringUtil.isNotBlank(emisWaybillOld.getMasterBillCode())){
updateOldMasterBill(emisWaybillSave,emisWaybillOld.getMasterBillCode());
if (StringUtil.isNotBlank(emisWaybillOld.getMasterBillCode()) && !emisWaybillOld.getMasterBillCode().equals(emisWaybillSave.getMasterBillCode())) {
updateOldMasterBill(emisWaybillSave, emisWaybillOld.getMasterBillCode());
}
}