#
zhou zhou
2 天以前 523365960513f297024a419f94b2b42eccd9456f
rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/CustomerController.java
@@ -11,12 +11,13 @@
import com.vincent.rsf.server.common.domain.PageParam;
import com.vincent.rsf.server.manager.entity.Customer;
import com.vincent.rsf.server.manager.service.CustomerService;
import com.vincent.rsf.server.manager.utils.buildPageRowsUtils;
import com.vincent.rsf.server.system.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpServletResponse;
import java.util.*;
@RestController
@@ -30,7 +31,9 @@
    public R page(@RequestBody Map<String, Object> map) {
        BaseParam baseParam = buildParam(map, BaseParam.class);
        PageParam<Customer, BaseParam> pageParam = new PageParam<>(baseParam, Customer.class);
        return R.ok().add(customerService.page(pageParam, pageParam.buildWrapper(true)));
        PageParam<Customer, BaseParam> page = customerService.page(pageParam, pageParam.buildWrapper(true));
        buildPageRowsUtils.userNameMap(page.getRecords());
        return R.ok().add(page);
    }
    @PreAuthorize("hasAuthority('manager:customer:list')")