瀏覽代碼

B端车位监控看板,车牌号更新

qiangxuan 2 月之前
父節點
當前提交
2e88395229

+ 1 - 0
zgztBus/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java

@@ -158,6 +158,7 @@ public class ShiroConfig {
         filterChainDefinitionMap.put("/storageBill/listNoToken", "anon");
         filterChainDefinitionMap.put("/storageBill/editNoToken", "anon");
         filterChainDefinitionMap.put("/storageBill/editSynData", "anon");
+        filterChainDefinitionMap.put("/storageBill/editLicensePlate", "anon");
         // update-begin--author:liusq Date:20230522 for:[issues/4829]访问不存在的url时会提示Token失效,请重新登录呢
         //错误路径排除
         filterChainDefinitionMap.put("/error", "anon");

+ 18 - 0
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/billet/storageBill/controller/StorageBillController.java

@@ -1390,6 +1390,24 @@ public class StorageBillController extends JeecgController<StorageBill, IStorage
 		}
 	}
 
+	@ApiOperation(value="钢坯装运单-看板车牌号更新", notes="钢坯装运单-看板车牌号更新")
+	@RequestMapping(value = "/editLicensePlate", method = {RequestMethod.PUT})
+	public Result<String> editLicensePlate(@RequestBody StorageBill storageBill) {
+		if(oConvertUtils.isEmpty(storageBill.getId())) {
+			return Result.error("参数异常!");
+		}
+		StorageBill bill = storageBillService.getById(storageBill.getId());
+		if (oConvertUtils.isEmpty(bill)){
+			return Result.OK("装运单信息为空,更新车牌号失败!");
+		}
+		bill.setLicensePlate(storageBill.getLicensePlate());
+		if ("1".equals(bill.getLicensePlateStatus().toString())){
+			bill.setLicensePlateStatus(0);
+		}
+		storageBillService.updateById(bill);
+		return Result.OK("更新车牌号成功!");
+	}
+
 	@ApiOperation(value="当班所有装运信息-车辆运行看板", notes="当班所有装运信息-车辆运行看板")
 	@GetMapping(value = "/queryOnDutyAllStorageBillBoard")
 	public Result<OnDutyStorageBillVo> queryOnDutyAllStorageBillInfoBoard(@RequestParam(name="ccmNo") String ccmNo) {