add: 新增根据参数配置来管理是否只做拔轴业务
This commit is contained in:
@@ -83,6 +83,7 @@ public class AutoCallAirShaftTask {
|
|||||||
private ISysParamService paramService;
|
private ISysParamService paramService;
|
||||||
|
|
||||||
public final static String PARAM_CODE_PLAN_AREA = "PARAM_CODE_PLAN_AREA";
|
public final static String PARAM_CODE_PLAN_AREA = "PARAM_CODE_PLAN_AREA";
|
||||||
|
public final static String IS_ONLY_PULLING = "IS_ONLY_PULLING";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* hint: 目前只是考虑了上区域
|
* hint: 目前只是考虑了上区域
|
||||||
@@ -104,6 +105,12 @@ public class AutoCallAirShaftTask {
|
|||||||
String specification = empty.getQzz_generation();
|
String specification = empty.getQzz_generation();
|
||||||
String location = empty.getPoint_location();
|
String location = empty.getPoint_location();
|
||||||
// 判断配置参数是否只做拔轴
|
// 判断配置参数是否只做拔轴
|
||||||
|
Param isOnlyPulling = paramService.findByCode(IS_ONLY_PULLING);
|
||||||
|
if (ObjectUtil.isNotEmpty(isOnlyPulling) && SlitterConstant.SLITTER_YES.equals(isOnlyPulling.getValue())) {
|
||||||
|
// 只做拔轴
|
||||||
|
makePullShaft(empty, specification);
|
||||||
|
return;
|
||||||
|
}
|
||||||
// 2、获取分切计划数据 校验代数 todo: 顺序可能需要考虑
|
// 2、获取分切计划数据 校验代数 todo: 顺序可能需要考虑
|
||||||
List<SlitterPlanDistinctDto> planAll = slittingproductionplanService.getAllCutPlan();
|
List<SlitterPlanDistinctDto> planAll = slittingproductionplanService.getAllCutPlan();
|
||||||
Param paramObj = paramService.findByCode(PARAM_CODE_PLAN_AREA);
|
Param paramObj = paramService.findByCode(PARAM_CODE_PLAN_AREA);
|
||||||
|
|||||||
Reference in New Issue
Block a user