|
|
@ -437,6 +437,10 @@ public class ClassifyServiceImpl extends BaseServiceImpl<ClassifyMapper, Classif |
|
|
|
String parentClassifyName = importClassifyDTO.getParentClassifyName(); |
|
|
|
String parentClassifyName = importClassifyDTO.getParentClassifyName(); |
|
|
|
String parentClassifyDesc = importClassifyDTO.getParentClassifyDesc(); |
|
|
|
String parentClassifyDesc = importClassifyDTO.getParentClassifyDesc(); |
|
|
|
String parentClassifyRemark = importClassifyDTO.getParentClassifyRemark(); |
|
|
|
String parentClassifyRemark = importClassifyDTO.getParentClassifyRemark(); |
|
|
|
|
|
|
|
String createDeptName = importClassifyDTO.getCreateDeptName(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Long createDeptId = deptClient.findIdByName(createDeptName); |
|
|
|
|
|
|
|
|
|
|
|
//判断指标分类是否已经存在
|
|
|
|
//判断指标分类是否已经存在
|
|
|
|
QueryWrapper<ClassifyEntity> queryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<ClassifyEntity> queryWrapper = new QueryWrapper<>(); |
|
|
|
queryWrapper.eq("name",parentClassifyName) |
|
|
|
queryWrapper.eq("name",parentClassifyName) |
|
|
@ -449,6 +453,7 @@ public class ClassifyServiceImpl extends BaseServiceImpl<ClassifyMapper, Classif |
|
|
|
parnetClassifyEntity.setDescription(parentClassifyDesc); |
|
|
|
parnetClassifyEntity.setDescription(parentClassifyDesc); |
|
|
|
parnetClassifyEntity.setRemark(parentClassifyRemark); |
|
|
|
parnetClassifyEntity.setRemark(parentClassifyRemark); |
|
|
|
parnetClassifyEntity.setPId(0L); |
|
|
|
parnetClassifyEntity.setPId(0L); |
|
|
|
|
|
|
|
parnetClassifyEntity.setCreateDept(createDeptId); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
parnetClassifyEntity.setDescription(parentClassifyDesc); |
|
|
|
parnetClassifyEntity.setDescription(parentClassifyDesc); |
|
|
|
parnetClassifyEntity.setRemark(parentClassifyRemark); |
|
|
|
parnetClassifyEntity.setRemark(parentClassifyRemark); |
|
|
@ -462,11 +467,15 @@ public class ClassifyServiceImpl extends BaseServiceImpl<ClassifyMapper, Classif |
|
|
|
|
|
|
|
|
|
|
|
String classifyName = importClassifyDTO.getClassifyName(); |
|
|
|
String classifyName = importClassifyDTO.getClassifyName(); |
|
|
|
String classifyDesc = importClassifyDTO.getClassifyDesc(); |
|
|
|
String classifyDesc = importClassifyDTO.getClassifyDesc(); |
|
|
|
|
|
|
|
String examineDeptName = importClassifyDTO.getExamineDeptName(); |
|
|
|
|
|
|
|
Long examineDeptId = deptClient.findIdByName(examineDeptName); |
|
|
|
|
|
|
|
|
|
|
|
ClassifyEntity classifyEntity = new ClassifyEntity(); |
|
|
|
ClassifyEntity classifyEntity = new ClassifyEntity(); |
|
|
|
classifyEntity.setName(classifyName); |
|
|
|
classifyEntity.setName(classifyName); |
|
|
|
classifyEntity.setDescription(classifyDesc); |
|
|
|
classifyEntity.setDescription(classifyDesc); |
|
|
|
classifyEntity.setPId(parentClassifyId); |
|
|
|
classifyEntity.setPId(parentClassifyId); |
|
|
|
|
|
|
|
classifyEntity.setExamineDeptId(examineDeptId); |
|
|
|
|
|
|
|
classifyEntity.setExamineDeptName(examineDeptName); |
|
|
|
boolean b = save(classifyEntity); |
|
|
|
boolean b = save(classifyEntity); |
|
|
|
if(!b){ |
|
|
|
if(!b){ |
|
|
|
log.warn("#############importClassify: 保存指标失败"); |
|
|
|
log.warn("#############importClassify: 保存指标失败"); |
|
|
|