Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_fund
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周鹏
tamp_fund
Commits
7277f5b2
Commit
7277f5b2
authored
Apr 26, 2021
by
zp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
82f44dde
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1847 additions
and
3 deletions
+1847
-3
ProductController.java
...ain/java/com/tanpu/fund/controller/ProductController.java
+1
-1
IfaImportedNonavFund.java
...com/tanpu/fund/entity/generator/IfaImportedNonavFund.java
+91
-0
IfaImportedNonavFundExample.java
...pu/fund/entity/generator/IfaImportedNonavFundExample.java
+1029
-0
IfaImportedNonavFundMapper.java
...npu/fund/mapper/generator/IfaImportedNonavFundMapper.java
+60
-0
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+16
-2
IfaImportedNonavFundMapper.xml
...esources/mybatis/generator/IfaImportedNonavFundMapper.xml
+650
-0
No files found.
src/main/java/com/tanpu/fund/controller/ProductController.java
View file @
7277f5b2
...
@@ -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
...
...
src/main/java/com/tanpu/fund/entity/generator/IfaImportedNonavFund.java
0 → 100644
View file @
7277f5b2
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
src/main/java/com/tanpu/fund/entity/generator/IfaImportedNonavFundExample.java
0 → 100644
View file @
7277f5b2
This diff is collapsed.
Click to expand it.
src/main/java/com/tanpu/fund/mapper/generator/IfaImportedNonavFundMapper.java
0 → 100644
View file @
7277f5b2
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
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
7277f5b2
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
...
...
src/main/resources/mybatis/generator/IfaImportedNonavFundMapper.xml
0 → 100644
View file @
7277f5b2
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment