You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
2.3 KiB
XML
50 lines
2.3 KiB
XML
2 years ago
|
<?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">
|
||
|
<mapper namespace="com.glxp.api.dao.basic.BasicUdiRelMapper">
|
||
|
<select id="filterList" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
||
|
resultType="com.glxp.api.res.basic.BasicUdiRelResponse">
|
||
|
select *
|
||
|
FROM basic_udi_rel
|
||
|
inner JOIN productinfo p on basic_udi_rel.uuid = p.uuid
|
||
|
<where>
|
||
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
||
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
||
|
</if>
|
||
|
<if test="cpmctymc != '' and cpmctymc != null">
|
||
|
AND cpmctymc LIKE concat('%', #{cpmctymc}, '%')
|
||
|
</if>
|
||
|
<if test="nameCode != '' and nameCode != null">
|
||
|
AND nameCode LIKE concat(#{nameCode}, '%')
|
||
|
</if>
|
||
|
<if test="uuid != '' and uuid != null">
|
||
|
AND basic_udi_rel.uuid = #{uuid}
|
||
|
</if>
|
||
|
<if test="id != '' and id != null">
|
||
|
AND basic_udi_rel.id = #{id}
|
||
|
</if>
|
||
|
<if test="diType != null">
|
||
|
AND diType = #{diType}
|
||
|
</if>
|
||
|
<if test="zczbhhzbapzbh != '' and zczbhhzbapzbh != null">
|
||
|
AND zczbhhzbapzbh LIKE concat(#{zczbhhzbapzbh}, '%')
|
||
|
</if>
|
||
|
<if test="lastUpdateTime != null and lastUpdateTime != ''">
|
||
|
<![CDATA[
|
||
|
and DATE_FORMAT(basic_udi_rel.updateTime, '%Y-%m-%d %H:%i:%S') >=
|
||
|
DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S')
|
||
|
]]>
|
||
|
</if>
|
||
|
<if test="unionFilterStr != '' and unionFilterStr != null">
|
||
|
or p.cpmctymc LIKE concat('%', #{unionFilterStr}, '%')
|
||
|
or p.ylqxzcrbarmc LIKE concat('%', #{unionFilterStr}, '%')
|
||
|
or p.ggxh LIKE concat('%', #{unionFilterStr}, '%')
|
||
|
or p.zczbhhzbapzbh LIKE concat('%', #{unionFilterStr}, '%')
|
||
|
</if>
|
||
|
<if test="uniqueNameCode != '' and uniqueNameCode != null">
|
||
|
AND nameCode = #{uniqueNameCode}
|
||
|
</if>
|
||
|
</where>
|
||
|
ORDER BY basic_udi_rel.updateTime DESC
|
||
|
</select>
|
||
|
</mapper>
|