Browse Source

吉农宝

hanfucheng 1 year ago
parent
commit
21efe567f4

+ 2 - 0
sooka-jnb/src/main/java/com/sooka/jnb/my/service/impl/JnbNameAuthenticationServiceImpl.java

@@ -130,6 +130,8 @@ public class JnbNameAuthenticationServiceImpl implements IJnbNameAuthenticationS
         String type = DictUtils.getDictLabel("examine_state",jnbNameAuthentication.getStatus());
         announcement.setAnnouncementTitle(type+":[实名认证]");
         announcement.setAnnouncementBody("您在"+data+"发起的[实名认证]信息已["+type+"]");
+        announcement.setAnnoType("jnb_name_authentication");
+        announcement.setBindId(jnbNameAuthentication.getId());
         announcementService.insertAnnouncement(announcement);
         if (jnbNameAuthentication.getStatus().equals("1")){
             jnbNameAuthenticationMapper.updateWxUser(jnbNameAuthentication);

+ 2 - 0
sooka-jnb/src/main/java/com/sooka/jnb/my/service/impl/JnbOfficialAuthenticationServiceImpl.java

@@ -134,6 +134,8 @@ public class JnbOfficialAuthenticationServiceImpl implements IJnbOfficialAuthent
         String type = DictUtils.getDictLabel("examine_state",jnbOfficialAuthentication.getStatus());
         announcement.setAnnouncementTitle(type+":[官方认证]");
         announcement.setAnnouncementBody("您在"+data+"发起的[官方认证]信息已["+type+"]");
+        announcement.setAnnoType("jnb_official_authentication");
+        announcement.setBindId(jnbOfficialAuthentication.getId());
         announcementService.insertAnnouncement(announcement);
         return jnbOfficialAuthenticationMapper.updateJnbOfficialAuthentication(jnbOfficialAuthentication);
     }

+ 1 - 1
sooka-jnb/src/main/resources/mapper/my/AnnouncementMapper.xml

@@ -105,7 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="updateBy != null">#{updateBy},</if>
             <if test="updateTime != null">#{updateTime},</if>
             <if test="annoType != null and annoType != ''">#{annoType},</if>
-            <if test="bindId != null and bindId != ''">bindId,</if>
+            <if test="bindId != null and bindId != ''">#{bindId},</if>
             1,
          </trim>
     </insert>