| | |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping(path="isStationUsed") |
| | | public BaseResponse<Boolean> isStationUsed(StaAssemblyWorkLast last){ |
| | | String message = sv.isStationUsed(last); |
| | | if ("".equals(message)) { |
| | | return BaseResponseUtils.buildSuccess(true); |
| | | @GetMapping(path="checkStationUsed") |
| | | public BaseResponse<Boolean> isStationUsed(QueryVo last){ |
| | | String message = sv.checkStationUsed(last); |
| | | if ("FALSE".equals(message.split("\\^")[0])) { |
| | | return BaseResponseUtils.buildFail(message.split("\\^")[1]); |
| | | } else { |
| | | return BaseResponseUtils.buildFail(message); |
| | | return BaseResponseUtils.buildSuccess(true); |
| | | } |
| | | } |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping(path="planList") |
| | | public BaseResponse<List<PrAssemblyPlan>> selectOnLineList(){ |
| | | public BaseResponse<List<PrAssemblyPlan>> selectAssyPlanList(){ |
| | | PrAssemblyPlan params = new PrAssemblyPlan(); |
| | | params.setStatus(1); |
| | | List<PrAssemblyPlan> list = sv.selectAssyPlanList(params); |
| | | return BaseResponseUtils.buildSuccess(list); |
| | | } |
| | | /** |
| | | * 根据组装任务查询节点信息 |
| | | * @param |
| | | * @return |
| | | */ |
| | | /* @GetMapping(path="nodeList") |
| | | public BaseResponse<List<PrAssemblyPlan>> selectOnLineList(String processId){ |
| | | PrAssemblyPlan params = new PrAssemblyPlan(); |
| | | params.setStatus(1); |
| | | List<PrAssemblyPlan> list = sv.selectList(params); |
| | | return BaseResponseUtils.buildSuccess(list); |
| | | } |
| | | |
| | | |
| | | }*/ |
| | | @GetMapping(path = "test") |
| | | public BaseResponse test() { |
| | | log.info("test"); |