车辆审核

This commit is contained in:
王帅 2025-05-09 08:44:41 +08:00
parent 274e356708
commit 3591f6907f
3 changed files with 4 additions and 3 deletions

View File

@ -80,6 +80,8 @@ public class ShiroConfig {
filterChainDefinitionMap.put("/vehicledemandcount/vehicleDemandCount/getVdCountById", "anon"); //获取用车计算数据 filterChainDefinitionMap.put("/vehicledemandcount/vehicleDemandCount/getVdCountById", "anon"); //获取用车计算数据
filterChainDefinitionMap.put("/vehicleinout/vehicleInOut/take", "anon"); //提货 filterChainDefinitionMap.put("/vehicleinout/vehicleInOut/take", "anon"); //提货
filterChainDefinitionMap.put("/logisticsdriver/logisticsDriver/getDriverInfo", "anon"); //查询司机信息 filterChainDefinitionMap.put("/logisticsdriver/logisticsDriver/getDriverInfo", "anon"); //查询司机信息
filterChainDefinitionMap.put("/vehicleinout/vehicleInOut/getCarNum", "anon"); // 车辆出入厂明细
filterChainDefinitionMap.put("/vehicleinout/vehicleInOut/handleConfirm", "anon"); // 车辆出入厂审核
filterChainDefinitionMap.put("/sys/cas/client/validateLogin", "anon"); //cas验证登录 filterChainDefinitionMap.put("/sys/cas/client/validateLogin", "anon"); //cas验证登录
filterChainDefinitionMap.put("/sys/randomImage/**", "anon"); //登录验证码接口排除 filterChainDefinitionMap.put("/sys/randomImage/**", "anon"); //登录验证码接口排除

View File

@ -182,7 +182,7 @@ public class VehicleInOutController extends JeecgController<VehicleInOut, IVehic
@PostMapping(value = "/handleConfirm") @PostMapping(value = "/handleConfirm")
public Result<String> handleConfirm(@RequestBody VehicleInOut vehicleInOut) { public Result<String> handleConfirm(@RequestBody VehicleInOut vehicleInOut) {
VehicleInOut byId = vehicleInOutService.getById(vehicleInOut.getId()); VehicleInOut byId = vehicleInOutService.getById(vehicleInOut.getId());
if (Integer.parseInt(vehicleInOut.getCurrentStatus()) <= Integer.parseInt(byId.getCurrentStatus())) { if (vehicleInOut.getCurrentStatus() != null && Integer.parseInt(vehicleInOut.getCurrentStatus()) <= Integer.parseInt(byId.getCurrentStatus())) {
return Result.error("操作失败,请按照流程操作!"); return Result.error("操作失败,请按照流程操作!");
} }
if ("3".equals(vehicleInOut.getCurrentStatus())) { if ("3".equals(vehicleInOut.getCurrentStatus())) {

View File

@ -29,7 +29,6 @@
FROM tms_vehicle_in_out a FROM tms_vehicle_in_out a
LEFT JOIN tms_vehicle_demand b LEFT JOIN tms_vehicle_demand b
ON a.VD_NO = b.VD_NO ON a.VD_NO = b.VD_NO
WHERE b.SHIP_DATE = TRUNC(SYSDATE) WHERE b.SHIP_DATE = TRUNC(SYSDATE);
AND a.CURRENT_STATUS != '4';
</select> </select>
</mapper> </mapper>