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
d0154e61
Commit
d0154e61
authored
Jul 18, 2024
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接聚富通
parent
efa07f37
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
5 deletions
+65
-5
HygfIcbcRecordMapper.xml
.../src/main/resources/mapper/mysql/HygfIcbcRecordMapper.xml
+49
-0
HygfIcbcController.java
...s/boot/module/hygf/biz/controller/HygfIcbcController.java
+16
-5
HygfIcbcServiceImpl.java
...oot/module/hygf/biz/service/impl/HygfIcbcServiceImpl.java
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/HygfIcbcRecordMapper.xml
0 → 100644
View file @
d0154e61
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.hygf.api.mapper.HygfIcbcRecordMapper"
>
<sql
id=
"tableName"
>
hygf_icbc_record
</sql>
<sql
id=
"baseColumn"
>
sequence_nbr,cust_name,id_card,phone,medium_id,project_id,open_account_state,protocol_status,protocol_start_time,protocol_end_time,trx_limit_amount,day_limit_amount,protocol_limit_amount,app_id,out_user_id,out_vendor_id,sign_entrsut_prtl_status
</sql>
<select
id=
"listObject"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.HygfIcbcRecordDTO"
>
SELECT DISTINCT
icbc.sequence_nbr,
ph.owners_name as custName,
ph.telephone as phone,
ph.id_card,
ph.amos_user_id,
icbc.open_account_status,
icbc.protocol_status
FROM
hygf_peasant_household ph LEFT JOIN hygf_icbc_record icbc ON ph.amos_user_id = icbc.amos_user_id
<where>
ph.is_delete = 0
<if
test=
"param != null"
>
<if
test=
"param.openAccountStatus != null and param.openAccountStatus != ''"
>
AND icbc.protocol_status = #{param.openAccountStatus}
</if>
<if
test=
"param.custName != null and param.custName != ''"
>
AND ph.owners_name LIKE CONCAT('%', #{param.custName}, '%')
</if>
<if
test=
"param.idCard != null and param.idCard != ''"
>
AND ph.id_card LIKE CONCAT('%', #{param.idCard}, '%')
</if>
<if
test=
"param.phone != null and param.phone != ''"
>
AND ph.telephone LIKE CONCAT('%', #{param.phone}, '%')
</if>
<if
test=
"param.regionalCompaniesSeq != null and param.regionalCompaniesSeq != ''"
>
AND ph.regional_companies_seq = #{param.regionalCompaniesSeq}
</if>
</if>
</where>
GROUP BY
ph.amos_user_id
ORDER BY
ph.rec_date DESC
</select>
</mapper>
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/HygfIcbcController.java
View file @
d0154e61
...
...
@@ -64,14 +64,25 @@ public class HygfIcbcController extends BaseController {
@GetMapping
(
value
=
"/getHygfIcbcWalletInfo"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取钱包信息"
,
notes
=
"获取钱包信息"
)
public
ResponseModel
<
JftApiUserEntrustopenacctQueryResponseV1
>
getHygfIcbcWalletInfo
(
HttpServletRequest
req
,
HttpServletResponse
resp
)
{
return
ResponseHelper
.
buildResponse
(
hygfIcbcService
.
getHygfIcbcWalletInfo
(
req
,
resp
));
return
ResponseHelper
.
buildResponse
(
hygfIcbcService
.
getHygfIcbcWalletInfo
(
req
.
getParameter
(
"userId"
)
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/registerWalletCallback"
)
/**
* 开户签约异步通知
*
*
* @param request request
* @param response response
* @return {@link Object}
* @author yangyang
* @throws
* @date 2024/7/18 19:39
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
PUBLIC
,
needAuth
=
false
)
@PostMapping
(
value
=
"/notify"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"注册电子钱包回调"
,
notes
=
"注册电子钱包回调"
)
public
ResponseModel
<
HygfIcbcRecordDTO
>
registerWalletCallback
(
@ApiParam
@RequestBody
HygfIcbcRecordDTO
hygfIcbcRecordDTO
)
{
return
ResponseHelper
.
buildResponse
(
hygfIcbcService
.
registerWalletCallback
(
hygfIcbcRecordDTO
)
);
public
Object
notify
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
Exception
{
return
hygfIcbcService
.
registerWalletCallback
(
request
,
response
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
...
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 @
d0154e61
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