|  |  |  | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path="getUserInfo") | 
|---|
|  |  |  | public BaseResponse<BaUser> getUserInfo(String userId) throws Exception { | 
|---|
|  |  |  | public BaseResponse<BaUser> getUserInfo(String userId){ | 
|---|
|  |  |  | log.info("getUserInfo:{}",userId); | 
|---|
|  |  |  | BaUser userInfo  = sv.getUserInfo(userId); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(userInfo); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path="getStationInfo") | 
|---|
|  |  |  | public BaseResponse<PltStation> getStationInfo(String stationId){ | 
|---|
|  |  |  | log.info("getStationInfo:{}",stationId); | 
|---|
|  |  |  | PltStation stationInfo  = sv.getStationInfo(stationId); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(stationInfo); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path="checkStationUsed") | 
|---|
|  |  |  | public BaseResponse<StaAssemblyWorkLast> checkStationUsed(String stationId){ | 
|---|
|  |  |  | log.info("checkStationUsed:{}",stationId); | 
|---|
|  |  |  | StaAssemblyWorkLast stationInfo  = sv.checkStationUsed(stationId); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(stationInfo); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据workId查询workLast | 
|---|
|  |  |  | * @param | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path="getWorkLast") | 
|---|
|  |  |  | public BaseResponse<StaAssemblyWorkLast> getWorkLast(String workId){ | 
|---|
|  |  |  | log.info("getWorkLast:{}",workId); | 
|---|
|  |  |  | StaAssemblyWorkLast workLast  = sv.getWorkLast(workId); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(workLast); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 查询全部执行中的组装任务清单 | 
|---|
|  |  |  | * @param | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path="planList") | 
|---|
|  |  |  | public BaseResponse<List<PrAssemblyPlan>> selectAssyPlanList(){ | 
|---|
|  |  |  | log.info("selectAssyPlanList"); | 
|---|
|  |  |  | PrAssemblyPlan params = new PrAssemblyPlan(); | 
|---|
|  |  |  | params.setStatus(1); | 
|---|
|  |  |  | List<PrAssemblyPlan> list = sv.selectAssyPlanList(params); | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping(path="save") | 
|---|
|  |  |  | public BaseResponse<StaAssemblyWorkLast> save(@RequestBody @Valid QueryVo last){ | 
|---|
|  |  |  | log.info("WorkOrderCtrl.save():{}",last.toString()); | 
|---|
|  |  |  | StaAssemblyWorkLast result = sv.save(last); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(result); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping(path="logout") | 
|---|
|  |  |  | public BaseResponse<Boolean> logout(String id){ | 
|---|
|  |  |  | int count = sv.logout(id); | 
|---|
|  |  |  | public BaseResponse<Boolean> logout(String workId){ | 
|---|
|  |  |  | log.info("WorkOrderCtrl.logout():{}",workId); | 
|---|
|  |  |  | int count = sv.logout(workId); | 
|---|
|  |  |  | if (count <= 0) { | 
|---|
|  |  |  | return BaseResponseUtils.buildFail("数据库存储失败"); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping(path="addAssistant") | 
|---|
|  |  |  | public BaseResponse<Boolean> addAssistant(String workId ,String assistant){ | 
|---|
|  |  |  | log.info("WorkOrderCtrl.addAssistant()"); | 
|---|
|  |  |  | log.info("WorkOrderCtrl.addAssistant():{},{}",workId,assistant); | 
|---|
|  |  |  | int  count = sv.addAssistant(workId,assistant); | 
|---|
|  |  |  | if (count <= 0) { | 
|---|
|  |  |  | return BaseResponseUtils.buildFail("数据库存储失败"); | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping(path="removeAssistant") | 
|---|
|  |  |  | public BaseResponse<Boolean> removeAssistant(String workId ,String assistant){ | 
|---|
|  |  |  | log.info("WorkOrderCtrl.removeAssistant():{},{}",workId,assistant); | 
|---|
|  |  |  | log.info("WorkOrderCtrl.removeAssistant()"); | 
|---|
|  |  |  | int  count = sv.removeAssistant(workId,assistant); | 
|---|
|  |  |  | if (count <= 0) { | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path="getAssistantList") | 
|---|
|  |  |  | public BaseResponse<List<BaUser>> getAssistantList(String workId){ | 
|---|
|  |  |  | log.info("WorkOrderCtrl.getAssistantList():{}",workId); | 
|---|
|  |  |  | List<BaUser> result = sv.getAssistantList(workId); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(result); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 保存登录信息 | 
|---|
|  |  |  | * @param | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping(path="updateAssistant") | 
|---|
|  |  |  | public BaseResponse<List<BaUser>> updateAssistant(@RequestBody QueryVo vo){ | 
|---|
|  |  |  | List<BaUser> result = sv.updateAssistant(vo); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(result); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|