|
@@ -57,58 +57,7 @@
|
|
|
|
|
|
</where>
|
|
|
</select>
|
|
|
- <select id="servicePersonnelTotal" resultType="java.lang.Integer">
|
|
|
- SELECT count( DISTINCT region_user_id )+ count( DISTINCT user_id ) from
|
|
|
|
|
|
- t_b_user_archives_allocation
|
|
|
- <where>
|
|
|
- <if test="serviceUnitId != null and serviceUnitId != ''">
|
|
|
- and service_id = #{serviceUnitId}
|
|
|
- </if>
|
|
|
-
|
|
|
- </where>
|
|
|
-<!-- SELECT count(DISTINCT id) FROM sys_user WHERE-->
|
|
|
-<!-- id IN (-->
|
|
|
-<!-- SELECT a.lead_id FROM t_b_sop_info_detail a-->
|
|
|
-<!-- left join t_b_sop_info i on a.sop_info_id=i.id-->
|
|
|
-
|
|
|
-<!-- LEFT JOIN t_f_custom_flow_entity tfcfe ON tfcfe.CODE = i.sop_no-->
|
|
|
-<!-- LEFT JOIN t_f_flow_approve tffa ON tffa.flow_id = tfcfe.flow_id-->
|
|
|
-<!-- <where>-->
|
|
|
-<!-- and tffa.status!='FINISH'-->
|
|
|
-<!-- <if test="serviceUnitId != null and serviceUnitId != ''">-->
|
|
|
-<!-- and i.service_id = #{serviceUnitId}-->
|
|
|
-<!-- </if>-->
|
|
|
-
|
|
|
-<!-- </where>-->
|
|
|
-<!-- UNION ALL-->
|
|
|
-<!-- SELECT a.region_user_id FROM t_b_sop_info_detail a-->
|
|
|
-<!-- left join t_b_sop_info i on a.sop_info_id=i.id-->
|
|
|
-
|
|
|
-<!-- LEFT JOIN t_f_custom_flow_entity tfcfe ON tfcfe.CODE = i.sop_no-->
|
|
|
-<!-- LEFT JOIN t_f_flow_approve tffa ON tffa.flow_id = tfcfe.flow_id-->
|
|
|
-<!-- <where>-->
|
|
|
-<!-- and tffa.status!='FINISH'-->
|
|
|
-<!-- <if test="serviceUnitId != null and serviceUnitId != ''">-->
|
|
|
-<!-- and i.service_id = #{serviceUnitId}-->
|
|
|
-<!-- </if>-->
|
|
|
-
|
|
|
-<!-- </where>-->
|
|
|
-<!-- UNION ALL-->
|
|
|
-<!-- SELECT a.engineer_user_id FROM t_b_sop_info_detail a-->
|
|
|
-<!-- left join t_b_sop_info i on a.sop_info_id=i.id-->
|
|
|
-
|
|
|
-<!-- LEFT JOIN t_f_custom_flow_entity tfcfe ON tfcfe.CODE = i.sop_no-->
|
|
|
-<!-- LEFT JOIN t_f_flow_approve tffa ON tffa.flow_id = tfcfe.flow_id-->
|
|
|
-<!-- <where>-->
|
|
|
-<!-- and tffa.status!='FINISH'-->
|
|
|
-<!-- <if test="serviceUnitId != null and serviceUnitId != ''">-->
|
|
|
-<!-- and i.service_id = #{serviceUnitId}-->
|
|
|
-<!-- </if>-->
|
|
|
-
|
|
|
-<!-- </where>-->
|
|
|
-<!-- )-->
|
|
|
- </select>
|
|
|
<select id="projectCount" resultType="java.lang.Integer">
|
|
|
SELECT
|
|
|
count(DISTINCT c.id )
|