基于javaweb+mysql的springboot理财管理系统设计和实现(java+springboot+ssm+thymeleaf+html+maven)
私信源码获取及调试交流
运行环境
Java≥8、MySQL≥5.7
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
基于javaweb的SpringBoot理财管理系统设计和实现(java+springboot+ssm+thymeleaf+html+maven)
spring boot,spring,spring mvc,mybatis,shiro框架分页处理使用了pagehelper进行操作,前台使用了模板语言thymeleaf,界面较为炫酷,适合年轻朋友。开发工具采用的是IDEA。该系统主要解决了理财中的一些问题,包含功能:权限管理,用户信息管理,理财产品管理等内容。
主要分为管理员和普通用户两种用户;
1.管理员模块主要包括:
用户信息管理:用户信息、银行卡、个人征信;
理财产品管理:零钱理财、工资理财、期限理财、基金理财、精选银行;
权限管理:用户权限、管理员权限
网贷管理:网贷审核、网贷信息;
2.普通用户模块主要包括
个人理财:零钱理财、工资理财、期限理财、基金理财、银行推荐;
金融工具:资金记录、安全网贷;
个人中心:我的理财、我的借贷、银行卡管理、账户安全;
/**
* 修改银行卡时回显银行卡信息
*
* @param id
* @return
*/
@GetMapping("/user/getBankCardById/{id}")
@ResponseBody
public Msg getBankCardById(@PathVariable("id") Integer id) {
Bankcard bankcard = bankCardService.selectBankCardById(id);
return Msg.success().add("bankcard", bankcard);
}
/**
* 修改银行卡信息
*
* @param id
* @param bankcard
* @return
*/
@PutMapping("/user/updateBankCard/{update-id}")
@ResponseBody
public Msg updateBankCard(@PathVariable("update-id") Integer id, Bankcard bankcard) {
bankcard.setId(id);
Integer result = bankCardService.updateBankCard(bankcard);
if (result == 1) {
return Msg.success();
}
return Msg.fail();
}
/**
* 删除银行卡
*
* @param id
* @return
*/
@DeleteMapping("/user/deleteBankCard/{id}")
@ResponseBody
public Msg deleteBankCard(@PathVariable("id") Integer id) {
Integer result = bankCardService.deleteBankCardById(id);
if (result == 1) {
return Msg.success();
}
return Msg.fail();
}
/**
* 跳转到银行卡管理界面(管理员)
* @param pageNum
* @param pageSize
return "/admin/userinfo/bankcard";
}
}
@Controller
public class BankController {
@Autowired
BankService bankService;
/**
* 跳转用户银行推荐界面
* @param model
* @return
*/
@RequestMapping("/user/finance/toBank.html")
public String toBank(Model model){
List<Bank> list = bankService.selectAllBank();
model.addAttribute("bankList",list);
model.addAttribute("pageTopBarInfo","银行推荐界面");
model.addAttribute("activeUrl1","financeActive");
model.addAttribute("activeUrl2","bankActive");
return "user/finance/bank";
}
/**
* 跳转到推荐银行管理界面(管理员)
* @param pageNum
* @param pageSize
* @param model
* @param session
* @return
*/
@GetMapping("/admin/finance/toBank.html")
public String toBank(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
/**
* 删除消息
* @param id
* @return
*/
@DeleteMapping("/user/deleteInfo/{infoId}")
@ResponseBody
public Msg deleteInfo(@PathVariable("infoId") Integer id) {
Integer result = infoService.deleteInfobyId(id);
if (result == 1) {
return Msg.success();
}
return Msg.fail();
}
}
@Controller
public class RecoderController {
@Autowired
FlowOfFundsService flowOfFundsService;
/**
* 跳转到资金记录界面
* @param model
* @return
*/
@RequestMapping("/user/tools/toRecord.html")
public String toRecoder(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
Model model, HttpSession session) {
// 引入PageHelper插件,在查询之前调用startPage方法,传入页码以及每页大小
PageHelper.startPage(pageNum, pageSize);
User user = (User) session.getAttribute("loginUser");
List<FlowOfFunds> list = flowOfFundsService.selectFlowOfFundsByUserId(user.getId());
// 使用PageInfo包装查询后的结果,并交给页面处理
// PageInfo封装了详细的分页信息,包括我们查询出来的数据,还可以传入连续显示的页数(5)
}
/**
* 修改银行卡信息
*
* @param id
* @param bankcard
* @return
*/
@PutMapping("/user/updateBankCard/{update-id}")
@ResponseBody
public Msg updateBankCard(@PathVariable("update-id") Integer id, Bankcard bankcard) {
bankcard.setId(id);
Integer result = bankCardService.updateBankCard(bankcard);
if (result == 1) {
return Msg.success();
}
return Msg.fail();
}
/**
* 删除银行卡
*
* @param id
* @return
*/
@DeleteMapping("/user/deleteBankCard/{id}")
@ResponseBody
public Msg deleteBankCard(@PathVariable("id") Integer id) {
Integer result = bankCardService.deleteBankCardById(id);
if (result == 1) {
return Msg.success();
}
return Msg.fail();
}
/**
* 跳转到银行卡管理界面(管理员)
* @param pageNum
* @param pageSize
* @param model
* @param session
* @return
*/
@GetMapping("/admin/userinfo/toBankCard.html")
public String toBankCard1(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
Model model, HttpSession session) {
PageHelper.startPage(pageNum, pageSize);
List<Bankcard> list = bankCardService.selectAllBankCard();
PageInfo<Bankcard> pageInfo = new PageInfo<Bankcard>(list, 5);
for (UserPermissions userPermissions : list) {
list2.add(userPermissions.getPermissions().getPermission());
}
model.addAttribute("permissionsList", list2);
//session.setAttribute("permissionsList",list);
model.addAttribute("activeUrl1", "permissionActive");
model.addAttribute("activeUrl2", "userPermissionsActive");
model.addAttribute("pageTopBarInfo", "用户权限管理界面");
return "/admin/permission/userpermissions";
}
/**
* 更新用户权限
* @param userPermissions
* @return
*/
@PutMapping("/admin/updateUserPermissions")
@ResponseBody
public Msg updateUserPermissions(@RequestParam("userPermissions")String userPermissions){
String[] strings = userPermissions.split(";");
//System.out.println(strings.length+":"+ Arrays.toString(strings));
userPermissionsService.deleteAllUserPermissionsByUserId(1);
for (String string : strings) {
UserPermissions up = new UserPermissions();
up.setUserid(1);
up.setPermissionid(permissionsService.selectPermissionsByPermission(string).get(0).getId());
userPermissionsService.insertUserPermissions(up);
}
return Msg.success();
}
@GetMapping("/admin/permission/toAdminPermissions.html")
public String toAdminPermission(Model model, HttpSession session) {
List<AdminPermissions> list = adminPermissionsService.selectAdminPermissionsByAdminId(1);
ArrayList<String> list2 = new ArrayList<>();
for (AdminPermissions adminPermissions : list) {
list2.add(adminPermissions.getPermissions().getPermission());
}
model.addAttribute("permissionsList", list2);
model.addAttribute("activeUrl1", "permissionActive");
model.addAttribute("activeUrl2", "adminPermissionsActive");
model.addAttribute("pageTopBarInfo", "管理员权限管理界面");
return "/admin/permission/adminpermissions";
}
@PutMapping("/admin/updateAdminPermissions")
@ResponseBody
public Msg updateAdminPermissions(@RequestParam("adminPermissions")String adminPermissions){
String[] strings = adminPermissions.split(";");
//System.out.println(strings.length+":"+ Arrays.toString(strings));
* @param pageNum
* @param pageSize
* @param model
* @param session
* @return
*/
@GetMapping("/admin/finance/toPayMoney.html")
public String toPayMoneyInfo(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
Model model, HttpSession session) {
PageHelper.startPage(pageNum, pageSize);
List<PayMoney> list = payMoneyService.selectAllPayMoney();
PageInfo<PayMoney> pageInfo = new PageInfo<PayMoney>(list, 5);
model.addAttribute("finacnePageInfo",pageInfo);
model.addAttribute("financeList",list);
model.addAttribute("activeUrl1", "financeActive");
model.addAttribute("activeUrl2", "paymoneyActive");
model.addAttribute("pageTopBarInfo", "工资理财管理界面");
return "/admin/finance/paymoney";
}
/**
* 新增工资理财产品
* @param payMoney
* @return
*/
@PostMapping("/admin/addPayMoney")
@ResponseBody
public Msg addPayMoney(PayMoney payMoney){
Integer result = payMoneyService.insertPayMoney(payMoney);
if (result==1){
return Msg.success();
}
return Msg.fail();
}
/**
* 更新时回显信息
* @param id
* @return
*/
@GetMapping("/admin/getPayMoneyInfoById/{id}")
@ResponseBody
public Msg getPayMoneyInfoById(@PathVariable("id") Integer id){
PayMoney payMoney = payMoneyService.selectPayMoneyById(id);
return Msg.success().add("payMoney",payMoney);
}
/**
* 更新
* @param id
@PostMapping("/user/buyFundProduct")
@ResponseBody
public Msg buyFundProduct(@RequestParam("fundProductId")Integer fundProductId,
@RequestParam("userId") Integer userId ){
UserFundProduct ufp = new UserFundProduct();
ufp.setUserid(userId);
ufp.setFundid(fundProductId);
ufp.setStarttime(new Date());
FundProduct fp = fundProductService.selectFundProductById(fundProductId);
ufp.setAveryield(fp.getMonthlygrowth());
ufp.setProfit(fp.getLeastmoney().multiply(fp.getMonthlygrowth()));
ufp.setStatus(1);
Integer result = userFundProductService.insertUserFundProduct(ufp);
if (result==1){
FlowOfFunds fof = new FlowOfFunds();
fof.setUserid(userId);
fof.setFlowmoney(fp.getLeastmoney());
fof.setType(1);
fof.setSource(fp.getFunddesc());
fof.setCreatetime(new Date());
fof.setFunddesc("无");
flowOfFundsService.insertFlowOfFunds(fof);
return Msg.success();
}else {
return Msg.fail();
}
}
/**
* 跳转到基金理财管理界面(管理员)
* @param pageNum
* @param pageSize
* @param model
* @param session
* @return
*/
@GetMapping("/admin/finance/toFundProduct.html")
public String toFundProduct(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
Model model, HttpSession session) {
PageHelper.startPage(pageNum, pageSize);
List<FundProduct> list = fundProductService.selectAllFundProduct();
PageInfo<FundProduct> pageInfo = new PageInfo<FundProduct>(list, 5);
model.addAttribute("finacnePageInfo",pageInfo);
model.addAttribute("financeList",list);
model.addAttribute("activeUrl1", "financeActive");
model.addAttribute("activeUrl2", "fundproductActive");
model.addAttribute("pageTopBarInfo", "基金理财管理界面");
/**
* 登陆拦截器:未登录用户不能访问系统界面
*/
public class LoginHandlerInterceptor implements HandlerInterceptor {
//目标方法执行之前
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
Object user = request.getSession().getAttribute("loginUser");
Object admin = request.getSession().getAttribute("loginAdmin");
if(user == null&&admin==null){
//未登陆,返回登陆页面
request.setAttribute("msg","没有权限请先登陆");
System.out.println("LoginHandlerInterceptor.preHandle" + "----------------未登入------拦截请求--------------->");
response.sendRedirect("/");
return false;
}else{
//已登陆,放行请求
return true;
}
}
@Override
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
}
@Override
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
}
}
@GetMapping("/loginVerifyUsername/{username}")
@ResponseBody
public Msg loginVerifyUsername(@PathVariable("username") String username) {
User user = userService.selectUserByTerms(username, null);
if (user != null) {
return Msg.success();
}
Admin admin = adminService.selectAdminByTerms(username, null);
if (admin != null) {
return Msg.success();
}
return Msg.fail();
}
@GetMapping("/verifyLogin")
@ResponseBody
public Msg verifyLogin(@RequestParam("username") String username, @RequestParam("password") String password,
HttpSession session) {
User loginUser = userService.selectUserByTerms(username, password);
if (loginUser != null) {
//获取当前用户
Subject subject = SecurityUtils.getSubject();
//封装用户登录数据
UsernamePasswordToken token = new UsernamePasswordToken(username, password);
try {
subject.login(token);
return Msg.success().add("url", "/user/index.html");
} catch (UnknownAccountException | IncorrectCredentialsException e) {
return Msg.fail();
}
}
Admin admin = adminService.selectAdminByTerms(username, password);
if (admin != null) {
//获取当前用户
Subject subject = SecurityUtils.getSubject();
//封装用户登录数据
UsernamePasswordToken token = new UsernamePasswordToken(username, password);
try {
subject.login(token);
return Msg.success().add("url", "/admin/index.html");
} catch (UnknownAccountException | IncorrectCredentialsException e) {
//model.addAttribute("msg","密码错误");
return Msg.fail();
}
}
return Msg.fail();
}
@PostMapping("/register")
@ResponseBody
public Msg register(@RequestParam("username") String username, @RequestParam("password") String password) {
User user = new User();
@Controller
public class BankCardController {
@Autowired
BankCardService bankCardService;
/**
* 跳转到银行卡管理界面(用户)
*
* @param model
* @param session
* @return
*/
@GetMapping("/user/personal/toBankCard.html")
public String toBankCard(Model model, HttpSession session) {
User loginUser = (User) session.getAttribute("loginUser");
List<Bankcard> list = bankCardService.selectBankCardByUserId(loginUser.getId());
model.addAttribute("bankCardList", list);
model.addAttribute("pageTopBarInfo", "银行卡管理界面");
model.addAttribute("activeUrl1", "personalActive");
model.addAttribute("activeUrl2", "bankCardActive");
return "/user/personal/bankcard";
}
/**
* 新增银行卡
*
* @param bankcard
* @param session
* @return
*/
@PostMapping("/user/addBankCard")
@ResponseBody
public Msg addBankCard(Bankcard bankcard, HttpSession session) {
//System.out.println(bankcard.getCardbank());
User loginUser = (User) session.getAttribute("loginUser");
bankcard.setUserid(loginUser.getId());
Integer result = bankCardService.insertBankCard(bankcard);
if (result == 1) {
return Msg.success();
}
return Msg.fail();
}
/**
* 修改银行卡时回显银行卡信息
*
* @param id
adminPermissionsService.insertAdminPermissions(ap);
}
return Msg.success();
}
}
@Controller
public class BankCardController {
@Autowired
BankCardService bankCardService;
/**
* 跳转到银行卡管理界面(用户)
*
* @param model
* @param session
* @return
*/
@GetMapping("/user/personal/toBankCard.html")
public String toBankCard(Model model, HttpSession session) {
User loginUser = (User) session.getAttribute("loginUser");
List<Bankcard> list = bankCardService.selectBankCardByUserId(loginUser.getId());
model.addAttribute("bankCardList", list);
model.addAttribute("pageTopBarInfo", "银行卡管理界面");
model.addAttribute("activeUrl1", "personalActive");
model.addAttribute("activeUrl2", "bankCardActive");
return "/user/personal/bankcard";
}
response.setCharacterEncoding(code);
response.setContentType("text/html;charset=" + code);
// 将现在的reuqest对象换成我自己的request对象
MyHttpServletRequest myRequest = new MyHttpServletRequest((HttpServletRequest) request);
//System.out.println("Filter");
// 跳转到请求的资源,并传入自己定义的myRequest对象
chain.doFilter(myRequest, response);
}
public void init(FilterConfig fConfig) throws ServletException {
// 获取配置的编码格式
code = fConfig.getInitParameter("code");
// 获取xml文件<init-param>标签中code的value//如果没有配置,就使用UTF-8默认编码
this.code = code == null || "".equals(code.trim()) ? "utf-8" : code;
}
// 重新定义一个自己的request对象,继承HttpServletRequestWrapper 这个HttpServletRequest的适配器
class MyHttpServletRequest extends HttpServletRequestWrapper {
public MyHttpServletRequest(HttpServletRequest request) {
super(request);
}
// 重写getParameter方法
@Override
public String getParameter(String name) {
String value = super.getParameter(name);
if (value == null)
return null;
// 判断只要不是“get”方式提交就直接返回,equalsIgnoreCase方法是不考虑大小写的匹配
if (!"get".equalsIgnoreCase(super.getMethod()))
return value;
// 如果请求方式为"get",那么就进行加码,解码码表为父类的码表
try {
value = new String(value.getBytes("ISO-8859-1"), super.getCharacterEncoding());
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return value;
}
}
}
request.setCharacterEncoding(code);
response.setCharacterEncoding(code);
response.setContentType("text/html;charset=" + code);
// 将现在的reuqest对象换成我自己的request对象
MyHttpServletRequest myRequest = new MyHttpServletRequest((HttpServletRequest) request);
//System.out.println("Filter");
// 跳转到请求的资源,并传入自己定义的myRequest对象
chain.doFilter(myRequest, response);
}
public void init(FilterConfig fConfig) throws ServletException {
// 获取配置的编码格式
code = fConfig.getInitParameter("code");
// 获取xml文件<init-param>标签中code的value//如果没有配置,就使用UTF-8默认编码
this.code = code == null || "".equals(code.trim()) ? "utf-8" : code;
}
// 重新定义一个自己的request对象,继承HttpServletRequestWrapper 这个HttpServletRequest的适配器
class MyHttpServletRequest extends HttpServletRequestWrapper {
public MyHttpServletRequest(HttpServletRequest request) {
super(request);
}
// 重写getParameter方法
@Override
public String getParameter(String name) {
String value = super.getParameter(name);
if (value == null)
return null;
// 判断只要不是“get”方式提交就直接返回,equalsIgnoreCase方法是不考虑大小写的匹配
if (!"get".equalsIgnoreCase(super.getMethod()))
return value;
// 如果请求方式为"get",那么就进行加码,解码码表为父类的码表
try {
value = new String(value.getBytes("ISO-8859-1"), super.getCharacterEncoding());
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return value;
}
}
}
Loan loan = loanService.selectLoanById(id);
loan.setExamineid(admin.getId());
loan.setApplystatus(1);
Integer result = loanService.updateLoan(loan);
if (result == 1) {
Info info = new Info();
info.setSendid(admin.getId());
info.setReceiveid(loan.getUser().getId());
info.setCreatetime(new Date());
info.setTitle("网贷审核未通过");
info.setInfodesc("用户" + loan.getUser().getUsername() + "的" + loan.getAmount() + "元网贷申请审核未通过!审核人为:" + admin.getUsername());
info.setStatus(0);
infoService.insertInfo(info);
return Msg.success();
}
return Msg.fail();
}
/**
* 跳转到网贷信息界面(管理员)
*
* @param pageNum
* @param pageSize
* @param model
* @param session
* @return
*/
@GetMapping("/admin/loan/toLoaninfo.html")
public String toLoaninfo(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
Model model, HttpSession session) {
// 引入PageHelper插件,在查询之前调用startPage方法,传入页码以及每页大小
PageHelper.startPage(pageNum, pageSize);
List<Loan> list = loanService.selectAllExamedLoan();
// 使用PageInfo包装查询后的结果,并交给页面处理
// PageInfo封装了详细的分页信息,包括我们查询出来的数据,还可以传入连续显示的页数(5)
PageInfo<Loan> pageInfo = new PageInfo<Loan>(list, 5);
model.addAttribute("loanPageInfo", pageInfo);
model.addAttribute("loanList", list);
model.addAttribute("activeUrl1", "loanActive");
model.addAttribute("activeUrl2", "loaninfoActive");
model.addAttribute("pageTopBarInfo", "网贷信息界面");
return "admin/loan/loaninfo";
}
@PutMapping("/loan/remindPay/{id}")
* @param session
* @return
*/
@RequestMapping("/user/personal/toProfile.html")
public String toProfile(Model model, HttpSession session) {
User loginUser = (User) session.getAttribute("loginUser");
User user = userService.selectUserById(loginUser.getId());
model.addAttribute("user", user);
model.addAttribute("pageTopBarInfo", "个人信息界面");
return "/user/personal/profile";
}
/**
* 判断并更新密码(用户)
*
* @param request
* @return
*/
@PutMapping("/user/updatePwd")
@ResponseBody
public Msg updatePwd(HttpServletRequest request, HttpSession session) {
String id = request.getParameter("id");
User user = userService.selectUserById(Integer.valueOf(id));
String oldpwd = request.getParameter("oldpwd");
String newpwd = request.getParameter("newpwd");
User verifyExistUser = userService.selectUserByTerms(user.getUsername(), oldpwd);
if (verifyExistUser != null) {
user.setPassword(newpwd);
// 当前登录用户信息改变时session里面存储的用户信息也应该同时改变
User loginUser = (User) session.getAttribute("loginUser");
if (Integer.valueOf(id) == (loginUser.getId())) {
session.setAttribute("loginUser", user);
}
userService.updateUser(user);
return Msg.success();
}
return Msg.fail();
}
/**
* 更新用户信息(用户更改自己信息)
*
* @param id
* @param user
* @param session
* @return
info.setSendid(admin.getId());
info.setReceiveid(loan.getLoanid());
info.setCreatetime(new Date());
info.setTitle("网贷审核通过");
info.setInfodesc("用户" + loan.getUser().getUsername() + "的" + loan.getAmount() + "元网贷申请审核通过!审核人为:" + admin.getUsername());
info.setStatus(0);
infoService.insertInfo(info);
return Msg.success();
}
return Msg.fail();
}
/**
* 审核不通过
*
* @param id
* @return
*/
@PutMapping("/loan/notPassApplyStatus/{id}")
@ResponseBody
public Msg notPassApplyStatus(@PathVariable("id") Integer id, HttpSession session) {
Admin admin = (Admin) session.getAttribute("loginAdmin");
Loan loan = loanService.selectLoanById(id);
loan.setExamineid(admin.getId());
loan.setApplystatus(1);
Integer result = loanService.updateLoan(loan);
if (result == 1) {
Info info = new Info();
info.setSendid(admin.getId());
info.setReceiveid(loan.getUser().getId());
info.setCreatetime(new Date());
info.setTitle("网贷审核未通过");
info.setInfodesc("用户" + loan.getUser().getUsername() + "的" + loan.getAmount() + "元网贷申请审核未通过!审核人为:" + admin.getUsername());
info.setStatus(0);
infoService.insertInfo(info);
return Msg.success();
}
return Msg.fail();
}
/**
* 跳转到网贷信息界面(管理员)
*
* @param pageNum
* @param pageSize
* @param model
* @param session
List<FundProduct> list = fundProductService.selectAllFundProduct();
PageInfo<FundProduct> pageInfo = new PageInfo<FundProduct>(list, 5);
model.addAttribute("finacnePageInfo",pageInfo);
model.addAttribute("financeList",list);
model.addAttribute("activeUrl1", "financeActive");
model.addAttribute("activeUrl2", "fundproductActive");
model.addAttribute("pageTopBarInfo", "基金理财管理界面");
return "/admin/finance/fundproduct";
}
/**
* 新增基金理财产品
*
* @return
*/
@PostMapping("/admin/addFundProduct")
@ResponseBody
public Msg addFundProduct(FundProduct fundProduct){
Integer result = fundProductService.insertFundProduct(fundProduct);
if (result==1){
return Msg.success();
}
return Msg.fail();
}
/**
* 更新时回显信息
* @param id
* @return
*/
@GetMapping("/admin/getFundProductInfoById/{id}")
@ResponseBody
public Msg getFundProductInfoById(@PathVariable("id") Integer id){
FundProduct fundProduct = fundProductService.selectFundProductById(id);
//System.out.println(fundProduct.getFunddesc());
return Msg.success().add("fundProduct",fundProduct);
}
/**
* 更新
* @param id
*
* @return
*/
@PutMapping("/admin/updateFundProduct/{id}")
@ResponseBody