|
|
@@ -7,31 +7,31 @@
|
|
|
<id column="ID" property="id" />
|
|
|
<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" />
|
|
|
- <result column="CREATE_TIME" property="createTime" />
|
|
|
- <result column="CREATE_BY" property="createBy" />
|
|
|
- <result column="IS_DEFAULT" property="isDefault" />
|
|
|
- <result column="DICTLABEL" property="dictlabel" />
|
|
|
- <result column="REMAKE" property="remake" />
|
|
|
- <result column="PARENTDICTCODE" property="parentdictcode" />
|
|
|
+ <result column="dictvalue" property="dictvalue" />
|
|
|
+ <result column="dictsort" property="dictsort" />
|
|
|
+ <result column="status" property="status" />
|
|
|
+ <result column="create_time" property="createTime" />
|
|
|
+ <result column="create_by" property="createBy" />
|
|
|
+ <result column="is_default" property="isDefault" />
|
|
|
+ <result column="dictlabel" property="dictlabel" />
|
|
|
+ <result column="remake" property="remake" />
|
|
|
+ <result column="parentdictcode" property="parentdictcode" />
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
<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
|
|
|
<include refid="Base_Column_List"/>,
|
|
|
- (DICTCODE||'--'||DICTVALUE) as codevalue,
|
|
|
- IS_DEFAULT as isDefault
|
|
|
- FROM QW_SYS_DICT
|
|
|
+ (dictcode||'--'||dictvalue) as codevalue,
|
|
|
+ is_default as isDefault
|
|
|
+ FROM qw_sys_dict
|
|
|
<where>
|
|
|
- STATUS = '1'
|
|
|
+ status = '1'
|
|
|
<if test="dicttype != null and dicttype !=''">
|
|
|
- AND DICTTYPE = UPPER(#{dicttype})
|
|
|
+ AND dicttype = UPPER(#{dicttype})
|
|
|
</if>
|
|
|
<if test="dictvalue != null and dictvalue !=''">
|
|
|
AND dictvalue LIKE '%' || #{dictvalue} || '%'
|
|
|
@@ -50,16 +50,16 @@
|
|
|
|
|
|
</if>
|
|
|
</where>
|
|
|
- ORDER BY DICTSORT ASC
|
|
|
+ ORDER BY dictsort ASC
|
|
|
</select>
|
|
|
<select id="selectAll" resultType="com.linkwechat.coal.modules.xxxt.system.domain.vo.DictVo">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>,
|
|
|
- (DICTCODE||'--'||DICTVALUE) as codevalue,
|
|
|
- IS_DEFAULT as isDefault
|
|
|
- FROM QW_SYS_DICT
|
|
|
- where STATUS = '1'
|
|
|
- ORDER BY DICTTYPE,DICTSORT ASC
|
|
|
+ (dictcode||'--'||dictvalue) as codevalue,
|
|
|
+ is_default as isDefault
|
|
|
+ FROM qw_sys_dict
|
|
|
+ where status = '1'
|
|
|
+ ORDER BY dicttype,dictsort ASC
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|