Commit b6f3a0a5 by “zcwang”

add: 创建工单,校验配置有效性

parent 36ac969e
...@@ -106,7 +106,7 @@ public class ChangeFlowBiz { ...@@ -106,7 +106,7 @@ public class ChangeFlowBiz {
// 校验变更主体 // 校验变更主体
checkSubject(changeFlowCreateReq); checkSubject(changeFlowCreateReq);
// 检验是否需要资料 // 检验是否需要资料
ChangeConfig changeConfig = changeConfigService.queryChangeConfig(changeFlowCreateReq.getSonChangeClassId()); ChangeConfig changeConfig = changeConfigService.getSonChange(changeFlowCreateReq.getSonChangeClassId());
Assert.notNull(changeConfig, "二级变更类型不存在"); Assert.notNull(changeConfig, "二级变更类型不存在");
Integer needFile = changeConfig.getNeedFile(); Integer needFile = changeConfig.getNeedFile();
if (NeedFileEnum.NEED.getStatus().equals(needFile)) { if (NeedFileEnum.NEED.getStatus().equals(needFile)) {
......
...@@ -17,5 +17,5 @@ public interface ChangeConfigService { ...@@ -17,5 +17,5 @@ public interface ChangeConfigService {
Boolean updateChangeConfig(ChangeConfig changeConfig); Boolean updateChangeConfig(ChangeConfig changeConfig);
ChangeConfig getSonChange(Long sonChangeId);
} }
...@@ -38,4 +38,9 @@ public class ChangeConfigServiceImpl implements ChangeConfigService { ...@@ -38,4 +38,9 @@ public class ChangeConfigServiceImpl implements ChangeConfigService {
mapper.updateByPrimaryKeySelective(changeConfig); mapper.updateByPrimaryKeySelective(changeConfig);
return true; return true;
} }
@Override
public ChangeConfig getSonChange(Long sonChangeId) {
return mapper.selectBySonConfig(sonChangeId);
}
} }
...@@ -36,4 +36,7 @@ public interface ChangeConfigMapper extends tk.mybatis.mapper.common.Mapper<Chan ...@@ -36,4 +36,7 @@ public interface ChangeConfigMapper extends tk.mybatis.mapper.common.Mapper<Chan
//ChangeExecConfigPo queryChangeDepartment(@Param("id")Long id); //ChangeExecConfigPo queryChangeDepartment(@Param("id")Long id);
void add(ChangeConfig changeConfig); void add(ChangeConfig changeConfig);
@Select("select * from TB_YX_QC_CHANGE_CONFIG where son_change_class_id = #{sonChangeId} limit 1")
ChangeConfig selectBySonConfig(@Param("sonChangeId") Long sonChangeId);
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment