|
@@ -257,7 +257,13 @@
|
|
AND a.project_id = #{projectId}
|
|
AND a.project_id = #{projectId}
|
|
</if>
|
|
</if>
|
|
<if test="leaderId != null">
|
|
<if test="leaderId != null">
|
|
- AND (b.incharger_id = #{leaderId} or a.creator_id=#{leaderId})
|
|
|
|
|
|
+ AND (b.incharger_id = #{leaderId} or a.creator_id=#{leaderId} or a.project_auditor_id=#{leaderId}
|
|
|
|
+ <if test="ccProjectIds != null">
|
|
|
|
+ or a.project_id in
|
|
|
|
+ <foreach collection="ccProjectIds" item="pid" separator="," close=")" open="(" index="index">#{pid}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ )
|
|
</if>
|
|
</if>
|
|
<if test="branchDepartment != null">
|
|
<if test="branchDepartment != null">
|
|
AND department.department_id in
|
|
AND department.department_id in
|
|
@@ -267,6 +273,7 @@
|
|
</if>
|
|
</if>
|
|
ORDER BY a.creator_id, a.create_date desc
|
|
ORDER BY a.creator_id, a.create_date desc
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
<select id="getProjectMembReportByDateWithReportLog" resultType="java.util.Map">
|
|
<select id="getProjectMembReportByDateWithReportLog" resultType="java.util.Map">
|
|
SELECT a.id, c.name,c.job_number as jobNumber,c.corpwx_userid as corpwxUserId,c.corpwx_deptid as corpwxDeptId, b.project_name AS project, b.project_code as projectCode, b.category_name as categoryName,a.working_time AS duration,
|
|
SELECT a.id, c.name,c.job_number as jobNumber,c.corpwx_userid as corpwxUserId,c.corpwx_deptid as corpwxDeptId, b.project_name AS project, b.project_code as projectCode, b.category_name as categoryName,a.working_time AS duration,
|
|
a.content, a.create_time AS time, a.create_date as createDate,
|
|
a.content, a.create_time AS time, a.create_date as createDate,
|
|
@@ -316,7 +323,13 @@
|
|
AND a.project_id = #{projectId}
|
|
AND a.project_id = #{projectId}
|
|
</if>
|
|
</if>
|
|
<if test="leaderId != null">
|
|
<if test="leaderId != null">
|
|
- AND (b.incharger_id = #{leaderId} or a.creator_id=#{leaderId})
|
|
|
|
|
|
+ AND (b.incharger_id = #{leaderId} or a.creator_id=#{leaderId} or a.project_auditor_id=#{leaderId}
|
|
|
|
+ <if test="ccProjectIds != null">
|
|
|
|
+ or a.project_id in
|
|
|
|
+ <foreach collection="ccProjectIds" item="pid" separator="," close=")" open="(" index="index">
|
|
|
|
+ #{pid}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>)
|
|
</if>
|
|
</if>
|
|
<if test="branchDepartment != null">
|
|
<if test="branchDepartment != null">
|
|
AND department.department_id in
|
|
AND department.department_id in
|