src/main/java/com/zy/asrs/controller/AdjDetlController.java
@@ -74,7 +74,7 @@ @ManagerAuth public R update(AdjDetl adjDetl){ if (Cools.isEmpty(adjDetl) || null==adjDetl.getAdjId()){ return R.error(); return R.error("请求参数为空"); } adjDetlService.updateById(adjDetl); return R.ok(); @@ -85,7 +85,7 @@ public R delete(@RequestParam String param){ List<AdjDetl> list = JSONArray.parseArray(param, AdjDetl.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("请求参数为空"); } for (AdjDetl entity : list){ adjDetlService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/AgvBasDevpController.java
@@ -84,7 +84,7 @@ @ManagerAuth(memo = "站点修改") public R update(AgvBasDevp basDevp){ if (Cools.isEmpty(basDevp) || null==basDevp.getDevNo()){ return R.error(); return R.error("参数缺失"); } basDevp.setModiUser(getUserId()); basDevp.setModiTime(new Date()); @@ -97,7 +97,7 @@ public R delete(@RequestParam String param){ List<AgvBasDevp> list = JSONArray.parseArray(param, AgvBasDevp.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (AgvBasDevp entity : list){ agvBasDevpService.delete(new EntityWrapper<>(entity)); @@ -109,7 +109,9 @@ @ManagerAuth(memo = "站点解绑") public R unbind(@RequestParam String param){ AgvBasDevp agvBasDevp = JSONArray.parseObject(param,AgvBasDevp.class); if (agvBasDevp==null){ return R.error("参数缺失"); } //若当前站点货位状态不为F.在库状态,则返回错误 if(!agvBasDevp.getLocSts().equals("F")){ return R.error("当前站点货位状态不为在库,无法解除绑定"); @@ -230,6 +232,9 @@ String barcode = map.get("barcode").toString(); AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("barcode", barcode).eq("wrk_sts",205L)); if (agvWrkMast == null){ R.error("工作档不存在"); } if(agvWrkMast.getIoType() != 101 && agvWrkMast.getIoType() != 110){ throw new CoolException("工作号为" + agvWrkMast.getWrkNo() + "类型不为101.出库,无法执行货架离场任务,请重新选择站点。"); } @@ -250,6 +255,9 @@ String barcode = map.get("barcode").toString(); AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("barcode", barcode).eq("wrk_sts",205L)); if (agvWrkMast == null){ return R.error("工作档不存在"); } if(agvWrkMast.getIoType() != 101 && agvWrkMast.getIoType() != 110){ throw new CoolException("工作号为" + agvWrkMast.getWrkNo() + "类型不为101.出库,无法执行货架离场任务,请重新选择站点。"); } src/main/java/com/zy/asrs/controller/AgvLocMastController.java
@@ -69,7 +69,7 @@ @Transactional public R update(AgvLocMast locMast){ if (Cools.isEmpty(locMast) || null==locMast.getLocNo()){ return R.error(); return R.error("参数缺失"); } AgvWrkMast wrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>() .eq("source_loc_no", locMast.getLocNo()) @@ -146,7 +146,7 @@ public R delete(@RequestParam String param){ List<AgvLocMast> list = JSONArray.parseArray(param, AgvLocMast.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (AgvLocMast entity : list){ agvLockMastService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/AgvLocRuleController.java
@@ -96,7 +96,7 @@ @ManagerAuth public R update(AgvLocRule locRule){ if (Cools.isEmpty(locRule) || null==locRule.getId()){ return R.error(); return R.error("参数缺失"); } if ((locRule.getRowEnd() < locRule.getRowBeg()) || locRule.getRowBeg() <= 0 || locRule.getRowEnd() <= 0) { return R.error("排区间错误"); src/main/java/com/zy/asrs/controller/AgvMobileController.java
@@ -12,7 +12,6 @@ import com.zy.asrs.entity.param.*; import com.zy.asrs.service.*; import com.zy.asrs.service.impl.OrderServiceImpl; import com.zy.asrs.utils.OrderUtils; import com.zy.common.web.BaseController; import lombok.Synchronized; import org.slf4j.Logger; @@ -66,6 +65,9 @@ */ @PostMapping("/comb/auth") public R comb(@RequestBody CombParam combParam) { if (combParam == null) { return R.error("缺少参数"); } agvMobileService.comb(combParam, getUserId()); return R.ok(); @@ -75,6 +77,9 @@ @RequestMapping("/pick/again/auth") @ManagerAuth(memo = "再次拣料") public R pickAgain(@RequestBody PickParam pickParams) { if (pickParams == null || Cools.isEmpty(pickParams.getLocNo()) || Cools.isEmpty(pickParams.getLocNo())) { return R.error("缺少参数"); } agvMobileService.pickAgain(pickParams, 1l); return R.ok("拣料成功"); } @@ -84,6 +89,9 @@ */ @PostMapping("/combBinging/auth") public R combBinding(@RequestBody Map<String, Object> map) { if (map == null || Cools.isEmpty(map.get("barcode")) || Cools.isEmpty(map.get("stationCode"))) { return R.error("缺少参数"); } String barcode = map.get("barcode").toString(); String stationCode = map.get("stationCode").toString(); Short containerType = Short.valueOf(barcode.substring(0, 2)); @@ -96,6 +104,9 @@ */ @PostMapping("/getBasDevp/auth") public R getBasDevpByFloor(@RequestBody Map<String, Object> map) { if (map == null || Cools.isEmpty(map.get("floor"))) { return R.error("缺少参数"); } String floor = map.get("floor").toString(); if ("1".equals(floor) || "3".equals(floor)) { return R.ok(agvMobileService.getAgvBasDevpByFloor(Integer.parseInt(floor))); @@ -117,12 +128,17 @@ @PostMapping("/pakin/auth") @Synchronized public R pakin(@RequestBody Map<String, Object> map) { if (map == null || Cools.isEmpty(map.get("devNo"))) { return R.error("缺少参数"); } List<String> devNos = (List<String>) map.get("devNo"); List<AgvBasDevp> agvBasDevpList = devNos.stream().map(devNo -> { return agvBasDevpService.selectById(devNo); }).collect(Collectors.toList()); if (agvBasDevpList == null) { return R.error("暂存位不存在"); } workService.createWaitPainWrkMastStart(agvBasDevpList, getUserId(), false); return R.ok("生成工作档成功"); @@ -136,16 +152,16 @@ @Transactional @ManagerAuth(memo = "启动入库") public R startPakin(@RequestBody AgvMobileStartPakin params) { if (params == null) { return R.error("缺少参数"); } log.info("启动入库,{}", JSON.toJSONString(params)); // 组托 params.getCombParams().forEach(combParam -> { agvMobileService.comb(combParam, getUserId()); }); //获取判断时哪个厂的订单 String csocode = params.getCombParams().get(0).getCombMats().get(0).getCsocode(); String factory = OrderUtils.getFactory(csocode); params.setContainerType(Short.valueOf(params.getContainerCode().substring(0, 2))); workService.emptyPlateIn(params.getDevNo(), params.getContainerCode(), params.getContainerType(), getUserId(), false,factory); workService.emptyPlateIn(params.getDevNo(), params.getContainerCode(), params.getContainerType(), getUserId(), false); return R.ok("生成工作档成功"); } @@ -157,10 +173,12 @@ @Synchronized @ManagerAuth(memo = "空板入库") public R pakinEmpty(@RequestBody AgvMobileStartParam params) { if (params == null) { return R.error("缺少参数"); } for (AgvMobileStartParam.Pda pda : params.getPad()) { pda.setContainerType(Short.valueOf(pda.getContainerCode().substring(0, 2))); workService.emptyPlateIn(pda.getDevNo(), pda.getContainerCode(), pda.getContainerType(), getUserId(), false,null); workService.emptyPlateIn(pda.getDevNo(), pda.getContainerCode(), pda.getContainerType(), getUserId(), false); } return R.ok(); @@ -173,9 +191,11 @@ @Synchronized @ManagerAuth(memo = "空板出库") public R pakoutEmpty(@RequestBody AgvMobileStartParam params) { if (params == null) { return R.error("缺少参数"); } for (AgvMobileStartParam.Pda pda : params.getPad()) { if (pda == null) { if (pda == null || Cools.isEmpty(pda.getDevNo()) || Cools.isEmpty(pda.getContainerType())) { return R.error("缺少站点信息"); } workService.emptyPlateOut(pda.getDevNo(), pda.getContainerType(), getUserId()); @@ -189,8 +209,13 @@ */ @PostMapping("/pakout/empty/container/selector/auth") public R containerType(@RequestBody HashMap<String, String> params) { if (params == null) { return R.error("缺少参数"); } String devNo = params.get("devNo"); if (Cools.isEmpty(devNo)) { return R.error("缺少站点数据"); } AgvBasDevp agvBasDevp = agvBasDevpService.selectById(devNo); return R.ok(agvLocMastService.queryContainerTypeByLocType1(agvBasDevp.getLocType1())); @@ -253,7 +278,9 @@ String threeCode = params.get("threeCode"); String matnr = params.get("matnr"); String floor = params.get("floor"); if (Cools.isEmpty(matnr)) { return R.error("参数缺失"); } Wrapper<AgvLocDetl> wrapper = new EntityWrapper<AgvLocDetl>().eq("matnr", matnr).ne("process_sts", 1); @@ -294,7 +321,9 @@ String threeCode = params.get("threeCode"); String matnr = params.get("matnr"); String floor = params.get("floor"); if (Cools.isEmpty(orderNo, threeCode, matnr)) { return R.error("参数缺失"); } OrderDetl orderDetl = orderDetlService.selectOne(new EntityWrapper<OrderDetl>().eq("order_no", orderNo).eq("three_code", threeCode).eq("matnr", matnr)); Wrapper<AgvLocDetl> wrapper = new EntityWrapper<AgvLocDetl>().eq("matnr", matnr); @@ -387,7 +416,9 @@ AgvLocMast agvLocMastByContainerCode = agvLocMastService.selectOne(new EntityWrapper<AgvLocMast>().eq("barcode", containerCode)); AgvLocMast agvLocMastByLocNo = agvLocMastService.selectOne(new EntityWrapper<AgvLocMast>().eq("loc_no", locNo)); if (agvLocMastByLocNo==null){ return R.error("库位不存在"); } String barcode1 = agvLocMastByLocNo.getBarcode(); @@ -510,6 +541,9 @@ String locNo = map.get("locNo"); Wrapper<AgvLocMast> wrapper = new EntityWrapper<AgvLocMast>().eq("loc_no", locNo); AgvLocMast agvLocMast = agvLocMastService.selectOne(wrapper); if (agvLocMast == null) { return R.error("库位不存在"); } agvLocMast.setLocType(moveType); agvLocMast.setLocType3(floor); agvLocMastService.update(agvLocMast, wrapper); src/main/java/com/zy/asrs/controller/AgvWaitPakinController.java
@@ -87,7 +87,7 @@ @ManagerAuth public R update(AgvWaitPakin waitPakin){ if (Cools.isEmpty(waitPakin)){ return R.error(); return R.error("参数缺失"); } agvWaitPakinService.updateById(waitPakin); return R.ok(); @@ -99,7 +99,7 @@ public R delete(@RequestParam String param){ List<AgvWaitPakin> list = JSONArray.parseArray(param, AgvWaitPakin.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (AgvWaitPakin entity : list){ AgvBasDevp agvBasDevp = agvBasDevpService.selectOne(new EntityWrapper<AgvBasDevp>().eq("barcode", entity.getSuppCode())); src/main/java/com/zy/asrs/controller/AgvWaitPakinLogController.java
@@ -76,7 +76,7 @@ @ManagerAuth public R update(AgvWaitPakinLog waitPakinLog){ if (Cools.isEmpty(waitPakinLog)){ return R.error(); return R.error("参数缺失"); } waitPakinLogService.updateById(waitPakinLog); return R.ok(); @@ -87,7 +87,7 @@ public R delete(@RequestParam String param){ List<AgvWaitPakinLog> list = JSONArray.parseArray(param, AgvWaitPakinLog.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (AgvWaitPakinLog entity : list){ waitPakinLogService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/AgvWrkDetlController.java
@@ -80,7 +80,7 @@ public R delete(@RequestParam String param){ List<AgvWrkDetl> list = JSONArray.parseArray(param, AgvWrkDetl.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (AgvWrkDetl entity : list){ wrkDetlService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/AgvWrkDetlLogController.java
@@ -95,7 +95,7 @@ @ManagerAuth public R update(AgvWrkDetlLog wrkDetlLog){ if (Cools.isEmpty(wrkDetlLog) || null==wrkDetlLog.getWrkNo()){ return R.error(); return R.error("参数缺失"); } wrkDetlLogService.updateById(wrkDetlLog); return R.ok(); @@ -106,7 +106,7 @@ public R delete(@RequestParam String param){ List<AgvWrkDetlLog> list = JSONArray.parseArray(param, AgvWrkDetlLog.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (AgvWrkDetlLog entity : list){ wrkDetlLogService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/AgvWrkMastController.java
@@ -111,7 +111,7 @@ public R delete(@RequestParam String param){ List<AgvWrkMast> list = JSONArray.parseArray(param, AgvWrkMast.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("工作档参数缺失"); } for (AgvWrkMast entity : list){ agvWrkMastService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/AgvWrkMastLogController.java
@@ -110,7 +110,7 @@ @ManagerAuth(memo = "工作历史档修改") public R update(AgvWrkMastLog wrkMastLog){ if (Cools.isEmpty(wrkMastLog) || null==wrkMastLog.getId()){ return R.error(); return R.error("参数缺失"); } wrkMastLogService.updateById(wrkMastLog); return R.ok(); @@ -121,7 +121,7 @@ public R delete(@RequestParam String param){ List<AgvWrkMastLog> list = JSONArray.parseArray(param, AgvWrkMastLog.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (AgvWrkMastLog entity : list){ wrkMastLogService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/ApiLogController.java
@@ -74,7 +74,7 @@ @ManagerAuth public R update(ApiLog apiLog){ if (Cools.isEmpty(apiLog) || null==apiLog.getId()){ return R.error(); return R.error("请求参数为空"); } apiLogService.updateById(apiLog); return R.ok(); src/main/java/com/zy/asrs/controller/AppVersionController.java
@@ -66,7 +66,7 @@ } AppVersion latestApp = appVersionService.getLatestApp(type); if (latestApp == null) { return R.error(); return R.error("版本不存在"); } if (latestApp.getVersion().equals(version)) { @@ -104,7 +104,7 @@ @ManagerAuth public R update(AppVersion appVersion){ if (Cools.isEmpty(appVersion) || null==appVersion.getId()){ return R.error(); return R.error("参数缺失"); } if (appVersion.getLatest() == 1) { //修改最新版本时,需要将其他版本设置为非最新版 src/main/java/com/zy/asrs/controller/BasCrnErrorController.java
@@ -71,7 +71,7 @@ @ManagerAuth(memo = "堆垛机异常码修改") public R update(BasCrnError basCrnError){ if (Cools.isEmpty(basCrnError) || null==basCrnError.getErrorCode()){ return R.error(); return R.error("请求参数为空"); } basCrnError.setModiUser(getUserId()); basCrnError.setModiTime(new Date()); @@ -84,7 +84,7 @@ public R delete(@RequestParam String param){ List<BasCrnError> list = JSONArray.parseArray(param, BasCrnError.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("请求参数为空"); } for (BasCrnError entity : list){ basCrnErrorService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/BasCrnOptController.java
@@ -73,7 +73,7 @@ @ManagerAuth public R update(BasCrnOpt basCrnOpt){ if (Cools.isEmpty(basCrnOpt) || null==basCrnOpt.getId()){ return R.error(); return R.error("请求参数为空"); } basCrnOptService.updateById(basCrnOpt); return R.ok(); @@ -84,7 +84,7 @@ public R delete(@RequestParam String param){ List<BasCrnOpt> list = JSONArray.parseArray(param, BasCrnOpt.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("请求参数为空"); } for (BasCrnOpt entity : list){ basCrnOptService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/BasCrnStatusController.java
@@ -74,7 +74,7 @@ @ManagerAuth(memo = "堆垛机状态修改") public R update(BasCrnStatus basCrnStatus){ if (Cools.isEmpty(basCrnStatus) || null==basCrnStatus.getStsNo()){ return R.error(); return R.error("请求参数为空"); } basCrnStatus.setModiUser(getUserId()); basCrnStatus.setModiTime(new Date()); @@ -87,7 +87,7 @@ public R delete(@RequestParam String param){ List<BasCrnStatus> list = JSONArray.parseArray(param, BasCrnStatus.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("请求参数为空"); } for (BasCrnStatus entity : list){ basCrnStatusService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/BasCrnpController.java
@@ -72,7 +72,7 @@ @ManagerAuth(memo = "堆垛机修改") public R update(BasCrnp basCrnp){ if (Cools.isEmpty(basCrnp) || null==basCrnp.getCrnNo()){ return R.error(); return R.error("参数缺失"); } basCrnp.setModiUser(getUserId()); basCrnp.setModiTime(new Date()); @@ -85,7 +85,7 @@ public R delete(@RequestParam String param){ List<BasCrnp> list = JSONArray.parseArray(param, BasCrnp.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (BasCrnp entity : list){ basCrnpService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/BasDevpController.java
@@ -72,7 +72,7 @@ @ManagerAuth(memo = "站点修改") public R update(BasDevp basDevp){ if (Cools.isEmpty(basDevp) || null==basDevp.getDevNo()){ return R.error(); return R.error("参数缺失"); } basDevp.setModiUser(getUserId()); basDevp.setModiTime(new Date()); @@ -85,7 +85,7 @@ public R delete(@RequestParam String param){ List<BasDevp> list = JSONArray.parseArray(param, BasDevp.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("站点参数缺失"); } for (BasDevp entity : list){ basDevpService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/BasErrLogController.java
@@ -75,7 +75,7 @@ @ManagerAuth public R update(BasErrLog basErrLog){ if (Cools.isEmpty(basErrLog) || null==basErrLog.getId()){ return R.error(); return R.error("参数缺失"); } basErrLogService.updateById(basErrLog); return R.ok(); @@ -86,7 +86,7 @@ public R delete(@RequestParam String param){ List<BasErrLog> list = JSONArray.parseArray(param, BasErrLog.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (BasErrLog entity : list){ basErrLogService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/BasLiftController.java
@@ -76,7 +76,7 @@ @ManagerAuth public R update(BasLift basLift){ if (Cools.isEmpty(basLift) || null==basLift.getLiftNo()){ return R.error(); return R.error("参数缺失"); } basLiftService.updateById(basLift); return R.ok(); src/main/java/com/zy/asrs/controller/BasLocStsController.java
@@ -61,7 +61,7 @@ @ManagerAuth public R edit(BasLocSts basLocSts) { if (Cools.isEmpty(basLocSts)){ return R.error(); return R.error("参数缺失"); } if (null == basLocSts.getLocSts()){ basLocStsService.insert(basLocSts); @@ -86,7 +86,7 @@ @ManagerAuth(memo = "库位状态修改") public R update(BasLocSts basLocSts){ if (Cools.isEmpty(basLocSts) || null==basLocSts.getLocSts()){ return R.error(); return R.error("参数缺失"); } basLocSts.setModiUser(getUserId()); basLocSts.setModiTime(new Date()); @@ -99,7 +99,7 @@ public R delete(@RequestParam String param){ List<BasLocSts> list = JSONArray.parseArray(param, BasLocSts.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (BasLocSts entity : list){ basLocStsService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/BasPlcerrorController.java
@@ -72,7 +72,7 @@ @ManagerAuth public R update(BasPlcerror basPlcerror){ if (Cools.isEmpty(basPlcerror) || null==basPlcerror.getErrorCode()){ return R.error(); return R.error("参数缺失"); } basPlcerror.setModiUser(getUserId()); basPlcerror.setModiTime(new Date()); @@ -85,7 +85,7 @@ public R delete(@RequestParam String param){ List<BasPlcerror> list = JSONArray.parseArray(param, BasPlcerror.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (BasPlcerror entity : list){ basPlcerrorService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/BasShuttleErrController.java
@@ -70,7 +70,7 @@ @ManagerAuth public R update(BasShuttleErr basShuttleErr){ if (Cools.isEmpty(basShuttleErr) || null==basShuttleErr.getErrorCode()){ return R.error(); return R.error("参数缺失"); } basShuttleErrService.updateById(basShuttleErr); return R.ok(); src/main/java/com/zy/asrs/controller/BasShuttleErrLogController.java
@@ -70,7 +70,7 @@ @ManagerAuth public R update(BasShuttleErrLog basShuttleErrLog){ if (Cools.isEmpty(basShuttleErrLog) || null==basShuttleErrLog.getId()){ return R.error(); return R.error("参数缺失"); } basShuttleErrLogService.updateById(basShuttleErrLog); return R.ok(); src/main/java/com/zy/asrs/controller/BasSteController.java
@@ -72,7 +72,7 @@ @ManagerAuth public R update(BasSte basSte){ if (Cools.isEmpty(basSte) || null==basSte.getSteNo()){ return R.error(); return R.error("参数缺失"); } basSteService.updateById(basSte); return R.ok(); src/main/java/com/zy/asrs/controller/BasSteErrController.java
@@ -75,7 +75,7 @@ basSteErr.setModiUser(getUserId()); basSteErr.setModiTime(new Date()); if (Cools.isEmpty(basSteErr) || null==basSteErr.getErrorCode()){ return R.error(); return R.error("参数缺失"); } basSteErrService.updateById(basSteErr); return R.ok(); src/main/java/com/zy/asrs/controller/BasSteErrLogController.java
@@ -72,7 +72,7 @@ @ManagerAuth public R update(BasSteErrLog basSteErrLog){ if (Cools.isEmpty(basSteErrLog) || null==basSteErrLog.getId()){ return R.error(); return R.error("参数缺失"); } basSteErrLogService.updateById(basSteErrLog); return R.ok(); src/main/java/com/zy/asrs/controller/BasSteOptController.java
@@ -72,7 +72,7 @@ @ManagerAuth public R update(BasSteOpt basSteOpt){ if (Cools.isEmpty(basSteOpt) || null==basSteOpt.getId()){ return R.error(); return R.error("参数缺失"); } basSteOptService.updateById(basSteOpt); return R.ok(); src/main/java/com/zy/asrs/controller/BasWhsController.java
@@ -72,7 +72,7 @@ @ManagerAuth(memo = "库位类型修改") public R update(BasWhs basWhs){ if (Cools.isEmpty(basWhs) || null==basWhs.getId()){ return R.error(); return R.error("参数缺失"); } basWhs.setModiUser(getUserId()); basWhs.setModiTime(new Date()); @@ -85,7 +85,7 @@ public R delete(@RequestParam String param){ List<BasWhs> list = JSONArray.parseArray(param, BasWhs.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (BasWhs entity : list){ basWhsService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/BasWrkIotypeController.java
@@ -61,7 +61,7 @@ @ManagerAuth public R edit(BasWrkIotype basWrkIotype) { if (Cools.isEmpty(basWrkIotype)){ return R.error(); return R.error("参数缺失"); } if (null == basWrkIotype.getIoType()){ basWrkIotypeService.insert(basWrkIotype); @@ -86,7 +86,7 @@ @ManagerAuth(memo = "入出库类型修改") public R update(BasWrkIotype basWrkIotype){ if (Cools.isEmpty(basWrkIotype) || null==basWrkIotype.getIoType()){ return R.error(); return R.error("参数缺失"); } basWrkIotype.setModiUser(getUserId()); basWrkIotype.setModiTime(new Date()); @@ -99,7 +99,7 @@ public R delete(@RequestParam String param){ List<BasWrkIotype> list = JSONArray.parseArray(param, BasWrkIotype.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (BasWrkIotype entity : list){ basWrkIotypeService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/BasWrkStatusController.java
@@ -61,7 +61,7 @@ @ManagerAuth public R edit(BasWrkStatus basWrkStatus) { if (Cools.isEmpty(basWrkStatus)){ return R.error(); return R.error("参数缺失"); } if (null == basWrkStatus.getWrkSts()){ basWrkStatusService.insert(basWrkStatus); @@ -86,7 +86,7 @@ @ManagerAuth(memo = "工作状态修改") public R update(BasWrkStatus basWrkStatus){ if (Cools.isEmpty(basWrkStatus) || null==basWrkStatus.getWrkSts()){ return R.error(); return R.error("参数缺失"); } basWrkStatus.setModiUser(getUserId()); basWrkStatus.setModiTime(new Date()); @@ -99,7 +99,7 @@ public R delete(@RequestParam String param){ List<BasWrkStatus> list = JSONArray.parseArray(param, BasWrkStatus.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (BasWrkStatus entity : list){ basWrkStatusService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/DocTypeController.java
@@ -72,7 +72,7 @@ @ManagerAuth public R update(DocType docType){ if (Cools.isEmpty(docType) || null==docType.getDocId()){ return R.error(); return R.error("参数缺失"); } docType.setUpdateBy(getUserId()); docType.setUpdateTime(new Date()); src/main/java/com/zy/asrs/controller/LocDetlController.java
@@ -34,7 +34,7 @@ @RequestMapping(value = "/locDetl/update") public R update1() { if (!locDetlService.updateLocNo("0402805", "0402804")) { return R.error(); return R.error("参数缺失"); } return R.ok(); } @@ -150,7 +150,7 @@ @ManagerAuth(memo = "库位明细修改") public R update(LocDetl locDetl){ if (Cools.isEmpty(locDetl) || null==locDetl.getMatnr()){ return R.error(); return R.error("参数缺失"); } locDetl.setModiUser(getUserId()); locDetl.setModiTime(new Date()); @@ -162,7 +162,7 @@ @ManagerAuth(memo = "库位冻结") public R updateStockFreeze(LocDetl locDetl){ if (Cools.isEmpty(locDetl) || null==locDetl.getMatnr()){ return R.error(); return R.error("参数缺失"); } locDetlService.updateStockFreeze(locDetl.getMatnr(), locDetl.getLocNo(), locDetl.getStockFreeze()); return R.ok(); @@ -173,7 +173,7 @@ public R delete(@RequestParam String param){ List<LocDetl> list = JSONArray.parseArray(param, LocDetl.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (LocDetl entity : list){ locDetlService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/LocMastController.java
@@ -104,7 +104,7 @@ @Transactional public R update(LocMast locMast){ if (Cools.isEmpty(locMast) || null==locMast.getLocNo()){ return R.error(); return R.error("参数缺失"); } WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>() @@ -156,7 +156,7 @@ public R delete(@RequestParam String param){ List<LocMast> list = JSONArray.parseArray(param, LocMast.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (LocMast entity : list){ locMastService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/LocRuleController.java
@@ -106,7 +106,7 @@ @ManagerAuth public R update(LocRule locRule){ if (Cools.isEmpty(locRule) || null==locRule.getId()){ return R.error(); return R.error("参数缺失"); } if ((locRule.getRowEnd() < locRule.getRowBeg()) || locRule.getRowBeg() <= 0 || locRule.getRowEnd() <= 0) { return R.error("排区间错误"); src/main/java/com/zy/asrs/controller/MapController.java
@@ -208,7 +208,7 @@ public R resetMap(@PathVariable("lev") Integer lev) { Object o = redisUtil.get("realtimeBasMap_" + lev); if (o == null) { return R.error(); return R.error("参数缺失"); } redisUtil.del("realtimeBasMap_" + lev); basMapService.deleteByLev(lev); src/main/java/com/zy/asrs/controller/MatController.java
@@ -148,7 +148,7 @@ @ManagerAuth public R update(Mat mat){ if (Cools.isEmpty(mat) || null==mat.getId()){ return R.error(); return R.error("参数缺失"); } mat.setUpdateBy(getUserId()); mat.setUpdateTime(new Date()); @@ -161,7 +161,7 @@ public R delete(@RequestParam String param){ List<Mat> list = JSONArray.parseArray(param, Mat.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (Mat entity : list){ if (!matService.delete(new EntityWrapper<>(entity))) { src/main/java/com/zy/asrs/controller/NodeController.java
@@ -157,7 +157,7 @@ throw new CoolException("该编号/名称已存在"); } if (Cools.isEmpty(node) || null==node.getId()){ return R.error(); return R.error("参数缺失"); } if (node.getType() != 1) { Node parentNode = nodeService.selectById(node.getParentId()); @@ -186,7 +186,7 @@ public R delete(@RequestParam String param){ List<Node> list = JSONArray.parseArray(param, Node.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (Node entity : list){ nodeService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/OrderController.java
@@ -882,7 +882,7 @@ @ManagerAuth public R update(Order order) { if (Cools.isEmpty(order) || null == order.getId()) { return R.error(); return R.error("参数缺失"); } order.setUpdateBy(getUserId()); order.setUpdateTime(new Date()); src/main/java/com/zy/asrs/controller/OrderDetlController.java
@@ -317,7 +317,7 @@ @ManagerAuth public R update(OrderDetl orderDetl){ if (Cools.isEmpty(orderDetl) || null==orderDetl.getId()){ return R.error(); return R.error("参数缺失"); } orderDetlService.updateById(orderDetl); return R.ok(); src/main/java/com/zy/asrs/controller/OrderSettleController.java
@@ -71,7 +71,7 @@ @ManagerAuth public R update(OrderSettle orderSettle){ if (Cools.isEmpty(orderSettle) || null==orderSettle.getOrderSettle()){ return R.error(); return R.error("参数缺失"); } orderSettle.setUpdateBy(getUserId()); orderSettle.setUpdateTime(new Date()); src/main/java/com/zy/asrs/controller/PackController.java
@@ -99,7 +99,7 @@ @ManagerAuth public R update(Pack pack){ if (Cools.isEmpty(pack) || null==pack.getId()){ return R.error(); return R.error("参数缺失"); } pack.setUpdateBy(getUserId()); pack.setUpdateTime(new Date()); src/main/java/com/zy/asrs/controller/RowLastnoController.java
@@ -72,7 +72,7 @@ @ManagerAuth public R update(RowLastno rowLastno){ if (Cools.isEmpty(rowLastno) || null==rowLastno.getWhsType()){ return R.error(); return R.error("参数缺失"); } rowLastno.setModiUser(getUserId()); rowLastno.setModiTime(new Date()); @@ -85,7 +85,7 @@ public R delete(@RequestParam String param){ List<RowLastno> list = JSONArray.parseArray(param, RowLastno.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (RowLastno entity : list){ rowLastnoService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/StaDescController.java
@@ -80,7 +80,7 @@ @ManagerAuth(memo = "站点路径修改") public R update(StaDesc staDesc){ if (Cools.isEmpty(staDesc) || null==staDesc.getTypeId()){ return R.error(); return R.error("参数缺失"); } staDesc.setModiUser(getUserId()); staDesc.setModiTime(new Date()); @@ -93,7 +93,7 @@ public R delete(@RequestParam String param){ List<StaDesc> list = JSONArray.parseArray(param, StaDesc.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (StaDesc entity : list){ staDescService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/StkPlcmController.java
@@ -70,7 +70,7 @@ public R delete(@RequestParam String param){ List<StkPlcm> list = JSONArray.parseArray(param, StkPlcm.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (StkPlcm entity : list){ stkPlcmService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/TagController.java
@@ -106,7 +106,7 @@ @ManagerAuth public R update(Tag tag){ if (Cools.isEmpty(tag) || null==tag.getId()){ return R.error(); return R.error("参数缺失"); } if (tag.getParentId() != null && tag.getParentId() > 0) { if (tag.getParentId().equals(tag.getId())) { src/main/java/com/zy/asrs/controller/TrayCodeController.java
@@ -72,7 +72,7 @@ @ManagerAuth public R update(TrayCode trayCode){ if (Cools.isEmpty(trayCode) || null==trayCode.getId()){ return R.error(); return R.error("参数缺失"); } trayCodeService.updateById(trayCode); return R.ok(); @@ -83,7 +83,7 @@ public R delete(@RequestParam String param){ List<TrayCode> list = JSONArray.parseArray(param, TrayCode.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (TrayCode entity : list){ trayCodeService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/WaitPakinController.java
@@ -74,7 +74,7 @@ @ManagerAuth public R update(WaitPakin waitPakin){ if (Cools.isEmpty(waitPakin)){ return R.error(); return R.error("参数缺失"); } waitPakinService.updateById(waitPakin); return R.ok(); @@ -85,7 +85,7 @@ public R delete(@RequestParam String param){ List<WaitPakin> list = JSONArray.parseArray(param, WaitPakin.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (WaitPakin entity : list){ waitPakinService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/WaitPakinLogController.java
@@ -74,7 +74,7 @@ @ManagerAuth public R update(WaitPakinLog waitPakinLog){ if (Cools.isEmpty(waitPakinLog)){ return R.error(); return R.error("参数缺失"); } waitPakinLogService.updateById(waitPakinLog); return R.ok(); @@ -85,7 +85,7 @@ public R delete(@RequestParam String param){ List<WaitPakinLog> list = JSONArray.parseArray(param, WaitPakinLog.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (WaitPakinLog entity : list){ waitPakinLogService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/WorkController.java
@@ -164,7 +164,7 @@ @RequestMapping("/deal/steNo/empty") @ManagerAuth(memo = "清除小车") public R dealSteNoEmpty(@RequestParam Integer wrkNo) { return wrkMastService.setSteEmpty(wrkNo)?R.ok():R.error(); return wrkMastService.setSteEmpty(wrkNo)?R.ok():R.error("清除失败"); } } src/main/java/com/zy/asrs/controller/WrkDetlController.java
@@ -78,7 +78,7 @@ public R delete(@RequestParam String param){ List<WrkDetl> list = JSONArray.parseArray(param, WrkDetl.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (WrkDetl entity : list){ wrkDetlService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/WrkDetlLogController.java
@@ -93,7 +93,7 @@ @ManagerAuth public R update(WrkDetlLog wrkDetlLog){ if (Cools.isEmpty(wrkDetlLog) || null==wrkDetlLog.getWrkNo()){ return R.error(); return R.error("参数缺失"); } wrkDetlLogService.updateById(wrkDetlLog); return R.ok(); @@ -104,7 +104,7 @@ public R delete(@RequestParam String param){ List<WrkDetlLog> list = JSONArray.parseArray(param, WrkDetlLog.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (WrkDetlLog entity : list){ wrkDetlLogService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/WrkLastnoController.java
@@ -72,7 +72,7 @@ @ManagerAuth(memo = "工作序号修改") public R update(WrkLastno wrkLastno){ if (Cools.isEmpty(wrkLastno) || null==wrkLastno.getWrkMk()){ return R.error(); return R.error("参数缺失"); } wrkLastno.setModiUser(getUserId()); wrkLastno.setModiTime(new Date()); @@ -85,7 +85,7 @@ public R delete(@RequestParam String param){ List<WrkLastno> list = JSONArray.parseArray(param, WrkLastno.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (WrkLastno entity : list){ wrkLastnoService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/WrkMastController.java
@@ -174,7 +174,7 @@ public R delete(@RequestParam String param){ List<WrkMast> list = JSONArray.parseArray(param, WrkMast.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数缺失"); } for (WrkMast entity : list){ wrkMastService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/controller/WrkMastDetlLogController.java
@@ -102,7 +102,7 @@ @ManagerAuth public R update(WrkMastDetlLog wrkMastDetlLog) { if (Cools.isEmpty(wrkMastDetlLog)) { return R.error(); return R.error("参数缺失"); } wrkMastDetlLogService.updateById(wrkMastDetlLog); return R.ok(); src/main/java/com/zy/asrs/controller/WrkMastLogController.java
@@ -84,7 +84,7 @@ @ManagerAuth(memo = "工作历史档修改") public R update(WrkMastLog wrkMastLog){ if (Cools.isEmpty(wrkMastLog) || null==wrkMastLog.getId()){ return R.error(); return R.error("不存在工作档"); } wrkMastLogService.updateById(wrkMastLog); return R.ok(); @@ -95,7 +95,7 @@ public R delete(@RequestParam String param){ List<WrkMastLog> list = JSONArray.parseArray(param, WrkMastLog.class); if (Cools.isEmpty(list)){ return R.error(); return R.error("参数未上传"); } for (WrkMastLog entity : list){ wrkMastLogService.delete(new EntityWrapper<>(entity)); src/main/java/com/zy/asrs/service/OrderService.java
@@ -21,6 +21,8 @@ void checkComplete(String orderNo, Integer pltType); void checkComplete2(String orderNo); boolean saveHandlerOrder(Boolean pakin, WrkMast wrkMast, List<WrkDetl> wrkDetls); void remove(Long orderId); @@ -29,6 +31,7 @@ List<Order> selectComplete(); /** * 订单合并预览 */ src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java
@@ -699,6 +699,9 @@ throw new CoolException("请输入货架码"); } AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("source_loc_no", param.getDevNo())); if (agvWrkMast == null) { throw new CoolException("当前货架码没有任务"); } Integer oldWrkNo = agvWrkMast.getWrkNo(); if (Cools.isEmpty(agvWrkMast)) { throw new CoolException("工作档中没有此站点任务"); @@ -754,6 +757,9 @@ public String handBack(AgvMobileStartPakin param, Long userId) { Date now = new Date(); AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("source_loc_no", param.getDevNo())); if (agvWrkMast == null){ throw new CoolException("工作档中没有此站点任务"); } agvWrkMast.setIoType(113); agvWrkMast.setModiUser(userId); agvWrkMast.setModiTime(now); @@ -782,6 +788,9 @@ agvWrkDetlLogService.save(agvWrkMast.getWrkNo()); String sourceLocNo = agvWrkMast.getSourceLocNo(); AgvLocMast newLocMast = agvCommonService.getLocNo(3, 1, false, false); if (newLocMast==null){ throw new CoolException("无可用库位"); } agvWrkMast.setSourceLocNo(agvWrkMast.getLocNo()); agvWrkMast.setLocNo(newLocMast.getLocNo()); agvWrkMast.setIoType(57); src/main/java/com/zy/asrs/service/impl/AgvWorkServiceImpl.java
@@ -628,6 +628,9 @@ // 站点检测 AgvBasDevp agvBasDevp = agvBasDevpService.selectById(station); if (Cools.isEmpty(agvBasDevp)) { throw new CoolException("站点信息不存在"); } if (!agvBasDevp.getLocSts().equals("O")) { throw new CoolException("当前工作位状态为" + agvBasDevp.getLocSts() + ",无法进行空板出库"); } src/main/java/com/zy/asrs/service/impl/OrderServiceImpl.java
@@ -146,11 +146,42 @@ order.setInTime(DateUtils.convert(new Date(), DateUtils.yyyyMMddHHmmsssss_F)); this.baseMapper.updateById(order); } //order.setInTime(DateUtils.convert(new Date(), DateUtils.yyyyMMddHHmmsssss_F)); } } @Override public void checkComplete2(String orderNo) { Order order = this.selectByNo(orderNo); if (Cools.isEmpty(order)) { return; } if (order.getSettle() >= 4L) { return; } List<OrderDetl> orderDetls = orderDetlMapper.selectList(new EntityWrapper<OrderDetl>().eq("order_id", order.getId())); // 作业数量是否等于数量 boolean complete = true; for (OrderDetl orderDetl : orderDetls) { if (orderDetl.getAnfme() > orderDetl.getQty()) { complete = false; break; } } // 如果 作业数量等于单据总数量 && 工作明细档中无该单据的数据 && AGV工作明细档中无该单据的数据 int count = wrkDetlService.selectCount(new EntityWrapper<WrkDetl>().eq("order_no", orderNo)); boolean wrkDeltExist = wrkDetlService.selectCount(new EntityWrapper<WrkDetl>().like("order_no", orderNo)) < 1; boolean agvWrkDetlExist = agvWrkDetlService.selectCount(new EntityWrapper<AgvWrkDetl>().like("order_no", orderNo)) < 1; boolean waitPakinExist = agvWaitPakinService.selectCount(new EntityWrapper<AgvWaitPakin>().like("order_no", orderNo)) < 1; ManPakOut manPakOut = manPakOutService.selectByOrderWithName(orderNo); boolean manPakoutExist = Cools.isEmpty(manPakOut) || (manPakOut.getPayment() != null && manPakOut.getPayment() == 1); if (complete && wrkDeltExist && agvWrkDetlExist && waitPakinExist && manPakoutExist) { if (!this.updateSettle(order.getId(), 4L, 9528L)) { throw new CoolException("修改订单【orderNo = " + order.getOrderNo() + "】状态为已完成失败"); } } } @Override src/main/java/com/zy/asrs/task/OrderSyncScheduler.java
@@ -102,9 +102,7 @@ public void completeOrder() { List<Order> orderList = orderService.selectList(new EntityWrapper<Order>().eq("settle", 2).isNotNull("plt_type")); orderList.forEach(order -> { if (order.getPltType() != null) { orderService.checkComplete(order.getOrderNo(), order.getPltType()); } orderService.checkComplete2(order.getOrderNo()); }); } src/main/java/com/zy/common/web/AuthController.java
@@ -438,17 +438,17 @@ String timeStr = AesUtils.decrypt(activationCode, SystemProperties.SALT); if (null == timeStr) { SystemProperties.SYSTEM_ACTIVATION = Boolean.FALSE; return R.error(); return R.error("未激活"); } Date exprTime = DateUtils.convert(timeStr, DateUtils.yyyyMMddHHmmss); if (new Date().getTime() < exprTime.getTime()) { return R.ok().add(DateUtils.convert(exprTime)); } else { SystemProperties.SYSTEM_ACTIVATION = Boolean.FALSE; return R.error(); return R.error("未激活"); } } else { return R.error(); return R.error("未激活"); } } src/main/java/com/zy/system/controller/ApiController.java
@@ -58,7 +58,7 @@ @ManagerAuth public R edit(Api api) { if (Cools.isEmpty(api)){ return R.error(); return R.error("参数缺失"); } if (null == api.getId()){ apiService.insert(api); @@ -79,7 +79,7 @@ @ManagerAuth public R update(Api api){ if (Cools.isEmpty(api) || null==api.getId()){ return R.error(); return R.error("参数缺失"); } apiService.updateById(api); return R.ok(); @@ -89,7 +89,7 @@ @ManagerAuth public R delete(Integer[] ids){ if (Cools.isEmpty(ids)){ return R.error(); return R.error("参数缺失"); } apiService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); src/main/java/com/zy/system/controller/ConfigController.java
@@ -60,7 +60,7 @@ @ManagerAuth public R edit(Config config) { if (Cools.isEmpty(config)){ return R.error(); return R.error("参数缺失"); } if (config.getType() == 2){ if (!checkJson(config.getValue())){ @@ -92,7 +92,7 @@ @ManagerAuth public R update(Config config){ if (Cools.isEmpty(config) || null==config.getId()){ return R.error(); return R.error("参数缺失"); } if (config.getType() == 2){ if (!checkJson(config.getValue())){ @@ -108,7 +108,7 @@ @ManagerAuth public R delete(Integer[] ids){ if (Cools.isEmpty(ids)){ return R.error(); return R.error("参数缺失"); } configService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); @@ -152,10 +152,10 @@ parameter = Parameter.reset(); } catch (Exception e) { e.printStackTrace(); return R.error(); return R.error("刷新失败"); } if (Cools.isEmpty(parameter)){ return R.error(); return R.error("刷新后为空"); } return R.ok(); } src/main/java/com/zy/system/controller/HostController.java
@@ -58,7 +58,7 @@ @ManagerAuth public R edit(Host host) { if (Cools.isEmpty(host)){ return R.error(); return R.error("参数缺失"); } if (null == host.getId()){ hostService.insert(host); @@ -79,7 +79,7 @@ @ManagerAuth public R update(Host host){ if (Cools.isEmpty(host) || null==host.getId()){ return R.error(); return R.error("参数缺失"); } hostService.updateById(host); return R.ok(); @@ -89,7 +89,7 @@ @ManagerAuth public R delete(Integer[] ids){ if (Cools.isEmpty(ids)){ return R.error(); return R.error("参数缺失"); } hostService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); src/main/java/com/zy/system/controller/OperateLogController.java
@@ -61,7 +61,7 @@ @ManagerAuth public R edit(OperateLog operateLog) { if (Cools.isEmpty(operateLog)){ return R.error(); return R.error("参数缺失"); } if (null == operateLog.getId()){ operateLogService.insert(operateLog); @@ -82,7 +82,7 @@ @ManagerAuth public R update(OperateLog operateLog){ if (Cools.isEmpty(operateLog) || null==operateLog.getId()){ return R.error(); return R.error("参数缺失"); } operateLogService.updateById(operateLog); return R.ok(); @@ -92,7 +92,7 @@ @ManagerAuth public R delete(Integer[] ids){ if (Cools.isEmpty(ids)){ return R.error(); return R.error("参数缺失"); } operateLogService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); src/main/java/com/zy/system/controller/PdaResourceController.java
@@ -71,7 +71,7 @@ @ManagerAuth public R update(PdaResource pdaResource){ if (Cools.isEmpty(pdaResource) || null==pdaResource.getId()){ return R.error(); return R.error("参数缺失"); } pdaResourceService.updateById(pdaResource); return R.ok(); src/main/java/com/zy/system/controller/PermissionController.java
@@ -58,7 +58,7 @@ @ManagerAuth public R edit(Permission permission) { if (Cools.isEmpty(permission)){ return R.error(); return R.error("参数缺失"); } if (null == permission.getId()){ permissionService.insert(permission); @@ -79,7 +79,7 @@ @ManagerAuth public R update(Permission permission){ if (Cools.isEmpty(permission) || null==permission.getId()){ return R.error(); return R.error("参数缺失"); } permissionService.updateById(permission); return R.ok(); @@ -89,7 +89,7 @@ @ManagerAuth public R delete(Integer[] ids){ if (Cools.isEmpty(ids)){ return R.error(); return R.error("参数缺失"); } permissionService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); src/main/java/com/zy/system/controller/ResourceController.java
@@ -75,7 +75,7 @@ @ManagerAuth(memo = "菜单编辑") public R edit(Resource resource) { if (Cools.isEmpty(resource)){ return R.error(); return R.error("参数缺失"); } if (null == resource.getId()){ if (resource.getSort() == null){ @@ -99,7 +99,7 @@ @ManagerAuth(memo = "菜单修改") public R update(Resource resource){ if (Cools.isEmpty(resource) || null==resource.getId()){ return R.error(); return R.error("参数缺失"); } resourceService.updateById(resource); return R.ok(); src/main/java/com/zy/system/controller/RoleController.java
@@ -78,7 +78,7 @@ @ManagerAuth(memo = "角色编辑") public R edit(Role role) { if (Cools.isEmpty(role)){ return R.error(); return R.error("参数缺失"); } if (null == role.getId()){ roleService.insert(role); @@ -99,7 +99,7 @@ @ManagerAuth(memo = "角色修改") public R update(Role role){ if (Cools.isEmpty(role) || null==role.getId()){ return R.error(); return R.error("参数缺失"); } roleService.updateById(role); return R.ok(); @@ -109,7 +109,7 @@ @ManagerAuth(memo = "角色删除") public R delete(Integer[] ids){ if (Cools.isEmpty(ids)){ return R.error(); return R.error("参数缺失"); } roleService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); src/main/java/com/zy/system/controller/RolePdaResourceController.java
@@ -70,7 +70,7 @@ @ManagerAuth public R update(RolePdaResource rolePdaResource){ if (Cools.isEmpty(rolePdaResource) || null==rolePdaResource.getId()){ return R.error(); return R.error("参数缺失"); } rolePdaResourceService.updateById(rolePdaResource); return R.ok(); src/main/java/com/zy/system/controller/SaasLogController.java
@@ -71,7 +71,7 @@ @ManagerAuth public R update(SaasLog saasLog){ if (Cools.isEmpty(saasLog) || null==saasLog.getId()){ return R.error(); return R.error("参数缺失"); } saasLogService.updateById(saasLog); return R.ok(); src/main/java/com/zy/system/controller/UserController.java
@@ -80,7 +80,7 @@ @ManagerAuth(memo = "系统用户编辑") public R edit(User user) { if (Cools.isEmpty(user)){ return R.error(); return R.error("参数缺失"); } if (null == user.getId()){ user.setStatus(1); @@ -105,7 +105,7 @@ @ManagerAuth(memo = "系统用户修改") public R update(User user){ if (Cools.isEmpty(user) || null==user.getId()){ return R.error(); return R.error("参数缺失"); } User entity = userService.selectById(user.getId()); if (user.getPassword()!=null) { src/main/java/com/zy/system/controller/UserLoginController.java
@@ -58,7 +58,7 @@ @ManagerAuth public R edit(UserLogin userLogin) { if (Cools.isEmpty(userLogin)){ return R.error(); return R.error("参数缺失"); } if (null == userLogin.getId()){ userLoginService.insert(userLogin); @@ -79,7 +79,7 @@ @ManagerAuth public R update(UserLogin userLogin){ if (Cools.isEmpty(userLogin) || null==userLogin.getId()){ return R.error(); return R.error("参数缺失"); } userLoginService.updateById(userLogin); return R.ok(); @@ -89,7 +89,7 @@ @ManagerAuth public R delete(Integer[] ids){ if (Cools.isEmpty(ids)){ return R.error(); return R.error("参数缺失"); } userLoginService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); src/main/resources/application.yml
@@ -1,4 +1,4 @@ spring: profiles: #dev loc prod active: prod active: loc src/main/webapp/views/apiLog/apiLog.html
@@ -34,6 +34,16 @@ </div> <div class="layui-inline"> <div class="layui-input-inline"> <select name="result"> <option value="">请选择结果</option> <option value="1">成功</option> <option value="0">失败</option> </select> </div> </div> <div class="layui-inline"> <div class="layui-input-inline"> <input class="layui-input" type="text" name="condition" placeholder="请输入" autocomplete="off"> </div> </div>