zhongrj
2025-02-11 b1e8a099eb3117bcbd5f2e0c9a2eb0accabd8cbf
src/main/java/org/springblade/modules/yw/mapper/IndParkInfoMapper.xml
New file
@@ -0,0 +1,40 @@
<?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="org.springblade.modules.yw.mapper.IndParkInfoMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="indParkInfoResultMap" type="org.springblade.modules.yw.entity.IndParkInfoEntity">
        <result column="id" property="id"/>
        <result column="name" property="name"/>
        <result column="level" property="level"/>
        <result column="lng" property="lng"/>
        <result column="lat" property="lat"/>
        <result column="area_code" property="areaCode"/>
        <result column="address" property="address"/>
        <result column="remark" property="remark"/>
        <result column="lea_ind" property="leaInd"/>
        <result column="acc_sure_year" property="accSureYear"/>
        <result column="pla_area" property="plaArea"/>
        <result column="fil_time" property="filTime"/>
        <result column="create_user" property="createUser"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user" property="updateUser"/>
        <result column="update_time" property="updateTime"/>
        <result column="is_deleted" property="isDeleted"/>
    </resultMap>
    <!--自定义分页查询-->
    <select id="selectIndParkInfoPage" resultMap="indParkInfoResultMap">
        select * from yw_ind_park_info where is_deleted = 0
    </select>
    <!--详情查询-->
    <select id="getDetail" resultType="org.springblade.modules.yw.vo.IndParkInfoVO">
        select
            yipi.*,bdb.dict_value as parkLevel
        from yw_ind_park_info yipi
                 left join blade_dict_biz bdb on bdb.dict_key = yipi.level and bdb.code = 'ind_park_level'
        where yipi.is_deleted = 0
    </select>
</mapper>