瀏覽代碼

fix: 净值规模增加备案编码返回

chenjianhua 6 月之前
父節點
當前提交
68eee041af

+ 5 - 0
service-base/src/main/java/com/simuwang/base/pojo/dos/FundNavAssetDO.java

@@ -24,6 +24,10 @@ public class FundNavAssetDO {
      */
     private String fundName;
     /**
+     * 基金备案编码
+     */
+    private String registerNumber;
+    /**
      * 净值日期
      */
     private Date priceDate;
@@ -57,6 +61,7 @@ public class FundNavAssetDO {
         vo.setCumulativeNavWithdrawal(this.cumulativeNavWithdrawal);
         vo.setAssetNet(this.assetNet);
         vo.setAssetShare(this.assetShare);
+        vo.setRegisterNumber(this.registerNumber);
         vo.setUpdateTime(DateUtils.format(this.updateTime,DateUtils.YYYY_MM_DD_HH_MM_SS));
         return vo;
     }

+ 4 - 0
service-base/src/main/java/com/simuwang/base/pojo/vo/FundNavAssetVO.java

@@ -21,6 +21,10 @@ public class FundNavAssetVO {
      */
     private String fundName;
     /**
+     * 基金备案编码
+     */
+    private String registerNumber;
+    /**
      * 净值日期
      */
     private String priceDate;

+ 2 - 0
service-base/src/main/resources/mapper/FundNavAssetMapper.xml

@@ -4,6 +4,7 @@
     <resultMap id="BaseResultMap" type="com.simuwang.base.pojo.dos.FundNavAssetDO">
         <result column="fund_id" property="fundId"/>
         <result column="fund_short_name" property="fundName"/>
+        <result column="register_number" property="registerNumber"/>
         <result column="price_date" property="priceDate"/>
         <result column="nav" property="nav"/>
         <result column="cumulative_nav_withdrawal" property="cumulativeNavWithdrawal"/>
@@ -16,6 +17,7 @@
         SELECT distinct
         info.fund_id,
         info.fund_short_name,
+        info.register_number,
         COALESCE(
         nav.price_date,
         asset.price_date