|
@@ -1,18 +1,22 @@
|
|
|
package com.sooka.jnb.my.service.impl;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
+import com.ruoyi.common.utils.DictUtils;
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
|
import com.ruoyi.common.utils.uuid.IdUtils;
|
|
|
+import com.sooka.jnb.my.domain.Announcement;
|
|
|
import com.sooka.jnb.my.domain.JnbAuthenticationImg;
|
|
|
import com.sooka.jnb.my.domain.JnbOfficialAuthentication;
|
|
|
import com.sooka.jnb.my.mapper.JnbNameAuthenticationMapper;
|
|
|
import com.sooka.jnb.my.mapper.JnbOfficialAuthenticationMapper;
|
|
|
+import com.sooka.jnb.my.service.IAnnouncementService;
|
|
|
import com.sooka.jnb.my.service.IJnbOfficialAuthenticationService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* 官方认证Service业务层处理
|
|
|
*
|
|
@@ -27,6 +31,9 @@ public class JnbOfficialAuthenticationServiceImpl implements IJnbOfficialAuthent
|
|
|
@Autowired
|
|
|
private JnbNameAuthenticationMapper jnbNameAuthenticationMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IAnnouncementService announcementService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询官方认证
|
|
|
*
|
|
@@ -110,4 +117,24 @@ public class JnbOfficialAuthenticationServiceImpl implements IJnbOfficialAuthent
|
|
|
public int deleteJnbOfficialAuthenticationById(String id) {
|
|
|
return jnbOfficialAuthenticationMapper.deleteJnbOfficialAuthenticationById(id);
|
|
|
}
|
|
|
+
|
|
|
+ /*
|
|
|
+ * 审核官方认证
|
|
|
+ *
|
|
|
+ * @author 韩福成
|
|
|
+ * @date 2024/3/5 13:56
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public int through(JnbOfficialAuthentication jnbOfficialAuthentication) {
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ String data = simpleDateFormat.format(jnbOfficialAuthentication.getCreateTime());
|
|
|
+ Announcement announcement = new Announcement();
|
|
|
+ announcement.setUserId(IdUtils.simpleUUID());
|
|
|
+ announcement.setCreateBy(SecurityUtils.getUserId().toString());
|
|
|
+ String type = DictUtils.getDictLabel("examine_state",jnbOfficialAuthentication.getStatus());
|
|
|
+ announcement.setAnnouncementTitle(type+":[官方认证]");
|
|
|
+ announcement.setAnnouncementBody("您在"+data+"发起的[官方认证]信息已["+type+"]");
|
|
|
+ announcementService.insertAnnouncement(announcement);
|
|
|
+ return jnbOfficialAuthenticationMapper.updateJnbOfficialAuthentication(jnbOfficialAuthentication);
|
|
|
+ }
|
|
|
}
|