|
@ -1,10 +1,7 @@ |
|
|
package com.example.demo.mapper; |
|
|
package com.example.demo.mapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.example.demo.domain.entity.Admin; |
|
|
|
|
|
import com.example.demo.domain.entity.Detail; |
|
|
|
|
|
import com.example.demo.domain.entity.Product; |
|
|
|
|
|
import com.example.demo.domain.entity.User; |
|
|
|
|
|
|
|
|
import com.example.demo.domain.entity.*; |
|
|
import com.example.demo.domain.vo.ConsumeDetail; |
|
|
import com.example.demo.domain.vo.ConsumeDetail; |
|
|
import org.apache.ibatis.annotations.*; |
|
|
import org.apache.ibatis.annotations.*; |
|
|
|
|
|
|
|
@ -32,15 +29,15 @@ public interface ConsumeMapper { |
|
|
// "(#{jwcode},#{activityId},#{rechargeWay},#{productId},'金币系统','购买商品',#{refundType},#{refundGoods},#{contactId},#{remark},#{rechargeCoin},#{freeCoin},#{taskCoin},#{adminId},#{updateType},1,now(),1,#{orderCode})" |
|
|
// "(#{jwcode},#{activityId},#{rechargeWay},#{productId},'金币系统','购买商品',#{refundType},#{refundGoods},#{contactId},#{remark},#{rechargeCoin},#{freeCoin},#{taskCoin},#{adminId},#{updateType},1,now(),1,#{orderCode})" |
|
|
"insert into detail_y", |
|
|
"insert into detail_y", |
|
|
"(jwcode,order_code,activity_id,recharge_way,product_id,consume_platform,consume_type,refund_type,refund_goods," + |
|
|
"(jwcode,order_code,activity_id,recharge_way,product_id,consume_platform,consume_type,refund_type,refund_goods," + |
|
|
"contact_id,remark,recharge_coin,free_coin,task_coin,admin_id,update_type,detail_flag,create_time,first_recharge)", |
|
|
|
|
|
|
|
|
"contact_id,remark,recharge_coin,free_coin,task_coin,admin_id,update_type,detail_flag,create_time,first_recharge,`name`,username,area)", |
|
|
"values ", |
|
|
"values ", |
|
|
"(#{jwcode},#{orderCode},#{activityId},#{rechargeWay},#{productId},'金币系统','购买商品',#{refundType}" + |
|
|
"(#{jwcode},#{orderCode},#{activityId},#{rechargeWay},#{productId},'金币系统','购买商品',#{refundType}" + |
|
|
",#{refundGoods},#{contactId},#{remark},#{rechargeCoin}" + |
|
|
",#{refundGoods},#{contactId},#{remark},#{rechargeCoin}" + |
|
|
",#{freeCoin},#{taskCoin},#{adminId},#{updateType},1,now(),#{firstRecharge})" |
|
|
|
|
|
|
|
|
",#{freeCoin},#{taskCoin},#{adminId},#{updateType},1,now(),#{firstRecharge},#{name},#{username},#{area})" |
|
|
}) |
|
|
}) |
|
|
// 获取自增主键 |
|
|
// 获取自增主键 |
|
|
@Options(useGeneratedKeys = true,keyColumn = "detail_id",keyProperty = "detailId") |
|
|
|
|
|
int insert(Detail detail); |
|
|
|
|
|
|
|
|
@Options(useGeneratedKeys = true,keyColumn = "detaily_id",keyProperty = "detailyId") |
|
|
|
|
|
int insert(DetailY detailY); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|