@ -12,13 +12,17 @@ import java.util.List;
@Mapper
@Mapper
public interface DetailYMapper {
public interface DetailYMapper {
@Insert ( {
@Insert ( {
"insert into detail_y" ,
"(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)" ,
"values " ,
"(#{jwcode},#{orderCode},#{activityId},#{rechargeWay},#{productId},#{consumePlatform},#{consumeType},#{refundType}" +
",#{refundGoods},#{contactId},#{remark},#{rechargeCoin}" +
",#{freeCoin},#{taskCoin},#{adminId},#{updateType},1,now(),#{firstRecharge})"
/ / "insert into detail_y" ,
/ / "(jwcode,order_code,activity_id,recharge_way,product_id,consume_platform,consume_type,refund_type,refund_goods,name,username,area" +
/ / "contact_id,remark,recharge_coin,free_coin,task_coin,admin_id,update_type,detail_flag,create_time,first_recharge)" ,
/ / "values " ,
/ / "(#{jwcode},#{orderCode},#{activityId},#{rechargeWay},#{productId},#{consumePlatform},#{consumeType},#{refundType}" +
/ / ",#{refundGoods},#{name},#{username},#{area},#{contactId},#{remark},#{rechargeCoin}" +
/ / ",#{freeCoin},#{taskCoin},#{adminId},#{updateType},1,now(),#{firstRecharge})"
"insert into detail_y \n" +
"(jwcode, order_code, activity_id, recharge_way, product_id, consume_platform, consume_type, refund_type, refund_goods, name, username, area, contact_id, remark, recharge_coin, free_coin, task_coin, admin_id, update_type, detail_flag, create_time, first_recharge)\n" +
"values \n" +
"(#{jwcode}, #{orderCode}, #{activityId}, #{rechargeWay}, #{productId}, #{consumePlatform}, #{consumeType}, #{refundType}, #{refundGoods}, #{name}, #{username}, #{area}, #{contactId}, #{remark}, #{rechargeCoin}, #{freeCoin}, #{taskCoin}, #{adminId}, #{updateType}, 1, now(), #{firstRecharge})"
} )
} )
@Options ( useGeneratedKeys = true , keyColumn = "detaily_id" , keyProperty = "detailyId" )
@Options ( useGeneratedKeys = true , keyColumn = "detaily_id" , keyProperty = "detailyId" )
int add ( DetailY detaily ) ;
int add ( DetailY detaily ) ;
@ -54,7 +58,8 @@ public interface DetailYMapper {
@Select ( {
@Select ( {
"<script>" ,
"<script>" ,
"select * from detail_y" ,
"select username,name,detail_y.jwcode,area,detail_y.update_type,detail_y.create_time,detail_y.consume_platform,detail_y.free_coin,detail_y.recharge_coin,detail_y.task_coin from detail_y" ,
/ / "select * from detail_y" ,
/ / "select detail_y.*,admin.name,admin.area,user.name as uname,audit.status from detail" ,
/ / "select detail_y.*,admin.name,admin.area,user.name as uname,audit.status from detail" ,
/ / "left join `admin` on `detail_y`.admin_id = `admin`.admin_id" ,
/ / "left join `admin` on `detail_y`.admin_id = `admin`.admin_id" ,
/ / "left join `user` on `detail_y`.jwcode = `user`.jwcode" ,
/ / "left join `user` on `detail_y`.jwcode = `user`.jwcode" ,