|
|
@ -1,10 +1,10 @@
|
|
|
|
<?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
|
|
|
|
|
|
|
|
from io_code_lost
|
|
|
|
LEFT JOIN basic_products on io_code_lost.nameCode = basic_products.nameCode
|
|
|
|
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">
|
|
|
@ -23,7 +23,27 @@
|
|
|
|
<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>
|
|
|
|