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.
|
|
|
<?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.trace.TraceManuOrderMapper">
|
|
|
|
<select id="filterTraces" parameterType="com.glxp.api.req.trace.TraceManuOrderRequest"
|
|
|
|
resultType="com.glxp.api.res.trace.TraceManuOrderResponse">
|
|
|
|
select *
|
|
|
|
from trace_manu_order
|
|
|
|
<where>
|
|
|
|
<if test="id != '' and id != null">
|
|
|
|
and id = #{id}
|
|
|
|
</if>
|
|
|
|
<if test="billNo != '' and billNo != null">
|
|
|
|
and billNo = #{billNo}
|
|
|
|
</if>
|
|
|
|
<if test="cpmctymc != '' and cpmctymc != null">
|
|
|
|
and cpmctymc = #{cpmctymc}
|
|
|
|
</if>
|
|
|
|
<if test="ggxh != '' and ggxh != null">
|
|
|
|
and `ggxh` = #{ggxh}
|
|
|
|
</if>
|
|
|
|
<if test="zczbhhzbapzbh != '' and zczbhhzbapzbh != null">
|
|
|
|
and zczbhhzbapzbh = #{zczbhhzbapzbh}
|
|
|
|
</if>
|
|
|
|
<if test="nameCode != '' and nameCode != null">
|
|
|
|
and nameCode = #{nameCode}
|
|
|
|
</if>
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
and uuid = #{uuid}
|
|
|
|
</if>
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
and `ylqxzcrbarmc` = #{ylqxzcrbarmc}
|
|
|
|
</if>
|
|
|
|
<if test="nameCode != '' and nameCode != null">
|
|
|
|
and nameCode = #{nameCode}
|
|
|
|
</if>
|
|
|
|
<if test="cpmctymc != '' and cpmctymc != null">
|
|
|
|
and cpmctymc = #{cpmctymc}
|
|
|
|
</if>
|
|
|
|
<if test="ggxh != '' and ggxh != null">
|
|
|
|
and ggxh = #{ggxh}
|
|
|
|
</if>
|
|
|
|
<if test="manufactory != '' and manufactory != null">
|
|
|
|
and `manufactory` = #{manufactory}
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
ORDER BY id DESC
|
|
|
|
</select>
|
|
|
|
</mapper>
|