demand: 运单修改取件方式会导致寄件网点不准确bug修复

committer: heyu
This commit is contained in:
aike 2025-07-11 14:13:51 +08:00
parent 1445bc97a5
commit e46dc56bff
2 changed files with 4 additions and 1 deletions

View File

@ -208,7 +208,7 @@ public class EmisWaybill extends BaseEntity
@TableField
@DataAuditField(fieldComment = "派件方式",dictType="emis_dispatch_method")
private String dispatchMethod;
/* 取件方式:1-上门取件 2-仓库收货 3-整柜提货 */
/* 取件方式:1-仓库收货 2-上门取件 3-整柜提货 */
@TableField
@DataAuditField(fieldComment = "取件方式",dictType="emis_qujian_fangshi")
private String pickupMethod;

View File

@ -2071,6 +2071,9 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
emisWaybillSave.setPackType("2");
}
if ("1".equals(emisWaybillSave.getPickupMethod()) || "3".equals(emisWaybillSave.getPickupMethod())) {
emisWaybillSave.setTakePieceEmployeeCode(null);
}
// 如果专属业务员不为空,则寄件网点使用业务员的网点
if(!StringUtils.isEmpty(emisWaybillSave.getTakePieceEmployeeCode()) && "2".equals(emisWaybillSave.getPickupMethod()) ){
SysUser empUser = getEmisStaffByCode(emisWaybillSave.getTakePieceEmployeeCode());