fuint-application/application-web/src/main/java/com/fuint/application/web/backend/account/AccountDefineController.java
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.fuint.application.web.backend.account;
import com.fuint.base.dao.entities.TAccount;
import com.fuint.base.dao.pagination.PaginationRequest;
import com.fuint.base.dao.pagination.PaginationResponse;
import com.fuint.base.service.account.TAccountService;
import com.fuint.base.shiro.util.ShiroUserHelper;
import com.fuint.base.util.RequestHandler;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;
/**
* 用户管理Controller
*
* Created by FSQ
* Contact wx fsq_better
* Site https://www.fuint.cn
*/
@Controller
@RequestMapping(value = "/user")
public class AccountDefineController {
/**
* 账户服务接口
*/
@Autowired
private TAccountService htAccountServiceImpl;
/**
* 账户信息列表展现
*
* @param request HttpServletRequest对象
* @param response HttpServletResponse对象
* @param model SpringFramework Model对象
* @return 账户信息列表展现页面
*/
@RequiresPermissions("user/queryListByStore")
@RequestMapping(value = "/queryListByStore")
public String accountList(HttpServletRequest request, HttpServletResponse response, Model model) {
Long accID = ShiroUserHelper.getCurrentShiroUser().getId();
TAccount tAccount = htAccountServiceImpl.findAccountById(accID);
PaginationRequest paginationRequest = RequestHandler.buildPaginationRequest(request, model);
Map<String, Object> params = paginationRequest.getSearchParams();
if (tAccount.getStoreId()!=null && tAccount.getStoreId()!=-1) {
params.put("EQ_storeId", tAccount.getStoreId().toString());
}
paginationRequest.setSearchParams(params);
PaginationResponse<TAccount> paginationResponse = htAccountServiceImpl.findAccountsByPagination(paginationRequest);
model.addAttribute("paginationResponse", paginationResponse);
model.addAttribute("tAccount", tAccount);
后面还有 3 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。