|
@@ -347,6 +347,17 @@ public class CommunityArticleServiceImpl extends ServiceImpl<CommunityArticleMap
|
|
|
communityArticle.setRaffle(false);*/
|
|
|
communityArticle.setUpdateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
|
communityArticle.setCreateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
|
+
|
|
|
+ String address = null;
|
|
|
+ try {
|
|
|
+ address = AddressUtils.getAddress();
|
|
|
+ } catch (ExecutionException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ communityArticle.setAddress(address);
|
|
|
+
|
|
|
communityArticleMapper.insert(communityArticle);
|
|
|
//插入标签日志
|
|
|
List<String> tags = communityArticle.getTags();
|