| | |
| | | |
| | | import com.dy.common.webUtil.BaseResponse; |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.pmsGlobal.pojoBa.BaUser; |
| | | import com.dy.pmsGlobal.pojoPlt.PltStation; |
| | | import com.dy.pmsGlobal.pojoPr.PrAssemblyPlan; |
| | | import com.dy.pmsGlobal.pojoSta.StaAssemblyWorkLast; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | this.sv = workOrderSv; |
| | | } |
| | | /** |
| | | * 查询用户信息 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping(path="getUserInfo") |
| | | public BaseResponse<BaUser> getUserInfo(String userId) throws Exception { |
| | | BaUser userInfo = sv.getUserInfo(userId); |
| | | return BaseResponseUtils.buildSuccess(userInfo); |
| | | } |
| | | /** |
| | | * 查询工站是否已经被占用 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @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.buildSuccess(true); |
| | | } |
| | | @GetMapping(path="getStationInfo") |
| | | public BaseResponse<PltStation> getStationInfo(String stationId){ |
| | | PltStation stationInfo = sv.getStationInfo(stationId); |
| | | return BaseResponseUtils.buildSuccess(stationInfo); |
| | | } |
| | | /** |
| | | * 查询全部执行中的组装任务清单 |
| | |
| | | * @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"); |