Преглед на файлове

fix: 详情处理优化

chenjianhua преди 4 месеца
родител
ревизия
6851f60bb1

+ 9 - 14
service-base/src/main/java/com/simuwang/base/pojo/dos/EmailFundNavCollectionDO.java

@@ -93,27 +93,22 @@ public class EmailFundNavCollectionDO {
     /**
      * 记录的有效性;1-有效;0-无效
      */
-    @TableField(value = "isvalid")
     private Integer isvalid;
     /**
      * 创建者Id;第一次创建时与Creator值相同,修改时与修改人值相同
      */
-    @TableField(value = "creatorid")
     private Integer creatorId;
     /**
      * 修改者Id;第一次创建时与Creator值相同,修改时与修改人值相同
      */
-    @TableField(value = "updaterid")
     private Integer updaterId;
     /**
      * 创建时间,默认第一次创建的getdate()时间
      */
-    @TableField(value = "createtime")
     private Date createTime;
     /**
      * 修改时间;第一次创建时与CreatTime值相同,修改时与修改时间相同
      */
-    @TableField(value = "updatetime")
     private Date updateTime;
 
     public EmailFundNavCollectionVO toVO() {
@@ -121,15 +116,15 @@ public class EmailFundNavCollectionDO {
         vo.setFileId(fileId);
         vo.setEmailId(emailId);
         vo.setId(id);
-        vo.setFundName(getFundName());
-        vo.setAssetNet(getAssetNet());
-        vo.setAssetShare(getAssetShare());
-        vo.setRegisterNumber(getRegisterNumber());
-        vo.setPriceDate(getPriceDate());
-        vo.setNav(getCumulativeNavWithdrawal());
-        vo.setExceptionStatus(getExceptionStatus());
-        vo.setVirtualNav(getVirtualNav());
-        vo.setCumulativeNavWithdrawal(getCumulativeNavWithdrawal());
+        vo.setFundName(fundName);
+        vo.setAssetNet(assetNet);
+        vo.setAssetShare(assetShare);
+        vo.setRegisterNumber(registerNumber);
+        vo.setPriceDate(priceDate);
+        vo.setNav(nav);
+        vo.setExceptionStatus(exceptionStatus);
+        vo.setVirtualNav(virtualNav);
+        vo.setCumulativeNavWithdrawal(cumulativeNavWithdrawal);
         vo.setParseDate(DateUtils.format(parseDate,DateUtils.YYYY_MM_DD_HH_MM_SS));
         return vo;
     }

+ 1 - 3
service-daq/src/main/java/com/simuwang/daq/service/EmailParseService.java

@@ -277,9 +277,7 @@ public class EmailParseService {
             Integer emailId = emailFundNavCollectionVOList.get(0).getEmailId();
             emailFundNavCollectionMapper.delete(fileId,emailId);
             try{
-                if(emailFundNavCollectionVOList.size() > 0){
-                    emailFundNavCollectionMapper.batchInsert(emailFundNavCollectionVOList);
-                }
+                emailFundNavCollectionMapper.batchInsert(emailFundNavCollectionVOList);
             }catch (Exception ex){
                 //如果批量插入报错,可能是因为解析的数据超过限制长度,这种情况基本是垃圾数据,直接跳过
                 emailFundNavCollectionVOList.forEach(e -> saveEmailFundNavCollection(e));