- 在IWmsAnnealPerformanceService中添加queryPlanCoils方法用于查询退火计划中的加工前钢卷 - 在WmsAnnealPerformanceController中添加/rawCoils端点暴露钢卷查询功能 - 在WmsAnnealPerformanceServiceImpl中实现完整的钢卷查询逻辑,包括按计划条件筛选和关联查询 - 修改CoilChangeLogAspect切面,在旧卷ID提取和快照查询中添加异常处理,确保异常不影响主流程 - 将变更日志的确定新卷ID和写入日志整体包装在try-catch中,提升系统稳定性
43 lines
1.2 KiB
Java
43 lines
1.2 KiB
Java
package com.klp.controller;
|
|
|
|
import com.klp.common.core.domain.R;
|
|
import com.klp.domain.bo.WmsAnnealPerformanceBo;
|
|
import com.klp.domain.vo.WmsMaterialCoilVo;
|
|
import com.klp.domain.vo.anneal.WmsAnnealPerformanceVo;
|
|
import com.klp.service.IWmsAnnealPerformanceService;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 炉火实绩
|
|
*
|
|
* @author klp
|
|
* @date 2026-03-14
|
|
*/
|
|
@Validated
|
|
@RequiredArgsConstructor
|
|
@RestController
|
|
@RequestMapping("/wms/anneal/performance")
|
|
public class WmsAnnealPerformanceController {
|
|
|
|
private final IWmsAnnealPerformanceService performanceService;
|
|
|
|
@GetMapping
|
|
public R<WmsAnnealPerformanceVo> getPerformance(WmsAnnealPerformanceBo bo) {
|
|
return R.ok(performanceService.queryPerformance(bo));
|
|
}
|
|
|
|
/**
|
|
* 查询退火计划中的加工前钢卷列表
|
|
*/
|
|
@GetMapping("/rawCoils")
|
|
public R<List<WmsMaterialCoilVo>> getRawCoils(WmsAnnealPerformanceBo bo) {
|
|
return R.ok(performanceService.queryPlanCoils(bo));
|
|
}
|
|
}
|