便利查询 权限添加
This commit is contained in:
@@ -34,7 +34,7 @@ public class ConvenientInquiryController {
|
|||||||
@GetMapping("/getTrial")
|
@GetMapping("/getTrial")
|
||||||
public Response<List<TrialOrder>> getTrial(){
|
public Response<List<TrialOrder>> getTrial(){
|
||||||
Long accountId = UserContext.getUserHolder().getId();
|
Long accountId = UserContext.getUserHolder().getId();
|
||||||
if (accountId.equals(31L) || accountId.equals(87L) || accountId.equals(83L) || accountId.equals(6L)){
|
if (accountId.equals(31L) || accountId.equals(87L) || accountId.equals(83L) || accountId.equals(6L) || accountId.equals(4L) || accountId.equals(73L)){
|
||||||
List<TrialOrder> trialOrders = trialOrderMapper.selectList(null);
|
List<TrialOrder> trialOrders = trialOrderMapper.selectList(null);
|
||||||
return Response.success(trialOrders);
|
return Response.success(trialOrders);
|
||||||
}else {
|
}else {
|
||||||
@@ -46,7 +46,7 @@ public class ConvenientInquiryController {
|
|||||||
@GetMapping("/getDesignStatistic")
|
@GetMapping("/getDesignStatistic")
|
||||||
public Response<List<UserDesignStatisticDTO>> getDesignStatistic(@RequestParam String startTime,@RequestParam String endTime){
|
public Response<List<UserDesignStatisticDTO>> getDesignStatistic(@RequestParam String startTime,@RequestParam String endTime){
|
||||||
Long accountId = UserContext.getUserHolder().getId();
|
Long accountId = UserContext.getUserHolder().getId();
|
||||||
if (accountId.equals(31L) || accountId.equals(87L) || accountId.equals(83L) || accountId.equals(6L)){
|
if (accountId.equals(31L) || accountId.equals(87L) || accountId.equals(83L) || accountId.equals(6L) || accountId.equals(4L) || accountId.equals(73L)){
|
||||||
if (StringUtil.isNullOrEmpty(startTime)) startTime = "2024-02-01 00:00:00";
|
if (StringUtil.isNullOrEmpty(startTime)) startTime = "2024-02-01 00:00:00";
|
||||||
if (StringUtil.isNullOrEmpty(endTime)){
|
if (StringUtil.isNullOrEmpty(endTime)){
|
||||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
|
||||||
|
|||||||
Reference in New Issue
Block a user