From f73dbcd6c21d28ab1e98840eee73c6d09bd0f929 Mon Sep 17 00:00:00 2001
From: ke <893754509@qq.com>
Date: Tue, 27 Aug 2024 17:31:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/jtdev' into jtdev

---
 skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/sg/mapper/SgProgressReportMapper.xml |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/sg/mapper/SgProgressReportMapper.xml b/skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/sg/mapper/SgProgressReportMapper.xml
index eade863..84077d9 100644
--- a/skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/sg/mapper/SgProgressReportMapper.xml
+++ b/skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/sg/mapper/SgProgressReportMapper.xml
@@ -99,13 +99,13 @@
             and userR.user_id = #{dto.userId} and userR.approval_order != 0
         </if>
         <if test="dto.approvalStatus != null and dto.approvalStatus ==0">
-            and userR.approval_status = 0 and report.audit_person = #{dto.userId} and (report."STATUS" = 0 or report."STATUS" = 1)
+            and userR.approval_status = 0 and report.audit_person = #{dto.auditPerson} and (report."STATUS" = 0 or report."STATUS" = 1)
         </if>
         <if test="dto.approvalStatus != null and dto.approvalStatus ==1">
            and userR.approval_status = 1
         </if>
         <if test="dto.approvalStatus != null and dto.approvalStatus ==2">
-            AND userR.approval_order = 2
+            AND userR.approval_status = 2
         </if>
         <if test="dto.startTime != null and dto.startTime !='' ">
             and report.report_time &gt;= #{dto.startTime}
@@ -148,7 +148,8 @@
             step.gx_step_name AS stepName,
             step.gx_step_num AS stepNum,
             re.STATUS AS approvalStatus,
-            re.report_time
+            re.report_time,
+            re.resubmit
         FROM
             ywxt.sg_gx_step step
                 LEFT JOIN ywxt.sg_gx gx ON step.gx_info_id = gx.id
@@ -190,4 +191,8 @@
     <select id="selectProframId" resultType="java.lang.Long">
         select program_id from ywxt.sg_device where id = #{deviceId}
     </select>
+    <select id="selectProcessUserByProjectId" resultType="cn.gistack.sm.sg.DO.SgReportUserDO">
+        select  u.* from ywxt.sg_report_user u left join  ywxt.sg_progresss_report r on u.report_id = r.id
+        where 1=1 and r.profram_id = #{programId}
+    </select>
 </mapper>

--
Gitblit v1.9.3