Commit b6f3a0a5 by “zcwang”

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

parent 36ac969e
......@@ -106,7 +106,7 @@ public class ChangeFlowBiz {
// 校验变更主体
checkSubject(changeFlowCreateReq);
// 检验是否需要资料
ChangeConfig changeConfig = changeConfigService.queryChangeConfig(changeFlowCreateReq.getSonChangeClassId());
ChangeConfig changeConfig = changeConfigService.getSonChange(changeFlowCreateReq.getSonChangeClassId());
Assert.notNull(changeConfig, "二级变更类型不存在");
Integer needFile = changeConfig.getNeedFile();
if (NeedFileEnum.NEED.getStatus().equals(needFile)) {
......
......@@ -17,5 +17,5 @@ public interface ChangeConfigService {
Boolean updateChangeConfig(ChangeConfig changeConfig);
ChangeConfig getSonChange(Long sonChangeId);
}
......@@ -38,4 +38,9 @@ public class ChangeConfigServiceImpl implements ChangeConfigService {
mapper.updateByPrimaryKeySelective(changeConfig);
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
//ChangeExecConfigPo queryChangeDepartment(@Param("id")Long id);
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