查询项目的行政区域信息接口,项目相关管理接口逻辑完善,行政区划管理相关接口逻辑完善
This commit is contained in:
@ -14,10 +14,12 @@
|
||||
<result property="lng" column="lng" />
|
||||
<result property="lat" column="lat" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="mapOutline" column="map_outline" />
|
||||
<result property="mapOutlineUrl" column="map_outline_url" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysDistrictVo">
|
||||
select id, adcode, level, parent_id, name, full_name, lng, lat, del_flag from sys_district
|
||||
select id, adcode, level, parent_id, name, full_name, lng, lat, del_flag, map_outline, map_outline_url from sys_district
|
||||
</sql>
|
||||
|
||||
<select id="selectSysDistrictList" parameterType="SysDistrict" resultMap="SysDistrictResult">
|
||||
@ -30,6 +32,8 @@
|
||||
<if test="fullName != null and fullName != ''"> and full_name like concat('%', #{fullName}, '%')</if>
|
||||
<if test="lng != null "> and lng = #{lng}</if>
|
||||
<if test="lat != null "> and lat = #{lat}</if>
|
||||
<if test="mapOutline != null and mapOutline != ''"> and map_outline = #{mapOutline}</if>
|
||||
<if test="mapOutlineUrl != null and mapOutlineUrl != ''"> and map_outline_url = #{mapOutlineUrl}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@ -49,6 +53,8 @@
|
||||
<if test="lng != null">lng,</if>
|
||||
<if test="lat != null">lat,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="mapOutline != null">map_outline,</if>
|
||||
<if test="mapOutlineUrl != null">map_outline_url,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="adcode != null">#{adcode},</if>
|
||||
@ -59,6 +65,8 @@
|
||||
<if test="lng != null">#{lng},</if>
|
||||
<if test="lat != null">#{lat},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="mapOutline != null">#{mapOutline},</if>
|
||||
<if test="mapOutlineUrl != null">#{mapOutlineUrl},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@ -73,6 +81,8 @@
|
||||
<if test="lng != null">lng = #{lng},</if>
|
||||
<if test="lat != null">lat = #{lat},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="mapOutline != null">map_outline = #{mapOutline},</if>
|
||||
<if test="mapOutlineUrl != null">map_outline_url = #{mapOutlineUrl},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
Reference in New Issue
Block a user