|
@@ -30,6 +30,7 @@ import javax.validation.Valid;
|
|
|
import javax.validation.constraints.Max;
|
|
|
import javax.validation.constraints.Min;
|
|
|
import java.util.Map;
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
/**
|
|
|
* 客户表 控制器.
|
|
@@ -142,7 +143,6 @@ public class SysCustomController {
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = SysCustom.class)})
|
|
|
public Result list(@ApiParam(value = "是否启用", required = false) @RequestParam(required = false) Boolean enable,
|
|
|
@ApiParam(value = "类型", required = false) @RequestParam(required = false) ProductTypeEnum type) {
|
|
|
-// sysCustomService.list(new QueryWrapper<SysCustom>().lambda().eq(Objects.nonNull(enable), SysCustom::getEnable, enable).eq(Objects.nonNull(type), SysCustom::getType, type))
|
|
|
- return ResultUtil.ok(sysCustomService.listCustomer(enable, type));
|
|
|
+ return ResultUtil.ok(sysCustomService.list(new QueryWrapper<SysCustom>().lambda().eq(Objects.nonNull(enable), SysCustom::getEnable, enable).eq(Objects.nonNull(type), SysCustom::getType, type)));
|
|
|
}
|
|
|
}
|