demand: 运单修改取件方式会导致寄件网点不准确bug修复
committer: heyu
This commit is contained in:
parent
1445bc97a5
commit
e46dc56bff
@ -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;
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user