demand: tms-统计报表-月结客户出货统计-查询销售出货详情bug修复 tms-运单管理-运单录入/运单批量导入-添加校验逻辑,主单号与虚拟单标识要么同时存在,要么同时为空
committer: heyu
This commit is contained in:
parent
267eaceb49
commit
9429fbf687
@ -3203,6 +3203,19 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
// 校验运单号格式
|
// 校验运单号格式
|
||||||
validateBillCodeFormat(emisWaybillSave.getBillCode());
|
validateBillCodeFormat(emisWaybillSave.getBillCode());
|
||||||
|
|
||||||
|
String blVirtual = emisWaybillSave.getBlVirtual();
|
||||||
|
String masterBillCode = emisWaybillSave.getMasterBillCode();
|
||||||
|
boolean masterBillCodeEmpty = StringUtils.isBlank(masterBillCode);
|
||||||
|
if (masterBillCodeEmpty) {
|
||||||
|
if ("1".equals(blVirtual)) {
|
||||||
|
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1, "主单号与虚拟单标识要么同时存在,要么同时为空");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (!"1".equals(blVirtual)) {
|
||||||
|
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1, "主单号与虚拟单标识要么同时存在,要么同时为空");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 获取运单号,判断是不是子单已存在
|
// 获取运单号,判断是不是子单已存在
|
||||||
boolean isExists = checkWaybillIsExists(emisWaybillSave.getBillCode());
|
boolean isExists = checkWaybillIsExists(emisWaybillSave.getBillCode());
|
||||||
if(isExists){
|
if(isExists){
|
||||||
|
|||||||
@ -391,6 +391,7 @@
|
|||||||
left join emis_site a2 on a.destination_center_code=a2.site_code and a2.del_flag='0'
|
left join emis_site a2 on a.destination_center_code=a2.site_code and a2.del_flag='0'
|
||||||
left join emis_site start on a.start_site_code=start.site_code and start.del_flag='0'
|
left join emis_site start on a.start_site_code=start.site_code and start.del_flag='0'
|
||||||
left join emis_customer_user a3 on a.customer_code=a3.customer_code and a3.del_flag='0'
|
left join emis_customer_user a3 on a.customer_code=a3.customer_code and a3.del_flag='0'
|
||||||
|
left join emis_customer_user a4 on a.cust_no=a4.monthly_pay_code and a4.del_flag='0'
|
||||||
left join emis_site seaway1 on a.departure_port=seaway1.site_code and seaway1.del_flag='0'
|
left join emis_site seaway1 on a.departure_port=seaway1.site_code and seaway1.del_flag='0'
|
||||||
left join emis_site seaway2 on a.destination_port=seaway2.site_code and seaway2.del_flag='0'
|
left join emis_site seaway2 on a.destination_port=seaway2.site_code and seaway2.del_flag='0'
|
||||||
|
|
||||||
@ -4250,15 +4251,15 @@
|
|||||||
</if>
|
</if>
|
||||||
<!-- 销售主管 -->
|
<!-- 销售主管 -->
|
||||||
<if test="salesExecutive != null and salesExecutive != ''">
|
<if test="salesExecutive != null and salesExecutive != ''">
|
||||||
AND a3.sales_executive LIKE CONCAT('%', #{salesExecutive}, '%')
|
AND a4.sales_executive LIKE CONCAT('%', #{salesExecutive}, '%')
|
||||||
</if>
|
</if>
|
||||||
<!-- 销售支持 -->
|
<!-- 销售支持 -->
|
||||||
<if test="salesSupport != null and salesSupport != ''">
|
<if test="salesSupport != null and salesSupport != ''">
|
||||||
AND a3.sales_support LIKE CONCAT('%', #{salesSupport}, '%')
|
AND a4.sales_support LIKE CONCAT('%', #{salesSupport}, '%')
|
||||||
</if>
|
</if>
|
||||||
<!-- 销售联系人 -->
|
<!-- 销售联系人 -->
|
||||||
<if test="salesmen != null and salesmen != ''">
|
<if test="salesmen != null and salesmen != ''">
|
||||||
AND a3.salesmen LIKE CONCAT('%', #{salesmen}, '%')
|
AND a4.salesmen LIKE CONCAT('%', #{salesmen}, '%')
|
||||||
</if>
|
</if>
|
||||||
<!-- 运输方式筛选 -->
|
<!-- 运输方式筛选 -->
|
||||||
<if test="transType != null and transType != ''">
|
<if test="transType != null and transType != ''">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user