|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
<select id="selectSupRemindMsgList" resultType="com.glxp.api.res.purchase.SupCertRemindMsgResponse">
|
|
|
|
|
select m.*,
|
|
|
|
|
c.companyName `name`,
|
|
|
|
|
(select `name` from sup_cert s where s.code = m.code and s.CustomerId = m.idFk) certName
|
|
|
|
|
(select `name` from sup_cert s where s.code = m.code and s.CustomerId = m.idFk limit 1) certName
|
|
|
|
|
from sup_cert_remind_msg m
|
|
|
|
|
left join sup_company c on m.idFk = c.customerId
|
|
|
|
|
<where>
|
|
|
|
@ -27,9 +27,9 @@
|
|
|
|
|
<select id="selectManufactureRemindMsgList" resultType="com.glxp.api.res.purchase.SupCertRemindMsgResponse">
|
|
|
|
|
select m.*,
|
|
|
|
|
c.companyName `name`,
|
|
|
|
|
(select `name` from sup_cert s where s.code = m.code and s.manufacturerIdFk = m.idFk) certName
|
|
|
|
|
(select `name` from sup_cert s where s.code = m.code and s.manufacturerIdFk = m.idFk limit 1) certName
|
|
|
|
|
from sup_cert_remind_msg m
|
|
|
|
|
left join sup_manufacturer c on m.idFk = c.customerId
|
|
|
|
|
left join sup_manufacturer c on m.idFk = c.manufacturerId
|
|
|
|
|
<where>
|
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
|
AND c.companyName like concat('%', #{name}, '%')
|
|
|
|
@ -69,4 +69,4 @@
|
|
|
|
|
</where>
|
|
|
|
|
order by m.updateTime desc
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|
</mapper>
|
|
|
|
|