#update
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.AppLanguageMapper">
|
||||
<mapper namespace="com.maibu.mapper.AppLanguageMapper">
|
||||
|
||||
<resultMap type="com.fastbee.system.domain.AppLanguage" id="AppLanguageResult">
|
||||
<resultMap type="com.maibu.domain.AppLanguage" id="AppLanguageResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="language" column="language" />
|
||||
<result property="country" column="country" />
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.AppPreferencesMapper">
|
||||
<mapper namespace="com.maibu.mapper.AppPreferencesMapper">
|
||||
|
||||
<resultMap type="com.fastbee.system.domain.AppPreferences" id="AppPreferencesResult">
|
||||
<resultMap type="com.maibu.domain.AppPreferences" id="AppPreferencesResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="language" column="language" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysClientMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysClientMapper">
|
||||
|
||||
<resultMap type="SysClient" id="SysClientResult">
|
||||
<result property="id" column="id" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysConfigMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysConfigMapper">
|
||||
|
||||
<resultMap type="SysConfig" id="SysConfigResult">
|
||||
<id property="configId" column="config_id" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysDeptMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysDeptMapper">
|
||||
|
||||
<resultMap type="SysDept" id="SysDeptResult">
|
||||
<id property="deptId" column="dept_id" />
|
||||
|
||||
@@ -1,211 +1,270 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysDictDataMapper">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.maibu.mapper.SysDictDataMapper">
|
||||
|
||||
<resultMap type="com.fastbee.common.core.domain.entity.SysDictData" id="SysDictDataResult">
|
||||
<id property="dictCode" column="dict_code" />
|
||||
<result property="dictSort" column="dict_sort" />
|
||||
<result property="dictLabel" column="dict_label" />
|
||||
<result property="dictLabel_zh_CN" column="dict_label_zh_cn" />
|
||||
<result property="dictLabel_en_US" column="dict_label_en_us" />
|
||||
<result property="dictValue" column="dict_value" />
|
||||
<result property="dictType" column="dict_type" />
|
||||
<result property="cssClass" column="css_class" />
|
||||
<result property="listClass" column="list_class" />
|
||||
<result property="isDefault" column="is_default" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
<resultMap type="com.maibu.core.domain.entity.SysDictData" id="SysDictDataResult">
|
||||
<id property="dictCode" column="dict_code"/>
|
||||
<result property="dictSort" column="dict_sort"/>
|
||||
<result property="dictLabel" column="dict_label"/>
|
||||
<result property="dictLabel_zh_CN" column="dict_label_zh_cn"/>
|
||||
<result property="dictLabel_en_US" column="dict_label_en_us"/>
|
||||
<result property="dictValue" column="dict_value"/>
|
||||
<result property="dictType" column="dict_type"/>
|
||||
<result property="cssClass" column="css_class"/>
|
||||
<result property="listClass" column="list_class"/>
|
||||
<result property="isDefault" column="is_default"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<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
|
||||
</sql>
|
||||
<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
|
||||
</sql>
|
||||
|
||||
<select id="selectDictDataList" parameterType="com.fastbee.common.core.domain.entity.SysDictData" resultMap="SysDictDataResult">
|
||||
select d.dict_code, d.dict_sort,
|
||||
case
|
||||
when #{language} = 'zh-CN' then d.dict_label
|
||||
when #{language} = 'en-US' then t.en_us
|
||||
else d.dict_label
|
||||
end as dict_label,
|
||||
d.dict_value, d.dict_type, d.css_class, d.list_class, d.is_default, d.status, d.create_by, d.create_time, d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
<where>
|
||||
<if test="dictType != null and dictType != ''">
|
||||
AND d.dict_type = #{dictType}
|
||||
</if>
|
||||
<if test="dictLabel != null and dictLabel != ''">
|
||||
AND d.dict_label like concat('%', #{dictLabel}, '%')
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
AND d.status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
order by d.dict_sort asc
|
||||
</select>
|
||||
<select id="selectDictDataList" parameterType="com.fastbee.common.core.domain.entity.SysDictData"
|
||||
resultMap="SysDictDataResult">
|
||||
select d.dict_code, d.dict_sort,
|
||||
case
|
||||
when #{language} = 'zh-CN' then d.dict_label
|
||||
when #{language} = 'en-US' then t.en_us
|
||||
else d.dict_label
|
||||
end as dict_label,
|
||||
d.dict_value, d.dict_type, d.css_class, d.list_class, d.is_default, d.status, d.create_by, d.create_time,
|
||||
d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
<where>
|
||||
<if test="dictType != null and dictType != ''">
|
||||
AND d.dict_type = #{dictType}
|
||||
</if>
|
||||
<if test="dictLabel != null and dictLabel != ''">
|
||||
AND d.dict_label like concat('%', #{dictLabel}, '%')
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
AND d.status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
order by d.dict_sort asc
|
||||
</select>
|
||||
|
||||
<select id="selectDictDataListAll" parameterType="com.fastbee.common.core.domain.entity.SysDictData" resultMap="SysDictDataResult">
|
||||
select d.dict_code, d.dict_sort, d.dict_label, t.zh_cn as dict_label_zh_cn, t.en_us as dict_label_en_us,
|
||||
d.dict_value, d.dict_type, d.css_class, d.list_class, d.is_default, d.status, d.create_by, d.create_time, d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
<where>
|
||||
<if test="dictType != null and dictType != ''">
|
||||
AND d.dict_type = #{dictType}
|
||||
</if>
|
||||
<if test="dictLabel != null and dictLabel != ''">
|
||||
AND d.dict_label like concat('%', #{dictLabel}, '%')
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
AND d.status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
order by d.dict_sort asc
|
||||
</select>
|
||||
<select id="selectDictDataListAll" parameterType="com.fastbee.common.core.domain.entity.SysDictData"
|
||||
resultMap="SysDictDataResult">
|
||||
select d.dict_code, d.dict_sort, d.dict_label, t.zh_cn as dict_label_zh_cn, t.en_us as dict_label_en_us,
|
||||
d.dict_value, d.dict_type, d.css_class, d.list_class, d.is_default, d.status, d.create_by, d.create_time,
|
||||
d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
<where>
|
||||
<if test="dictType != null and dictType != ''">
|
||||
AND d.dict_type = #{dictType}
|
||||
</if>
|
||||
<if test="dictLabel != null and dictLabel != ''">
|
||||
AND d.dict_label like concat('%', #{dictLabel}, '%')
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
AND d.status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
order by d.dict_sort asc
|
||||
</select>
|
||||
|
||||
<select id="selectDictDataByType" parameterType="com.fastbee.common.core.domain.entity.SysDictData" resultMap="SysDictDataResult">
|
||||
select d.dict_code, d.dict_sort, d.dict_label, t.zh_cn as dict_label_zh_cn, t.en_us as dict_label_en_us,
|
||||
d.dict_value, d.dict_type, d.css_class, d.list_class, d.is_default, d.status, d.create_by, d.create_time, d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
where d.status = '0' and d.dict_type = #{dictType} order by d.dict_sort asc
|
||||
</select>
|
||||
<select id="selectDictDataByType" parameterType="com.fastbee.common.core.domain.entity.SysDictData"
|
||||
resultMap="SysDictDataResult">
|
||||
select d.dict_code,
|
||||
d.dict_sort,
|
||||
d.dict_label,
|
||||
t.zh_cn as dict_label_zh_cn,
|
||||
t.en_us as dict_label_en_us,
|
||||
d.dict_value,
|
||||
d.dict_type,
|
||||
d.css_class,
|
||||
d.list_class,
|
||||
d.is_default,
|
||||
d.status,
|
||||
d.create_by,
|
||||
d.create_time,
|
||||
d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
where d.status = '0'
|
||||
and d.dict_type = #{dictType}
|
||||
order by d.dict_sort asc
|
||||
</select>
|
||||
|
||||
<select id="selectDictLabel" resultType="java.lang.String">
|
||||
select dict_label from sys_dict_data
|
||||
where dict_type = #{dictType} and dict_value = #{dictValue}
|
||||
</select>
|
||||
<select id="selectDictLabel" resultType="java.lang.String">
|
||||
select dict_label
|
||||
from sys_dict_data
|
||||
where dict_type = #{dictType}
|
||||
and dict_value = #{dictValue}
|
||||
</select>
|
||||
|
||||
<select id="selectDictDataById" resultMap="SysDictDataResult">
|
||||
select d.dict_code, d.dict_sort,
|
||||
case
|
||||
when #{language} = 'zh-CN' then d.dict_label
|
||||
when #{language} = 'en-US' then t.en_us
|
||||
else d.dict_label
|
||||
end as dict_label,
|
||||
d.dict_value, d.dict_type, d.css_class, d.list_class, d.is_default, d.status, d.create_by, d.create_time, d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
where d.dict_code = #{dictCode}
|
||||
</select>
|
||||
<select id="selectDictDataById" resultMap="SysDictDataResult">
|
||||
select d.dict_code,
|
||||
d.dict_sort,
|
||||
case
|
||||
when #{language} = 'zh-CN' then d.dict_label
|
||||
when #{language} = 'en-US' then t.en_us
|
||||
else d.dict_label
|
||||
end as dict_label,
|
||||
d.dict_value,
|
||||
d.dict_type,
|
||||
d.css_class,
|
||||
d.list_class,
|
||||
d.is_default,
|
||||
d.status,
|
||||
d.create_by,
|
||||
d.create_time,
|
||||
d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
where d.dict_code = #{dictCode}
|
||||
</select>
|
||||
|
||||
<select id="countDictDataByType" resultType="Integer">
|
||||
select count(1) from sys_dict_data where dict_type=#{dictType}
|
||||
</select>
|
||||
<select id="countDictDataByType" resultType="Integer">
|
||||
select count(1)
|
||||
from sys_dict_data
|
||||
where dict_type = #{dictType}
|
||||
</select>
|
||||
|
||||
<select id="selectDictDataListByDictTypes" resultType="com.fastbee.common.core.domain.entity.SysDictData">
|
||||
select d.dict_code, d.dict_sort,
|
||||
case
|
||||
when #{language} = 'zh-CN' then d.dict_label
|
||||
when #{language} = 'en-US' then t.en_us
|
||||
else d.dict_label
|
||||
end as dict_label,
|
||||
d.dict_value, d.dict_type, d.css_class, d.list_class, d.is_default, d.status, d.create_by, d.create_time, d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
where d.dict_type in
|
||||
<foreach collection="dictTypeList" item="dictType" open="(" separator="," close=")">
|
||||
#{dictType}
|
||||
</foreach>
|
||||
and d.status = 0
|
||||
</select>
|
||||
<select id="selectDictDataListByDictTypes" resultType="com.fastbee.common.core.domain.entity.SysDictData">
|
||||
select d.dict_code, d.dict_sort,
|
||||
case
|
||||
when #{language} = 'zh-CN' then d.dict_label
|
||||
when #{language} = 'en-US' then t.en_us
|
||||
else d.dict_label
|
||||
end as dict_label,
|
||||
d.dict_value, d.dict_type, d.css_class, d.list_class, d.is_default, d.status, d.create_by, d.create_time,
|
||||
d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
where d.dict_type in
|
||||
<foreach collection="dictTypeList" item="dictType" open="(" separator="," close=")">
|
||||
#{dictType}
|
||||
</foreach>
|
||||
and d.status = 0
|
||||
</select>
|
||||
|
||||
<delete id="deleteDictDataById" parameterType="Long">
|
||||
delete from sys_dict_data where dict_code = #{dictCode}
|
||||
</delete>
|
||||
<delete id="deleteDictDataById" parameterType="Long">
|
||||
delete
|
||||
from sys_dict_data
|
||||
where dict_code = #{dictCode}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDictDataByIds" parameterType="Long">
|
||||
delete from sys_dict_data where dict_code in
|
||||
<foreach collection="array" item="dictCode" open="(" separator="," close=")">
|
||||
#{dictCode}
|
||||
</foreach>
|
||||
</delete>
|
||||
<delete id="deleteDictDataByIds" parameterType="Long">
|
||||
delete from sys_dict_data where dict_code in
|
||||
<foreach collection="array" item="dictCode" open="(" separator="," close=")">
|
||||
#{dictCode}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<update id="updateDictData" parameterType="com.fastbee.common.core.domain.entity.SysDictData">
|
||||
update sys_dict_data
|
||||
<set>
|
||||
<if test="dictSort != null">dict_sort = #{dictSort},</if>
|
||||
<if test="dictLabel != null and dictLabel != ''">dict_label = #{dictLabel},</if>
|
||||
<if test="dictValue != null and dictValue != ''">dict_value = #{dictValue},</if>
|
||||
<if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
|
||||
<if test="cssClass != null">css_class = #{cssClass},</if>
|
||||
<if test="listClass != null">list_class = #{listClass},</if>
|
||||
<if test="isDefault != null and isDefault != ''">is_default = #{isDefault},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
update_time = sysdate()
|
||||
</set>
|
||||
where dict_code = #{dictCode}
|
||||
</update>
|
||||
<update id="updateDictData" parameterType="com.fastbee.common.core.domain.entity.SysDictData">
|
||||
update sys_dict_data
|
||||
<set>
|
||||
<if test="dictSort != null">dict_sort = #{dictSort},</if>
|
||||
<if test="dictLabel != null and dictLabel != ''">dict_label = #{dictLabel},</if>
|
||||
<if test="dictValue != null and dictValue != ''">dict_value = #{dictValue},</if>
|
||||
<if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
|
||||
<if test="cssClass != null">css_class = #{cssClass},</if>
|
||||
<if test="listClass != null">list_class = #{listClass},</if>
|
||||
<if test="isDefault != null and isDefault != ''">is_default = #{isDefault},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
update_time = sysdate()
|
||||
</set>
|
||||
where dict_code = #{dictCode}
|
||||
</update>
|
||||
|
||||
<update id="updateDictDataType" parameterType="String">
|
||||
update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
|
||||
</update>
|
||||
<update id="updateDictDataType" parameterType="String">
|
||||
update sys_dict_data
|
||||
set dict_type = #{newDictType}
|
||||
where dict_type = #{oldDictType}
|
||||
</update>
|
||||
|
||||
<insert id="insertDictData" parameterType="com.fastbee.common.core.domain.entity.SysDictData">
|
||||
insert into 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>
|
||||
<if test="dictType != null and dictType != ''">dict_type,</if>
|
||||
<if test="cssClass != null and cssClass != ''">css_class,</if>
|
||||
<if test="listClass != null and listClass != ''">list_class,</if>
|
||||
<if test="isDefault != null and isDefault != ''">is_default,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
create_time
|
||||
)values(
|
||||
<if test="dictSort != null">#{dictSort},</if>
|
||||
<if test="dictLabel != null and dictLabel != ''">#{dictLabel},</if>
|
||||
<if test="dictValue != null and dictValue != ''">#{dictValue},</if>
|
||||
<if test="dictType != null and dictType != ''">#{dictType},</if>
|
||||
<if test="cssClass != null and cssClass != ''">#{cssClass},</if>
|
||||
<if test="listClass != null and listClass != ''">#{listClass},</if>
|
||||
<if test="isDefault != null and isDefault != ''">#{isDefault},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertDictData" parameterType="com.fastbee.common.core.domain.entity.SysDictData">
|
||||
insert into 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>
|
||||
<if test="dictType != null and dictType != ''">dict_type,</if>
|
||||
<if test="cssClass != null and cssClass != ''">css_class,</if>
|
||||
<if test="listClass != null and listClass != ''">list_class,</if>
|
||||
<if test="isDefault != null and isDefault != ''">is_default,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
create_time
|
||||
)values(
|
||||
<if test="dictSort != null">#{dictSort},</if>
|
||||
<if test="dictLabel != null and dictLabel != ''">#{dictLabel},</if>
|
||||
<if test="dictValue != null and dictValue != ''">#{dictValue},</if>
|
||||
<if test="dictType != null and dictType != ''">#{dictType},</if>
|
||||
<if test="cssClass != null and cssClass != ''">#{cssClass},</if>
|
||||
<if test="listClass != null and listClass != ''">#{listClass},</if>
|
||||
<if test="isDefault != null and isDefault != ''">#{isDefault},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<select id="selectByDictTypeAndDictValue" resultType="com.fastbee.common.core.domain.entity.SysDictData">
|
||||
select d.dict_code, d.dict_sort,
|
||||
case
|
||||
when #{language} = 'zh-CN' then d.dict_label
|
||||
when #{language} = 'en-US' then t.en_us
|
||||
else d.dict_label
|
||||
end as dict_label,
|
||||
d.dict_value, d.dict_type, d.css_class, d.list_class, d.is_default, d.status, d.create_by, d.create_time, d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
where d.dict_type = #{dictType} and d.dict_value = #{dictValue}
|
||||
</select>
|
||||
<select id="selectByDictTypeAndDictValue" resultType="com.fastbee.common.core.domain.entity.SysDictData">
|
||||
select d.dict_code,
|
||||
d.dict_sort,
|
||||
case
|
||||
when #{language} = 'zh-CN' then d.dict_label
|
||||
when #{language} = 'en-US' then t.en_us
|
||||
else d.dict_label
|
||||
end as dict_label,
|
||||
d.dict_value,
|
||||
d.dict_type,
|
||||
d.css_class,
|
||||
d.list_class,
|
||||
d.is_default,
|
||||
d.status,
|
||||
d.create_by,
|
||||
d.create_time,
|
||||
d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
where d.dict_type = #{dictType}
|
||||
and d.dict_value = #{dictValue}
|
||||
</select>
|
||||
|
||||
<select id="listByDictTypeAndDictValue" resultType="com.fastbee.common.core.domain.entity.SysDictData">
|
||||
select d.dict_code, d.dict_sort,
|
||||
case
|
||||
when #{language} = 'zh-CN' then d.dict_label
|
||||
when #{language} = 'en-US' then t.en_us
|
||||
else d.dict_label
|
||||
end as dict_label,
|
||||
d.dict_value, d.dict_type, d.css_class, d.list_class, d.is_default, d.status, d.create_by, d.create_time, d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
where d.dict_type = #{dictType}
|
||||
and d.dict_value in
|
||||
<foreach collection="dictValueList" item="dictValue" open="(" separator="," close=")">
|
||||
#{dictValue}
|
||||
</foreach>
|
||||
</select>
|
||||
<select id="listByDictTypeAndDictValue" resultType="com.fastbee.common.core.domain.entity.SysDictData">
|
||||
select d.dict_code, d.dict_sort,
|
||||
case
|
||||
when #{language} = 'zh-CN' then d.dict_label
|
||||
when #{language} = 'en-US' then t.en_us
|
||||
else d.dict_label
|
||||
end as dict_label,
|
||||
d.dict_value, d.dict_type, d.css_class, d.list_class, d.is_default, d.status, d.create_by, d.create_time,
|
||||
d.remark
|
||||
from sys_dict_data d
|
||||
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||
where d.dict_type = #{dictType}
|
||||
and d.dict_value in
|
||||
<foreach collection="dictValueList" item="dictValue" open="(" separator="," close=")">
|
||||
#{dictValue}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysDictTypeMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysDictTypeMapper">
|
||||
|
||||
<resultMap type="com.fastbee.common.core.domain.entity.SysDictType" id="SysDictTypeResult">
|
||||
<resultMap type="com.maibu.core.domain.entity.SysDictType" id="SysDictTypeResult">
|
||||
<id property="dictId" column="dict_id" />
|
||||
<result property="dictName" column="dict_name" />
|
||||
<result property="dictType" column="dict_type" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysLogininforMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysLogininforMapper">
|
||||
|
||||
<resultMap type="SysLogininfor" id="SysLogininforResult">
|
||||
<id property="infoId" column="info_id" />
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysMenuMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysMenuMapper">
|
||||
|
||||
<resultMap type="com.fastbee.common.core.domain.entity.SysMenu" id="SysMenuResult">
|
||||
<resultMap type="com.maibu.core.domain.entity.SysMenu" id="SysMenuResult">
|
||||
<id property="menuId" column="menu_id" />
|
||||
<result property="menuName" column="menu_name" />
|
||||
<result property="parentName" column="parent_name" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysNoticeMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysNoticeMapper">
|
||||
|
||||
<resultMap type="SysNotice" id="SysNoticeResult">
|
||||
<result property="noticeId" column="notice_id" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysOperLogMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysOperLogMapper">
|
||||
|
||||
<resultMap type="SysOperLog" id="SysOperLogResult">
|
||||
<id property="operId" column="oper_id" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysPostMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysPostMapper">
|
||||
|
||||
<resultMap type="SysPost" id="SysPostResult">
|
||||
<id property="postId" column="post_id" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysRoleDeptMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysRoleDeptMapper">
|
||||
|
||||
<resultMap type="SysRoleDept" id="SysRoleDeptResult">
|
||||
<result property="roleId" column="role_id" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysRoleMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysRoleMapper">
|
||||
|
||||
<resultMap type="SysRole" id="SysRoleResult">
|
||||
<id property="roleId" column="role_id" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysRoleMenuMapper">
|
||||
<mapper namespace="com.miabu.mapper.SysRoleMenuMapper">
|
||||
|
||||
<resultMap type="SysRoleMenu" id="SysRoleMenuResult">
|
||||
<result property="roleId" column="role_id" />
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysTranslateMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysTranslateMapper">
|
||||
|
||||
<resultMap type="com.fastbee.common.core.domain.entity.SysTranslate" id="SysTranslateResult">
|
||||
<resultMap type="com.maibu.core.domain.entity.SysTranslate" id="SysTranslateResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="zh_CN" column="zh_cn" />
|
||||
<result property="en_US" column="en_us" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysUserClientMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysUserClientMapper">
|
||||
|
||||
<update id="updateById">
|
||||
update sys_user_client
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysUserMapper">
|
||||
<mapper namespace="com.miabu.mapper.SysUserMapper">
|
||||
|
||||
<resultMap type="com.fastbee.common.core.domain.entity.SysUser" id="SysUserResult">
|
||||
<resultMap type="com.maibu.core.domain.entity.SysUser" id="SysUserResult">
|
||||
<id property="userId" column="user_id"/>
|
||||
<result property="deptId" column="dept_id"/>
|
||||
<result property="userName" column="user_name"/>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysUserPostMapper">
|
||||
<mapper namespace="com.maibu.mapper.SysUserPostMapper">
|
||||
|
||||
<resultMap type="SysUserPost" id="SysUserPostResult">
|
||||
<result property="userId" column="user_id" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fastbee.system.mapper.SysUserRoleMapper">
|
||||
<mapper namespace="com.miabu.mapper.SysUserRoleMapper">
|
||||
|
||||
<resultMap type="SysUserRole" id="SysUserRoleResult">
|
||||
<result property="userId" column="user_id" />
|
||||
|
||||
Reference in New Issue
Block a user