Commit 4eedab5e by Suvalue

汇总全员数据展示

parent 08b48f32
...@@ -97,13 +97,13 @@ ...@@ -97,13 +97,13 @@
from val_proj_value v from val_proj_value v
join dic_bgt_proj p on p.ID =v.PROJ_ID and p.STATE = 1 join dic_bgt_proj p on p.ID =v.PROJ_ID and p.STATE = 1
where 1=1 where 1=1
and EXISTS(select o2.ORG_CODE as DEPT_CODE and (EXISTS(select o2.ORG_CODE as DEPT_CODE
from sys_user_sbj_rs rs2 from sys_user_sbj_rs rs2
join sys_subject o2 on o2.id = rs2.ORG_ID and rs2.STATE = 1 join sys_subject o2 on o2.id = rs2.ORG_ID and rs2.STATE = 1
where o2.STATE = 1 where o2.STATE = 1
and rs2.USER_ID = #{userId,jdbcType=DECIMAL} and rs2.USER_ID = #{userId,jdbcType=DECIMAL}
and o2.ORG_CODE = v.DEPT_CODE and o2.ORG_CODE = v.DEPT_CODE
) ) or v.DEPT_CODE = '全院')
<if test="date!=null"> <if test="date!=null">
and v.`DATE`= LEFT(#{date,jdbcType=DECIMAL},4) and v.`DATE`= LEFT(#{date,jdbcType=DECIMAL},4)
</if> </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