Commit 0cd03027 by 吴迪

【修改】修改返回详情

parent 531e5f94
......@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.office.modules.app.annotation.Login;
import io.office.modules.manage.entity.DocEntity;
import io.office.modules.manage.vo.request.ShortCodeVo;
import io.office.modules.manage.vo.response.BranchEntityVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
......@@ -55,8 +56,7 @@ public class BranchController {
@RequestMapping("/info/{branchCode}")
// @RequiresPermissions("manage:branch:info")
public R info(@PathVariable("branchCode") String branchCode){
BranchEntity branch = branchService.getById(branchCode);
BranchEntityVo branch = branchService.getBranchDetail(branchCode);
return R.ok().put("data", branch);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment