|
|
@ -2,6 +2,7 @@ package com.hfkj.dao; |
|
|
|
|
|
|
|
|
|
|
|
import com.hfkj.entity.GoodsUserAddress; |
|
|
|
import com.hfkj.entity.GoodsUserAddress; |
|
|
|
import com.hfkj.entity.GoodsUserAddressExample; |
|
|
|
import com.hfkj.entity.GoodsUserAddressExample; |
|
|
|
|
|
|
|
import com.hfkj.entity.GoodsUserAddressWithBLOBs; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import org.apache.ibatis.annotations.Delete; |
|
|
|
import org.apache.ibatis.annotations.Delete; |
|
|
|
import org.apache.ibatis.annotations.DeleteProvider; |
|
|
|
import org.apache.ibatis.annotations.DeleteProvider; |
|
|
@ -45,22 +46,49 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { |
|
|
|
"whether_default, create_time, ", |
|
|
|
"whether_default, create_time, ", |
|
|
|
"update_time, op_id, ", |
|
|
|
"update_time, op_id, ", |
|
|
|
"op_name, ext_1, ext_2, ", |
|
|
|
"op_name, ext_1, ext_2, ", |
|
|
|
"ext_3)", |
|
|
|
"ext_3, province_id, ", |
|
|
|
"values " + |
|
|
|
"city_id, county_id, ", |
|
|
|
"(#{userId,jdbcType=BIGINT}, #{consignee,jdbcType=VARCHAR}, ", |
|
|
|
"town_id)", |
|
|
|
|
|
|
|
"values (#{userId,jdbcType=BIGINT}, #{consignee,jdbcType=VARCHAR}, ", |
|
|
|
"#{phone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, ", |
|
|
|
"#{phone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, ", |
|
|
|
"#{regionId,jdbcType=VARCHAR}, #{regionName,jdbcType=VARCHAR}, ", |
|
|
|
"#{regionId,jdbcType=VARCHAR}, #{regionName,jdbcType=VARCHAR}, ", |
|
|
|
"#{whetherDefault,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{whetherDefault,jdbcType=BIT}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{opId,jdbcType=BIGINT}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{opId,jdbcType=BIGINT}, ", |
|
|
|
"#{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
"#{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext3,jdbcType=VARCHAR}, #{provinceId,jdbcType=LONGVARCHAR}, ", |
|
|
|
|
|
|
|
"#{cityId,jdbcType=LONGVARCHAR}, #{countyId,jdbcType=LONGVARCHAR}, ", |
|
|
|
|
|
|
|
"#{townId,jdbcType=LONGVARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(GoodsUserAddress record); |
|
|
|
int insert(GoodsUserAddressWithBLOBs record); |
|
|
|
|
|
|
|
|
|
|
|
@InsertProvider(type=GoodsUserAddressSqlProvider.class, method="insertSelective") |
|
|
|
@InsertProvider(type=GoodsUserAddressSqlProvider.class, method="insertSelective") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insertSelective(GoodsUserAddress record); |
|
|
|
int insertSelective(GoodsUserAddressWithBLOBs record); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SelectProvider(type=GoodsUserAddressSqlProvider.class, method="selectByExampleWithBLOBs") |
|
|
|
|
|
|
|
@Results({ |
|
|
|
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@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="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), |
|
|
|
|
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="province_id", property="provinceId", jdbcType=JdbcType.LONGVARCHAR), |
|
|
|
|
|
|
|
@Result(column="city_id", property="cityId", jdbcType=JdbcType.LONGVARCHAR), |
|
|
|
|
|
|
|
@Result(column="county_id", property="countyId", jdbcType=JdbcType.LONGVARCHAR), |
|
|
|
|
|
|
|
@Result(column="town_id", property="townId", jdbcType=JdbcType.LONGVARCHAR) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
List<GoodsUserAddressWithBLOBs> selectByExampleWithBLOBs(GoodsUserAddressExample example); |
|
|
|
|
|
|
|
|
|
|
|
@SelectProvider(type=GoodsUserAddressSqlProvider.class, method="selectByExample") |
|
|
|
@SelectProvider(type=GoodsUserAddressSqlProvider.class, method="selectByExample") |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
@ -85,7 +113,8 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, user_id, consignee, phone, address, region_id, region_name, whether_default, ", |
|
|
|
"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", |
|
|
|
"create_time, update_time, op_id, op_name, ext_1, ext_2, ext_3, province_id, ", |
|
|
|
|
|
|
|
"city_id, county_id, town_id", |
|
|
|
"from goods_user_address", |
|
|
|
"from goods_user_address", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -104,18 +133,49 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { |
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="province_id", property="provinceId", jdbcType=JdbcType.LONGVARCHAR), |
|
|
|
|
|
|
|
@Result(column="city_id", property="cityId", jdbcType=JdbcType.LONGVARCHAR), |
|
|
|
|
|
|
|
@Result(column="county_id", property="countyId", jdbcType=JdbcType.LONGVARCHAR), |
|
|
|
|
|
|
|
@Result(column="town_id", property="townId", jdbcType=JdbcType.LONGVARCHAR) |
|
|
|
}) |
|
|
|
}) |
|
|
|
GoodsUserAddress selectByPrimaryKey(Long id); |
|
|
|
GoodsUserAddressWithBLOBs selectByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@UpdateProvider(type=GoodsUserAddressSqlProvider.class, method="updateByExampleSelective") |
|
|
|
@UpdateProvider(type=GoodsUserAddressSqlProvider.class, method="updateByExampleSelective") |
|
|
|
int updateByExampleSelective(@Param("record") GoodsUserAddress record, @Param("example") GoodsUserAddressExample example); |
|
|
|
int updateByExampleSelective(@Param("record") GoodsUserAddressWithBLOBs record, @Param("example") GoodsUserAddressExample example); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@UpdateProvider(type=GoodsUserAddressSqlProvider.class, method="updateByExampleWithBLOBs") |
|
|
|
|
|
|
|
int updateByExampleWithBLOBs(@Param("record") GoodsUserAddressWithBLOBs record, @Param("example") GoodsUserAddressExample example); |
|
|
|
|
|
|
|
|
|
|
|
@UpdateProvider(type=GoodsUserAddressSqlProvider.class, method="updateByExample") |
|
|
|
@UpdateProvider(type=GoodsUserAddressSqlProvider.class, method="updateByExample") |
|
|
|
int updateByExample(@Param("record") GoodsUserAddress record, @Param("example") GoodsUserAddressExample example); |
|
|
|
int updateByExample(@Param("record") GoodsUserAddress record, @Param("example") GoodsUserAddressExample example); |
|
|
|
|
|
|
|
|
|
|
|
@UpdateProvider(type=GoodsUserAddressSqlProvider.class, method="updateByPrimaryKeySelective") |
|
|
|
@UpdateProvider(type=GoodsUserAddressSqlProvider.class, method="updateByPrimaryKeySelective") |
|
|
|
int updateByPrimaryKeySelective(GoodsUserAddress record); |
|
|
|
int updateByPrimaryKeySelective(GoodsUserAddressWithBLOBs record); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
|
|
|
|
"update goods_user_address", |
|
|
|
|
|
|
|
"set user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"consignee = #{consignee,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"phone = #{phone,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"address = #{address,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},", |
|
|
|
|
|
|
|
"op_id = #{opId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"op_name = #{opName,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"province_id = #{provinceId,jdbcType=LONGVARCHAR},", |
|
|
|
|
|
|
|
"city_id = #{cityId,jdbcType=LONGVARCHAR},", |
|
|
|
|
|
|
|
"county_id = #{countyId,jdbcType=LONGVARCHAR},", |
|
|
|
|
|
|
|
"town_id = #{townId,jdbcType=LONGVARCHAR}", |
|
|
|
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
int updateByPrimaryKeyWithBLOBs(GoodsUserAddressWithBLOBs record); |
|
|
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update goods_user_address", |
|
|
|
"update goods_user_address", |
|
|
|