Explorar el Código

feat:频率计算优化

chenjianhua hace 1 mes
padre
commit
608a5e80d7

+ 5 - 3
service-manage/src/main/java/com/simuwang/manage/service/impl/CompanyContactServiceImpl.java

@@ -87,9 +87,11 @@ public class CompanyContactServiceImpl implements CompanyContactService {
             lastCompanyContactInfoMapper.insert(lastCompanyContactInfoDO);
         }else{
             String contactDate = companyContactInfoVO.getContactDate();
-            if(Objects.requireNonNull(DateUtils.parse(contactDate, DateUtils.YYYY_MM_DD)).compareTo(lastCompanyContactInfoDO.getContactDate()) >= 0){
-                companyContactInfoDO.toLastDO(lastCompanyContactInfoDO);
-                lastCompanyContactInfoMapper.updateById(lastCompanyContactInfoDO);
+            if(lastCompanyContactInfoDO.getContactDate() != null){
+                if(Objects.requireNonNull(DateUtils.parse(contactDate, DateUtils.YYYY_MM_DD)).compareTo(lastCompanyContactInfoDO.getContactDate()) >= 0){
+                    companyContactInfoDO.toLastDO(lastCompanyContactInfoDO);
+                    lastCompanyContactInfoMapper.updateById(lastCompanyContactInfoDO);
+                }
             }
         }
         vo.setData(true);

+ 0 - 1
service-manage/src/main/java/com/simuwang/manage/service/impl/FileMangeServiceImpl.java

@@ -116,7 +116,6 @@ public class FileMangeServiceImpl implements FileMangeService {
             try{
                 userId = UserUtils.getLoginUser().getUserId();
             }catch (Exception e){
-                logger.error(e.getMessage(),e);
             }
             fileManageMapper.batchUpdateFileManageInfo(fileIdList,fundInfoDO.getFundId(),fundInfoDO.getFundName(),fundInfoDO.getRegisterNumber(),FileSourceType.CUSTOM_SOURCE,userId==null?999999:userId);
         }catch (Exception e){