Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
bce0535d
Commit
bce0535d
authored
Dec 24, 2024
by
chenzhao
Committed by
hezhuozhi
Dec 24, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工行代扣接口 bug修复
parent
ebf4d101
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
UploadStatusEnum.java
...join/amos/boot/module/hygf/api/Enum/UploadStatusEnum.java
+1
-1
IcbcWithholdController.java
...ot/module/hygf/biz/controller/IcbcWithholdController.java
+5
-2
IcbcWithholdServiceImpl.java
...module/hygf/biz/service/impl/IcbcWithholdServiceImpl.java
+7
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/Enum/UploadStatusEnum.java
View file @
bce0535d
...
@@ -23,7 +23,7 @@ public enum UploadStatusEnum {
...
@@ -23,7 +23,7 @@ public enum UploadStatusEnum {
public
static
UploadStatusEnum
getNodeByCode
(
String
code
)
{
public
static
UploadStatusEnum
getNodeByCode
(
String
code
)
{
UploadStatusEnum
anEnum
=
null
;
UploadStatusEnum
anEnum
=
null
;
for
(
UploadStatusEnum
type
:
UploadStatusEnum
.
values
())
{
for
(
UploadStatusEnum
type
:
UploadStatusEnum
.
values
())
{
if
(
type
.
getCode
()
==
code
)
{
if
(
type
.
getCode
()
.
equals
(
code
)
)
{
anEnum
=
type
;
anEnum
=
type
;
break
;
break
;
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/IcbcWithholdController.java
View file @
bce0535d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
controller
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.HygfIcbcRecordDTO
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.HygfIcbcRecordDTO
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.IcbcWithholdRecordDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.IcbcWithhold
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.IcbcWithhold
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.IcbcWithholdRecord
;
import
com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil
;
import
com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -193,9 +196,9 @@ public class IcbcWithholdController extends BaseController {
...
@@ -193,9 +196,9 @@ public class IcbcWithholdController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
" 聚富通代扣信息回盘文件获取"
,
notes
=
" 聚富通代扣信息回盘文件获取"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
" 聚富通代扣信息回盘文件获取"
,
notes
=
" 聚富通代扣信息回盘文件获取"
)
@GetMapping
(
value
=
"/updateWithholdStatus"
)
@GetMapping
(
value
=
"/updateWithholdStatus"
)
public
void
updateWithholdStatus
(
)
throws
Exception
{
public
ResponseModel
updateWithholdStatus
(
)
throws
Exception
{
icbcWithholdServiceImpl
.
updateWithholdStatus
();
icbcWithholdServiceImpl
.
updateWithholdStatus
();
return
CommonResponseNewUtil
.
success
();
}
}
/**
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/IcbcWithholdServiceImpl.java
View file @
bce0535d
...
@@ -42,10 +42,13 @@ import org.springframework.beans.factory.annotation.Value;
...
@@ -42,10 +42,13 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.core.io.ClassPathResource
;
import
org.springframework.core.io.ClassPathResource
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.*
;
import
java.io.*
;
...
@@ -488,8 +491,8 @@ public class IcbcWithholdServiceImpl extends BaseService<IcbcWithholdDto,IcbcWit
...
@@ -488,8 +491,8 @@ public class IcbcWithholdServiceImpl extends BaseService<IcbcWithholdDto,IcbcWit
//若失败 组装失败农户姓名及原因
//若失败 组装失败农户姓名及原因
String
err
=
""
;
String
err
=
""
;
for
(
ResultLinkField
resultLinkField
:
resultLinkFields
)
{
for
(
ResultLinkField
resultLinkField
:
resultLinkFields
)
{
if
(
!
resultLinkField
.
getErrMsg
().
contains
(
"成功
"
)){
if
(
resultLinkField
.
getStatus
().
equals
(
"1
"
)){
err
=
err
+
icbcWithholdRecords
.
get
(
Integer
.
valueOf
(
resultLinkField
.
getBillNo
())).
getCustName
()
+
":"
+
resultLinkField
.
getErrMsg
()
+
";"
;
err
=
err
+
icbcWithholdRecords
.
get
(
Integer
.
valueOf
(
resultLinkField
.
getBillNo
())
-
1
).
getCustName
()
+
":"
+
resultLinkField
.
getErrMsg
()
+
";"
;
isSuccess
=
false
;
isSuccess
=
false
;
}
}
}
}
...
@@ -584,7 +587,7 @@ public class IcbcWithholdServiceImpl extends BaseService<IcbcWithholdDto,IcbcWit
...
@@ -584,7 +587,7 @@ public class IcbcWithholdServiceImpl extends BaseService<IcbcWithholdDto,IcbcWit
public
void
upIcbcWithholdRecordWithholdStatus
()
{
public
void
upIcbcWithholdRecordWithholdStatus
()
{
LambdaQueryWrapper
<
IcbcWithholdRecord
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
IcbcWithholdRecord
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
isNull
(
IcbcWithholdRecord:
:
getWithholdStatus
);
wrapper
.
isNull
(
IcbcWithholdRecord:
:
getWithholdStatus
)
.
or
().
eq
(
IcbcWithholdRecord:
:
getWithholdStatus
,
"处理中"
)
;
Set
<
String
>
batchNos
=
icbcWithholdRecordService
.
getBaseMapper
().
selectList
(
wrapper
).
stream
()
Set
<
String
>
batchNos
=
icbcWithholdRecordService
.
getBaseMapper
().
selectList
(
wrapper
).
stream
()
.
map
(
IcbcWithholdRecord:
:
getBatchNo
)
.
map
(
IcbcWithholdRecord:
:
getBatchNo
)
.
collect
(
Collectors
.
toSet
());;
.
collect
(
Collectors
.
toSet
());;
...
@@ -608,7 +611,7 @@ public class IcbcWithholdServiceImpl extends BaseService<IcbcWithholdDto,IcbcWit
...
@@ -608,7 +611,7 @@ public class IcbcWithholdServiceImpl extends BaseService<IcbcWithholdDto,IcbcWit
// bizContent.setBatchNo("20241216JO00400005");//批次号
// bizContent.setBatchNo("20241216JO00400005");//批次号
bizContent
.
setCorpCis
(
"211590000183323"
);
bizContent
.
setCorpCis
(
"211590000183323"
);
// bizContent.setBillNo("1");//序号
// bizContent.setBillNo("1");//序号
bizContent
.
setTrxDate
(
DateUtils
.
getDateNowShortStr
()
);
//交易日期
bizContent
.
setTrxDate
(
"2024-12-23"
);
//交易日期
// bizContent.setBusiCode("14948822");
// bizContent.setBusiCode("14948822");
bizContent
.
setCurPage
(
"1"
);
//查询页码
bizContent
.
setCurPage
(
"1"
);
//查询页码
request
.
setBizContent
(
bizContent
);
request
.
setBizContent
(
bizContent
);
...
...
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