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

修改企业认证处理时间,获取不到问题

wanghaicheng преди 5 години
родител
ревизия
330aa1f749

+ 2 - 4
lift-system-service/src/main/java/cn/com/ty/lift/system/settings/service/impl/MtCompanyAttestationServiceImpl.java

@@ -267,15 +267,13 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
     public Map<Long, LocalDateTime> getMtCompanyIdToDealTime(List<Long> companyIdList) {
         //获取公司认证信息
         List<MtCompanyAttestation> mtCompanyAttestationList = list(new QueryWrapper<MtCompanyAttestation>()
-                .select("deal_time")
+                .select("mt_company_id", "deal_time")
                 .in("mt_company_id", companyIdList)
         );
         //将信息封装为 mtCompanyId(公司id) -> dealTime(处理时间)
         Map<Long, LocalDateTime> companyIdToDealTime = new HashMap<>();
         if (mtCompanyAttestationList != null && mtCompanyAttestationList.size() > 0) {
-            mtCompanyAttestationList.forEach(mtCompanyAttestation -> {
-                companyIdToDealTime.put(mtCompanyAttestation.getMtCompanyId(), mtCompanyAttestation.getDealTime());
-            });
+            mtCompanyAttestationList.forEach(mtCompanyAttestation -> companyIdToDealTime.put(mtCompanyAttestation.getMtCompanyId(), mtCompanyAttestation.getDealTime()));
         }
         return companyIdToDealTime;
     }