|
|
@ -29,7 +29,7 @@
|
|
|
|
AND tyshxydm = #{tyshxydm}
|
|
|
|
AND tyshxydm = #{tyshxydm}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
|
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
<![CDATA[ and updateTime>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
AND tyshxydm = #{tyshxydm}
|
|
|
|
AND tyshxydm = #{tyshxydm}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
|
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
<![CDATA[ and updateTime>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
GROUP BY uuid
|
|
|
|
GROUP BY uuid
|
|
|
@ -88,7 +88,7 @@
|
|
|
|
AND uuid = #{uuid}
|
|
|
|
AND uuid = #{uuid}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
|
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
<![CDATA[ and updateTime>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
GROUP BY cpmctymc
|
|
|
|
GROUP BY cpmctymc
|
|
|
@ -113,7 +113,7 @@
|
|
|
|
AND uuid = #{uuid}
|
|
|
|
AND uuid = #{uuid}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
|
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
<![CDATA[ and updateTime>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
GROUP BY nameCode
|
|
|
|
GROUP BY nameCode
|
|
|
@ -249,7 +249,7 @@
|
|
|
|
AND deviceRecordKey = #{deviceRecordKey}
|
|
|
|
AND deviceRecordKey = #{deviceRecordKey}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
|
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
<![CDATA[ and updateTime>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="isNewest != null and isNewest!=''">
|
|
|
|
<if test="isNewest != null and isNewest!=''">
|
|
|
|
AND isNewest = #{isNewest}
|
|
|
|
AND isNewest = #{isNewest}
|
|
|
@ -266,9 +266,10 @@
|
|
|
|
select *
|
|
|
|
select *
|
|
|
|
from productinfo
|
|
|
|
from productinfo
|
|
|
|
where
|
|
|
|
where
|
|
|
|
<![CDATA[ DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{startDate}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
<![CDATA[ updateTime >= DATE_FORMAT(#{startDate}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
and
|
|
|
|
and
|
|
|
|
<![CDATA[ DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S') <= DATE_FORMAT(#{endDate}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
<![CDATA[ updateTime, '%Y-%m-%d %H:%i:%S' <= DATE_FORMAT(#{endDate}
|
|
|
|
|
|
|
|
, '%Y-%m-%d %H:%i:%S')
|
|
|
|
]]>
|
|
|
|
]]>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<!--<select id="filterUdi" parameterType="com.glxp.sync.admin.req.ProductInfoFilterRequest"-->
|
|
|
|
<!--<select id="filterUdi" parameterType="com.glxp.sync.admin.req.ProductInfoFilterRequest"-->
|
|
|
@ -342,7 +343,7 @@
|
|
|
|
AND deviceRecordKey = #{deviceRecordKey}
|
|
|
|
AND deviceRecordKey = #{deviceRecordKey}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
|
<if test="updateTime!=null and updateTime!=''">
|
|
|
|
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
<![CDATA[ and updateTime>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
limit #{page},#{limit}
|
|
|
|
limit #{page},#{limit}
|
|
|
|