|
@@ -82,6 +82,8 @@ public class FlowConfigHeaderServiceImpl implements IFlowConfigHeaderService {
|
|
|
FlowConfigHeaderVO flowConfigHeaderVO = flowConfigHeaderMapper.selectFlowConfigHeaderById(flowConfigForm.getId());
|
|
|
FlowConfigHeader flowConfigHeader = new FlowConfigHeader();
|
|
|
BeanUtils.copyProperties(flowConfigHeaderVO, flowConfigHeader);
|
|
|
+ flowConfigHeader.setFlowConfigDetailsList(flowConfigForm.getFlowConfigDetailsList());
|
|
|
+ //把前端传递的数组行参数转换成字符串保存到数据库
|
|
|
if (flowConfigForm.getSkuType() != null) {
|
|
|
flowConfigHeader.setSkuType(String.join(",", flowConfigForm.getSkuType()));
|
|
|
}
|
|
@@ -108,6 +110,7 @@ public class FlowConfigHeaderServiceImpl implements IFlowConfigHeaderService {
|
|
|
|
|
|
List<String> headerLocationFrom = new ArrayList<>();
|
|
|
List<String> headerLocationTo = new ArrayList<>();
|
|
|
+ //查询所有流程判断起始库位和目标库位不能重复,因为叫料时会根据区域自定匹配流程
|
|
|
List<FlowConfigHeader> headerList = flowConfigHeaderMapper.selectFlowConfigHeaderList(null);
|
|
|
if (headerList != null && headerList.size() > 0) {
|
|
|
for (FlowConfigHeader header : headerList) {
|
|
@@ -164,6 +167,11 @@ public class FlowConfigHeaderServiceImpl implements IFlowConfigHeaderService {
|
|
|
return flowConfigHeaderMapper.deleteFlowConfigHeaderById(id);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 新增流程配置
|
|
|
+ * @param flowConfigForm
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public AjaxResult addFlowConfig(FlowConfigForm flowConfigForm) {
|
|
@@ -190,7 +198,7 @@ public class FlowConfigHeaderServiceImpl implements IFlowConfigHeaderService {
|
|
|
if (list != null && list.size() > 0) {
|
|
|
return AjaxResult.error("该流程名称已存在");
|
|
|
}
|
|
|
- //TODO 起始区域和目标区域不能重复
|
|
|
+
|
|
|
List<String> headerLocationFrom = new ArrayList<>();
|
|
|
List<String> headerLocationTo = new ArrayList<>();
|
|
|
List<FlowConfigHeader> headerList = flowConfigHeaderMapper.selectFlowConfigHeaderList(null);
|
|
@@ -237,6 +245,11 @@ public class FlowConfigHeaderServiceImpl implements IFlowConfigHeaderService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 加载流程配置定义的批次属性,关联批次属性配置表配置的控件选项以及名称
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@Override
|
|
|
public List<FlowConfigLotattVO> selectLotattDetails(Long id) {
|
|
|
return flowConfigHeaderMapper.selectLotattDetails(id);
|