zhang
2025-07-03 9483baffba9a24a2a36fc8739fc65b59317d9142
zy-acs-framework/src/main/resources/templates/react-admin/Controller.txt
@@ -11,6 +11,7 @@
import com.zy.acs.manager.common.domain.PageParam;
import @{COMPANYNAME}.entity.@{ENTITYNAME};
import @{COMPANYNAME}.service.@{ENTITYNAME}Service;
import com.zy.acs.manager.system.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
@@ -39,7 +40,7 @@
        return R.ok().add(@{SIMPLEENTITYNAME}Service.list());
    }
    @PreAuthorize("hasAuthority('system:@{SIMPLEENTITYNAME}:list')")
    @PreAuthorize("hasAuthority('@{ITEMNAME}:@{SIMPLEENTITYNAME}:list')")
    @PostMapping({"/@{SIMPLEENTITYNAME}/many/{ids}", "/@{SIMPLEENTITYNAME}s/many/{ids}"})
    public R many(@PathVariable Long[] ids) {
        return R.ok().add(@{SIMPLEENTITYNAME}Service.listByIds(Arrays.asList(ids)));