| | |
| | | <sql id="Base_Column_List"> |
| | | id, team_id, report_code, report_name, report_text, status, audit_person_id, audit_time, audit_remark, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.TProjectApprovalReportVO"> |
| | | select id, team_id, report_code, report_name, report_text, status, audit_person_id, audit_time, audit_remark, create_time, update_time, create_by, update_by, disabled |
| | | from t_project_approval_report tpar |
| | | left join t_project_team tpt on tpt.id = tpar.team_id |
| | | <where> |
| | | <if test="query.teamIds != null and query.teamIds.size() > 0"> |
| | | and tpt.id in |
| | | <foreach item="item" collection="query.teamIds" separator="," open="(" close=")" index=""> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="query.teamName != null and query.teamName != ''"> |
| | | and tpt.team_name like concat('%',#{query.teamName},'%') |
| | | </if> |
| | | <if test="query.reportCode != null and query.reportCode != ''"> |
| | | and tpar.report_code like concat('%',#{query.reportCode},'%') |
| | | </if> |
| | | <if test="query.reportName != null and query.reportName != ''"> |
| | | and tpar.report_name like concat('%',#{query.reportName},'%') |
| | | </if> |
| | | <if test="query.status != null and query.status != -1"> |
| | | and tpar.status = #{query.status} |
| | | </if> |
| | | <if test="query.status == null"> |
| | | and tpar.status != -1 |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''"> |
| | | AND tpar.create_time BETWEEN #{query.startTime} AND #{query.endTime} |
| | | </if> |
| | | AND tpar.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY tpar.create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |