he2802 3 年 前
コミット
36113fdbd9

+ 4 - 7
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/service/impl/UserProfileServiceImpl.java

@@ -681,19 +681,16 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
                 userProfileExportVo.setApply_post(jsonBean.getApply_post().getValue());
                 userProfileExportVo.setMajor(jsonBean.getMajor().getValue());
                 userProfileExportVo.setWorking_years(jsonBean.getWorking_years().getValue());
-                if (StringUtils.isNotBlank(jsonBean.getRecent_photos().getValue())) {
+                if (Validator.isNotEmpty(jsonBean.getRecent_photos())) {
                     userProfileExportVo.setRecent_photos(ALIYUN_OSS_ENDPOINT + "/" + jsonBean.getRecent_photos().getValue());
                 }
-
-                if (StringUtils.isNotBlank(jsonBean.getIdcard_face_photo().getValue())) {
+                if (Validator.isNotEmpty(jsonBean.getIdcard_face_photo())) {
                     userProfileExportVo.setIdcard_face_photo(ALIYUN_OSS_ENDPOINT + "/" + jsonBean.getIdcard_face_photo().getValue());
                 }
-
-                if (StringUtils.isNotBlank(jsonBean.getIdcard_national_photo().getValue())) {
+                if (Validator.isNotEmpty(jsonBean.getIdcard_national_photo())) {
                     userProfileExportVo.setIdcard_national_photo(ALIYUN_OSS_ENDPOINT + "/" + jsonBean.getIdcard_national_photo().getValue());
                 }
-
-                if (StringUtils.isNotBlank(jsonBean.getCommitment_electr_signature().getValue())) {
+                if (Validator.isNotEmpty(jsonBean.getCommitment_electr_signature())) {
                     userProfileExportVo.setCommitment_electr_signature(ALIYUN_OSS_ENDPOINT + "/" + jsonBean.getCommitment_electr_signature().getValue());
                 }
             }