代码提交
This commit is contained in:
parent
78d24309d1
commit
2f8efff6c3
|
|
@ -342,7 +342,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
dkfcm.classify_mark_name AS classifyMarkName
|
||||
FROM
|
||||
record_da_ky_pro_files_contents dkpfc
|
||||
LEFT JOIN da_ky_sys_dict_data dksdd ON dkpfc.mark_code = dksdd.dict_value
|
||||
LEFT JOIN record_da_ky_sys_dict_data dksdd ON dkpfc.mark_code = dksdd.dict_value
|
||||
AND dksdd.dict_type = 'mark_code'
|
||||
LEFT JOIN record_da_ky_files_classify_mark dkfcm ON dkpfc.classify_mark = dkfcm.id
|
||||
LEFT JOIN da_ky_sys_file_source dkfs ON dkpfc.id = dkfs.business_id
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<select id="getParenList" resultType="org.springblade.common.core.domain.entity.KyDataClassifyVo">
|
||||
select dict_value as code,dict_label as name
|
||||
from da_ky_sys_dict_data where dict_type = 'file_share_collect' and status='0'
|
||||
from record_da_ky_sys_dict_data where dict_type = 'file_share_collect' and status='0'
|
||||
</select>
|
||||
<select id="listAll" resultType="org.springblade.common.core.domain.entity.KyDataClassify">
|
||||
select id,data_type_name
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
dkfcns.update_user_name AS updateUserName,
|
||||
dkfcns.del_flag AS delFlag
|
||||
FROM record_da_ky_files_classify_name_standard dkfcns
|
||||
LEFT JOIN da_ky_sys_dict_data dksdd ON dkfcns.standard_type = dksdd.dict_value and dksdd.dict_type = 'files_classify_name_standard_type'
|
||||
LEFT JOIN record_da_ky_sys_dict_data dksdd ON dkfcns.standard_type = dksdd.dict_value and dksdd.dict_type = 'files_classify_name_standard_type'
|
||||
WHERE dkfcns.del_flag = '1'
|
||||
<if test="standardType != null and standardType != ''">
|
||||
AND dksdd.dict_value = #{standardType}
|
||||
|
|
|
|||
|
|
@ -44,8 +44,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
select dkfmc.id,dkfmc.classify_name,dkfmc.dimension,dkfmc.classify_desc,dkfmc.update_time,
|
||||
dkfmc.update_user_id,dkfmc.update_user_name,dksdd.dict_label as dictLabel,dksdd2.dict_label as fileRelated,dksdd2.dict_value as fileRelatedId
|
||||
from record_da_ky_files_multi_classify dkfmc
|
||||
left join da_ky_sys_dict_data dksdd on dkfmc.dimension = dksdd.dict_value and dksdd.dict_type = 'dimension'
|
||||
left join da_ky_sys_dict_data dksdd2 on dkfmc.file_related = dksdd2.dict_value and dksdd2.dict_type = 'file_related_type'
|
||||
left join record_da_ky_sys_dict_data dksdd on dkfmc.dimension = dksdd.dict_value and dksdd.dict_type = 'dimension'
|
||||
left join record_da_ky_sys_dict_data dksdd2 on dkfmc.file_related = dksdd2.dict_value and dksdd2.dict_type = 'file_related_type'
|
||||
where dkfmc.del_flag='1'
|
||||
<if test="classifyName!=null">
|
||||
AND INSTR(classify_name, #{classifyName}) > 0
|
||||
|
|
@ -62,8 +62,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
select dkfmc.id,dkfmc.classify_name,dkfmc.dimension,dkfmc.classify_desc,dkfmc.update_time,
|
||||
dkfmc.update_user_id,dkfmc.update_user_name,dksdd.dict_label as dictLabel,dksdd2.dict_label as fileRelated,dksdd2.dict_value as fileRelatedId
|
||||
from record_da_ky_files_multi_classify dkfmc
|
||||
left join da_ky_sys_dict_data dksdd on dkfmc.dimension = dksdd.dict_value and dksdd.dict_type = 'dimension'
|
||||
left join da_ky_sys_dict_data dksdd2 on dkfmc.file_related = dksdd2.dict_value and dksdd2.dict_type = 'file_related_type'
|
||||
left join record_da_ky_sys_dict_data dksdd on dkfmc.dimension = dksdd.dict_value and dksdd.dict_type = 'dimension'
|
||||
left join record_da_ky_sys_dict_data dksdd2 on dkfmc.file_related = dksdd2.dict_value and dksdd2.dict_type = 'file_related_type'
|
||||
where dkfmc.del_flag='1' and dkfmc.id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
dkdc.update_time as updateTime, dkdc.update_user_id as createUserId,
|
||||
dkdc.update_user_name as updateUserName,dksdd.dict_label as pName,dksdd.dict_value as pid
|
||||
from record_da_ky_data_classify dkdc
|
||||
left join da_ky_sys_dict_data dksdd on dkdc.pid =dksdd.dict_value
|
||||
left join record_da_ky_sys_dict_data dksdd on dkdc.pid =dksdd.dict_value
|
||||
where del_flag='1'
|
||||
<if test="dataTypeName!=null">
|
||||
AND INSTR(data_type_name, #{dataTypeName}) > 0
|
||||
|
|
@ -61,14 +61,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</select>
|
||||
<select id="getParenList" resultType="org.springblade.common.core.domain.entity.KyDataClassifyVo">
|
||||
select dict_value as code,dict_label as name
|
||||
from da_ky_sys_dict_data where dict_type = 'data_class_type' and status='0'
|
||||
from record_da_ky_sys_dict_data where dict_type = 'data_class_type' and status='0'
|
||||
</select>
|
||||
<select id="getById" resultType="org.springblade.common.core.domain.entity.KyDataClassify">
|
||||
select dkdc.id as id ,dkdc.data_type_name as dataTypeName,dkdc.remark as remark,
|
||||
dkdc.update_time as updateTime, dkdc.update_user_id as createUserId,
|
||||
dkdc.update_user_name as updateUserName,dksdd.dict_label as pName,dksdd.dict_value as pid
|
||||
from record_da_ky_data_classify dkdc
|
||||
left join da_ky_sys_dict_data dksdd on dkdc.pid =dksdd.dict_value
|
||||
left join record_da_ky_sys_dict_data dksdd on dkdc.pid =dksdd.dict_value
|
||||
where del_flag='1' and dkdc.id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -70,9 +70,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
dksdd3.dict_label proStatusName
|
||||
FROM
|
||||
record_da_ky_project dkp
|
||||
LEFT JOIN da_ky_sys_dict_data dksdd ON dkp.pro_type = dksdd.dict_value and dksdd.dict_type = 'pro_type'
|
||||
LEFT JOIN da_ky_sys_dict_data dksdd2 ON dkp.voltage_level = dksdd2.dict_value and dksdd2.dict_type = 'voltage_level'
|
||||
LEFT JOIN da_ky_sys_dict_data dksdd3 ON dkp.pro_status = dksdd3.dict_value and dksdd3.dict_type = 'pro_status'
|
||||
LEFT JOIN record_da_ky_sys_dict_data dksdd ON dkp.pro_type = dksdd.dict_value and dksdd.dict_type = 'pro_type'
|
||||
LEFT JOIN record_da_ky_sys_dict_data dksdd2 ON dkp.voltage_level = dksdd2.dict_value and dksdd2.dict_type = 'voltage_level'
|
||||
LEFT JOIN record_da_ky_sys_dict_data dksdd3 ON dkp.pro_status = dksdd3.dict_value and dksdd3.dict_type = 'pro_status'
|
||||
WHERE
|
||||
dkp.del_flag = '1'
|
||||
<if test="singleProName != null and singleProName != ''">
|
||||
|
|
|
|||
|
|
@ -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 da_ky_sys_dict_data
|
||||
from record_da_ky_sys_dict_data
|
||||
</sql>
|
||||
|
||||
<select id="selectDictDataList" parameterType="org.springblade.common.core.domain.entity.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 da_ky_sys_dict_data
|
||||
select dict_label from record_da_ky_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 da_ky_sys_dict_data where dict_type=#{dictType}
|
||||
select count(1) from record_da_ky_sys_dict_data where dict_type=#{dictType}
|
||||
</select>
|
||||
|
||||
<delete id="deleteDictDataById" parameterType="Long">
|
||||
delete from da_ky_sys_dict_data where dict_code = #{dictCode}
|
||||
delete from record_da_ky_sys_dict_data where dict_code = #{dictCode}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDictDataByIds" parameterType="Long">
|
||||
delete from da_ky_sys_dict_data where dict_code in
|
||||
delete from record_da_ky_sys_dict_data where dict_code in
|
||||
<foreach collection="array" item="dictCode" open="(" separator="," close=")">
|
||||
#{dictCode}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<update id="updateDictData" parameterType="org.springblade.common.core.domain.entity.SysDictData">
|
||||
update da_ky_sys_dict_data
|
||||
update record_da_ky_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 da_ky_sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
|
||||
update record_da_ky_sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
|
||||
</update>
|
||||
|
||||
<insert id="insertDictData" parameterType="org.springblade.common.core.domain.entity.SysDictData">
|
||||
insert into da_ky_sys_dict_data(
|
||||
insert into record_da_ky_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>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<sql id="selectDictTypeVo">
|
||||
select dict_id, dict_name, dict_type, status, create_by, create_time, remark
|
||||
from da_ky_sys_dict_type
|
||||
from record_da_ky_sys_dict_type
|
||||
</sql>
|
||||
|
||||
<select id="selectDictTypeList" parameterType="org.springblade.common.core.domain.entity.SysDictType" resultMap="SysDictTypeResult">
|
||||
|
|
@ -61,18 +61,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</select>
|
||||
|
||||
<delete id="deleteDictTypeById" parameterType="Long">
|
||||
delete from da_ky_sys_dict_type where dict_id = #{dictId}
|
||||
delete from record_da_ky_sys_dict_type where dict_id = #{dictId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDictTypeByIds" parameterType="Long">
|
||||
delete from da_ky_sys_dict_type where dict_id in
|
||||
delete from record_da_ky_sys_dict_type where dict_id in
|
||||
<foreach collection="array" item="dictId" open="(" separator="," close=")">
|
||||
#{dictId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<update id="updateDictType" parameterType="org.springblade.common.core.domain.entity.SysDictType">
|
||||
update da_ky_sys_dict_type
|
||||
update record_da_ky_sys_dict_type
|
||||
<set>
|
||||
<if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
|
||||
<if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
|
||||
|
|
@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</update>
|
||||
|
||||
<insert id="insertDictType" parameterType="org.springblade.common.core.domain.entity.SysDictType">
|
||||
insert into da_ky_sys_dict_type(
|
||||
insert into record_da_ky_sys_dict_type(
|
||||
<if test="dictName != null and dictName != ''">dict_name,</if>
|
||||
<if test="dictType != null and dictType != ''">dict_type,</if>
|
||||
<if test="status != null">status,</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue