Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
8df64eb0
Commit
8df64eb0
authored
Nov 29, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(wealth): 批量导入收款明细
parent
0d1713c3
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
271 additions
and
49 deletions
+271
-49
BankApi.java
...in/java/cn/iocoder/yudao/module/ecw/api/bank/BankApi.java
+10
-0
BankAccountDTO.java
...iocoder/yudao/module/ecw/api/bank/dto/BankAccountDTO.java
+43
-0
BankAccountConvert.java
...ao/module/ecw/convert/bankAccount/BankAccountConvert.java
+2
-0
BankApiImpl.java
.../cn/iocoder/yudao/module/ecw/service/api/BankApiImpl.java
+25
-0
OrderApi.java
.../main/java/cn/iocoder/boot/module/order/api/OrderApi.java
+6
-0
OrderApiImpl.java
.../java/cn/iocoder/yudao/module/order/api/OrderApiImpl.java
+20
-0
pom.xml
yudao-module-wealth/yudao-module-wealth-core/pom.xml
+5
-1
ReceiptItemService.java
...module/wealth/service/receiptItem/ReceiptItemService.java
+1
-1
ReceiptItemServiceImpl.java
...le/wealth/service/receiptItem/ReceiptItemServiceImpl.java
+146
-43
ReceiptItemBatchCreateReqVO.java
...wealth/vo/receiptAccount/ReceiptItemBatchCreateReqVO.java
+2
-0
ReceiptItemBatchRespVO.java
...dule/wealth/vo/receiptAccount/ReceiptItemBatchRespVO.java
+7
-0
ReceiptItemController.java
...h/controller/admin/receiptItem/ReceiptItemController.java
+4
-4
No files found.
yudao-module-ecw/yudao-module-ecw-api/src/main/java/cn/iocoder/yudao/module/ecw/api/bank/BankApi.java
0 → 100644
View file @
8df64eb0
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
api
.
bank
;
import
cn.iocoder.yudao.module.ecw.api.bank.dto.BankAccountDTO
;
public
interface
BankApi
{
/**
* 根据银行账号获取账号信息
*/
BankAccountDTO
getBankAccountByAccountNo
(
String
baAccountNum
);
}
yudao-module-ecw/yudao-module-ecw-api/src/main/java/cn/iocoder/yudao/module/ecw/api/bank/dto/BankAccountDTO.java
0 → 100644
View file @
8df64eb0
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
api
.
bank
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
public
class
BankAccountDTO
{
@ApiModelProperty
(
value
=
"银行账号编号"
,
required
=
true
)
private
Long
id
;
@ApiModelProperty
(
value
=
"户名"
,
required
=
true
)
private
String
baAccountName
;
@ApiModelProperty
(
value
=
"开户银行"
,
required
=
true
)
private
String
baBankName
;
@ApiModelProperty
(
value
=
"银行账号"
,
required
=
true
)
private
String
baAccountNum
;
@ApiModelProperty
(
value
=
"银行代码"
,
required
=
true
)
private
String
baSwiftCode
;
@ApiModelProperty
(
value
=
"开户银行地址"
,
required
=
true
)
private
String
baBankAdd
;
@ApiModelProperty
(
value
=
"类型字典(1公账,2私账)"
,
required
=
true
)
private
Integer
baType
;
@ApiModelProperty
(
value
=
"状态(0正常 1停用)"
,
required
=
false
)
private
Integer
status
;
@ApiModelProperty
(
value
=
"开户国家"
)
private
Integer
baCountry
;
@ApiModelProperty
(
value
=
"收入归属"
)
private
Integer
baIncomeBelong
;
@ApiModelProperty
(
value
=
"币种"
)
private
Integer
baCurrency
;
@ApiModelProperty
(
value
=
"余额"
)
private
java
.
math
.
BigDecimal
baBalance
;
}
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/convert/bankAccount/BankAccountConvert.java
View file @
8df64eb0
...
...
@@ -4,6 +4,7 @@ import java.util.*;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.module.ecw.api.bank.dto.BankAccountDTO
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.factory.Mappers
;
import
cn.iocoder.yudao.module.ecw.controller.admin.bankAccount.vo.*
;
...
...
@@ -32,4 +33,5 @@ public interface BankAccountConvert {
List
<
BankAccountExcelVO
>
convertList02
(
List
<
BankAccountDO
>
list
);
BankAccountDTO
convertDTO
(
BankAccountDO
bankAccountDO
);
}
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/service/api/BankApiImpl.java
0 → 100644
View file @
8df64eb0
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
service
.
api
;
import
cn.iocoder.yudao.module.ecw.api.bank.BankApi
;
import
cn.iocoder.yudao.module.ecw.api.bank.dto.BankAccountDTO
;
import
cn.iocoder.yudao.module.ecw.convert.bankAccount.BankAccountConvert
;
import
cn.iocoder.yudao.module.ecw.dal.dataobject.bankAccount.BankAccountDO
;
import
cn.iocoder.yudao.module.ecw.dal.mysql.bankAccount.BankAccountMapper
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
@Service
public
class
BankApiImpl
implements
BankApi
{
@Resource
private
BankAccountMapper
bankAccountMapper
;
@Override
public
BankAccountDTO
getBankAccountByAccountNo
(
String
baAccountNum
)
{
BankAccountDO
bankAccountDO
=
bankAccountMapper
.
selectOne
(
"ba_account_num"
,
baAccountNum
);
if
(
bankAccountDO
!=
null
)
{
return
BankAccountConvert
.
INSTANCE
.
convertDTO
(
bankAccountDO
);
}
return
null
;
}
}
yudao-module-order/yudao-module-order-api/src/main/java/cn/iocoder/boot/module/order/api/OrderApi.java
View file @
8df64eb0
...
...
@@ -35,4 +35,10 @@ public interface OrderApi {
* @return 是否合并成功
*/
boolean
mergeOrder
(
Long
customerIdSaved
,
Long
customerIdDeleted
);
/**
* 根据订单号/提单号获取订单
* @param orderNo
*/
OrderRespDTO
getOrderByNo
(
String
orderNo
);
}
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/api/OrderApiImpl.java
View file @
8df64eb0
...
...
@@ -17,6 +17,7 @@ import cn.iocoder.yudao.module.order.service.orderOperateLog.OrderOperateLogServ
import
cn.iocoder.yudao.module.order.vo.orderOperateLog.OrderOperateLogCreateReqVO
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.google.common.base.Joiner
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.validation.annotation.Validated
;
...
...
@@ -172,4 +173,23 @@ public class OrderApiImpl implements OrderApi {
return
false
;
}
@Override
public
OrderRespDTO
getOrderByNo
(
String
orderNo
)
{
if
(
StringUtils
.
isBlank
(
orderNo
))
{
return
null
;
}
OrderDO
orderDO
;
if
(
orderNo
.
contains
(
"-"
))
{
orderDO
=
orderService
.
selectOne
(
new
LambdaQueryWrapper
<
OrderDO
>().
eq
(
OrderDO:
:
getTidanNo
,
orderNo
).
last
(
"limit 1"
));
}
else
{
orderDO
=
orderService
.
selectOne
(
new
LambdaQueryWrapper
<
OrderDO
>().
eq
(
OrderDO:
:
getOrderNo
,
orderNo
).
last
(
"limit 1"
));
}
if
(
orderDO
==
null
)
{
return
null
;
}
OrderRespDTO
orderRespDTO
=
new
OrderRespDTO
();
BeanUtils
.
copyProperties
(
orderDO
,
orderRespDTO
);
return
orderRespDTO
;
}
}
yudao-module-wealth/yudao-module-wealth-core/pom.xml
View file @
8df64eb0
...
...
@@ -52,7 +52,11 @@
<artifactId>
yudao-module-ecw-api
</artifactId>
<version>
${revision}
</version>
</dependency>
<dependency>
<groupId>
cn.iocoder.boot
</groupId>
<artifactId>
yudao-module-order-api
</artifactId>
<version>
${revision}
</version>
</dependency>
</dependencies>
</project>
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/service/receiptItem/ReceiptItemService.java
View file @
8df64eb0
...
...
@@ -122,5 +122,5 @@ public interface ReceiptItemService extends IService<ReceiptItemDO> {
BigDecimal
getWriteOffAmountByReceiptId
(
Long
receiptId
);
List
<
ReceiptItemBatchRespVO
>
receiptItemImport
(
List
<
ReceiptItemBatchCreateReqVO
>
list
);
List
<
ReceiptItemBatchRespVO
>
receiptItemImport
(
List
<
ReceiptItemBatchCreateReqVO
>
list
,
Boolean
ignoreItem
);
}
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/service/receiptItem/ReceiptItemServiceImpl.java
View file @
8df64eb0
This diff is collapsed.
Click to expand it.
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receiptAccount/ReceiptItemBatchCreateReqVO.java
View file @
8df64eb0
...
...
@@ -5,6 +5,8 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
@Data
@ApiModel
(
"管理后台 - 批量收款信息创建 Request VO"
)
public
class
ReceiptItemBatchCreateReqVO
{
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receiptAccount/ReceiptItemBatchRespVO.java
View file @
8df64eb0
...
...
@@ -2,9 +2,13 @@ package cn.iocoder.yudao.module.wealth.vo.receiptAccount;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
(
"管理后台 - 批量导入收款信息结果 VO"
)
public
class
ReceiptItemBatchRespVO
{
...
...
@@ -14,6 +18,9 @@ public class ReceiptItemBatchRespVO {
@ApiModelProperty
(
value
=
"付款人"
)
private
String
payer
;
@ApiModelProperty
(
value
=
"错误类型,0 错误 1 提示"
)
private
Integer
errorType
;
@ApiModelProperty
(
value
=
"错误信息"
)
private
String
errorMsg
;
...
...
yudao-module-wealth/yudao-module-wealth-rest/src/main/java/cn/iocoder/yudao/module/wealth/controller/admin/receiptItem/ReceiptItemController.java
View file @
8df64eb0
...
...
@@ -122,7 +122,7 @@ public class ReceiptItemController {
v
.
setUpdater
(
sT
);
}
if
(
v
.
getBmpId
()
==
null
||
v
.
getBmpId
().
length
()==
0
)
{
if
(
v
.
getBmpId
()
==
null
||
v
.
getBmpId
().
length
()
==
0
)
{
v
.
setCreateBpm
(
""
);
v
.
setCreateTimeBpm
(
null
);
v
.
setUpdateTimeBpm
(
null
);
...
...
@@ -134,7 +134,7 @@ public class ReceiptItemController {
lambdaQueryWrapper
.
eq
(
ReceiptApprovalDO:
:
getBmpId
,
v
.
getBmpId
());
List
<
ReceiptApprovalDO
>
list
=
receiptApprovalMapper
.
selectList
(
lambdaQueryWrapper
);
if
(
list
==
null
||
list
.
size
()
==
0
)
return
;
if
(
list
==
null
||
list
.
size
()
==
0
)
return
;
//审批创建人
if
(
list
.
get
(
0
).
getCreator
()
!=
null
...
...
@@ -282,9 +282,9 @@ public class ReceiptItemController {
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"file"
,
value
=
"Excel 文件"
,
required
=
true
,
dataTypeClass
=
MultipartFile
.
class
)
})
public
CommonResult
<
List
<
ReceiptItemBatchRespVO
>>
receiptAccountImport
(
@RequestParam
(
"file"
)
MultipartFile
file
)
throws
IOException
{
public
CommonResult
<
List
<
ReceiptItemBatchRespVO
>>
receiptAccountImport
(
@RequestParam
(
"file"
)
MultipartFile
file
,
@RequestParam
(
value
=
"ignoreItem"
)
Boolean
ignoreItem
)
throws
IOException
{
List
<
ReceiptItemBatchCreateReqVO
>
list
=
ExcelUtils
.
read
(
file
,
ReceiptItemBatchCreateReqVO
.
class
);
return
success
(
receiptItemService
.
receiptItemImport
(
list
));
return
success
(
receiptItemService
.
receiptItemImport
(
list
,
ignoreItem
));
}
}
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