opt:一键移库代码优化测试

This commit is contained in:
DESKTOP-5DIJMF9\admin
2024-09-03 08:59:53 +08:00
parent 166dd99b76
commit 3356c2fa8e
4 changed files with 8 additions and 3 deletions

View File

@@ -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>

View File

@@ -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, "")

View File

@@ -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()

View File

@@ -115,7 +115,7 @@ export default {
download: false,
reset: false
},
query: {}
query: {status:'0'}
})
},
data() {