|
@@ -2,6 +2,8 @@ package com.ruoyi.system.service.impl;
|
|
|
|
|
|
import java.util.List;
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
+import com.ruoyi.system.domain.PcscId;
|
|
|
+import com.ruoyi.system.service.IIssuerService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.ruoyi.system.mapper.PostCollectionsMapper;
|
|
@@ -19,6 +21,8 @@ public class PostCollectionsServiceImpl implements IPostCollectionsService
|
|
|
{
|
|
|
@Autowired
|
|
|
private PostCollectionsMapper postCollectionsMapper;
|
|
|
+ @Autowired
|
|
|
+ private IIssuerService iIssuerService;
|
|
|
|
|
|
/**
|
|
|
* 查询藏品
|
|
@@ -47,14 +51,15 @@ public class PostCollectionsServiceImpl implements IPostCollectionsService
|
|
|
/**
|
|
|
* 新增藏品
|
|
|
*
|
|
|
- * @param postCollections 藏品
|
|
|
+ * @param pcscId 藏品
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
- public int insertPostCollections(PostCollections postCollections)
|
|
|
+ public int insertPostCollections(PcscId pcscId)
|
|
|
{
|
|
|
- postCollections.setCreateTime(DateUtils.getNowDate());
|
|
|
- return postCollectionsMapper.insertPostCollections(postCollections);
|
|
|
+ pcscId.setCreateTime(DateUtils.getNowDate());
|
|
|
+ pcscId.setIssuerId(iIssuerService.selectIssuerByIdForIssuerName(pcscId.getIssuerName()));//传入发行商id
|
|
|
+ return postCollectionsMapper.insertPostCollections(pcscId);
|
|
|
}
|
|
|
|
|
|
/**
|