|
|
|
@ -1,6 +1,5 @@
@@ -1,6 +1,5 @@
|
|
|
|
|
package com.cloud.kicc.system.devtools.controller; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
@ -12,7 +11,6 @@ import com.cloud.kicc.system.devtools.service.IGenQueryTypeService;
@@ -12,7 +11,6 @@ import com.cloud.kicc.system.devtools.service.IGenQueryTypeService;
|
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -23,7 +21,7 @@ import java.util.Arrays;
@@ -23,7 +21,7 @@ import java.util.Arrays;
|
|
|
|
|
* @author wangxiang4 |
|
|
|
|
* @since 2023-12-09 |
|
|
|
|
*/ |
|
|
|
|
@Controller |
|
|
|
|
@RestController |
|
|
|
|
@RequestMapping(AppConstants.APP_SYSTEM + "/devtools/genQueryType") |
|
|
|
|
@RequiredArgsConstructor |
|
|
|
|
public class GenQueryTypeController { |
|
|
|
@ -32,7 +30,9 @@ public class GenQueryTypeController {
@@ -32,7 +30,9 @@ public class GenQueryTypeController {
|
|
|
|
|
|
|
|
|
|
private LambdaQueryWrapper<GenQueryType> getQueryWrapper(GenQueryType genQueryType) { |
|
|
|
|
return new LambdaQueryWrapper<GenQueryType>() |
|
|
|
|
.like(StrUtil.isNotBlank(genQueryType.getLabel()), GenQueryType::getLabel, genQueryType.getLabel()); |
|
|
|
|
.like(StrUtil.isNotBlank(genQueryType.getLabel()), GenQueryType::getLabel, genQueryType.getLabel()) |
|
|
|
|
.like(StrUtil.isNotBlank(genQueryType.getValue()), GenQueryType::getValue, genQueryType.getValue()) |
|
|
|
|
.orderByAsc(GenQueryType::getSort); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/list") |
|
|
|
|