| | |
| | | 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)); |
| | | |
| | |
| | | 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)); |
| | | |
| | | } |
| | | }} |