| | |
| | | <sql id="Base_Column_List"> |
| | | id, team_id, report_code, report_name, report_text, report_type, status, audit_person_id, audit_time, audit_remark, evaluate_person_id, evaluate_time, evaluate_score, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.TFeasibilityStudyReportVO"> |
| | | select tfsr.id, tfsr.team_id, tfsr.report_code, tfsr.report_name, tfsr.report_text, tfsr.report_type, tfsr.status, |
| | | tfsr.audit_person_id, tfsr.audit_time, tfsr.audit_remark, tfsr.evaluate_person_id, tfsr.evaluate_time, tfsr.evaluate_score, |
| | | tfsr.create_time, tfsr.update_time, tfsr.create_by, tfsr.update_by, tfsr.disabled, tpt.team_name as teamName |
| | | from t_feasibility_study_report tfsr |
| | | left join t_project_team tpt on tpt.id = tfsr.team_id |
| | | <where> |
| | | <if test="query.reportName != null and query.reportName != ''"> |
| | | and tfsr.report_name like concat('%', #{query.reportName}, '%') |
| | | </if> |
| | | <if test="query.reportCode != null and query.reportCode != ''"> |
| | | and tfsr.report_code like concat('%', #{query.reportCode}, '%') |
| | | </if> |
| | | <if test="query.teamName != null and query.teamName != ''"> |
| | | and tpt.team_name like concat('%', #{query.teamName}) |
| | | </if> |
| | | <if test="query.status != null"> |
| | | and tfsr.status = #{query.status} |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''"> |
| | | AND tfsr.create_time BETWEEN #{query.startTime} AND #{query.endTime} |
| | | </if> |
| | | AND tfsr.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY tfsr.create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |