|
@ -12,10 +12,10 @@ public interface DetailMapper { |
|
|
|
|
|
|
|
|
@Insert({ |
|
|
@Insert({ |
|
|
"insert into detail", |
|
|
"insert into detail", |
|
|
"(homily_id,area,activity_id,recharge_way,product_id,consume_platform,consume_type,refund_type,refund_goods," + |
|
|
|
|
|
|
|
|
"(jwcode,area,activity_id,recharge_way,product_id,consume_platform,consume_type,refund_type,refund_goods," + |
|
|
"cntact_id,remark,recharge_coin,free_coin,task_coin,admin_id,update_type,detail_flag,create_time)", |
|
|
"cntact_id,remark,recharge_coin,free_coin,task_coin,admin_id,update_type,detail_flag,create_time)", |
|
|
"values ", |
|
|
"values ", |
|
|
"(#{homilyId},#{area},#{activityId},#{rechargeId},#{productId},#{area},#{consumePlatform},#{consumeType},#{refundType}" + |
|
|
|
|
|
|
|
|
"(#{jwcode},#{area},#{activityId},#{rechargeId},#{productId},#{area},#{consumePlatform},#{consumeType},#{refundType}" + |
|
|
",#{refundGoods},#{cntactId},#{remark},#{rechargeCoin}" + |
|
|
",#{refundGoods},#{cntactId},#{remark},#{rechargeCoin}" + |
|
|
",#{freeCoin},#{taskCoin},#{adminId},#{updateType},#{detailFlag},#{createTime}", |
|
|
",#{freeCoin},#{taskCoin},#{adminId},#{updateType},#{detailFlag},#{createTime}", |
|
|
}) |
|
|
}) |
|
@ -28,9 +28,9 @@ public interface DetailMapper { |
|
|
"<script>", |
|
|
"<script>", |
|
|
"select detail.*,admin.name,admin.area from detail", |
|
|
"select detail.*,admin.name,admin.area from detail", |
|
|
"inner join `admin` on detail.admin_id = `admin`.admin_id", |
|
|
"inner join `admin` on detail.admin_id = `admin`.admin_id", |
|
|
"inner join `user` on detail.homily_id = `user`.homily_id", |
|
|
|
|
|
|
|
|
"inner join `user` on detail.jwcode = `user`.jwcode", |
|
|
"<where>", |
|
|
"<where>", |
|
|
"<if test='homilyId!=null'>and detail.homily_id=#{homilyId}</if>", |
|
|
|
|
|
|
|
|
"<if test='jwcode!=null'>and detail.jwcode=#{jwcode}</if>", |
|
|
"<if test='updateType!=null and updateType>0'>and update_type=#{updateType}</if>", |
|
|
"<if test='updateType!=null and updateType>0'>and update_type=#{updateType}</if>", |
|
|
"<if test='startDate != null and endDate != null'>AND recharge.create_time BETWEEN #{startDate} AND #{endDate}</if>", |
|
|
"<if test='startDate != null and endDate != null'>AND recharge.create_time BETWEEN #{startDate} AND #{endDate}</if>", |
|
|
"</where>", |
|
|
"</where>", |
|
|