|
|
@ -41,13 +41,17 @@ public interface GoodsOrderMapper extends GoodsOrderMapperExt { |
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into goods_order (logistics_no, sku_id, ", |
|
|
|
"insert into goods_order (logistics_no, sku_id, ", |
|
|
|
"order_no, child_order_no, ", |
|
|
|
"order_no, child_order_no, ", |
|
|
|
"delivery_address_id, create_time, ", |
|
|
|
"pay_price, order_price, ", |
|
|
|
|
|
|
|
"freight_price, delivery_address_id, ", |
|
|
|
|
|
|
|
"delivery_address, 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}, ", |
|
|
|
"#{orderNo,jdbcType=VARCHAR}, #{childOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{orderNo,jdbcType=VARCHAR}, #{childOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{deliveryAddressId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{payPrice,jdbcType=DECIMAL}, #{orderPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
|
|
|
"#{freightPrice,jdbcType=DECIMAL}, #{deliveryAddressId,jdbcType=BIGINT}, ", |
|
|
|
|
|
|
|
"#{deliveryAddress,jdbcType=VARCHAR}, #{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}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
@ -66,7 +70,11 @@ public interface GoodsOrderMapper extends GoodsOrderMapperExt { |
|
|
|
@Result(column="sku_id", property="skuId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sku_id", property="skuId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
|
|
|
@Result(column="order_price", property="orderPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
|
|
|
@Result(column="freight_price", property="freightPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="delivery_address_id", property="deliveryAddressId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="delivery_address_id", property="deliveryAddressId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="delivery_address", property="deliveryAddress", jdbcType=JdbcType.VARCHAR), |
|
|
|
@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), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
@ -80,8 +88,9 @@ public interface GoodsOrderMapper extends GoodsOrderMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, logistics_no, sku_id, order_no, child_order_no, delivery_address_id, create_time, ", |
|
|
|
"id, logistics_no, sku_id, order_no, child_order_no, pay_price, order_price, ", |
|
|
|
"update_time, op_id, op_name, `status`, ext_1, ext_2, ext_3", |
|
|
|
"freight_price, delivery_address_id, delivery_address, create_time, 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}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -91,7 +100,11 @@ public interface GoodsOrderMapper extends GoodsOrderMapperExt { |
|
|
|
@Result(column="sku_id", property="skuId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sku_id", property="skuId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
|
|
|
@Result(column="order_price", property="orderPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
|
|
|
@Result(column="freight_price", property="freightPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="delivery_address_id", property="deliveryAddressId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="delivery_address_id", property="deliveryAddressId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="delivery_address", property="deliveryAddress", jdbcType=JdbcType.VARCHAR), |
|
|
|
@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), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
@ -118,7 +131,11 @@ public interface GoodsOrderMapper extends GoodsOrderMapperExt { |
|
|
|
"sku_id = #{skuId,jdbcType=VARCHAR},", |
|
|
|
"sku_id = #{skuId,jdbcType=VARCHAR},", |
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
"child_order_no = #{childOrderNo,jdbcType=VARCHAR},", |
|
|
|
"child_order_no = #{childOrderNo,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"pay_price = #{payPrice,jdbcType=DECIMAL},", |
|
|
|
|
|
|
|
"order_price = #{orderPrice,jdbcType=DECIMAL},", |
|
|
|
|
|
|
|
"freight_price = #{freightPrice,jdbcType=DECIMAL},", |
|
|
|
"delivery_address_id = #{deliveryAddressId,jdbcType=BIGINT},", |
|
|
|
"delivery_address_id = #{deliveryAddressId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"delivery_address = #{deliveryAddress,jdbcType=VARCHAR},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"op_id = #{opId,jdbcType=BIGINT},", |
|
|
|
"op_id = #{opId,jdbcType=BIGINT},", |
|
|
|