修正分类、性质、标签字典只查询非叶子节点的错误

Signed-off-by: zhangwei <zhangwei@intranet.com>
This commit is contained in:
zhangwei
2018-07-02 16:24:50 +08:00
parent 85da517ed0
commit 9f70b4cd6e
7 changed files with 43 additions and 20 deletions

View File

@@ -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">