| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.sql.Date; |
| | | @RestController |
| | |
| | | |
| | | @ApiOperation("报工查询接口") |
| | | @SaCheckPermission("selectReportingWorks.search") |
| | | @PostMapping ("/selectReportingWork/{pageNum}/{pageSize}/{selectTime1}/{selectTime2}/{orderId}") |
| | | @PostMapping ("/selectReportingWork/{pageNum}/{pageSize}/{selectDate}/{orderId}") |
| | | public Result selectReportingWork( |
| | | @PathVariable Integer pageNum, |
| | | @PathVariable Integer pageSize, |
| | | @PathVariable Date selectTime1, |
| | | @PathVariable Date selectTime2, |
| | | @PathVariable List<String> selectDate, |
| | | @PathVariable String orderId, |
| | | @RequestBody ReportingWork reportingWork){ |
| | | return Result.seccess(reportingWorkService.selectReportingWorkSv(pageNum,pageSize,selectTime1,selectTime2,orderId,reportingWork)); |
| | | return Result.seccess(reportingWorkService.selectReportingWorkSv(pageNum,pageSize,selectDate,orderId,reportingWork)); |
| | | |
| | | |
| | | } |
| | | |
| | | @ApiOperation("删除报工接口") |
| | | @SaCheckPermission("selectReportingWorks.delete") |
| | | @PostMapping("/deleteWork/{reportingWorkId}/{processId}/{thisProcess}/{userId}/{userName}") |
| | | public Result deleteWork(@PathVariable String reportingWorkId,@PathVariable String processId, |
| | | @PathVariable String thisProcess,@PathVariable String userId |
| | | ,@PathVariable String userName){ |
| | | public Result deleteWork(@PathVariable String reportingWorkId, |
| | | @PathVariable String processId, |
| | | @PathVariable String thisProcess, |
| | | @PathVariable String userId |
| | | ,@PathVariable String userName){ |
| | | |
| | | return Result.seccess(reportingWorkService.deleteWorkSv(reportingWorkId,processId,thisProcess,userId,userName)); |
| | | |
| | |
| | | |
| | | @ApiOperation("质检审核查询接口") |
| | | @SaCheckPermission("qualityInspectionReview.search") |
| | | @PostMapping ("/selectQualityTesting/{pageNum}/{pageSize}/{selectTime1}/{selectTime2}/{state}/{processId}") |
| | | @PostMapping ("/selectQualityTesting/{pageNum}/{pageSize}/{selectDate}/{state}/{processId}") |
| | | public Result selectQualityTesting( |
| | | @PathVariable Integer pageNum, |
| | | @PathVariable Integer pageSize, |
| | | @PathVariable Date selectTime1, |
| | | @PathVariable Date selectTime2, |
| | | @PathVariable List<String> selectDate, |
| | | @PathVariable Integer state, |
| | | @PathVariable String processId, |
| | | @RequestBody ReportingWork reportingWork){ |
| | | return Result.seccess(reportingWorkService.selectQualityTestingSv(pageNum,pageSize,selectTime1,selectTime2,state,processId,reportingWork)); |
| | | return Result.seccess(reportingWorkService.selectQualityTestingSv(pageNum,pageSize,selectDate,state,processId,reportingWork)); |
| | | |
| | | } |
| | | |
| | |
| | | return Result.seccess(reportingWorkService.selectReportingWorkRecordByPhoneSv(selectPam)); |
| | | } |
| | | |
| | | @ApiOperation("手机查询本工序设备") |
| | | @ApiOperation("手机查询本工序设备") |
| | | @PostMapping("/selectEquipmentByProcess/{process}") |
| | | public Result selectEquipmentByProcess(@PathVariable String process) { |
| | | return Result.seccess(reportingWorkService.selectEquipmentByProcessSv(process)); |
| | | }@ApiOperation("报工入库接口") |
| | | @PostMapping("/saveWorkStorage") |
| | | public Result saveWorkStorage( @RequestBody Map<String,Object> object){ |
| | | return Result.seccess(reportingWorkService.saveWorkStorage(object)); |
| | | |
| | | } |
| | | |
| | | @ApiOperation("Mes报工基础数据") |
| | | @PostMapping ("/mesBasicData") |
| | | public Result mesBasicData() { |
| | | return Result.seccess(reportingWorkService.mesBasicDataSv()); |
| | | } |
| | | |
| | | } |
| | | |
| | | |