Commit d86f2743 authored by 周昊's avatar 周昊

1、修改pc端台账报错问题

parent ce76d614
......@@ -45,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
lp.`name` AS projectName,
sd2.dept_id AS deptId,
sd2.dept_name AS deptName,
sd2.ancestors AS ancestors,
lp.city,
rp.building_ids AS buildingIds,
( SELECT GROUP_CONCAT( `name` ) FROM ledger_building WHERE FIND_IN_SET( id, rp.building_ids ) ) AS buildingNames,
......@@ -71,7 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="projectId != null "> and TT.project_id = #{projectId}</if>
<if test="buildingIds != null and buildingIds != ''"> and TT.building_ids = #{buildingIds}</if>
<if test="createUserId != null "> and TT.create_user_id = #{createUserId}</if>
<if test="createDeptId != null "> AND ( sd2.dept_id = #{createDeptId} OR FIND_IN_SET( #{createDeptId}, sd2.ancestors ) )</if>
<if test="createDeptId != null "> AND ( TT.deptId = #{createDeptId} OR FIND_IN_SET( #{createDeptId}, TT.ancestors ) )</if>
<if test="leaderUserId != null "> and TT.leader_user_id = #{leaderUserId}</if>
<if test="workUserIds != null and workUserIds != ''"> and TT.work_user_ids = #{workUserIds}</if>
<if test="approveUserId != null "> and TT.approve_user_id = #{approveUserId}</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment