Commit 4aa7ecb4 by zhiwj

去掉重复值

parent c4c319d6
...@@ -234,10 +234,11 @@ ...@@ -234,10 +234,11 @@
<select id="getIndexDescByIndexCode" resultMap="BaseResultMap"> <select id="getIndexDescByIndexCode" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_index_desc where status = 1 and module_id = #{moduleId} and index_code = #{indexCode} from tab_index_desc where module_id = #{moduleId} and index_code = #{indexCode}
<if test="indexGroupName != null and indexGroupName != '' "> <if test="indexGroupName != null and indexGroupName != '' ">
and index_group_name = #{indexGroupName} and index_group_name = #{indexGroupName}
</if> </if>
order create_time
limit 1 limit 1
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
<select id="listModuleIdByBusinessIds" resultMap="BaseResultMap"> <select id="listModuleIdByBusinessIds" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_index_module_rel where status = 1 and type = #{type} from tab_index_module_rel where type = #{type}
<if test="null != ids and ids.size > 0"> <if test="null != ids and ids.size > 0">
and business_id in and business_id in
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")"> <foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
......
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