|
|
@ -42,6 +42,7 @@ |
|
|
<result column="shoprank" property="shoprank" jdbcType="INTEGER" /> |
|
|
<result column="shoprank" property="shoprank" jdbcType="INTEGER" /> |
|
|
<result column="sale_count" property="saleCount" jdbcType="INTEGER" /> |
|
|
<result column="sale_count" property="saleCount" jdbcType="INTEGER" /> |
|
|
<result column="is_student" property="isStudent" jdbcType="INTEGER" /> |
|
|
<result column="is_student" property="isStudent" jdbcType="INTEGER" /> |
|
|
|
|
|
<result column="client_id" property="clientId" jdbcType="VARCHAR" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<resultMap id="ResultMapWithBLOBs" type="cc.hiver.mall.entity.Shop" extends="BaseResultMap" > |
|
|
<resultMap id="ResultMapWithBLOBs" type="cc.hiver.mall.entity.Shop" extends="BaseResultMap" > |
|
|
<result column="remark" property="remark" jdbcType="LONGVARCHAR" /> |
|
|
<result column="remark" property="remark" jdbcType="LONGVARCHAR" /> |
|
|
@ -50,7 +51,7 @@ |
|
|
id, create_by, create_time, del_flag, update_by, update_time, shop_name, shop_owner_id, shop_manger_id, region, |
|
|
id, create_by, create_time, del_flag, update_by, update_time, shop_name, shop_owner_id, shop_manger_id, region, |
|
|
region_id, shop_area, shop_area_title, shop_type, shop_type_title, shop_address, year_fee, charge_time, start_time, |
|
|
region_id, shop_area, shop_area_title, shop_type, shop_type_title, shop_address, year_fee, charge_time, start_time, |
|
|
end_time, status, remark, business_district_level, contact_phone, shop_icon, defaulted, ali_account, ali_name, |
|
|
end_time, status, remark, business_district_level, contact_phone, shop_icon, defaulted, ali_account, ali_name, |
|
|
rebate_amount, attr_id, printing_method,shop_images,shop_lename,shop_lecard,shop_score,isbrandflag,subtitle,shoprank,sale_count,is_student |
|
|
rebate_amount, attr_id, printing_method,shop_images,shop_lename,shop_lecard,shop_score,isbrandflag,subtitle,shoprank,sale_count,is_student,client_id |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Blob_Column_List" > |
|
|
<sql id="Blob_Column_List" > |
|
|
remark |
|
|
remark |
|
|
@ -71,11 +72,11 @@ rebate_amount, attr_id, printing_method,shop_images,shop_lename,shop_lecard,shop |
|
|
insert into t_shop (id, create_by, create_time, del_flag, update_by, update_time, shop_name, shop_owner_id, shop_manger_id, region, |
|
|
insert into t_shop (id, create_by, create_time, del_flag, update_by, update_time, shop_name, shop_owner_id, shop_manger_id, region, |
|
|
region_id, shop_area, shop_area_title, shop_type, shop_type_title, shop_address, year_fee, charge_time, start_time, |
|
|
region_id, shop_area, shop_area_title, shop_type, shop_type_title, shop_address, year_fee, charge_time, start_time, |
|
|
end_time, status, remark, business_district_level, contact_phone, shop_icon, defaulted, ali_account, ali_name, |
|
|
end_time, status, remark, business_district_level, contact_phone, shop_icon, defaulted, ali_account, ali_name, |
|
|
rebate_amount, attr_id, printing_method, shop_images, shop_lename, shop_lecard, shop_score, isbrandflag, subtitle,shoprank, sale_count,is_student) |
|
|
rebate_amount, attr_id, printing_method, shop_images, shop_lename, shop_lecard, shop_score, isbrandflag, subtitle,shoprank, sale_count,is_student,client_id) |
|
|
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{shopName,jdbcType=VARCHAR}, #{shopOwnerId,jdbcType=VARCHAR}, #{shopMangerId,jdbcType=VARCHAR}, #{region,jdbcType=VARCHAR}, |
|
|
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{shopName,jdbcType=VARCHAR}, #{shopOwnerId,jdbcType=VARCHAR}, #{shopMangerId,jdbcType=VARCHAR}, #{region,jdbcType=VARCHAR}, |
|
|
#{regionId,jdbcType=VARCHAR}, #{shopArea,jdbcType=VARCHAR}, #{shopAreaTitle,jdbcType=VARCHAR}, #{shopType,jdbcType=VARCHAR}, #{shopTypeTitle,jdbcType=VARCHAR}, #{shopAddress,jdbcType=VARCHAR}, #{yearFee,jdbcType=VARCHAR}, #{chargeTime,jdbcType=VARCHAR}, #{startTime,jdbcType=VARCHAR}, |
|
|
#{regionId,jdbcType=VARCHAR}, #{shopArea,jdbcType=VARCHAR}, #{shopAreaTitle,jdbcType=VARCHAR}, #{shopType,jdbcType=VARCHAR}, #{shopTypeTitle,jdbcType=VARCHAR}, #{shopAddress,jdbcType=VARCHAR}, #{yearFee,jdbcType=VARCHAR}, #{chargeTime,jdbcType=VARCHAR}, #{startTime,jdbcType=VARCHAR}, |
|
|
#{endTime,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{remark,jdbcType=LONGVARCHAR}, #{businessDistrictLevel,jdbcType=VARCHAR}, #{contactPhone,jdbcType=VARCHAR}, #{shopIcon,jdbcType=VARCHAR}, #{defaulted,jdbcType=INTEGER}, #{aliAccount,jdbcType=VARCHAR}, #{aliName,jdbcType=VARCHAR}, |
|
|
#{endTime,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{remark,jdbcType=LONGVARCHAR}, #{businessDistrictLevel,jdbcType=VARCHAR}, #{contactPhone,jdbcType=VARCHAR}, #{shopIcon,jdbcType=VARCHAR}, #{defaulted,jdbcType=INTEGER}, #{aliAccount,jdbcType=VARCHAR}, #{aliName,jdbcType=VARCHAR}, |
|
|
#{rebateAmount,jdbcType=VARCHAR}, #{attrId,jdbcType=VARCHAR}, #{printingMethod,jdbcType=VARCHAR}, #{shopImages,jdbcType=VARCHAR}, #{shopLename,jdbcType=VARCHAR}, #{shopLecard,jdbcType=VARCHAR}, #{shopScore,jdbcType=DECIMAL}, #{isbrandflag,jdbcType=INTEGER}, #{subtitle,jdbcType=VARCHAR}, #{shoprank,jdbcType=INTEGER}, #{saleCount,jdbcType=INTEGER}, #{isStudent,jdbcType=INTEGER}) |
|
|
#{rebateAmount,jdbcType=VARCHAR}, #{attrId,jdbcType=VARCHAR}, #{printingMethod,jdbcType=VARCHAR}, #{shopImages,jdbcType=VARCHAR}, #{shopLename,jdbcType=VARCHAR}, #{shopLecard,jdbcType=VARCHAR}, #{shopScore,jdbcType=DECIMAL}, #{isbrandflag,jdbcType=INTEGER}, #{subtitle,jdbcType=VARCHAR}, #{shoprank,jdbcType=INTEGER}, #{saleCount,jdbcType=INTEGER}, #{isStudent,jdbcType=INTEGER},#{clientId,jdbcType=VARCHAR}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.Shop" > |
|
|
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.Shop" > |
|
|
insert into t_shop |
|
|
insert into t_shop |
|
|
@ -176,6 +177,9 @@ rebate_amount, attr_id, printing_method,shop_images,shop_lename,shop_lecard,shop |
|
|
<if test="isStudent != null" > |
|
|
<if test="isStudent != null" > |
|
|
is_student |
|
|
is_student |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="clientId != null" > |
|
|
|
|
|
client_id |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," > |
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," > |
|
|
<if test="id != null" > |
|
|
<if test="id != null" > |
|
|
@ -274,6 +278,9 @@ rebate_amount, attr_id, printing_method,shop_images,shop_lename,shop_lecard,shop |
|
|
<if test="isStudent != null" > |
|
|
<if test="isStudent != null" > |
|
|
#{isStudent,jdbcType=INTEGER}, |
|
|
#{isStudent,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="clientId != null" > |
|
|
|
|
|
#{clientId,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<update id="updateByPrimaryKeySelective" parameterType="cc.hiver.mall.entity.Shop" > |
|
|
<update id="updateByPrimaryKeySelective" parameterType="cc.hiver.mall.entity.Shop" > |
|
|
@ -372,6 +379,9 @@ rebate_amount, attr_id, printing_method,shop_images,shop_lename,shop_lecard,shop |
|
|
<if test="isStudent != null" > |
|
|
<if test="isStudent != null" > |
|
|
is_student = #{isStudent,jdbcType=INTEGER}, |
|
|
is_student = #{isStudent,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="clientId != null" > |
|
|
|
|
|
client_id = #{clientId,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
@ -407,7 +417,8 @@ rebate_amount, attr_id, printing_method,shop_images,shop_lename,shop_lecard,shop |
|
|
subtitle = #{subtitle,jdbcType=VARCHAR}, |
|
|
subtitle = #{subtitle,jdbcType=VARCHAR}, |
|
|
shoprank = #{shoprank,jdbcType=INTEGER}, |
|
|
shoprank = #{shoprank,jdbcType=INTEGER}, |
|
|
sale_count = #{saleCount,jdbcType=INTEGER}, |
|
|
sale_count = #{saleCount,jdbcType=INTEGER}, |
|
|
is_student = #{isStudent,jdbcType=INTEGER} |
|
|
is_student = #{isStudent,jdbcType=INTEGER}, |
|
|
|
|
|
client_id = #{clientId,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.Shop" > |
|
|
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.Shop" > |
|
|
@ -450,7 +461,8 @@ rebate_amount, attr_id, printing_method,shop_images,shop_lename,shop_lecard,shop |
|
|
subtitle = #{subtitle,jdbcType=VARCHAR}, |
|
|
subtitle = #{subtitle,jdbcType=VARCHAR}, |
|
|
shoprank = #{shoprank,jdbcType=INTEGER}, |
|
|
shoprank = #{shoprank,jdbcType=INTEGER}, |
|
|
sale_count = #{saleCount,jdbcType=INTEGER}, |
|
|
sale_count = #{saleCount,jdbcType=INTEGER}, |
|
|
is_student = #{isStudent,jdbcType=INTEGER} |
|
|
is_student = #{isStudent,jdbcType=INTEGER}, |
|
|
|
|
|
client_id = #{clientId,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
<select id="findByUserId" resultType="cc.hiver.mall.entity.Shop"> |
|
|
<select id="findByUserId" resultType="cc.hiver.mall.entity.Shop"> |
|
|
|