This commit is contained in:
linfso 2024-06-24 07:18:51 +08:00
parent c511df7460
commit af3e645cfc

View File

@ -335,14 +335,14 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
// 取件员或操作员 // 取件员或操作员
if("1".equals(pickupMethod)){ if("1".equals(pickupMethod)){
SysUser empUser=getEmisStaffByEmpName(emisWaybillSave.getOperateEmployeeName()); SysUser empUser=getEmisStaffByEmpName(emisWaybillSave.getOperateEmployeeCode());
if(empUser==null){ if(empUser==null){
throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "快递员不正确"); throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "快递员不正确");
} }
emisWaybillSave.setOperateEmployeeCode(empUser.getEmpCode()); emisWaybillSave.setOperateEmployeeCode(empUser.getEmpCode());
} }
else if("2".equals(pickupMethod)){ else if("2".equals(pickupMethod)){
SysUser empUser=getEmisStaffByEmpName(emisWaybillSave.getOperateEmployeeName()); SysUser empUser=getEmisStaffByEmpName(emisWaybillSave.getOperateEmployeeCode());
if(empUser==null){ if(empUser==null){
throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "快递员不正确"); throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "快递员不正确");
} }