package com.mes.temperingglass.controller; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import com.mes.temperingglass.entity.TemperingGlassInfo; import com.mes.temperingglass.service.TemperingOverService; import com.mes.temperingglass.service.TemperingService; import com.mes.utils.Result; @RestController @RequestMapping("/Tempering") // TidyUpGlassModule 钢化模块 public class TemperingController { @Autowired private TemperingService temperingService; @Autowired private TemperingOverService temperingOverService; @GetMapping("/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); } }