| | |
| | | ORDER BY tqti.create_time DESC |
| | | </select> |
| | | |
| | | <select id="evaluateList" resultType="com.ruoyi.system.vo.TQaTestItemVO"> |
| | | select tqti.id, tqti.team_id, tqti.item_name, tqti.item_code, tqti.remark, tqti.status, tqti.evaluate_person_id, |
| | | tqti.evaluate_time, tqti.evaluate_score, tqti.create_time, tqti.update_time, tqti.create_by, tqti.update_by, tqti.disabled, |
| | | tpt.team_name as teamName |
| | | from t_qa_test_item tqti |
| | | 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.status != null"> |
| | | and tqti.status = #{query.status} |
| | | </if> |
| | | <if test="query.teamIds != null and query.teamIds.size() > 0"> |
| | | and tqti.team_id in |
| | | <foreach collection="query.teamIds" item="teamId" open="(" separator="," close=")"> |
| | | #{teamId} |
| | | </foreach> |
| | | </if> |
| | | AND tqti.status in (2,3) |
| | | AND tqti.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY tqti.create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |