opt:一键移库代码优化测试
This commit is contained in:
@@ -170,11 +170,12 @@
|
||||
AND P.vehicle_code2 NOT LIKE '%YBHC%'
|
||||
AND (p.ing_task_code IS NULL or p.ing_task_code = '')
|
||||
AND p.region_code IN ( 'YLHC' )) a
|
||||
WHERE 1=1
|
||||
<if test="query.point_code != null">
|
||||
and a.point_code like CONCAT('%', #{query.point_code}, '%')
|
||||
and a.pointCode = #{query.point_code}
|
||||
</if>
|
||||
<if test="query.status != null">
|
||||
and a.status = #{query.point_code}
|
||||
and a.status = #{query.status}
|
||||
</if>
|
||||
ORDER BY a.pointCode ASC
|
||||
</select>
|
||||
|
||||
@@ -290,6 +290,8 @@ public class SchBaseTaskServiceImpl extends ServiceImpl<SchBaseTaskMapper, SchBa
|
||||
.eq(SchBasePoint::getIs_used, true)
|
||||
.eq(SchBasePoint::getRegion_code, "YLHC")
|
||||
.notLike(SchBasePoint::getVehicle_code2, "YBHC")
|
||||
.isNotNull(SchBasePoint::getVehicle_code2)
|
||||
.ne(SchBasePoint::getVehicle_code2, "")
|
||||
.and(slam -> slam.isNull(SchBasePoint::getIng_task_code)
|
||||
.or()
|
||||
.eq(SchBasePoint::getIng_task_code, "")
|
||||
|
||||
@@ -155,6 +155,8 @@ public class WorkorderServiceImpl extends ServiceImpl<WorkorderMapper, Workorder
|
||||
.eq(SchBasePoint::getIs_used, true)
|
||||
.eq(SchBasePoint::getRegion_code, "YLHC")
|
||||
.eq(SchBasePoint::getPoint_code, pointCode)
|
||||
.isNotNull(SchBasePoint::getVehicle_code2)
|
||||
.ne(SchBasePoint::getVehicle_code2, "")
|
||||
.notLike(SchBasePoint::getVehicle_code2, "YBHC")
|
||||
.and(slam -> slam.isNull(SchBasePoint::getIng_task_code)
|
||||
.or()
|
||||
|
||||
@@ -115,7 +115,7 @@ export default {
|
||||
download: false,
|
||||
reset: false
|
||||
},
|
||||
query: {}
|
||||
query: {status:'0'}
|
||||
})
|
||||
},
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user