|
|
|
@ -13,6 +13,8 @@ import com.zh.project0512.utils.page.PageInfo;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.text.ParseException;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
import java.util.Date;
|
|
|
|
@ -30,11 +32,13 @@ public class RankServiceImpl implements IRankService {
|
|
|
|
|
cal.setTime(new Date());
|
|
|
|
|
cal.add(Calendar.MONTH,-1);
|
|
|
|
|
cal.set(Calendar.DAY_OF_MONTH,1);
|
|
|
|
|
cal.set(Calendar.HOUR_OF_DAY, 0);
|
|
|
|
|
cal.set(Calendar.MINUTE, 0);
|
|
|
|
|
cal.set(Calendar.SECOND, 0);
|
|
|
|
|
cal.set(Calendar.MILLISECOND,0);
|
|
|
|
|
Date time = cal.getTime();
|
|
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
|
|
|
|
|
try {
|
|
|
|
|
time = simpleDateFormat.parse(simpleDateFormat.format(time));
|
|
|
|
|
} catch (ParseException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QueryWrapper<Rank> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
queryWrapper.eq("type",rankListDTO.getType());
|
|
|
|
|