|
|
@ -41,16 +41,20 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { |
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into goods_user_address (user_id, consignee, ", |
|
|
|
"insert into goods_user_address (user_id, consignee, ", |
|
|
|
"phone, address, ", |
|
|
|
"phone, address, ", |
|
|
|
"province_id, city_id, ", |
|
|
|
"province_id, province_name, ", |
|
|
|
"county_id, town_id, ", |
|
|
|
"city_id, city_name, ", |
|
|
|
|
|
|
|
"county_id, county_name, ", |
|
|
|
|
|
|
|
"town_id, town_name, ", |
|
|
|
"region_name, whether_default, ", |
|
|
|
"region_name, whether_default, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"op_id, op_name, ext_1, ", |
|
|
|
"op_id, op_name, ext_1, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{consignee,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{consignee,jdbcType=VARCHAR}, ", |
|
|
|
"#{phone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, ", |
|
|
|
"#{phone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, ", |
|
|
|
"#{provinceId,jdbcType=BIGINT}, #{cityId,jdbcType=BIGINT}, ", |
|
|
|
"#{provinceId,jdbcType=BIGINT}, #{provinceName,jdbcType=VARCHAR}, ", |
|
|
|
"#{countyId,jdbcType=BIGINT}, #{townId,jdbcType=BIGINT}, ", |
|
|
|
"#{cityId,jdbcType=BIGINT}, #{cityName,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{countyId,jdbcType=BIGINT}, #{countyName,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{townId,jdbcType=BIGINT}, #{townName,jdbcType=VARCHAR}, ", |
|
|
|
"#{regionName,jdbcType=VARCHAR}, #{whetherDefault,jdbcType=BIT}, ", |
|
|
|
"#{regionName,jdbcType=VARCHAR}, #{whetherDefault,jdbcType=BIT}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
@ -71,9 +75,13 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { |
|
|
|
@Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="province_id", property="provinceId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="province_id", property="provinceId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="province_name", property="provinceName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="city_id", property="cityId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="city_id", property="cityId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="city_name", property="cityName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="county_id", property="countyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="county_id", property="countyId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="county_name", property="countyName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="town_id", property="townId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="town_id", property="townId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="town_name", property="townName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="whether_default", property="whetherDefault", jdbcType=JdbcType.BIT), |
|
|
|
@Result(column="whether_default", property="whetherDefault", jdbcType=JdbcType.BIT), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -88,9 +96,9 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, user_id, consignee, phone, address, province_id, city_id, county_id, town_id, ", |
|
|
|
"id, user_id, consignee, phone, address, province_id, province_name, city_id, ", |
|
|
|
"region_name, whether_default, create_time, update_time, op_id, op_name, ext_1, ", |
|
|
|
"city_name, county_id, county_name, town_id, town_name, region_name, whether_default, ", |
|
|
|
"ext_2, ext_3", |
|
|
|
"create_time, update_time, op_id, op_name, ext_1, ext_2, ext_3", |
|
|
|
"from goods_user_address", |
|
|
|
"from goods_user_address", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -101,9 +109,13 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { |
|
|
|
@Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="province_id", property="provinceId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="province_id", property="provinceId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="province_name", property="provinceName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="city_id", property="cityId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="city_id", property="cityId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="city_name", property="cityName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="county_id", property="countyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="county_id", property="countyId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="county_name", property="countyName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="town_id", property="townId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="town_id", property="townId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="town_name", property="townName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="whether_default", property="whetherDefault", jdbcType=JdbcType.BIT), |
|
|
|
@Result(column="whether_default", property="whetherDefault", jdbcType=JdbcType.BIT), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -132,9 +144,13 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { |
|
|
|
"phone = #{phone,jdbcType=VARCHAR},", |
|
|
|
"phone = #{phone,jdbcType=VARCHAR},", |
|
|
|
"address = #{address,jdbcType=VARCHAR},", |
|
|
|
"address = #{address,jdbcType=VARCHAR},", |
|
|
|
"province_id = #{provinceId,jdbcType=BIGINT},", |
|
|
|
"province_id = #{provinceId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"province_name = #{provinceName,jdbcType=VARCHAR},", |
|
|
|
"city_id = #{cityId,jdbcType=BIGINT},", |
|
|
|
"city_id = #{cityId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"city_name = #{cityName,jdbcType=VARCHAR},", |
|
|
|
"county_id = #{countyId,jdbcType=BIGINT},", |
|
|
|
"county_id = #{countyId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"county_name = #{countyName,jdbcType=VARCHAR},", |
|
|
|
"town_id = #{townId,jdbcType=BIGINT},", |
|
|
|
"town_id = #{townId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"town_name = #{townName,jdbcType=VARCHAR},", |
|
|
|
"region_name = #{regionName,jdbcType=VARCHAR},", |
|
|
|
"region_name = #{regionName,jdbcType=VARCHAR},", |
|
|
|
"whether_default = #{whetherDefault,jdbcType=BIT},", |
|
|
|
"whether_default = #{whetherDefault,jdbcType=BIT},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|