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.
92 lines
3.5 KiB
XML
92 lines
3.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.inv.InvRemindMsgDao">
|
|
<select id="filterList" resultType="com.glxp.api.res.inv.InvRemindMsgResponse">
|
|
select irm.id,
|
|
irm.relId,
|
|
irm.batchNo,
|
|
irm.productionDate,
|
|
irm.expireDate,
|
|
irm.deptCode,
|
|
irm.invCode,
|
|
irm.invSpaceCode,
|
|
irm.inCount,
|
|
irm.outCount,
|
|
irm.reCount,
|
|
irm.status,
|
|
irm.ignoreStatus,
|
|
irm.type,
|
|
irm.msg,
|
|
irm.handleMsg,
|
|
irm.remark,
|
|
bp.ggxh,
|
|
bp.manufactory,
|
|
bp.zczbhhzbapzbh,
|
|
bp.cpmctymc productName,
|
|
(select `name` from auth_warehouse where `code` = irm.invCode) invName,
|
|
(select `name` from auth_space where `code` = irm.invSpaceCode and invCode = irm.invCode) invSpaceName,
|
|
(select `name` from basic_corp where erpId = irm.supId) supName
|
|
from inv_remind_msg irm
|
|
left join basic_udirel bu on bu.id = irm.relId
|
|
left join basic_products bp on bp.uuid = bu.uuid
|
|
<where>
|
|
<if test="relId != null and relId != ''">
|
|
AND irm.relId = #{relId}
|
|
</if>
|
|
<if test="batchNo != null and batchNo != ''">
|
|
AND irm.batchNo like concat('%', #{batchNo}, '%')
|
|
</if>
|
|
<if test="invCode != null and invCode != ''">
|
|
AND irm.invCode = #{invCode}
|
|
</if>
|
|
<if test="invSpaceCode != null and invSpaceCode != ''">
|
|
AND irm.invSpaceCode = #{invSpaceCode}
|
|
</if>
|
|
<if test="status != null">
|
|
AND irm.status = #{status}
|
|
</if>
|
|
<if test="ignoreStatus != null">
|
|
AND irm.ignoreStatus = #{ignoreStatus}
|
|
</if>
|
|
<if test="ggxh != null and ggxh != ''">
|
|
AND bp.ggxh = #{ggxh}
|
|
</if>
|
|
<if test="type != null and type != ''">
|
|
AND type = #{type}
|
|
</if>
|
|
<if test="supId != null">
|
|
AND irm.supId = #{supId}
|
|
</if>
|
|
</where>
|
|
order by irm.updateTime desc
|
|
</select>
|
|
|
|
<select id="selectRemindMsg" resultType="com.glxp.api.entity.inv.InvRemindMsgEntity">
|
|
select *
|
|
from inv_remind_msg
|
|
<where>
|
|
<if test="relId != null and relId != ''">
|
|
AND relId = #{relId}
|
|
</if>
|
|
<if test="deptCode != null and deptCode != ''">
|
|
AND deptCode = #{deptCode}
|
|
</if>
|
|
<if test="invCode != null and invCode != ''">
|
|
AND invCode = #{invCode}
|
|
</if>
|
|
<if test="invSpaceCode != null and invSpaceCode != ''">
|
|
AND invSpaceCode = #{invSpaceCode}
|
|
</if>
|
|
<if test="batchNo != null and batchNo != ''">
|
|
AND batchNo = #{batchNo}
|
|
</if>
|
|
<if test="type != null and type != ''">
|
|
AND type = #{type}
|
|
</if>
|
|
<if test="supId != null and supId != ''">
|
|
AND supId = #{supId}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
</mapper>
|