From 7728d8f1900a984dde8721f1f06e00eecc5a67de Mon Sep 17 00:00:00 2001 From: zhongrj <646384940@qq.com> Date: Fri, 21 Feb 2025 09:18:13 +0800 Subject: [PATCH] 修改配置 --- src/main/java/org/springblade/modules/yw/mapper/IndParkInfoMapper.xml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/src/main/java/org/springblade/modules/yw/mapper/IndParkInfoMapper.xml b/src/main/java/org/springblade/modules/yw/mapper/IndParkInfoMapper.xml new file mode 100644 index 0000000..ff2266b --- /dev/null +++ b/src/main/java/org/springblade/modules/yw/mapper/IndParkInfoMapper.xml @@ -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> -- Gitblit v1.9.3