| | |
| | | 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 >= #{dto.startTime} |
| | |
| | | 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 |
| | |
| | | <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> |