|
|
@ -77,7 +77,10 @@
|
|
|
|
#{item}
|
|
|
|
#{item}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="unionRemark != null and unionRemark != ''">
|
|
|
|
|
|
|
|
AND (io.remark like concat('%', #{unionRemark}, '%')
|
|
|
|
|
|
|
|
or io.outSickInfo like concat('%', #{unionRemark}, '%'))
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="statuses != null and statuses.size() != 0">
|
|
|
|
<if test="statuses != null and statuses.size() != 0">
|
|
|
|
AND status in
|
|
|
|
AND status in
|
|
|
|
<foreach collection="statuses" index="index" item="item" open="(" close=")" separator=",">
|
|
|
|
<foreach collection="statuses" index="index" item="item" open="(" close=")" separator=",">
|
|
|
@ -139,7 +142,7 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
|
<when test="(orderBy!=null ) and (sort=='desc' or sort=='asc')">
|
|
|
|
<when test="(orderBy != null) and (sort == 'desc' or sort == 'asc')">
|
|
|
|
order by ${orderBy} ${sort}
|
|
|
|
order by ${orderBy} ${sort}
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<otherwise>
|
|
|
|
<otherwise>
|
|
|
@ -294,7 +297,7 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
|
<when test="(orderBy!=null ) and (sort=='desc' or sort=='asc')">
|
|
|
|
<when test="(orderBy != null) and (sort == 'desc' or sort == 'asc')">
|
|
|
|
order by ${orderBy} ${sort}
|
|
|
|
order by ${orderBy} ${sort}
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<otherwise>
|
|
|
|
<otherwise>
|
|
|
@ -340,6 +343,10 @@
|
|
|
|
<if test="syncStatus != null">
|
|
|
|
<if test="syncStatus != null">
|
|
|
|
AND syncStatus = #{syncStatus}
|
|
|
|
AND syncStatus = #{syncStatus}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="unionRemark != null and unionRemark != ''">
|
|
|
|
|
|
|
|
AND (io.remark like concat('%', #{unionRemark}, '%')
|
|
|
|
|
|
|
|
or io.outSickInfo like concat('%', #{unionRemark}, '%'))
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="busType != null">
|
|
|
|
<if test="busType != null">
|
|
|
|
AND busType = #{busType}
|
|
|
|
AND busType = #{busType}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -441,7 +448,7 @@
|
|
|
|
<if test="thirdSys != null and thirdSys != ''">
|
|
|
|
<if test="thirdSys != null and thirdSys != ''">
|
|
|
|
AND t1.thirdSys = #{thirdSys}
|
|
|
|
AND t1.thirdSys = #{thirdSys}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="orderStartTime != null ">
|
|
|
|
<if test="orderStartTime != null">
|
|
|
|
<![CDATA[
|
|
|
|
<![CDATA[
|
|
|
|
and updateTime >= DATE_FORMAT(#{orderStartTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
and updateTime >= DATE_FORMAT(#{orderStartTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
]]>
|
|
|
|
]]>
|
|
|
@ -466,7 +473,7 @@
|
|
|
|
LEFT JOIN basic_bussiness_type ON io_order.action = basic_bussiness_type.action
|
|
|
|
LEFT JOIN basic_bussiness_type ON io_order.action = basic_bussiness_type.action
|
|
|
|
WHERE basic_bussiness_type.inStock = 1
|
|
|
|
WHERE basic_bussiness_type.inStock = 1
|
|
|
|
and io_order.`status` = 7
|
|
|
|
and io_order.`status` = 7
|
|
|
|
AND date_format(io_order.updateTime, '%Y-%m-%d') = date_format(#{data},'%Y-%m-%d')
|
|
|
|
AND date_format(io_order.updateTime, '%Y-%m-%d') = date_format(#{data}, '%Y-%m-%d')
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectOrderfirstAndLastIdList" resultType="java.lang.String">
|
|
|
|
<select id="selectOrderfirstAndLastIdList" resultType="java.lang.String">
|
|
|
@ -506,6 +513,10 @@
|
|
|
|
<if test="mainAction != null and mainAction != ''">
|
|
|
|
<if test="mainAction != null and mainAction != ''">
|
|
|
|
AND io.mainAction = #{mainAction}
|
|
|
|
AND io.mainAction = #{mainAction}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="unionRemark != null and unionRemark != ''">
|
|
|
|
|
|
|
|
AND (io.remark like concat('%', #{unionRemark}, '%')
|
|
|
|
|
|
|
|
or io.outSickInfo like concat('%', #{unionRemark}, '%'))
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="billNo != null and billNo != ''">
|
|
|
|
<if test="billNo != null and billNo != ''">
|
|
|
|
AND io.billNo like concat('%', #{billNo}, '%')
|
|
|
|
AND io.billNo like concat('%', #{billNo}, '%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|