|
@@ -704,7 +704,14 @@
|
|
|
<select id="getMyOvertime" resultType="java.lang.Double">
|
|
|
select IFNULL(sum(overtime_hours),0) from report where creator_id=#{userId}
|
|
|
</select>
|
|
|
- <select id="getProWaitingApproveCnt" resultType="java.util.HashMap">
|
|
|
+ <select id="getWaitingApproveCnt" resultType="java.util.HashMap">
|
|
|
+ select count(1) as num, user.dingding_userid as auditorDDId ,user.corpwx_userid as corpwxUserid from report
|
|
|
+ left join user on user.id = project_auditor_id
|
|
|
+ where state = 0 and project_audit_state = 0 and is_dept_audit = 0
|
|
|
+ and report.company_id = #{companyId}
|
|
|
+ group by project_auditor_id
|
|
|
+ </select>
|
|
|
+ <!--<select id="getProWaitingApproveCnt" resultType="java.util.HashMap">
|
|
|
select count(1) as num, user.dingding_userid as auditorDDId ,user.corpwx_userid as corpwxUserid from report
|
|
|
left join user on user.id = project_auditor_id
|
|
|
where state = 0 and project_audit_state = 0 and is_dept_audit = 0
|
|
@@ -717,7 +724,7 @@
|
|
|
where state = 0 and department_audit_state = 0 and is_dept_audit = 1
|
|
|
and report.company_id =#{companyId}
|
|
|
group by audit_dept_managerid
|
|
|
- </select>
|
|
|
+ </select>-->
|
|
|
<select id="getProjectCost" resultType="java.util.HashMap">
|
|
|
SELECT project_id as projectId,basecost_id as basecostId, SUM(cost) AS cost FROM report WHERE company_id=#{companyId}
|
|
|
AND (state = 0 or state = 1) and basecost_id > 0 AND project_id IN
|