yuxc
2023-04-21 35a36f60cdbd9ef3bf2ab7be9f418f988c93c5eb
Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/DictMapper.xml
文件名从 Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/DictBizMapper.xml 修改
@@ -1,11 +1,10 @@
<?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.vci.ubcs.omd.mapper.DictBizMapper">
<mapper namespace="com.vci.ubcs.omd.mapper.DictMapper">
    <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
    <resultMap id="dictResultMap" type="com.vci.ubcs.omd.entity.DictBizM">
    <resultMap id="dictResultMap" type="com.vci.ubcs.omd.entity.Dict">
        <id column="id" property="id"/>
        <result column="tenant_id" property="tenantId"/>
        <result column="parent_id" property="parentId"/>
        <result column="code" property="code"/>
        <result column="dict_key" property="dictKey"/>
@@ -26,7 +25,7 @@
    <select id="getValue" resultType="java.lang.String">
        select
            dict_value
        from pl_sys_dict_biz where code = #{param1} and dict_key = #{param2} and is_deleted = 0
        from pl_sys_dict where code = #{param1} and dict_key = #{param2} and is_deleted = 0
    </select>
    <!-- oracle 鐗堟湰 -->
@@ -37,15 +36,15 @@
    </select>-->
    <select id="getList" resultMap="dictResultMap">
        select id, tenant_id, parent_id, code, dict_key, dict_value, sort, remark from pl_sys_dict_biz where code = #{param1} and parent_id > 0 and is_sealed = 0 and is_deleted = 0
        select id, parent_id, code, dict_key, dict_value, sort, remark from pl_sys_dict where code = #{param1} and parent_id > 0 and is_sealed = 0 and is_deleted = 0
    </select>
    <select id="tree" resultMap="treeNodeResultMap">
        select id, parent_id, dict_value as title, id as "value", id as "key" from pl_sys_dict_biz where is_deleted = 0
        select id, parent_id, dict_value as title, id as "value", id as "key" from pl_sys_dict where is_deleted = 0
    </select>
    <select id="parentTree" resultMap="treeNodeResultMap">
        select id, parent_id, dict_value as title, id as "value", id as "key" from pl_sys_dict_biz where is_deleted = 0 and parent_id = 0
        select id, parent_id, dict_value as title, id as "value", id as "key" from pl_sys_dict where is_deleted = 0 and parent_id = 0
    </select>
</mapper>