md
This commit is contained in:
parent
af07178e6c
commit
0654dcdab6
@ -98,7 +98,7 @@ public class EmisWaybillAttachmentController extends EmisBaseController
|
|||||||
List<EmisWaybillAttachment> list=null;
|
List<EmisWaybillAttachment> list=null;
|
||||||
if(!StringUtils.isEmpty(billCode)){
|
if(!StringUtils.isEmpty(billCode)){
|
||||||
EmisWaybillAttachment emisWaybillAttachment = new EmisWaybillAttachment();
|
EmisWaybillAttachment emisWaybillAttachment = new EmisWaybillAttachment();
|
||||||
emisWaybillAttachment.setBillCode(billCode);
|
emisWaybillAttachment.setBillCode(WaybillHelper.formatQueryValue(billCode));
|
||||||
String[] billCodeSortList = emisWaybillAttachment.getBillCode().split(",");
|
String[] billCodeSortList = emisWaybillAttachment.getBillCode().split(",");
|
||||||
if(billCodeSortList.length>1){
|
if(billCodeSortList.length>1){
|
||||||
emisWaybillAttachment.getParams().put("billCodeSortList",Arrays.asList(billCodeSortList));
|
emisWaybillAttachment.getParams().put("billCodeSortList",Arrays.asList(billCodeSortList));
|
||||||
|
|||||||
@ -283,8 +283,10 @@
|
|||||||
<if test="orderSn != null and orderSn != ''">
|
<if test="orderSn != null and orderSn != ''">
|
||||||
and ( FIND_IN_SET(`order_sn`,#{orderSn}) or order_sn like concat('%', #{orderSn}, '%') )
|
and ( FIND_IN_SET(`order_sn`,#{orderSn}) or order_sn like concat('%', #{orderSn}, '%') )
|
||||||
</if>
|
</if>
|
||||||
<if test="billCode != null and billCode != ''">
|
<if test="billCode != null and billCode != '' and params.billCodeSortList == null">
|
||||||
<!-- and ( FIND_IN_SET(`bill_code`,#{billCode}) or FIND_IN_SET(`main_bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) -->
|
and `bill_code`=#{billCode}
|
||||||
|
</if>
|
||||||
|
<if test="params.billCodeSortList != null and params.billCodeSortList.size > 1 ">
|
||||||
and bill_code in
|
and bill_code in
|
||||||
<foreach collection="params.billCodeSortList" item="item" open="(" separator="," close=")">
|
<foreach collection="params.billCodeSortList" item="item" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
|
|||||||
@ -28,16 +28,20 @@
|
|||||||
del_flag='0'
|
del_flag='0'
|
||||||
<if test="id != null "> and id = #{id}</if>
|
<if test="id != null "> and id = #{id}</if>
|
||||||
<if test="waybillId != null "> and waybill_id = #{waybillId}</if>
|
<if test="waybillId != null "> and waybill_id = #{waybillId}</if>
|
||||||
<if test="billCode != null and billCode != ''">
|
<!--
|
||||||
|
and `bill_code` ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') )
|
||||||
|
-->
|
||||||
|
|
||||||
|
<if test="billCode != null and billCode != '' and params.billCodeSortList == null">
|
||||||
|
and `bill_code`=#{billCode}
|
||||||
|
</if>
|
||||||
|
<if test="params.billCodeSortList != null and params.billCodeSortList.size > 1 ">
|
||||||
and bill_code in
|
and bill_code in
|
||||||
<foreach collection="params.billCodeSortList" item="item" open="(" separator="," close=")">
|
<foreach collection="params.billCodeSortList" item="item" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|
||||||
<!--
|
|
||||||
and `bill_code` ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') )
|
|
||||||
-->
|
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="attachType != null and attachType != ''"> and FIND_IN_SET(attach_type,#{attachType})</if>
|
<if test="attachType != null and attachType != ''"> and FIND_IN_SET(attach_type,#{attachType})</if>
|
||||||
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
|
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
|
||||||
<if test="fileUrl != null and fileUrl != ''"> and file_url like concat('%', #{fileUrl}, '%')</if>
|
<if test="fileUrl != null and fileUrl != ''"> and file_url like concat('%', #{fileUrl}, '%')</if>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user