Pārlūkot izejas kodu

修改获取任务分页列表sql,根据需求要求,只关键字查询只匹配任务编码

tags/v1.0.0^2
wanjing pirms 1 gada
vecāks
revīzija
9df2f60379
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionMapper.xml

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionMapper.xml Parādīt failu

<include refid="selectInspectionVo"/> <include refid="selectInspectionVo"/>
<where> <where>
<if test="1 == 1"> and mark = 1 </if> <if test="1 == 1"> and mark = 1 </if>
<if test="request.key != null and request.key != ''"> and ((code like concat('%', #{request.code}, '%')) or (name like concat('%', #{request.name}, '%'))) </if>
<if test="request.code != null and request.code != ''"> and code like concat('%', #{request.code}, '%') </if>
<if test="request.airportId != null and request.airportId != 0"> and airport_id = #{request.inspectionLine} </if> <if test="request.airportId != null and request.airportId != 0"> and airport_id = #{request.inspectionLine} </if>
<if test="request.inspectionLine != null and request.inspectionLine != 0"> and inspection_line = #{request.inspectionLine} </if> <if test="request.inspectionLine != null and request.inspectionLine != 0"> and inspection_line = #{request.inspectionLine} </if>
<if test="request.type != null and request.type != 0"> and type = #{request.type} </if> <if test="request.type != null and request.type != 0"> and type = #{request.type} </if>

Notiek ielāde…
Atcelt
Saglabāt