package com.mes.temperingglass.controller; import com.mes.temperingglass.entity.TemperingGlassInfo; import com.mes.temperingglass.service.TemperingOverService; import com.mes.temperingglass.service.TemperingService; import com.mes.utils.Result; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; @RestController @RequestMapping("/temperingGlassInfo") // TidyUpGlassModule 钢化模块 public class TemperingGlassInfoController { @Autowired TemperingService temperingService; @Autowired private TemperingOverService temperingOverService; @PostMapping("/SelectWaitingGlass") // 查询钢化等片中的版图信息,状态为1的为已到,状态为0的为等待中 @ResponseBody public Result SelectWaitingGlass(@RequestParam(name = "ProcessId", required = false) String ProcessId) { List glass = temperingService.SelectWaitingGlass(); System.out.println(glass); return Result.build(200, "", glass); } @GetMapping("/SelectIntoGlass") // 查询进炉中的钢化等片中的版图信息,状态全为1的为已到。 @ResponseBody public Result SelectIntoGlass(String ProcessId) { List glass = temperingService.SelectIntoGlass(); System.out.println(glass); return Result.build(200, "", glass); } @GetMapping("/SelectOutGlass") //钢化后显示出炉的版图信息 @ResponseBody public Result SelectOutGlass(String ProcessId) { List glass = temperingOverService.SelectOutGlass(); System.out.println(glass); return Result.build(200, "", glass); } }