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.
udi-wms-java/src/main/resources/mybatis/mapper/purchase/SupCertRemindMsgDao.xml

66 lines
2.5 KiB
XML

<?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.purchase.SupCertRemindMsgDao">
<select id="selectSupRemindMsgList" resultType="com.glxp.api.res.purchase.SupCertRemindMsgResponse">
select m.*, c.companyName name
from sup_cert_remind_msg m
left join sup_company c on m.idFk = c.customerId
<where>
<if test="name != null and name != ''">
AND c.companyName like concat('%', #{name}, '%')
</if>
<if test="status != null">
AND m.status = #{status}
</if>
<if test="ignoreStatus != null">
AND m.ignoreStatus = #{ignoreStatus}
</if>
<if test="type != null">
AND m.type = #{type}
</if>
</where>
order by m.updateTime desc
</select>
<select id="selectManufactureRemindMsgList" resultType="com.glxp.api.res.purchase.SupCertRemindMsgResponse">
select m.*, c.companyName name
from sup_cert_remind_msg m
left join sup_manufacturer c on m.idFk = c.customerId
<where>
<if test="name != null and name != ''">
AND c.companyName like concat('%', #{name}, '%')
</if>
<if test="status != null">
AND m.status = #{status}
</if>
<if test="ignoreStatus != null">
AND m.ignoreStatus = #{ignoreStatus}
</if>
<if test="type != null">
AND m.type = #{type}
</if>
</where>
order by m.updateTime desc
</select>
<select id="selectProductRemindMsgList" resultType="com.glxp.api.res.purchase.SupCertRemindMsgResponse">
select m.*, c.recordProductName name
from sup_cert_remind_msg m
left join sup_product c on m.idFk = c.customerId
<where>
<if test="name != null and name != ''">
AND c.recordProductName like concat('%', #{name}, '%')
</if>
<if test="status != null">
AND m.status = #{status}
</if>
<if test="ignoreStatus != null">
AND m.ignoreStatus = #{ignoreStatus}
</if>
<if test="type != null">
AND m.type = #{type}
</if>
</where>
order by m.updateTime desc
</select>
</mapper>