cjl
2023-11-15 d117d3af15dddc4f07baffa8b5bf6b727c05de7c
screen-api/src/main/resources/mapper/AllocationMapper.xml
@@ -43,8 +43,12 @@
    <select id="extOne" resultType="com.moral.api.pojo.ext.allocation.AllocationExt">
        SELECT
        <include refid="Allocation_Column_List"/>
        <include refid="Allocation_Column_List"/>,t1.unit_name as unitName,t5.dataValue as polluteTypeName
        FROM allocation allocation
        left join responsibility_unit t1 on t1.unit_id = allocation.unit_id
        left join (SELECT t3.dataKey,t3.dataValue FROM sys_dict_data t3
        LEFT JOIN sys_dict_type t4 on t4.id = t3.dict_type_id
        where t4.name = 'contaminate') t5 on t5.dataKey = allocation.pollute_type
        where  allocation.allocation_id = #{id} and allocation.is_del = 0
    </select>