zoujiajian před 2 roky
rodič
revize
3acd67cb41

+ 5 - 2
netflix-service/src/main/java/com/cyksj/service/corp/impl/CorpFollowServiceImpl.java

@@ -138,9 +138,12 @@ public class CorpFollowServiceImpl implements CorpFollowService {
 		if (!dbActiveCode.getMarkTag().equals(activeCode.getMarkTag())) {
 			isUpdateAcCode = true;
 		}
-		activeCode.setAttachmentsStr(dbActiveCode.getAttachmentsStr());
-		if (CollUtil.isEmpty(activeCode.getAttachments())) {
+		List<Attachments> attachments = activeCode.getAttachments();
+		if (CollUtil.isEmpty(attachments)) {
 			activeCode.setAttachmentsStr(null);
+		} else {
+			String attachmentsStr = Jsons.toJson(attachments);
+			activeCode.setAttachmentsStr(attachmentsStr);
 		}
 
 		//重新构建活码配置