|
@@ -1,19 +1,19 @@
|
|
package com.ruoyi.system.service.impl;
|
|
package com.ruoyi.system.service.impl;
|
|
|
|
|
|
-import java.util.Comparator;
|
|
|
|
-import java.util.LinkedHashMap;
|
|
|
|
-import java.util.List;
|
|
|
|
-import java.util.Map;
|
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
|
+import java.util.*;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
|
+import com.ruoyi.common.utils.StringUtils;
|
|
import com.ruoyi.system.domain.CreditUser;
|
|
import com.ruoyi.system.domain.CreditUser;
|
|
import com.ruoyi.system.domain.InterestsNumberTable;
|
|
import com.ruoyi.system.domain.InterestsNumberTable;
|
|
import com.ruoyi.system.domain.InterestsTable;
|
|
import com.ruoyi.system.domain.InterestsTable;
|
|
import com.ruoyi.system.mapper.CreditUserMapper;
|
|
import com.ruoyi.system.mapper.CreditUserMapper;
|
|
import com.ruoyi.system.mapper.InterestsNumberTableMapper;
|
|
import com.ruoyi.system.mapper.InterestsNumberTableMapper;
|
|
import com.ruoyi.system.mapper.InterestsTableMapper;
|
|
import com.ruoyi.system.mapper.InterestsTableMapper;
|
|
|
|
+import lombok.SneakyThrows;
|
|
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 com.ruoyi.system.mapper.UsageRecordMapper;
|
|
import com.ruoyi.system.mapper.UsageRecordMapper;
|
|
@@ -58,9 +58,15 @@ public class UsageRecordServiceImpl implements IUsageRecordService
|
|
* @param usageRecord 使用记录
|
|
* @param usageRecord 使用记录
|
|
* @return 使用记录
|
|
* @return 使用记录
|
|
*/
|
|
*/
|
|
|
|
+ @SneakyThrows
|
|
@Override
|
|
@Override
|
|
public List<UsageRecord> selectUsageRecordList(UsageRecord usageRecord)
|
|
public List<UsageRecord> selectUsageRecordList(UsageRecord usageRecord)
|
|
{
|
|
{
|
|
|
|
+ if(usageRecord.getCreateTime()!=null){
|
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
+ String time = simpleDateFormat.format(usageRecord.getCreateTime());
|
|
|
|
+ usageRecord.setTime(time);
|
|
|
|
+ }
|
|
return usageRecordMapper.selectUsageRecordList(usageRecord);
|
|
return usageRecordMapper.selectUsageRecordList(usageRecord);
|
|
}
|
|
}
|
|
|
|
|