根据角色主键id查询角色权限信息

master
kanade 3 years ago
parent a1e8021cc6
commit 7b344125e3

@ -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());

Loading…
Cancel
Save