FundNavAssetController.java 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package com.simuwang.manage.api.navAsset;
  2. import com.simuwang.base.common.support.MybatisPage;
  3. import com.simuwang.base.pojo.dto.query.DistributionPageQuery;
  4. import com.simuwang.base.pojo.dto.query.FundNavAssetPageQuery;
  5. import com.simuwang.base.pojo.vo.*;
  6. import com.simuwang.logging.SystemLog;
  7. import com.simuwang.manage.service.FundNavAssetService;
  8. import com.smppw.common.pojo.ResultVo;
  9. import jakarta.servlet.http.HttpServletRequest;
  10. import jakarta.servlet.http.HttpServletResponse;
  11. import org.springframework.beans.factory.annotation.Autowired;
  12. import org.springframework.web.bind.annotation.*;
  13. import org.springframework.web.multipart.MultipartFile;
  14. /**
  15. * 净值规模管理
  16. * Author: chenjianhua
  17. * Date: 2024/9/15 16:46
  18. * Description: ${DESCRIPTION}
  19. */
  20. @SystemLog(value = "净值规模管理")
  21. @RestController
  22. @RequestMapping("/v1/nav-asset")
  23. public class FundNavAssetController {
  24. @Autowired
  25. private FundNavAssetService fundNavAssetService;
  26. /**
  27. * 基金净值规模页面展示查询
  28. * @param fundNavAssetPageQuery
  29. * @return
  30. */
  31. @SystemLog(value = "基金净值规模页面展示查询")
  32. @RequestMapping("search-nav-asset-list")
  33. public MybatisPage<FundNavAssetVO> searchNavAssetList(FundNavAssetPageQuery fundNavAssetPageQuery){
  34. MybatisPage<FundNavAssetVO> result = fundNavAssetService.searchNavAssetList(fundNavAssetPageQuery);
  35. return result;
  36. }
  37. /**
  38. * 新增基金规模
  39. * @param fundAssetVO
  40. * @return
  41. */
  42. @SystemLog(value = "新增基金规模")
  43. @PostMapping("/save-fund-asset")
  44. public ResultVo saveFundAsset(@RequestBody FundAssetVO fundAssetVO){
  45. fundNavAssetService.saveFundAsset(fundAssetVO);
  46. return ResultVo.ok(true);
  47. }
  48. /**
  49. * 新增基金规模
  50. * @param fundNavVO
  51. * @return
  52. */
  53. @SystemLog(value = "新增基金规模")
  54. @PostMapping("/save-fund-nav")
  55. public ResultVo saveFundNav(@RequestBody FundNavVO fundNavVO){
  56. fundNavAssetService.saveFundNav(fundNavVO);
  57. return ResultVo.ok(true);
  58. }
  59. @SystemLog(value = "删除基金规模")
  60. @RequestMapping("/delete-fund-nav-asset")
  61. public ResultVo deleteFundNavAsset(@RequestBody FundNavAssetDelListVO fundNavAssetDelListVO){
  62. fundNavAssetService.deleteFundNavAsset(fundNavAssetDelListVO);
  63. return ResultVo.ok(true);
  64. }
  65. /**
  66. * 上传分红信息
  67. * @param file
  68. * @param response
  69. * @param request
  70. * @return
  71. */
  72. @SystemLog(value = "上传分红信息")
  73. @RequestMapping("upload-nav-asset")
  74. public ResultVo uploadNavAsset(@RequestParam(value = "file",required = false) MultipartFile file, HttpServletResponse response, HttpServletRequest request){
  75. ResultVo vo = fundNavAssetService.uploadNavAsset(file);
  76. return vo;
  77. }
  78. }