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
31f82bdf
Commit
31f82bdf
authored
Jan 07, 2025
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代扣优化项 批量生成 批量上传 采集问题处理
parent
e6427156
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
16 deletions
+25
-16
HygfIcbcRecordExportDTO.java
...mos/boot/module/hygf/api/dto/HygfIcbcRecordExportDTO.java
+8
-1
HygfIcbcRecordMapper.xml
.../src/main/resources/mapper/mysql/HygfIcbcRecordMapper.xml
+6
-3
IcbcWithholdRecordMapper.xml
.../main/resources/mapper/mysql/IcbcWithholdRecordMapper.xml
+1
-1
IcbcWithholdController.java
...ot/module/hygf/biz/controller/IcbcWithholdController.java
+1
-3
IcbcWithholdServiceImpl.java
...module/hygf/biz/service/impl/IcbcWithholdServiceImpl.java
+9
-8
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/HygfIcbcRecordExportDTO.java
View file @
31f82bdf
...
...
@@ -79,7 +79,13 @@ public class HygfIcbcRecordExportDTO {
*/
@ExcelProperty
(
value
=
"扣款总金额(元)"
,
index
=
7
)
@ApiModelProperty
(
value
=
"扣款总金额"
)
private
double
paymentAmount
;
private
Double
paymentAmount
;
/**
* 协议状态, 0-未生效,1-已生效,2-过期,3-作废,4-待短信确认
*/
@ExcelProperty
(
value
=
"最后扣款成功时间"
,
index
=
8
)
@ApiModelProperty
(
value
=
"最后扣款成功时间"
)
private
String
paymentTime
;
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/HygfIcbcRecordMapper.xml
View file @
31f82bdf
...
...
@@ -300,14 +300,16 @@
ELSE '未开户'
END
) AS openAccountStatus,
pa.paymentAmount AS paymentAmount
pa.paymentAmount AS paymentAmount,
MAX(pa.payTime) paymentTime
FROM
`hygf_peasant_household` ph
LEFT JOIN
hygf_icbc_record re ON re.amos_user_id = ph.amos_user_id
LEFT JOIN( SELECT
iw.amos_user_id,
SUM(iw.payment_amount) AS paymentAmount
SUM(iw.payment_amount) AS paymentAmount,
MAX(payment_time) as payTime
FROM
hygf_icbc_withhold_record iw
WHERE
...
...
@@ -349,6 +351,6 @@
</if>
</where>
GROUP BY
ph.amos_user_id, pa.paymentAmount
;
ph.amos_user_id, pa.paymentAmount
</select>
</mapper>
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/IcbcWithholdRecordMapper.xml
View file @
31f82bdf
...
...
@@ -157,7 +157,7 @@
) ph
LEFT JOIN hygf_icbc_withhold_record re ON ph.amos_user_id = re.amos_user_id
<where>
ph.is_delete = 0
ph.is_delete = 0
AND re.withhold_status in ('成功','失败')
<if
test=
"dto.amosUserId != null and dto.amosUserId != ''"
>
AND re.amos_user_id = #{dto.amosUserId}
</if>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/IcbcWithholdController.java
View file @
31f82bdf
...
...
@@ -172,10 +172,8 @@ public class IcbcWithholdController extends BaseController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
" 聚富通代扣信息文件生成"
,
notes
=
" 聚富通代扣信息文件生成"
)
@PostMapping
(
value
=
"/fileGeneration"
)
@Transactional
public
ResponseModel
fileGeneration
(
@RequestBody
List
<
IcbcWithhold
>
models
)
throws
Exception
{
for
(
IcbcWithhold
model
:
models
)
{
public
ResponseModel
fileGeneration
(
@RequestBody
IcbcWithhold
model
)
throws
Exception
{
icbcWithholdServiceImpl
.
fileGeneration
(
model
);
}
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 @
31f82bdf
...
...
@@ -732,15 +732,16 @@ public class IcbcWithholdServiceImpl extends BaseService<IcbcWithholdDto,IcbcWit
dto
.
setAmosUserId
(
icbcWithhold
.
getIcbcId
());
}
List
<
IcbcWithholdRecordDto
>
dtos
=
icbcWithholdRecordMapper
.
exportData
(
dto
);
for
(
IcbcWithholdRecordDto
icbcWithholdRecordDto
:
dtos
)
{
HygfIcbcWithholdRecordExportDTO
exportDTO
=
new
HygfIcbcWithholdRecordExportDTO
();
BeanUtil
.
copyProperties
(
icbcWithholdRecordDto
,
exportDTO
);
exportDTO
.
setDesc
(
icbcWithholdRecordDto
.
getContentText
());
exportDTO
.
setUploader
(
icbcWithholdRecordDto
.
getRecUserName
());
datas
.
add
(
exportDTO
);
if
(
CollectionUtil
.
isNotEmpty
(
dtos
))
{
for
(
IcbcWithholdRecordDto
icbcWithholdRecordDto
:
dtos
)
{
HygfIcbcWithholdRecordExportDTO
exportDTO
=
new
HygfIcbcWithholdRecordExportDTO
();
BeanUtil
.
copyProperties
(
icbcWithholdRecordDto
,
exportDTO
);
exportDTO
.
setDesc
(
icbcWithholdRecordDto
.
getContentText
());
exportDTO
.
setUploader
(
icbcWithholdRecordDto
.
getRecUserName
());
datas
.
add
(
exportDTO
);
}
}
if
(
CollectionUtil
.
isNotEmpty
(
datas
)){
ExcelUtil
.
createTemplate
(
response
,
"付款记录明细"
,
"付款记录明细"
,
datas
,
HygfIcbcWithholdRecordExportDTO
.
class
,
null
,
false
);
}
...
...
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