严智鑫
2024-05-10 211cd083bc9fc1871779802650dfe0e607d8ca77
hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/glassinfo/controller/GlassInfoController.java
@@ -3,49 +3,51 @@
import com.mes.glassinfo.entity.GlassInfo;
import com.mes.glassinfo.service.GlassInfoService;
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.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.mes.glassinfo.service.impl.GlassInfoServiceImpl;
import java.util.List;
import java.util.Map;
/**
 * <p>
 *  前端控制器
 * 前端控制器
 * </p>
 *
 * @author zhoush
 * @since 2024-04-07
 */
@Api(description = "玻璃信息小片")
@RestController
@RequestMapping("/glassInfo")
public class GlassInfoController {
    @Autowired
    private GlassInfoServiceImpl GlassInfoServiceImpl;
    private GlassInfoService glassInfoService;
    @PostMapping("/selectId") // 查询切割版图信息-根据 工程号
    @ApiOperation("根据玻璃小片ID查询 玻璃数据:参数(玻璃ID)")
    @PostMapping("/selectId")
    @ResponseBody
    public Result selectId(String ProcessId) {
        List<GlassInfo> list = GlassInfoServiceImpl.selectId(ProcessId);
        List<GlassInfo> list = glassInfoService.selectId(ProcessId);
        return Result.build(200,"成功",list);
    }
    @PostMapping("/selectAll") // 查询切割版图信息-根据 工程号
    @ApiOperation("查询所有玻璃小片信息 玻璃数据   参数()")
    @PostMapping("/selectAll")
    @ResponseBody
    public Result selectAll() {
        List<GlassInfo> list = GlassInfoServiceImpl.selectAll();
        List<GlassInfo> list = glassInfoService.selectAll();
        return Result.build(200,"成功",list);
    }
    @PostMapping("/selectFlowCardId") // 查询切割版图信息-根据 工程号
    @ApiOperation("查询工程下的玻璃小片信息 玻璃数据  参数(工程号)")
    @PostMapping("/selectFlowCardId")
    @ResponseBody
    public Result selectFlowCardId(String flowCardId) {
        List<GlassInfo> list = GlassInfoServiceImpl.selectFlowCardId(flowCardId);
        List<GlassInfo> list = glassInfoService.selectFlowCardId(flowCardId);
        return Result.build(200,"成功",list);
    }
}