皖送大屏机具编码信息推送

This commit is contained in:
bonus 2025-11-25 10:28:51 +08:00
parent 70fd7ac0cc
commit 62b88c6ed6
1 changed files with 7 additions and 2 deletions

View File

@ -1297,12 +1297,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
sum(sai.num) num, sum(sai.num) num,
mt.lease_price as leasePrice, mt.lease_price as leasePrice,
ANY_VALUE(mt.type_id) as typeId, ANY_VALUE(mt.type_id) as typeId,
mt2.is_statics as isStatics mt2.is_statics as isStatics,
mm.ma_code AS maCode
FROM slt_agreement_info sai FROM slt_agreement_info sai
LEFT JOIN bm_agreement_info bai ON sai.agreement_id = bai.agreement_id LEFT JOIN bm_agreement_info bai ON sai.agreement_id = bai.agreement_id
LEFT JOIN bm_project bp ON bai.project_id = bp.pro_id LEFT JOIN bm_project bp ON bai.project_id = bp.pro_id
LEFT JOIN ma_type mt ON sai.type_id = mt.type_id LEFT JOIN ma_type mt ON sai.type_id = mt.type_id
LEFT JOIN ma_type mt2 ON mt.parent_id = mt2.type_id LEFT JOIN ma_type mt2 ON mt.parent_id = mt2.type_id
LEFT JOIN ma_machine mm on sai.ma_id = mm.ma_id
WHERE WHERE
sai.is_slt = 0 sai.is_slt = 0
AND sai.end_time IS NULL AND sai.end_time IS NULL
@ -1321,6 +1323,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="typeModelName != null and typeModelName !=''"> <if test="typeModelName != null and typeModelName !=''">
AND mt.type_name like concat ('%', #{typeModelName}, '%') AND mt.type_name like concat ('%', #{typeModelName}, '%')
</if> </if>
GROUP BY bp.pro_name,mt.type_id <if test="maCode != null and maCode !=''">
AND mm.ma_code like concat ('%', #{maCode}, '%')
</if>
GROUP BY bp.pro_name,mt.type_id,sai.ma_id
</select> </select>
</mapper> </mapper>