| | |
| | | import com.mes.bigstorage.service.BigStorageCageDetailsService; |
| | | import com.mes.bigstorage.service.BigStorageCageService; |
| | | import com.mes.common.config.Const; |
| | | import com.mes.pp.entity.OptimizeProject; |
| | | import com.mes.utils.RedisUtil; |
| | | import com.mes.utils.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("取消当前钢化") |
| | | @PostMapping("/cancelTemperingTask") |
| | | public Result<Boolean> cancelTemperingTask() { |
| | | boolean result = bigStorageCageDetailsService.cancelTemperingTask(); |
| | | if (result == true) { |
| | | return Result.build(200, "取消当前钢化成功", result); |
| | | } else { |
| | | return Result.build(200, "取消当前钢化失败", result); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("钢化/非钢化查询:0 非钢化 1:钢化") |
| | | @PostMapping("/selectTemperingGlass") |
| | | public Result<List<TemperingGlassCountDTO>> selectTemperingGlass(int isTempering) { |
| | |
| | | String glassId = map.get("glassId"); |
| | | return Result.build(200, "报破损成功", bigStorageCageDetailsService.bigStorageGlassDamageByGlassId(glassId)); |
| | | } |
| | | |
| | | @ApiOperation("查询工程待排产信息") |
| | | @PostMapping("/queryEngineer") //显示工程排产信息 |
| | | @ResponseBody |
| | | public Result<List<BigStorageCageDetails>> queryEngineer() { |
| | | List<BigStorageCageDetails> result = bigStorageCageDetailsService.queryEngineer(); |
| | | return Result.build(200, "", result); |
| | | } |
| | | } |
| | | |