feat(anneal): 添加退火计划钢卷查询功能并优化变更日志处理
- 在IWmsAnnealPerformanceService中添加queryPlanCoils方法用于查询退火计划中的加工前钢卷 - 在WmsAnnealPerformanceController中添加/rawCoils端点暴露钢卷查询功能 - 在WmsAnnealPerformanceServiceImpl中实现完整的钢卷查询逻辑,包括按计划条件筛选和关联查询 - 修改CoilChangeLogAspect切面,在旧卷ID提取和快照查询中添加异常处理,确保异常不影响主流程 - 将变更日志的确定新卷ID和写入日志整体包装在try-catch中,提升系统稳定性
This commit is contained in:
@@ -2,6 +2,7 @@ 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;
|
||||
@@ -10,6 +11,8 @@ 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;
|
||||
|
||||
/**
|
||||
* 炉火实绩
|
||||
*
|
||||
@@ -28,4 +31,12 @@ public class WmsAnnealPerformanceController {
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user