|
|
@ -40,13 +40,13 @@ public interface GoodsOrderMapper extends GoodsOrderMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into goods_order (logistics_no, sku_id, ", |
|
|
|
"insert into goods_order (logistics_no, sku_id, ", |
|
|
|
"order_id, child_order_id, ", |
|
|
|
"order_no, child_order_no, ", |
|
|
|
"delivery_address_id, create_time, ", |
|
|
|
"delivery_address_id, create_time, ", |
|
|
|
"update_time, op_id, ", |
|
|
|
"update_time, op_id, ", |
|
|
|
"op_name, `status`, ", |
|
|
|
"op_name, `status`, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{logisticsNo,jdbcType=VARCHAR}, #{skuId,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{logisticsNo,jdbcType=VARCHAR}, #{skuId,jdbcType=VARCHAR}, ", |
|
|
|
"#{orderId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ", |
|
|
|
"#{orderNo,jdbcType=VARCHAR}, #{childOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{deliveryAddressId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{deliveryAddressId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{opId,jdbcType=BIGINT}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{opId,jdbcType=BIGINT}, ", |
|
|
|
"#{opName,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, ", |
|
|
|
"#{opName,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, ", |
|
|
@ -64,8 +64,8 @@ public interface GoodsOrderMapper extends GoodsOrderMapperExt { |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="logistics_no", property="logisticsNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="logistics_no", property="logisticsNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sku_id", property="skuId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sku_id", property="skuId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="delivery_address_id", property="deliveryAddressId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="delivery_address_id", property="deliveryAddressId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -80,7 +80,7 @@ public interface GoodsOrderMapper extends GoodsOrderMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, logistics_no, sku_id, order_id, child_order_id, delivery_address_id, create_time, ", |
|
|
|
"id, logistics_no, sku_id, order_no, child_order_no, delivery_address_id, create_time, ", |
|
|
|
"update_time, op_id, op_name, `status`, ext_1, ext_2, ext_3", |
|
|
|
"update_time, op_id, op_name, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from goods_order", |
|
|
|
"from goods_order", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
@ -89,8 +89,8 @@ public interface GoodsOrderMapper extends GoodsOrderMapperExt { |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="logistics_no", property="logisticsNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="logistics_no", property="logisticsNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sku_id", property="skuId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sku_id", property="skuId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="delivery_address_id", property="deliveryAddressId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="delivery_address_id", property="deliveryAddressId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -116,8 +116,8 @@ public interface GoodsOrderMapper extends GoodsOrderMapperExt { |
|
|
|
"update goods_order", |
|
|
|
"update goods_order", |
|
|
|
"set logistics_no = #{logisticsNo,jdbcType=VARCHAR},", |
|
|
|
"set logistics_no = #{logisticsNo,jdbcType=VARCHAR},", |
|
|
|
"sku_id = #{skuId,jdbcType=VARCHAR},", |
|
|
|
"sku_id = #{skuId,jdbcType=VARCHAR},", |
|
|
|
"order_id = #{orderId,jdbcType=BIGINT},", |
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
"child_order_id = #{childOrderId,jdbcType=BIGINT},", |
|
|
|
"child_order_no = #{childOrderNo,jdbcType=VARCHAR},", |
|
|
|
"delivery_address_id = #{deliveryAddressId,jdbcType=BIGINT},", |
|
|
|
"delivery_address_id = #{deliveryAddressId,jdbcType=BIGINT},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|