| | |
| | | package com.mes.damage.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.mes.damage.entity.Damage; |
| | | import com.mes.damage.entity.DamagePrint; |
| | | import com.mes.damage.service.DamageService; |
| | | import com.mes.opctask.entity.LoadGlassDeviceTaskHistory; |
| | | import com.mes.utils.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | @ApiOperation("报工数据查询") |
| | | @PostMapping("/selectDamage") |
| | | public Result selectDamage(@RequestBody Map map) { |
| | | public Result<Page<Damage>> selectDamage(@RequestBody Map map) { |
| | | String startTime=map.get("startTime").toString(); |
| | | String endTime=map.get("endTime").toString(); |
| | | int type =Integer.parseInt(map.get("type").toString()); |
| | | int status =Integer.parseInt(map.get("status").toString()); |
| | | String workingProcedure =map.get("workingProcedure").toString(); |
| | | return Result.build(200,"查询成功",damageService.selectDamage(startTime,endTime,type,status, workingProcedure)); |
| | | int pageNo = Integer.parseInt(map.get("pageNo").toString()); |
| | | int pageSize = Integer.parseInt(map.get("pageSize").toString()); |
| | | return Result.build(200, "查询成功", damageService.selectDamage(startTime, endTime, type, status, workingProcedure, pageNo, pageSize)); |
| | | } |
| | | |
| | | @ApiOperation("报工") |
| | |
| | | damageService.insertDamage(damage); |
| | | return Result.build(200,"新增成功",1); |
| | | } |
| | | |
| | | @ApiOperation("拿走数据查询") |
| | | @PostMapping("/selectDamagePrint") |
| | | public Result selectDamagePrint(@RequestBody Damage damage) { |
| | | List<DamagePrint> damage2=damageService.selectDamagePrint(damage); |
| | | return Result.build(200,"查询成功",damage2); |
| | | } |
| | | |
| | | @ApiOperation("拿走打印查询") |
| | | @PostMapping("/selectDamagePrintDetails") |
| | | public Result selectDamagePrintDetails(@RequestBody Damage damage) { |
| | | List<DamagePrint> damage2=damageService.selectDamagePrintDetails(damage); |
| | | return Result.build(200,"查询成功",damage2); |
| | | } |
| | | |
| | | @ApiOperation("自动报工") |
| | | @PostMapping("/autoSubmitReport") |
| | | public Result autoSubmitReport(String glassId, int deviceId, String workingProcedure, String remark, int type) { |