条码缺失修改
parent
80cf615370
commit
7b97cd8a50
@ -1,29 +1,49 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.glxp.sale.admin.dao.inout.IoCodeLostMapper">
|
<mapper namespace="com.glxp.sale.admin.dao.inout.IoCodeLostMapper">
|
||||||
|
|
||||||
<select id="selectLost" parameterType="com.glxp.sale.admin.entity.inout.IoCodeLostEntity"
|
<select id="selectLost" parameterType="com.glxp.sale.admin.entity.inout.IoCodeLostEntity"
|
||||||
resultType="com.glxp.sale.admin.res.inout.IoCodeLostResponse">
|
resultType="com.glxp.sale.admin.res.inout.IoCodeLostResponse">
|
||||||
select io_code_lost.*,basic_products.cpmctymc ,basic_products.ggxh from io_code_lost
|
select io_code_lost.*, basic_products.cpmctymc, basic_products.ggxh
|
||||||
LEFT JOIN basic_products on io_code_lost.nameCode=basic_products.nameCode
|
from io_code_lost
|
||||||
|
LEFT JOIN basic_products on io_code_lost.nameCode = basic_products.nameCode
|
||||||
<where>
|
<where>
|
||||||
<if test="code != '' and code != null">
|
<if test="code != '' and code != null">
|
||||||
and code like concat('%',#{code},'%')
|
and code like concat('%', #{code}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="cpmctymc != '' and cpmctymc != null">
|
<if test="cpmctymc != '' and cpmctymc != null">
|
||||||
and basic_products.cpmctymc like concat('%',#{cpmctymc},'%')
|
and basic_products.cpmctymc like concat('%', #{cpmctymc}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="ggxh != '' and ggxh != null">
|
<if test="ggxh != '' and ggxh != null">
|
||||||
and basic_products.ggxh like concat('%',#{ggxh},'%')
|
and basic_products.ggxh like concat('%', #{ggxh}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="batchNo != '' and batchNo != null">
|
<if test="batchNo != '' and batchNo != null">
|
||||||
and batchNo like concat('%',#{batchNo},'%')
|
and batchNo like concat('%', #{batchNo}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||||
AND date_format(io_code_lost.createTime, '%Y-%m-%d') between date_format(#{startTime}, '%Y-%m-%d') and date_format(#{endTime}, '%Y-%m-%d')
|
AND date_format(io_code_lost.createTime, '%Y-%m-%d') between date_format(#{startTime}, '%Y-%m-%d') and date_format(#{endTime}, '%Y-%m-%d')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="lastUpdateTime != null and lastUpdateTime != ''">
|
||||||
|
<![CDATA[
|
||||||
|
and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S')
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="filterList" parameterType="com.glxp.sale.admin.entity.inout.IoCodeLostEntity"
|
||||||
|
resultType="com.glxp.sale.admin.entity.inout.IoCodeLostEntity">
|
||||||
|
select io_code_lost.*
|
||||||
|
from io_code_lost
|
||||||
|
<where>
|
||||||
|
<if test="lastUpdateTime != null and lastUpdateTime != ''">
|
||||||
|
<![CDATA[
|
||||||
|
and DATE_FORMAT(updateTime
|
||||||
|
, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}
|
||||||
|
, '%Y-%m-%d %H:%i:%S')
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
Loading…
Reference in New Issue