md
This commit is contained in:
parent
2eb1fff509
commit
90ce2d07c8
@ -1299,10 +1299,13 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
||||
throw new EmisBizError(EmisBizErrorType.FAIL,"订单已取消");
|
||||
}
|
||||
|
||||
|
||||
if(!"2".equals(emisWaybillOld.getPickupMethod()) ){
|
||||
throw new EmisBizError(EmisBizErrorType.FAIL,"非上门取件不需要指派取件员");
|
||||
}
|
||||
|
||||
// 同时修改网点为取件员所在的网点
|
||||
SysUser sysUser = getEmisStaffByCode(emisWaybillOld.getTakePieceEmployeeCode());
|
||||
emisWaybill.setSendSiteCode(sysUser.getOwnerSiteCode());
|
||||
emisWaybill.setBillCode(emisWaybillOld.getBillCode());
|
||||
|
||||
return emisWaybillMapper.assignTakeMan(emisWaybill);
|
||||
|
||||
@ -2631,7 +2631,7 @@
|
||||
<!-- 分配取件员 -->
|
||||
<update id="assignTakeMan" parameterType="EmisWaybill">
|
||||
update emis_waybill set
|
||||
take_piece_employee_code = #{takePieceEmployeeCode}
|
||||
take_piece_employee_code = #{takePieceEmployeeCode},send_site_code=#{sendSiteCode}
|
||||
<if test="updateBy != null and updateBy != ''">,update_by = #{updateBy}</if>
|
||||
<if test="updateSite != null and updateSite != ''">,update_site = #{updateSite}</if>
|
||||
where order_sn=#{orderSn}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user