haogh 9 月之前
父节点
当前提交
fe25bb11b1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      sop-api/src/main/java/com/qmth/sop/server/api/SysCustomController.java

+ 2 - 2
sop-api/src/main/java/com/qmth/sop/server/api/SysCustomController.java

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