fix(security): 更新安全配置并修正炉计划服务逻辑
- 在安全配置中添加 /wms/coilPendingAction/** 路径到忽略列表 - 从安全配置中移除测接口相关路径 - 移除 WmsFurnacePlanServiceImpl 中的 endTime 设置逻辑 - 简化炉计划实际开始时间设置流程
This commit is contained in:
@@ -154,7 +154,7 @@ security:
|
||||
- /test/**
|
||||
- /klp/generateRecord
|
||||
- /klp/generateRecord/**
|
||||
|
||||
- /wms/coilPendingAction/**
|
||||
# 测接口
|
||||
# - /ems/energyConsumption
|
||||
# - /ems/energyConsumption/**
|
||||
|
||||
@@ -289,12 +289,10 @@ public class WmsFurnacePlanServiceImpl implements IWmsFurnacePlanService {
|
||||
}
|
||||
|
||||
Date now = new Date();
|
||||
Date endTime = new Date(now.getTime() + 48L * 60 * 60 * 1000);
|
||||
|
||||
WmsFurnacePlan update = new WmsFurnacePlan();
|
||||
update.setPlanId(planId);
|
||||
update.setActualStartTime(now);
|
||||
update.setEndTime(endTime);
|
||||
update.setStatus(2);
|
||||
baseMapper.updateById(update);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user