|
|
|
@ -41,16 +41,18 @@ public interface GoodsDeliveryAddressMapper extends GoodsDeliveryAddressMapperEx |
|
|
|
|
@Insert({ |
|
|
|
|
"insert into goods_delivery_address (user_id, consignee, ", |
|
|
|
|
"phone, address, ", |
|
|
|
|
"regionId, whether_default, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"op_id, op_name, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"region_id, region_name, ", |
|
|
|
|
"whether_default, create_time, ", |
|
|
|
|
"update_time, op_id, ", |
|
|
|
|
"op_name, ext_1, ext_2, ", |
|
|
|
|
"ext_3)", |
|
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{consignee,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{phone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{regionid,jdbcType=VARCHAR}, #{whetherDefault,jdbcType=BIT}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{regionId,jdbcType=VARCHAR}, #{regionName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{whetherDefault,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{opId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(GoodsDeliveryAddress record); |
|
|
|
@ -66,7 +68,8 @@ public interface GoodsDeliveryAddressMapper extends GoodsDeliveryAddressMapperEx |
|
|
|
|
@Result(column="consignee", property="consignee", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="regionId", property="regionid", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="region_id", property="regionId", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="whether_default", property="whetherDefault", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -80,8 +83,8 @@ public interface GoodsDeliveryAddressMapper extends GoodsDeliveryAddressMapperEx |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, user_id, consignee, phone, address, regionId, whether_default, create_time, ", |
|
|
|
|
"update_time, op_id, op_name, ext_1, ext_2, ext_3", |
|
|
|
|
"id, user_id, consignee, phone, address, region_id, region_name, whether_default, ", |
|
|
|
|
"create_time, update_time, op_id, op_name, ext_1, ext_2, ext_3", |
|
|
|
|
"from goods_delivery_address", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -91,7 +94,8 @@ public interface GoodsDeliveryAddressMapper extends GoodsDeliveryAddressMapperEx |
|
|
|
|
@Result(column="consignee", property="consignee", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="regionId", property="regionid", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="region_id", property="regionId", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="whether_default", property="whetherDefault", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -118,7 +122,8 @@ public interface GoodsDeliveryAddressMapper extends GoodsDeliveryAddressMapperEx |
|
|
|
|
"consignee = #{consignee,jdbcType=VARCHAR},", |
|
|
|
|
"phone = #{phone,jdbcType=VARCHAR},", |
|
|
|
|
"address = #{address,jdbcType=VARCHAR},", |
|
|
|
|
"regionId = #{regionid,jdbcType=VARCHAR},", |
|
|
|
|
"region_id = #{regionId,jdbcType=VARCHAR},", |
|
|
|
|
"region_name = #{regionName,jdbcType=VARCHAR},", |
|
|
|
|
"whether_default = #{whetherDefault,jdbcType=BIT},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
|