|
@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<sql id="selectDictDataVo">
|
|
|
select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark
|
|
|
- from sys_dict_data
|
|
|
+ from PHM.SYS_DICT_DATA
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectDictDataList" parameterType="SysDictData" resultMap="SysDictDataResult">
|
|
@@ -47,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="selectDictLabel" resultType="String">
|
|
|
- select dict_label from sys_dict_data
|
|
|
+ select dict_label from PHM.SYS_DICT_DATA
|
|
|
where dict_type = #{dictType} and dict_value = #{dictValue}
|
|
|
</select>
|
|
|
|
|
@@ -57,22 +57,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="countDictDataByType" resultType="Integer">
|
|
|
- select count(1) from sys_dict_data where dict_type=#{dictType}
|
|
|
+ select count(1) from PHM.SYS_DICT_DATA where dict_type=#{dictType}
|
|
|
</select>
|
|
|
|
|
|
<delete id="deleteDictDataById" parameterType="Long">
|
|
|
- delete from sys_dict_data where dict_code = #{dictCode}
|
|
|
+ delete from PHM.SYS_DICT_DATA where dict_code = #{dictCode}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteDictDataByIds" parameterType="Long">
|
|
|
- delete from sys_dict_data where dict_code in
|
|
|
+ delete from PHM.SYS_DICT_DATA where dict_code in
|
|
|
<foreach collection="array" item="dictCode" open="(" separator="," close=")">
|
|
|
#{dictCode}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
|
|
|
<update id="updateDictData" parameterType="SysDictData">
|
|
|
- update sys_dict_data
|
|
|
+ update PHM.SYS_DICT_DATA
|
|
|
<set>
|
|
|
<if test="dictSort != null">dict_sort = #{dictSort},</if>
|
|
|
<if test="dictLabel != null and dictLabel != ''">dict_label = #{dictLabel},</if>
|
|
@@ -90,11 +90,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</update>
|
|
|
|
|
|
<update id="updateDictDataType" parameterType="String">
|
|
|
- update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
|
|
|
+ update PHM.SYS_DICT_DATA set dict_type = #{newDictType} where dict_type = #{oldDictType}
|
|
|
</update>
|
|
|
|
|
|
<insert id="insertDictData" parameterType="SysDictData">
|
|
|
- insert into sys_dict_data(
|
|
|
+ insert into PHM.SYS_DICT_DATA(
|
|
|
<if test="dictSort != null">dict_sort,</if>
|
|
|
<if test="dictLabel != null and dictLabel != ''">dict_label,</if>
|
|
|
<if test="dictValue != null and dictValue != ''">dict_value,</if>
|