Commit 7277f5b2 authored by zp's avatar zp

add

parent 82f44dde
...@@ -49,7 +49,7 @@ public class ProductController implements ProductApi { ...@@ -49,7 +49,7 @@ public class ProductController implements ProductApi {
@Override @Override
public CommonResp<List<ProductInfoVO>> getProductListNotNetInfo(List<String> ids) { public CommonResp<List<ProductInfoVO>> getProductListNotNetInfo(List<String> ids) {
return CommonResp.success(); return CommonResp.success(this.productService.getProductListNotNet(ids));
} }
@Override @Override
......
package com.tanpu.fund.entity.generator;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class IfaImportedNonavFund {
/**
* id
*/
private String id;
/**
* 无净值基金名称
*/
private String fundName;
/**
* 募集期开始结束时间
*/
private String startEndDate;
/**
* 产品概要
*/
private String summary;
/**
* 产品详情
*/
private String detail;
/**
* 创建时间
*/
private Date createTime;
/**
* 修改时间
*/
private Date updateTime;
/**
* 0正常 1删除
*/
private Integer deleteTag;
/**
* 理财师id
*/
private String ifaId;
/**
* 机构id
*/
private String orgId;
/**
* 基金附件pdf
*/
private String fundFile;
/**
* 基金图片
*/
private String fundPng;
}
\ No newline at end of file
package com.tanpu.fund.mapper.generator;
import com.tanpu.fund.entity.generator.IfaImportedNonavFund;
import com.tanpu.fund.entity.generator.IfaImportedNonavFundExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
@Mapper
public interface IfaImportedNonavFundMapper {
long countByExample(IfaImportedNonavFundExample example);
int deleteByExample(IfaImportedNonavFundExample example);
int deleteByPrimaryKey(String id);
int insert(IfaImportedNonavFund record);
int insertOrUpdate(IfaImportedNonavFund record);
int insertOrUpdateSelective(IfaImportedNonavFund record);
int insertSelective(IfaImportedNonavFund record);
List<IfaImportedNonavFund> selectByExample(IfaImportedNonavFundExample example);
IfaImportedNonavFund selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") IfaImportedNonavFund record, @Param("example") IfaImportedNonavFundExample example);
int updateByExample(@Param("record") IfaImportedNonavFund record, @Param("example") IfaImportedNonavFundExample example);
int updateByPrimaryKeySelective(IfaImportedNonavFund record);
int updateByPrimaryKey(IfaImportedNonavFund record);
int updateBatch(List<IfaImportedNonavFund> list);
int updateBatchSelective(List<IfaImportedNonavFund> list);
int batchInsert(@Param("list") List<IfaImportedNonavFund> list);
}
\ No newline at end of file
package com.tanpu.fund.service.impl; package com.tanpu.fund.service.impl;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.date.DateField; import cn.hutool.core.date.DateField;
import cn.hutool.core.date.DatePattern; import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateTime; import cn.hutool.core.date.DateTime;
...@@ -119,6 +120,9 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -119,6 +120,9 @@ public class ProductServiceImpl implements ProductService, Constant {
@Resource @Resource
private FeignForProduct product; private FeignForProduct product;
@Resource
private IfaImportedNonavFundMapper ifaImportedNonavFundMapper;
@Override @Override
public Page<ProductInfoVO> getProductList(ProductInfoReq req) { public Page<ProductInfoVO> getProductList(ProductInfoReq req) {
...@@ -1554,8 +1558,18 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -1554,8 +1558,18 @@ public class ProductServiceImpl implements ProductService, Constant {
@Override @Override
public List<ProductInfoVO> getProductListNotNet(List<String> ids) { public List<ProductInfoVO> getProductListNotNet(List<String> ids) {
IfaImportedNonavFundExample example = new IfaImportedNonavFundExample();
return null; example.createCriteria().andIdIn(ids);
List<IfaImportedNonavFund> ifaImportedNonavFunds = this.ifaImportedNonavFundMapper.selectByExample(example);
if (CollUtil.isEmpty(ifaImportedNonavFunds)) {
return new ArrayList<>(0);
}
return ifaImportedNonavFunds.stream().map(ls -> {
ProductInfoVO vo = new ProductInfoVO();
vo.setFundId(ls.getId());
vo.setFundName(ls.getFundName());
return vo;
}).collect(Collectors.toList());
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment