|
@@ -10,6 +10,8 @@ import com.mokamrp.privates.service.pangu.FosterwxFlowListService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
+import java.time.LocalDateTime;
|
|
|
|
|
+import java.time.LocalTime;
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
@@ -39,6 +41,14 @@ public class FosterwxFlowListServiceImpl extends ServiceImpl<FosterwxFlowListMap
|
|
|
Page<FosterwxFlowList> pageObj = new Page<FosterwxFlowList>(page, pageSize);
|
|
Page<FosterwxFlowList> pageObj = new Page<FosterwxFlowList>(page, pageSize);
|
|
|
LambdaQueryWrapper<FosterwxFlowList> fosterwxFlowListLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<FosterwxFlowList> fosterwxFlowListLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
fosterwxFlowListLambdaQueryWrapper.eq(FosterwxFlowList::getPoolId, handle.getPoolIndex());
|
|
fosterwxFlowListLambdaQueryWrapper.eq(FosterwxFlowList::getPoolId, handle.getPoolIndex());
|
|
|
|
|
+ if (null != handle.getTimeFrom()) {
|
|
|
|
|
+ fosterwxFlowListLambdaQueryWrapper.ge(FosterwxFlowList::getCreateAt, LocalDateTime.of(handle.getTimeFrom(), LocalTime.MIN));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (null != handle.getTimeTo()) {
|
|
|
|
|
+ fosterwxFlowListLambdaQueryWrapper.le(FosterwxFlowList::getCreateAt, LocalDateTime.of(handle.getTimeTo(), LocalTime.MAX));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ fosterwxFlowListLambdaQueryWrapper.orderByDesc(FosterwxFlowList::getId);
|
|
|
pageObj = fosterwxFlowListMapper.selectPage(pageObj, fosterwxFlowListLambdaQueryWrapper);
|
|
pageObj = fosterwxFlowListMapper.selectPage(pageObj, fosterwxFlowListLambdaQueryWrapper);
|
|
|
Map<String, Object> resMap = new HashMap<String, Object>();
|
|
Map<String, Object> resMap = new HashMap<String, Object>();
|
|
|
resMap.put("list", pageObj.getRecords());
|
|
resMap.put("list", pageObj.getRecords());
|