|
|
@ -24,11 +24,13 @@ |
|
|
<result column="geo_polygon" property="geoPolygon" jdbcType="LONGVARCHAR" /> |
|
|
<result column="geo_polygon" property="geoPolygon" jdbcType="LONGVARCHAR" /> |
|
|
<result column="area_kind" property="areaKind" jdbcType="INTEGER" /> |
|
|
<result column="area_kind" property="areaKind" jdbcType="INTEGER" /> |
|
|
<result column="express_errand_enabled" property="expressErrandEnabled" jdbcType="INTEGER" /> |
|
|
<result column="express_errand_enabled" property="expressErrandEnabled" jdbcType="INTEGER" /> |
|
|
|
|
|
<result column="errand_planet_visible" property="errandPlanetVisible" jdbcType="INTEGER" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Base_Column_List" > |
|
|
<sql id="Base_Column_List" > |
|
|
id, create_by, create_time, del_flag, update_by, update_time, is_parent, parent_id, |
|
|
id, create_by, create_time, del_flag, update_by, update_time, is_parent, parent_id, |
|
|
sort_order, status, title, is_canteen, delivery_enabled, parent_agent_id, parent_agent_name, |
|
|
sort_order, status, title, is_canteen, delivery_enabled, parent_agent_id, parent_agent_name, |
|
|
commission_ratio, center_lng, center_lat, radius_meters, geo_polygon, area_kind, express_errand_enabled |
|
|
commission_ratio, center_lng, center_lat, radius_meters, geo_polygon, area_kind, express_errand_enabled, |
|
|
|
|
|
errand_planet_visible |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > |
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > |
|
|
select |
|
|
select |
|
|
@ -45,14 +47,16 @@ |
|
|
del_flag, update_by, update_time, |
|
|
del_flag, update_by, update_time, |
|
|
is_parent, parent_id, sort_order, |
|
|
is_parent, parent_id, sort_order, |
|
|
status, title, is_canteen, delivery_enabled, parent_agent_id, parent_agent_name, |
|
|
status, title, is_canteen, delivery_enabled, parent_agent_id, parent_agent_name, |
|
|
commission_ratio, center_lng, center_lat, radius_meters, geo_polygon, area_kind, express_errand_enabled) |
|
|
commission_ratio, center_lng, center_lat, radius_meters, geo_polygon, area_kind, express_errand_enabled, |
|
|
|
|
|
errand_planet_visible) |
|
|
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
#{isParent,jdbcType=BIT}, #{parentId,jdbcType=VARCHAR}, #{sortOrder,jdbcType=DECIMAL}, |
|
|
#{isParent,jdbcType=BIT}, #{parentId,jdbcType=VARCHAR}, #{sortOrder,jdbcType=DECIMAL}, |
|
|
#{status,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{isCanteen,jdbcType=INTEGER}, #{deliveryEnabled,jdbcType=INTEGER}, |
|
|
#{status,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{isCanteen,jdbcType=INTEGER}, #{deliveryEnabled,jdbcType=INTEGER}, |
|
|
#{parentAgentId,jdbcType=VARCHAR}, #{parentAgentName,jdbcType=VARCHAR}, #{commissionRatio,jdbcType=INTEGER}, |
|
|
#{parentAgentId,jdbcType=VARCHAR}, #{parentAgentName,jdbcType=VARCHAR}, #{commissionRatio,jdbcType=INTEGER}, |
|
|
#{centerLng,jdbcType=DECIMAL}, #{centerLat,jdbcType=DECIMAL}, #{radiusMeters,jdbcType=INTEGER}, |
|
|
#{centerLng,jdbcType=DECIMAL}, #{centerLat,jdbcType=DECIMAL}, #{radiusMeters,jdbcType=INTEGER}, |
|
|
#{geoPolygon,jdbcType=LONGVARCHAR}, #{areaKind,jdbcType=INTEGER}, #{expressErrandEnabled,jdbcType=INTEGER}) |
|
|
#{geoPolygon,jdbcType=LONGVARCHAR}, #{areaKind,jdbcType=INTEGER}, #{expressErrandEnabled,jdbcType=INTEGER}, |
|
|
|
|
|
#{errandPlanetVisible,jdbcType=INTEGER}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.ShopArea" > |
|
|
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.ShopArea" > |
|
|
insert into t_shop_area |
|
|
insert into t_shop_area |
|
|
@ -123,6 +127,9 @@ |
|
|
<if test="expressErrandEnabled != null" > |
|
|
<if test="expressErrandEnabled != null" > |
|
|
express_errand_enabled, |
|
|
express_errand_enabled, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="errandPlanetVisible != null" > |
|
|
|
|
|
errand_planet_visible, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," > |
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," > |
|
|
<if test="id != null" > |
|
|
<if test="id != null" > |
|
|
@ -191,6 +198,9 @@ |
|
|
<if test="expressErrandEnabled != null" > |
|
|
<if test="expressErrandEnabled != null" > |
|
|
#{expressErrandEnabled,jdbcType=INTEGER}, |
|
|
#{expressErrandEnabled,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="errandPlanetVisible != null" > |
|
|
|
|
|
#{errandPlanetVisible,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<update id="updateByPrimaryKeySelective" parameterType="cc.hiver.mall.entity.ShopArea" > |
|
|
<update id="updateByPrimaryKeySelective" parameterType="cc.hiver.mall.entity.ShopArea" > |
|
|
@ -259,6 +269,9 @@ |
|
|
<if test="expressErrandEnabled != null" > |
|
|
<if test="expressErrandEnabled != null" > |
|
|
express_errand_enabled = #{expressErrandEnabled,jdbcType=INTEGER}, |
|
|
express_errand_enabled = #{expressErrandEnabled,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="errandPlanetVisible != null" > |
|
|
|
|
|
errand_planet_visible = #{errandPlanetVisible,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
@ -284,7 +297,8 @@ |
|
|
radius_meters = #{radiusMeters,jdbcType=INTEGER}, |
|
|
radius_meters = #{radiusMeters,jdbcType=INTEGER}, |
|
|
geo_polygon = #{geoPolygon,jdbcType=LONGVARCHAR}, |
|
|
geo_polygon = #{geoPolygon,jdbcType=LONGVARCHAR}, |
|
|
area_kind = #{areaKind,jdbcType=INTEGER}, |
|
|
area_kind = #{areaKind,jdbcType=INTEGER}, |
|
|
express_errand_enabled = #{expressErrandEnabled,jdbcType=INTEGER} |
|
|
express_errand_enabled = #{expressErrandEnabled,jdbcType=INTEGER}, |
|
|
|
|
|
errand_planet_visible = #{errandPlanetVisible,jdbcType=INTEGER} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |