Browse Source

修改查询问题分布sql语句

tags/v1.0.0^2
wanjing 1 year ago
parent
commit
0213d4515b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionFileMapper.xml

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionFileMapper.xml View File

left join th_inspection ti on tif.inspection_id = ti.id left join th_inspection ti on tif.inspection_id = ti.id
<where> <where>
<if test="1 == 1"> and tif.mark = 1 </if> <if test="1 == 1"> and tif.mark = 1 </if>
<if test="request.inspectionName != null and request.inspectionName != 0"> and ti.name like concat('%', #{request.inspectionName}, '%') </if>
<if test="request.inspectionName != null and request.inspectionName != ''"> and ti.name like concat('%', #{request.inspectionName}, '%') </if>
<if test="request.questionId != null and request.questionId != ''"> and tif.question_id = #{request.questionId} </if> <if test="request.questionId != null and request.questionId != ''"> and tif.question_id = #{request.questionId} </if>
<if test="request.status != null"> <if test="request.status != null">
<choose> <choose>

Loading…
Cancel
Save