| | |
| | | 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} |
| | |
| | | <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> |