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
3e6ec607
Commit
3e6ec607
authored
Jul 03, 2025
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
8c5779b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
+27
-3
HygfIcbcController.java
...s/boot/module/hygf/biz/controller/HygfIcbcController.java
+9
-2
HygfIcbcServiceImpl.java
...oot/module/hygf/biz/service/impl/HygfIcbcServiceImpl.java
+18
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/HygfIcbcController.java
View file @
3e6ec607
...
@@ -174,14 +174,21 @@ public class HygfIcbcController extends BaseController {
...
@@ -174,14 +174,21 @@ public class HygfIcbcController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询代扣协议"
,
notes
=
"查询代扣协议"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询代扣协议"
,
notes
=
"查询代扣协议"
)
@GetMapping
(
value
=
"/signQuery"
)
@GetMapping
(
value
=
"/signQuery"
)
public
ResponseModel
<
Object
>
signQuery
(
String
busiCode
){
public
ResponseModel
<
Object
>
signQuery
(
@RequestParam
(
required
=
true
)
String
busiCode
){
return
ResponseHelper
.
buildResponse
(
hygfIcbcService
.
signQuery
(
busiCode
));
return
ResponseHelper
.
buildResponse
(
hygfIcbcService
.
signQuery
(
busiCode
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"余额查询"
,
notes
=
"余额查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"余额查询"
,
notes
=
"余额查询"
)
@GetMapping
(
value
=
"/balanceQuery"
)
@GetMapping
(
value
=
"/balanceQuery"
)
public
ResponseModel
<
Object
>
balanceQuery
(
String
mediumId
){
public
ResponseModel
<
Object
>
balanceQuery
(
@RequestParam
(
required
=
true
)
String
mediumId
){
return
ResponseHelper
.
buildResponse
(
hygfIcbcService
.
balanceQuery
(
mediumId
));
return
ResponseHelper
.
buildResponse
(
hygfIcbcService
.
balanceQuery
(
mediumId
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"余额查询通过农户id"
,
notes
=
"余额查询通过农户id"
)
@GetMapping
(
value
=
"/balanceQueryById"
)
public
ResponseModel
<
Object
>
balanceQueryById
(
@RequestParam
(
required
=
true
)
String
id
){
return
ResponseHelper
.
buildResponse
(
hygfIcbcService
.
balanceQueryById
(
id
));
}
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/HygfIcbcServiceImpl.java
View file @
3e6ec607
...
@@ -910,7 +910,7 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
...
@@ -910,7 +910,7 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
String
apiUrl
=
serviceUrl
+
"/api/settlement/account/balance/V1/query"
;
String
apiUrl
=
serviceUrl
+
"/api/settlement/account/balance/V1/query"
;
request
.
setServiceUrl
(
apiUrl
);
request
.
setServiceUrl
(
apiUrl
);
SettlementAccountBalanceQueryRequestV1
.
SettlementAccountBalanceQueryRequestV1Biz
bizContent
=
new
SettlementAccountBalanceQueryRequestV1
.
SettlementAccountBalanceQueryRequestV1Biz
();
SettlementAccountBalanceQueryRequestV1
.
SettlementAccountBalanceQueryRequestV1Biz
bizContent
=
new
SettlementAccountBalanceQueryRequestV1
.
SettlementAccountBalanceQueryRequestV1Biz
();
bizContent
.
setCorpNo
(
"88888888"
);
//合作方机构编号
bizContent
.
setCorpNo
(
corpNo
);
//合作方机构编号
LocalDateTime
today
=
LocalDateTime
.
now
();
LocalDateTime
today
=
LocalDateTime
.
now
();
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
);
String
formattedDate
=
today
.
format
(
formatter
);
String
formattedDate
=
today
.
format
(
formatter
);
...
@@ -942,4 +942,20 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
...
@@ -942,4 +942,20 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
}
}
return
response
;
return
response
;
}
}
public
Object
balanceQueryById
(
String
id
)
{
HygfIcbcRecord
hygfIcbcRecord
=
this
.
getById
(
id
);
if
(
hygfIcbcRecord
!=
null
)
{
SettlementAccountBalanceQueryResponseV1
response
=
(
SettlementAccountBalanceQueryResponseV1
)
balanceQuery
(
hygfIcbcRecord
.
getMediumId
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
response
));
jsonObject
.
put
(
"custName"
,
hygfIcbcRecord
.
getCustName
());
jsonObject
.
put
(
"mediumId"
,
hygfIcbcRecord
.
getMediumId
());
return
jsonObject
;
}
else
{
return
null
;
}
}
}
}
\ No newline at end of file
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