| | |
| | | where item_id = #{itemId} |
| | | order by create_time desc |
| | | </select> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.TQaTestItemReportVO"> |
| | | select tqtir.id, tqtir.item_id, tqtir.report_content, tqtir.develop_person, tqtir.develop_date, tqtir.report_text, |
| | | tqtir.audit_person_id, tqtir.audit_time, tqtir.audit_remark, tqtir.status, tqtir.create_time, tqtir.update_time, |
| | | tqtir.create_by, tqtir.update_by, tqtir.disabled,tqti.item_name as itemName, tqti.item_code as itemCode, |
| | | tpt.team_name as teamName |
| | | from t_qa_test_item_report tqtir |
| | | left join t_qa_test_item tqti on tqti.id = tqtir.item_id |
| | | left join t_project_team tpt on tpt.id = tqti.team_id |
| | | <where> |
| | | <if test="query.teamName != null and query.teamName != ''"> |
| | | and tpt.team_name like concat('%', #{query.teamName}, '%') |
| | | </if> |
| | | <if test="query.itemName != null and query.itemName != ''"> |
| | | and tqti.item_name like concat('%', #{query.itemName}, '%') |
| | | </if> |
| | | <if test="query.itemCode != null and query.itemCode != ''"> |
| | | and tqti.item_code like concat('%', #{query.itemCode}, '%') |
| | | </if> |
| | | <if test="query.reportContent != null and query.reportContent != ''"> |
| | | and tqtir.report_content = #{query.reportContent} |
| | | </if> |
| | | <if test="query.status != null"> |
| | | and tqtir.status = #{query.status} |
| | | </if> |
| | | AND tqtir.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY tqtir.create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |