|
@@ -92,7 +92,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getPageListByObj" parameterType="TDicStandard" resultMap="BaseResultMap">
|
|
<select id="getPageListByObj" parameterType="TDicStandard" resultMap="BaseResultMap">
|
|
- SELECT
|
|
|
|
|
|
+ SELECT DISTINCT
|
|
tdb.stan_id,
|
|
tdb.stan_id,
|
|
tdb.stan_code,
|
|
tdb.stan_code,
|
|
tdb.stan_name,
|
|
tdb.stan_name,
|
|
@@ -104,18 +104,15 @@
|
|
INNER JOIN t_dic_standard AS tdbb ON tdb.parent_id = (SELECT stan_id
|
|
INNER JOIN t_dic_standard AS tdbb ON tdb.parent_id = (SELECT stan_id
|
|
FROM t_dic_mapping
|
|
FROM t_dic_mapping
|
|
WHERE dic_id = #{dicId})
|
|
WHERE dic_id = #{dicId})
|
|
- <if test=" stanName != null and stanName!='' ">
|
|
|
|
- and tdb.stan_name like CONCAT('%',trim(#{stanName}),'%')
|
|
|
|
- </if>
|
|
|
|
- <if test=" stanCode != null and stanCode!='' ">
|
|
|
|
- and tdb.stan_code like CONCAT('%',trim(#{stanCode}),'%')
|
|
|
|
|
|
+ <if test="keyWord !=null and keyWord!='' ">
|
|
|
|
+ and (tdb.stan_name like CONCAT('%',trim(#{keyWord}),'%') or tdb.stan_code like CONCAT('%',trim(#{keyWord}),'%') )
|
|
</if>
|
|
</if>
|
|
<if test=" stanType != null and stanType!='' ">
|
|
<if test=" stanType != null and stanType!='' ">
|
|
and tdb.stan_type=#{stanType}
|
|
and tdb.stan_type=#{stanType}
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
<select id="getFname" resultMap="BaseResultMap">
|
|
<select id="getFname" resultMap="BaseResultMap">
|
|
- select stan_name
|
|
|
|
|
|
+ select stan_id,stan_name,stan_code
|
|
from t_dic_standard
|
|
from t_dic_standard
|
|
where parent_id = '0'
|
|
where parent_id = '0'
|
|
</select>
|
|
</select>
|