修改台账明细穿透逻辑

This commit is contained in:
马三炮 2026-02-02 09:19:13 +08:00
parent 937143dd0b
commit 5b9b5fd836
2 changed files with 4 additions and 1 deletions

View File

@ -141,4 +141,6 @@ public class ProjectMaterialLedger {
private Integer queryType;
private String backTime;
private String manager;
}

View File

@ -261,6 +261,7 @@
b.model_id AS modelId,
LEFT(sba.back_time,10) as backTime,
sba.`code` as planCode,
sba.manager as manager,
b.num AS totalBack
FROM
st_back_details b
@ -273,7 +274,7 @@
WHERE
p.ID = #{proId}
AND b.model_id = #{modelId}
and sba.`status`='1'
AND (sba.`status` != '0' OR sba.`status` IS NULL)
<if test="planCode != null and planCode != ''">
and sba.`code` LIKE CONCAT('%',#{planCode},'%')
</if>