1
3 天以前 b1c9e5683cee961946e85297eb581f26cff694ef
rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/LocTypeController.java
@@ -13,6 +13,7 @@
import com.vincent.rsf.server.manager.entity.LocType;
import com.vincent.rsf.server.manager.entity.MatnrGroup;
import com.vincent.rsf.server.manager.service.LocTypeService;
import com.vincent.rsf.server.manager.utils.buildPageRowsUtils;
import com.vincent.rsf.server.system.controller.BaseController;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
@@ -20,7 +21,7 @@
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpServletResponse;
import java.util.*;
@Api(tags = "库位类型")
@@ -35,7 +36,9 @@
    public R page(@RequestBody Map<String, Object> map) {
        BaseParam baseParam = buildParam(map, BaseParam.class);
        PageParam<LocType, BaseParam> pageParam = new PageParam<>(baseParam, LocType.class);
        return R.ok().add(locTypeService.page(pageParam, pageParam.buildWrapper(true)));
        PageParam<LocType, BaseParam> page = locTypeService.page(pageParam, pageParam.buildWrapper(true));
        buildPageRowsUtils.userNameMap(page.getRecords());
        return R.ok().add(page);
    }
    @PreAuthorize("hasAuthority('manager:locType:list')")