zhou zhou
2 天以前 f27309d45c7ef46b0aea98107b67d0c5b46d4217
rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/CompanysController.java
@@ -15,6 +15,7 @@
import com.vincent.rsf.server.manager.entity.Warehouse;
import com.vincent.rsf.server.manager.service.CompanysService;
import com.vincent.rsf.server.system.constant.SerialRuleCode;
import com.vincent.rsf.server.manager.utils.buildPageRowsUtils;
import com.vincent.rsf.server.system.controller.BaseController;
import com.vincent.rsf.server.system.utils.SerialRuleUtils;
import io.swagger.annotations.Api;
@@ -38,7 +39,9 @@
    public R page(@RequestBody Map<String, Object> map) {
        BaseParam baseParam = buildParam(map, BaseParam.class);
        PageParam<Companys, BaseParam> pageParam = new PageParam<>(baseParam, Companys.class);
        return R.ok().add(companysService.page(pageParam, pageParam.buildWrapper(true)));
        PageParam<Companys, BaseParam> page = companysService.page(pageParam, pageParam.buildWrapper(true));
        buildPageRowsUtils.userNameMap(page.getRecords());
        return R.ok().add(page);
    }
    @PreAuthorize("hasAuthority('manager:companys:list')")