交付物类型-树形数据字典
This commit is contained in:
+2
@@ -41,5 +41,7 @@ public interface SysCategoryMapper extends BaseMapper<SysCategory> {
|
||||
|
||||
public String getFieldInfo(@Param("fieldName") String fieldName);
|
||||
|
||||
public String getDictId(@Param("dicCode") String dicCode);
|
||||
|
||||
List<SysCategory> queryByTreeDicCode( @Param("dicCode") String dicCode);
|
||||
}
|
||||
|
||||
+5
@@ -49,4 +49,9 @@
|
||||
where sys_dict_id = (select id from sys_dict where dict_code = #{dicCode})
|
||||
and del_flag=0
|
||||
</select>
|
||||
|
||||
<select id="getDictId" resultType="java.lang.String">
|
||||
select id from sys_dict
|
||||
where dict_code = #{dicCode}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
+1
-2
@@ -269,11 +269,10 @@ public class SysCategoryServiceImpl extends ServiceImpl<SysCategoryMapper, SysCa
|
||||
//只查询技术领域的technology_territory
|
||||
String dictId = "";
|
||||
if("deliverable_template".equals(flag)){
|
||||
dictId = sysCategoryMapper.getFieldInfo("deliverable_template");
|
||||
dictId = sysCategoryMapper.getDictId("deliverable_template");
|
||||
}else{
|
||||
dictId = sysCategoryMapper.getFieldInfo("technology_territory");
|
||||
}
|
||||
|
||||
List<SysCategory> list = new ArrayList<>();
|
||||
if(StringUtils.isNotBlank(dictId)){
|
||||
LambdaQueryWrapper<SysCategory> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
Reference in New Issue
Block a user