|
|
@@ -5,8 +5,8 @@
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap" type="com.linkwechat.coal.modules.xxxt.system.domain.entity.QwSysDict">
|
|
|
<id column="id" property="id" />
|
|
|
- <result column="DICTTYPE" property="dicttype" />
|
|
|
- <result column="DICTCODE" property="dictcode" />
|
|
|
+ <result column="dicttype" property="dicttype" />
|
|
|
+ <result column="dictcode" property="dictcode" />
|
|
|
<result column="dictvalue" property="dictvalue" />
|
|
|
<result column="dictsort" property="dictsort" />
|
|
|
<result column="status" property="status" />
|
|
|
@@ -20,7 +20,7 @@
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, dicttype, dictcode, dictvalue, dictsort, status, create_time, create_by, is_default, dictlabel, remake, PARENTDICTCODE
|
|
|
+ id, dicttype, dictcode, dictvalue, dictsort, status, create_time, create_by, is_default, dictlabel, remake, parentdictcode
|
|
|
</sql>
|
|
|
<select id="select" resultType="com.linkwechat.coal.modules.xxxt.system.domain.vo.DictVo">
|
|
|
SELECT
|
|
|
@@ -39,16 +39,16 @@
|
|
|
<if test="parentdictcode != null and parentdictcode !=''">
|
|
|
AND parentdictcode = #{parentdictcode}
|
|
|
</if>
|
|
|
- <if test="dfComcode != null and dfComcode !=''">
|
|
|
- AND parentdictcode in(
|
|
|
- Select comcode
|
|
|
- from saCompany@dblink_sales
|
|
|
- Start With comcode = #{dfComcode,jdbcType=VARCHAR}
|
|
|
- Connect By Prior comcode = uppercomcode
|
|
|
- and prior comcode != comcode
|
|
|
- and validstatus = '1')
|
|
|
+<!-- <if test="dfComcode != null and dfComcode !=''">-->
|
|
|
+<!-- AND parentdictcode in(-->
|
|
|
+<!-- Select comcode-->
|
|
|
+<!-- from saCompany@dblink_sales-->
|
|
|
+<!-- Start With comcode = #{dfComcode,jdbcType=VARCHAR}-->
|
|
|
+<!-- Connect By Prior comcode = uppercomcode-->
|
|
|
+<!-- and prior comcode != comcode-->
|
|
|
+<!-- and validstatus = '1')-->
|
|
|
|
|
|
- </if>
|
|
|
+<!-- </if>-->
|
|
|
</where>
|
|
|
ORDER BY dictsort ASC
|
|
|
</select>
|