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
2c67fc51
Commit
2c67fc51
authored
Mar 13, 2021
by
zp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
importNav
parent
5010cb77
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
530 additions
and
150 deletions
+530
-150
pom.xml
pom.xml
+6
-6
FileTest.java
src/main/java/com/tanpu/fund/api/FileTest.java
+0
-36
ProductApi.java
src/main/java/com/tanpu/fund/api/ProductApi.java
+5
-0
ProductController.java
...ain/java/com/tanpu/fund/controller/ProductController.java
+6
-0
IfaImportedFundNav.java
...a/com/tanpu/fund/entity/generator/IfaImportedFundNav.java
+24
-1
IfaImportedFundNavExample.java
...anpu/fund/entity/generator/IfaImportedFundNavExample.java
+135
-20
IfaImportedFundNavMapper.java
...tanpu/fund/mapper/generator/IfaImportedFundNavMapper.java
+23
-39
ProductService.java
src/main/java/com/tanpu/fund/service/ProductService.java
+3
-0
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+203
-10
IfaImportedFundNavMapper.xml
.../resources/mybatis/generator/IfaImportedFundNavMapper.xml
+125
-38
No files found.
pom.xml
View file @
2c67fc51
...
@@ -197,12 +197,6 @@
...
@@ -197,12 +197,6 @@
<version>
3.0.6
</version>
<version>
3.0.6
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-collections4
</artifactId>
<version>
4.0
</version>
</dependency>
<dependency>
<dependency>
<groupId>
cn.hutool
</groupId>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-all
</artifactId>
<artifactId>
hutool-all
</artifactId>
...
@@ -214,6 +208,12 @@
...
@@ -214,6 +208,12 @@
<version>
4.1.2
</version>
<version>
4.1.2
</version>
</dependency>
</dependency>
<dependency>
<groupId>
commons-validator
</groupId>
<artifactId>
commons-validator
</artifactId>
<version>
1.7
</version>
</dependency>
<dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<artifactId>
lombok
</artifactId>
...
...
src/main/java/com/tanpu/fund/api/FileTest.java
deleted
100644 → 0
View file @
5010cb77
package
com
.
tanpu
.
fund
.
api
;
import
cn.hutool.poi.excel.ExcelReader
;
import
cn.hutool.poi.excel.ExcelUtil
;
import
java.io.File
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
public
class
FileTest
{
public
static
void
main
(
String
[]
args
)
{
ExcelReader
reader
=
ExcelUtil
.
getReader
(
new
File
(
"C:\\Users\\zhoup\\Downloads\\navImport.xlsx"
));
List
<
Map
<
String
,
Object
>>
maps
=
reader
.
readAll
();
System
.
out
.
println
(
maps
);
}
}
src/main/java/com/tanpu/fund/api/ProductApi.java
View file @
2c67fc51
...
@@ -3,6 +3,7 @@ package com.tanpu.fund.api;
...
@@ -3,6 +3,7 @@ package com.tanpu.fund.api;
import
com.tanpu.common.auth.mapping.TanpuInterfaceLoginAuth
;
import
com.tanpu.common.auth.mapping.TanpuInterfaceLoginAuth
;
import
com.tanpu.common.model.Page
;
import
com.tanpu.common.model.Page
;
import
com.tanpu.common.model.Pageable
;
import
com.tanpu.common.model.Pageable
;
import
com.tanpu.common.model.adm.req.IfaNetImportReq
;
import
com.tanpu.common.model.privatefund.resp.FundNavMessage
;
import
com.tanpu.common.model.privatefund.resp.FundNavMessage
;
import
com.tanpu.common.model.product.req.NetReq
;
import
com.tanpu.common.model.product.req.NetReq
;
import
com.tanpu.common.model.product.req.ProductInfoReq
;
import
com.tanpu.common.model.product.req.ProductInfoReq
;
...
@@ -169,4 +170,8 @@ public interface ProductApi {
...
@@ -169,4 +170,8 @@ public interface ProductApi {
@GetMapping
(
"/ifa/net/import"
)
@GetMapping
(
"/ifa/net/import"
)
CommonResp
<
List
<
FundNavMessage
>>
importNetInfo
(
@RequestParam
(
"file"
)
MultipartFile
file
,
CommonResp
<
List
<
FundNavMessage
>>
importNetInfo
(
@RequestParam
(
"file"
)
MultipartFile
file
,
@RequestParam
(
"fundId"
)
@Validated
@NotEmpty
String
fundId
);
@RequestParam
(
"fundId"
)
@Validated
@NotEmpty
String
fundId
);
@ApiOperation
(
"理财师净值导入"
)
@PostMapping
(
"/ifa/net/import/check/save"
)
CommonResp
<
List
<
FundNavMessage
>>
importNetCheckSaveInfo
(
@RequestBody
IfaNetImportReq
req
);
}
}
src/main/java/com/tanpu/fund/controller/ProductController.java
View file @
2c67fc51
...
@@ -3,6 +3,7 @@ package com.tanpu.fund.controller;
...
@@ -3,6 +3,7 @@ package com.tanpu.fund.controller;
import
com.tanpu.common.auth.mapping.TanpuInterfaceLoginAuth
;
import
com.tanpu.common.auth.mapping.TanpuInterfaceLoginAuth
;
import
com.tanpu.common.model.Page
;
import
com.tanpu.common.model.Page
;
import
com.tanpu.common.model.Pageable
;
import
com.tanpu.common.model.Pageable
;
import
com.tanpu.common.model.adm.req.IfaNetImportReq
;
import
com.tanpu.common.model.privatefund.resp.FundNavMessage
;
import
com.tanpu.common.model.privatefund.resp.FundNavMessage
;
import
com.tanpu.common.model.product.req.NetReq
;
import
com.tanpu.common.model.product.req.NetReq
;
import
com.tanpu.common.model.product.req.ProductInfoReq
;
import
com.tanpu.common.model.product.req.ProductInfoReq
;
...
@@ -215,4 +216,9 @@ public class ProductController implements ProductApi {
...
@@ -215,4 +216,9 @@ public class ProductController implements ProductApi {
public
CommonResp
<
List
<
FundNavMessage
>>
importNetInfo
(
MultipartFile
file
,
String
fundId
)
{
public
CommonResp
<
List
<
FundNavMessage
>>
importNetInfo
(
MultipartFile
file
,
String
fundId
)
{
return
this
.
productService
.
importNet
(
file
,
fundId
);
return
this
.
productService
.
importNet
(
file
,
fundId
);
}
}
@Override
public
CommonResp
<
List
<
FundNavMessage
>>
importNetCheckSaveInfo
(
IfaNetImportReq
req
)
{
return
this
.
productService
.
importNetCheckSave
(
req
);
}
}
}
src/main/java/com/tanpu/fund/entity/generator/IfaImportedFundNav.java
View file @
2c67fc51
...
@@ -7,12 +7,30 @@ import lombok.Builder;
...
@@ -7,12 +7,30 @@ import lombok.Builder;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
@Data
@Data
@Builder
@Builder
@AllArgsConstructor
@AllArgsConstructor
@NoArgsConstructor
@NoArgsConstructor
public
class
IfaImportedFundNav
{
public
class
IfaImportedFundNav
{
private
Integer
id
;
private
Long
id
;
/**
/**
* 基金id
* 基金id
...
@@ -35,4 +53,9 @@ public class IfaImportedFundNav {
...
@@ -35,4 +53,9 @@ public class IfaImportedFundNav {
private
BigDecimal
cumulativeNav
;
private
BigDecimal
cumulativeNav
;
private
Integer
deleteTag
;
private
Integer
deleteTag
;
/**
* 机构id
*/
private
String
orgId
;
}
}
\ No newline at end of file
src/main/java/com/tanpu/fund/entity/generator/IfaImportedFundNavExample.java
View file @
2c67fc51
...
@@ -3,8 +3,27 @@ package com.tanpu.fund.entity.generator;
...
@@ -3,8 +3,27 @@ package com.tanpu.fund.entity.generator;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.List
;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
public
class
IfaImportedFundNavExample
{
public
class
IfaImportedFundNavExample
{
protected
String
orderByClause
;
protected
String
orderByClause
;
...
@@ -106,6 +125,32 @@ public class IfaImportedFundNavExample {
...
@@ -106,6 +125,32 @@ public class IfaImportedFundNavExample {
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
}
protected
void
addCriterionForJDBCDate
(
String
condition
,
Date
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
addCriterion
(
condition
,
new
java
.
sql
.
Date
(
value
.
getTime
()),
property
);
}
protected
void
addCriterionForJDBCDate
(
String
condition
,
List
<
Date
>
values
,
String
property
)
{
if
(
values
==
null
||
values
.
size
()
==
0
)
{
throw
new
RuntimeException
(
"Value list for "
+
property
+
" cannot be null or empty"
);
}
List
<
java
.
sql
.
Date
>
dateList
=
new
ArrayList
<>();
Iterator
<
Date
>
iter
=
values
.
iterator
();
while
(
iter
.
hasNext
())
{
dateList
.
add
(
new
java
.
sql
.
Date
(
iter
.
next
().
getTime
()));
}
addCriterion
(
condition
,
dateList
,
property
);
}
protected
void
addCriterionForJDBCDate
(
String
condition
,
Date
value1
,
Date
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
addCriterion
(
condition
,
new
java
.
sql
.
Date
(
value1
.
getTime
()),
new
java
.
sql
.
Date
(
value2
.
getTime
()),
property
);
}
public
Criteria
andIdIsNull
()
{
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
@@ -116,52 +161,52 @@ public class IfaImportedFundNavExample {
...
@@ -116,52 +161,52 @@ public class IfaImportedFundNavExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdEqualTo
(
Integer
value
)
{
public
Criteria
andIdEqualTo
(
Long
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdNotEqualTo
(
Integer
value
)
{
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdGreaterThan
(
Integer
value
)
{
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Integer
value
)
{
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdLessThan
(
Integer
value
)
{
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdLessThanOrEqualTo
(
Integer
value
)
{
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdIn
(
List
<
Integer
>
values
)
{
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdNotIn
(
List
<
Integer
>
values
)
{
public
Criteria
andIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdBetween
(
Integer
value1
,
Integer
value2
)
{
public
Criteria
andIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
public
Criteria
andIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
@@ -247,52 +292,52 @@ public class IfaImportedFundNavExample {
...
@@ -247,52 +292,52 @@ public class IfaImportedFundNavExample {
}
}
public
Criteria
andPriceDateEqualTo
(
Date
value
)
{
public
Criteria
andPriceDateEqualTo
(
Date
value
)
{
addCriterion
(
"price_date ="
,
value
,
"priceDate"
);
addCriterion
ForJDBCDate
(
"price_date ="
,
value
,
"priceDate"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andPriceDateNotEqualTo
(
Date
value
)
{
public
Criteria
andPriceDateNotEqualTo
(
Date
value
)
{
addCriterion
(
"price_date <>"
,
value
,
"priceDate"
);
addCriterion
ForJDBCDate
(
"price_date <>"
,
value
,
"priceDate"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andPriceDateGreaterThan
(
Date
value
)
{
public
Criteria
andPriceDateGreaterThan
(
Date
value
)
{
addCriterion
(
"price_date >"
,
value
,
"priceDate"
);
addCriterion
ForJDBCDate
(
"price_date >"
,
value
,
"priceDate"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andPriceDateGreaterThanOrEqualTo
(
Date
value
)
{
public
Criteria
andPriceDateGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"price_date >="
,
value
,
"priceDate"
);
addCriterion
ForJDBCDate
(
"price_date >="
,
value
,
"priceDate"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andPriceDateLessThan
(
Date
value
)
{
public
Criteria
andPriceDateLessThan
(
Date
value
)
{
addCriterion
(
"price_date <"
,
value
,
"priceDate"
);
addCriterion
ForJDBCDate
(
"price_date <"
,
value
,
"priceDate"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andPriceDateLessThanOrEqualTo
(
Date
value
)
{
public
Criteria
andPriceDateLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"price_date <="
,
value
,
"priceDate"
);
addCriterion
ForJDBCDate
(
"price_date <="
,
value
,
"priceDate"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andPriceDateIn
(
List
<
Date
>
values
)
{
public
Criteria
andPriceDateIn
(
List
<
Date
>
values
)
{
addCriterion
(
"price_date in"
,
values
,
"priceDate"
);
addCriterion
ForJDBCDate
(
"price_date in"
,
values
,
"priceDate"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andPriceDateNotIn
(
List
<
Date
>
values
)
{
public
Criteria
andPriceDateNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"price_date not in"
,
values
,
"priceDate"
);
addCriterion
ForJDBCDate
(
"price_date not in"
,
values
,
"priceDate"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andPriceDateBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andPriceDateBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"price_date between"
,
value1
,
value2
,
"priceDate"
);
addCriterion
ForJDBCDate
(
"price_date between"
,
value1
,
value2
,
"priceDate"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andPriceDateNotBetween
(
Date
value1
,
Date
value2
)
{
public
Criteria
andPriceDateNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"price_date not between"
,
value1
,
value2
,
"priceDate"
);
addCriterion
ForJDBCDate
(
"price_date not between"
,
value1
,
value2
,
"priceDate"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
@@ -475,6 +520,76 @@ public class IfaImportedFundNavExample {
...
@@ -475,6 +520,76 @@ public class IfaImportedFundNavExample {
addCriterion
(
"delete_tag not between"
,
value1
,
value2
,
"deleteTag"
);
addCriterion
(
"delete_tag not between"
,
value1
,
value2
,
"deleteTag"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andOrgIdIsNull
()
{
addCriterion
(
"org_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdIsNotNull
()
{
addCriterion
(
"org_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdEqualTo
(
String
value
)
{
addCriterion
(
"org_id ="
,
value
,
"orgId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdNotEqualTo
(
String
value
)
{
addCriterion
(
"org_id <>"
,
value
,
"orgId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdGreaterThan
(
String
value
)
{
addCriterion
(
"org_id >"
,
value
,
"orgId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"org_id >="
,
value
,
"orgId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdLessThan
(
String
value
)
{
addCriterion
(
"org_id <"
,
value
,
"orgId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"org_id <="
,
value
,
"orgId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdLike
(
String
value
)
{
addCriterion
(
"org_id like"
,
value
,
"orgId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdNotLike
(
String
value
)
{
addCriterion
(
"org_id not like"
,
value
,
"orgId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"org_id in"
,
values
,
"orgId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"org_id not in"
,
values
,
"orgId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"org_id between"
,
value1
,
value2
,
"orgId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrgIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"org_id not between"
,
value1
,
value2
,
"orgId"
);
return
(
Criteria
)
this
;
}
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
public
static
class
Criteria
extends
GeneratedCriteria
{
...
...
src/main/java/com/tanpu/fund/mapper/generator/IfaImportedFundNavMapper.java
View file @
2c67fc51
...
@@ -6,71 +6,55 @@ import java.util.List;
...
@@ -6,71 +6,55 @@ import java.util.List;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
@Mapper
@Mapper
public
interface
IfaImportedFundNavMapper
{
public
interface
IfaImportedFundNavMapper
{
long
countByExample
(
IfaImportedFundNavExample
example
);
long
countByExample
(
IfaImportedFundNavExample
example
);
int
deleteByExample
(
IfaImportedFundNavExample
example
);
int
deleteByExample
(
IfaImportedFundNavExample
example
);
/**
int
deleteByPrimaryKey
(
Long
id
);
* delete by primary key
*
* @param id primaryKey
* @return deleteCount
*/
int
deleteByPrimaryKey
(
Integer
id
);
/**
* insert record to table
*
* @param record the record
* @return insert count
*/
int
insert
(
IfaImportedFundNav
record
);
int
insert
(
IfaImportedFundNav
record
);
int
insertOrUpdate
(
IfaImportedFundNav
record
);
int
insertOrUpdate
(
IfaImportedFundNav
record
);
int
insertOrUpdateSelective
(
IfaImportedFundNav
record
);
int
insertOrUpdateSelective
(
IfaImportedFundNav
record
);
/**
* insert record to table selective
*
* @param record the record
* @return insert count
*/
int
insertSelective
(
IfaImportedFundNav
record
);
int
insertSelective
(
IfaImportedFundNav
record
);
List
<
IfaImportedFundNav
>
selectByExample
(
IfaImportedFundNavExample
example
);
List
<
IfaImportedFundNav
>
selectByExample
(
IfaImportedFundNavExample
example
);
/**
IfaImportedFundNav
selectByPrimaryKey
(
Long
id
);
* select by primary key
*
* @param id primary key
* @return object by primary key
*/
IfaImportedFundNav
selectByPrimaryKey
(
Integer
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
IfaImportedFundNav
record
,
@Param
(
"example"
)
IfaImportedFundNavExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
IfaImportedFundNav
record
,
@Param
(
"example"
)
IfaImportedFundNavExample
example
);
int
updateByExample
(
@Param
(
"record"
)
IfaImportedFundNav
record
,
@Param
(
"example"
)
IfaImportedFundNavExample
example
);
int
updateByExample
(
@Param
(
"record"
)
IfaImportedFundNav
record
,
@Param
(
"example"
)
IfaImportedFundNavExample
example
);
/**
* update record selective
*
* @param record the updated record
* @return update count
*/
int
updateByPrimaryKeySelective
(
IfaImportedFundNav
record
);
int
updateByPrimaryKeySelective
(
IfaImportedFundNav
record
);
/**
* update record
*
* @param record the updated record
* @return update count
*/
int
updateByPrimaryKey
(
IfaImportedFundNav
record
);
int
updateByPrimaryKey
(
IfaImportedFundNav
record
);
int
updateBatch
(
List
<
IfaImportedFundNav
>
list
);
int
updateBatch
(
List
<
IfaImportedFundNav
>
list
);
int
updateBatchSelective
(
List
<
IfaImportedFundNav
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
IfaImportedFundNav
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
IfaImportedFundNav
>
list
);
}
}
\ No newline at end of file
src/main/java/com/tanpu/fund/service/ProductService.java
View file @
2c67fc51
...
@@ -2,6 +2,7 @@ package com.tanpu.fund.service;
...
@@ -2,6 +2,7 @@ package com.tanpu.fund.service;
import
com.tanpu.common.model.Page
;
import
com.tanpu.common.model.Page
;
import
com.tanpu.common.model.Pageable
;
import
com.tanpu.common.model.Pageable
;
import
com.tanpu.common.model.adm.req.IfaNetImportReq
;
import
com.tanpu.common.model.privatefund.resp.FundNavMessage
;
import
com.tanpu.common.model.privatefund.resp.FundNavMessage
;
import
com.tanpu.common.model.product.req.ProductListReq
;
import
com.tanpu.common.model.product.req.ProductListReq
;
import
com.tanpu.common.model.product.resp.DynamicRetreatVO
;
import
com.tanpu.common.model.product.resp.DynamicRetreatVO
;
...
@@ -76,4 +77,6 @@ public interface ProductService {
...
@@ -76,4 +77,6 @@ public interface ProductService {
CommonResp
<
List
<
FundNavMessage
>>
importNet
(
MultipartFile
file
,
String
fundId
);
CommonResp
<
List
<
FundNavMessage
>>
importNet
(
MultipartFile
file
,
String
fundId
);
List
<
Type
>
getSimpleFundList
(
List
<
String
>
list
);
List
<
Type
>
getSimpleFundList
(
List
<
String
>
list
);
CommonResp
<
List
<
FundNavMessage
>>
importNetCheckSave
(
IfaNetImportReq
req
);
}
}
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
2c67fc51
This diff is collapsed.
Click to expand it.
src/main/resources/mybatis/generator/IfaImportedFundNavMapper.xml
View file @
2c67fc51
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