|
|
@ -3,6 +3,7 @@ package com.example.demo.mapper; |
|
|
|
import com.example.demo.domain.entity.DetailY; |
|
|
|
import com.example.demo.domain.entity.UserDetailExport; |
|
|
|
import com.example.demo.domain.vo.DetailYgold; |
|
|
|
import com.example.demo.domain.vo.DetailExport; |
|
|
|
import org.apache.ibatis.annotations.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
@ -104,4 +105,20 @@ public interface DetailYMapper { |
|
|
|
|
|
|
|
@Select("SELECT COUNT(*) FROM detail_y") |
|
|
|
int getTotalCount(); |
|
|
|
|
|
|
|
@Select({ |
|
|
|
"<script>", |
|
|
|
"SELECT d.detaily_id,u.name,d.jwcode,u.area,d.consume_platform,d.update_type,d.recharge_coin,d.task_coin," + |
|
|
|
"d.free_coin,d.create_admin,d.create_time", |
|
|
|
"FROM detail_y d", |
|
|
|
"LEFT JOIN user u on d.jwcode = u.jwcode ", |
|
|
|
"<where>", |
|
|
|
"<if test='jwcode!=null'>AND d.jwcode=#{jwcode}</if>", |
|
|
|
"<if test='area'>AND u.area=#{area}</if>", |
|
|
|
"<if test='startDate != null and endDate != null'>AND create_time BETWEEN #{startDate} AND #{endDate}</if>", |
|
|
|
"</where>", |
|
|
|
"ORDER BY detaily_id desc", |
|
|
|
"</script>" |
|
|
|
}) |
|
|
|
List<UserDetailExport> searchAll(DetailExport detailExport); |
|
|
|
} |