|
|
|
@ -11,6 +11,7 @@ import com.zh.project0512.service.IRankService;
|
|
|
|
|
import com.zh.project0512.utils.PropertyUtils;
|
|
|
|
|
import com.zh.project0512.utils.page.PageInfo;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.text.ParseException;
|
|
|
|
@ -28,7 +29,7 @@ public class RankServiceImpl implements IRankService {
|
|
|
|
|
RankMapper rankMapper;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public PageInfo<RankListVo> rankList(RankListDTO rankListDTO) {
|
|
|
|
|
public IPage<Rank> rankList( RankListDTO rankListDTO) {
|
|
|
|
|
ArrayList<RankListVo> rankListVoList = new ArrayList<>();
|
|
|
|
|
// Calendar cal = Calendar.getInstance();
|
|
|
|
|
// cal.setTime(new Date());
|
|
|
|
@ -40,7 +41,7 @@ public class RankServiceImpl implements IRankService {
|
|
|
|
|
// cal.set(Calendar.MILLISECOND,0);
|
|
|
|
|
// Date time = cal.getTime();
|
|
|
|
|
// SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
|
|
|
|
|
LocalDateTime now = LocalDateTime.now().minusMonths(1);
|
|
|
|
|
LocalDateTime now = rankListDTO.getDateTime() ==null ? LocalDateTime.now().minusMonths(1):rankListDTO.getDateTime();
|
|
|
|
|
String format = now.format(DateTimeFormatter.ofPattern("yyyy-MM"));
|
|
|
|
|
|
|
|
|
|
QueryWrapper<Rank> queryWrapper = new QueryWrapper<>();
|
|
|
|
@ -56,6 +57,6 @@ public class RankServiceImpl implements IRankService {
|
|
|
|
|
rankListVoList.add(rankListVo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return new PageInfo<>(rankIPage.getPages(), rankListVoList, rankIPage.getTotal());
|
|
|
|
|
return rankIPage;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|