package com.mes.hollow.controller;
|
|
|
import com.mes.damage.entity.request.DamageRequest;
|
import com.mes.glassinfo.entity.GlassInfo;
|
import com.mes.hollow.entity.dto.LackDetailsDTO;
|
import com.mes.hollow.entity.vo.HollowAllFlowCardVO;
|
import com.mes.hollow.entity.vo.HollowBigStorageDetailsQueryVO;
|
import com.mes.hollow.service.HollowGlassRelationInfoService;
|
import com.mes.utils.Result;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
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 javax.annotation.Resource;
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* (HollowGlassRelationInfo)表控制层
|
*
|
* @author makejava
|
* @since 2024-11-23 15:59:27
|
*/
|
@Api(tags = "流程卡关系")
|
@RestController
|
@RequestMapping("hollowGlassRelationInfo")
|
public class HollowGlassRelationInfoController {
|
|
@Resource
|
HollowGlassRelationInfoService hollowGlassRelationInfoService;
|
|
@ApiOperation("界面点击创建任务:查询中空所有流程卡对应的玻璃信息")
|
@PostMapping("/queryHollowAllFlowCard")
|
public Result<List<HollowAllFlowCardVO>> queryHollowAllFlowCard(@RequestBody HollowBigStorageDetailsQueryVO query) {
|
List<HollowAllFlowCardVO> hollowAllFlowCardVOList = hollowGlassRelationInfoService.queryHollowAllFlowCard(query);
|
return Result.success(hollowAllFlowCardVOList);
|
}
|
|
@ApiOperation("界面展示:查询流程卡、层数的缺片详情")
|
@PostMapping("/queryAllLackByFlowCard")
|
public Result<List<LackDetailsDTO>> queryAllLackByFlowCard() {
|
List<LackDetailsDTO> lackDetailsList = hollowGlassRelationInfoService.queryAllLackByFlowCard();
|
return Result.success(lackDetailsList);
|
}
|
|
@ApiOperation("按照流程卡、订单序号、层号获取缺片玻璃信息详情")
|
@PostMapping("/queryLackGlassByFlowCard")
|
public Result<List<GlassInfo>> queryLackGlassByFlowCard(@RequestBody HollowBigStorageDetailsQueryVO query) {
|
List<GlassInfo> lackGlassList = hollowGlassRelationInfoService.queryLackGlassByFlowCard(query);
|
return Result.success(lackGlassList);
|
}
|
|
// @ApiOperation("查询指定流程卡及层数的缺片详情")
|
// @PostMapping("/queryLackByFlowCard")
|
// public Result<List<LackDetailsDTO>> queryLackByFlowCard(String flowCardId) {
|
// List<LackDetailsDTO> lackDetailsList = hollowGlassRelationInfoService.queryLackByFlowCard(flowCardId);
|
// return Result.success(lackDetailsList);
|
// }
|
@ApiOperation("查询指定流程卡的缺片详情")
|
@PostMapping("/queryLackByFlowCard")
|
public Result<Map<Integer,List<LackDetailsDTO>>> queryLackByFlowCard(String flowCardId) {
|
Map<Integer,List<LackDetailsDTO>> lackDetailsMap = hollowGlassRelationInfoService.queryLackByFlowCard(flowCardId);
|
return Result.success(lackDetailsMap);
|
}
|
|
@ApiOperation("中空缺片爆破笼报破损")
|
@PostMapping("/hollowBigStorageGlassDamage")
|
public Result<Boolean> hollowBigStorageGlassDamage(@RequestBody DamageRequest request) {
|
return Result.build(200, "报破损成功", hollowGlassRelationInfoService.hollowBigStorageGlassDamage(request));
|
}
|
|
}
|