| | |
| | | <if test="query.projectId != null"> |
| | | and t2.project_id = #{query.projectId} |
| | | </if> |
| | | <if test="query.state ==4 "> |
| | | <if test="query.state ==0 "> |
| | | and t1.error_review_id is null |
| | | </if> |
| | | <if test="query.state ==1 "> |
| | |
| | | <if test="query.projectId != null"> |
| | | and t2.project_id = #{query.projectId} |
| | | </if> |
| | | <if test="query.state ==4 "> |
| | | <if test="query.state == 0"> |
| | | and t1.error_review_id is null |
| | | </if> |
| | | <if test="query.state ==1 "> |
| | |
| | | or |
| | | t5.name like CONCAT('%', #{query.content}, '%') |
| | | or |
| | | t5.description like CONCAT('%', #{query.content}, '%') |
| | | or |
| | | t1.remark like CONCAT('%', #{query.content}, '%') |
| | | ) |
| | | </if> |
| | | <if test="query.level != null"> |
| | | and t1.level = #{query.level} |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime !='' "> |
| | | and t1.create_time >= #{query.startTime} |
| | | </if> |
| | | <if test="query.endTime != null and query.endTime !='' "> |
| | | and #{query.endTime} >= t1.create_time |
| | | </if> |
| | | order by t1.create_time desc |
| | | </select> |
| | |
| | | <if test="query.projectId != null"> |
| | | and t2.project_id = #{query.projectId} |
| | | </if> |
| | | <if test="query.state ==4 "> |
| | | <if test="query.state == 0 "> |
| | | and t1.error_review_id is null |
| | | </if> |
| | | <if test="query.state ==1 "> |
| | | <if test="query.state == 1 "> |
| | | and t6.state = 0 |
| | | </if> |
| | | <if test="query.state ==2 "> |
| | | <if test="query.state == 2 "> |
| | | and t6.state = 1 |
| | | </if> |
| | | <if test="query.state ==3 "> |
| | | <if test="query.state == 3 "> |
| | | and t6.state = 2 |
| | | </if> |
| | | |
| | |
| | | or |
| | | t5.name like CONCAT('%', #{query.content}, '%') |
| | | or |
| | | t5.description like CONCAT('%', #{query.content}, '%') |
| | | or |
| | | t1.remark like CONCAT('%', #{query.content}, '%') |
| | | ) |
| | | </if> |
| | | <if test="query.level != null"> |
| | | and t1.level = #{query.level} |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime !='' "> |
| | | and t1.create_time >= #{query.startTime} |
| | | </if> |
| | | <if test="query.endTime != null and query.endTime !='' "> |
| | | and #{query.endTime} >= t1.create_time |
| | | </if> |
| | | order by t1.create_time desc |
| | | </select> |
| | | |