修正分类、性质、标签字典只查询非叶子节点的错误
Signed-off-by: zhangwei <zhangwei@intranet.com>
This commit is contained in:
@@ -73,8 +73,8 @@ public interface ServiceDictInfoDao extends CrudDao<ServiceDictInfo> {
|
||||
|
||||
|
||||
|
||||
List<ServiceDictInfo> findItemDict(@Param("itemType")int itemType,@Param("isValid")int isValid);
|
||||
List<ServiceDictInfo> findAllItemDict(@Param("itemType")int itemType);
|
||||
List<ServiceDictInfo> findItemDict(@Param("itemType")int itemType,@Param("isValid")int isValid,@Param("isLeaf")Integer isLeaf);
|
||||
List<ServiceDictInfo> findAllItemDictByItemType(@Param("itemType")int itemType,@Param("isLeaf")Integer isLeaf);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -289,12 +289,18 @@
|
||||
<select id="findItemDict" resultMap="dictResultSimpleMap">
|
||||
select
|
||||
<include refid="serviceDictInfoColumnsSimple" />
|
||||
from service_dict_info s where s.is_leaf = 0 and s.item_type=#{itemType} and s.is_valid=#{isValid};
|
||||
from service_dict_info s where s.item_type=#{itemType} and s.is_valid=#{isValid}
|
||||
<if test="isLeaf != null" >
|
||||
and s.is_leaf = #{isLeaf,jdbcType=INTEGER},
|
||||
</if>
|
||||
</select>
|
||||
<select id="findAllItemDict" resultMap="dictResultSimpleMap">
|
||||
<select id="findAllItemDictByItemType" resultMap="dictResultSimpleMap">
|
||||
select
|
||||
<include refid="serviceDictInfoColumnsSimple" />
|
||||
from service_dict_info s where s.is_leaf = 0 and s.item_type=#{itemType};
|
||||
from service_dict_info s where s.item_type=#{itemType}
|
||||
<if test="isLeaf != null" >
|
||||
and s.is_leaf = #{isLeaf,jdbcType=INTEGER},
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<sql id="menuJoins">
|
||||
|
||||
Reference in New Issue
Block a user