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
942ceb1d
Commit
942ceb1d
authored
Jan 06, 2025
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代扣优化项 代扣金额
parent
c43f4c33
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
9 deletions
+27
-9
HygfIcbcRecordDTO.java
...join/amos/boot/module/hygf/api/dto/HygfIcbcRecordDTO.java
+1
-1
HygfIcbcRecordExportDTO.java
...mos/boot/module/hygf/api/dto/HygfIcbcRecordExportDTO.java
+1
-1
HygfIcbcRecordQueryDTO.java
...amos/boot/module/hygf/api/dto/HygfIcbcRecordQueryDTO.java
+4
-0
HygfIcbcRecordMapper.xml
.../src/main/resources/mapper/mysql/HygfIcbcRecordMapper.xml
+6
-0
IcbcWithholdController.java
...ot/module/hygf/biz/controller/IcbcWithholdController.java
+1
-1
HygfIcbcServiceImpl.java
...oot/module/hygf/biz/service/impl/HygfIcbcServiceImpl.java
+2
-2
IcbcWithholdServiceImpl.java
...module/hygf/biz/service/impl/IcbcWithholdServiceImpl.java
+12
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/HygfIcbcRecordDTO.java
View file @
942ceb1d
...
@@ -180,7 +180,7 @@ public class HygfIcbcRecordDTO {
...
@@ -180,7 +180,7 @@ public class HygfIcbcRecordDTO {
private
String
realScale
;
private
String
realScale
;
}
}
@ApiModelProperty
(
value
=
"代扣金额"
)
@ApiModelProperty
(
value
=
"代扣金额"
)
private
d
ouble
paymentAmount
;
private
D
ouble
paymentAmount
;
@ApiModelProperty
(
value
=
"代扣时间"
)
@ApiModelProperty
(
value
=
"代扣时间"
)
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/HygfIcbcRecordExportDTO.java
View file @
942ceb1d
...
@@ -77,7 +77,7 @@ public class HygfIcbcRecordExportDTO {
...
@@ -77,7 +77,7 @@ public class HygfIcbcRecordExportDTO {
/**
/**
* 协议状态, 0-未生效,1-已生效,2-过期,3-作废,4-待短信确认
* 协议状态, 0-未生效,1-已生效,2-过期,3-作废,4-待短信确认
*/
*/
@ExcelProperty
(
value
=
"扣款总金额"
,
index
=
7
)
@ExcelProperty
(
value
=
"扣款总金额
(元)
"
,
index
=
7
)
@ApiModelProperty
(
value
=
"扣款总金额"
)
@ApiModelProperty
(
value
=
"扣款总金额"
)
private
double
paymentAmount
;
private
double
paymentAmount
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/HygfIcbcRecordQueryDTO.java
View file @
942ceb1d
...
@@ -5,6 +5,8 @@ import lombok.AllArgsConstructor;
...
@@ -5,6 +5,8 @@ import lombok.AllArgsConstructor;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
java.util.List
;
/**
/**
* <p>
* <p>
* ProjectName: amos-boot-zx-biz
* ProjectName: amos-boot-zx-biz
...
@@ -44,4 +46,6 @@ public class HygfIcbcRecordQueryDTO {
...
@@ -44,4 +46,6 @@ public class HygfIcbcRecordQueryDTO {
private
Integer
limit
;
private
Integer
limit
;
private
Integer
offset
;
private
Integer
offset
;
private
List
<
String
>
ids
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/HygfIcbcRecordMapper.xml
View file @
942ceb1d
...
@@ -269,6 +269,12 @@
...
@@ -269,6 +269,12 @@
<if
test=
"param.addressName != null and param.addressName != ''"
>
<if
test=
"param.addressName != null and param.addressName != ''"
>
AND ph.project_address LIKE CONCAT('%', #{param.addressName}, '%')
AND ph.project_address LIKE CONCAT('%', #{param.addressName}, '%')
</if>
</if>
<if
test=
"param.ids != null and param.ids.size() > 0"
>
AND re.amos_user_id in
<foreach
collection=
"param.ids"
item=
"item"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"param != null"
>
<if
test=
"param != null"
>
<if
test=
"param.openAccountStatus != null and param.openAccountStatus != ''"
>
<if
test=
"param.openAccountStatus != null and param.openAccountStatus != ''"
>
<if
test=
"param.openAccountStatus != '00'"
>
<if
test=
"param.openAccountStatus != '00'"
>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/IcbcWithholdController.java
View file @
942ceb1d
...
@@ -113,7 +113,7 @@ public class IcbcWithholdController extends BaseController {
...
@@ -113,7 +113,7 @@ public class IcbcWithholdController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
" 聚富通代扣信息表分页查询"
,
notes
=
" 聚富通代扣信息表分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
" 聚富通代扣信息表分页查询"
,
notes
=
" 聚富通代扣信息表分页查询"
)
public
ResponseModel
<
Page
<
IcbcWithholdDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
public
ResponseModel
<
Map
<
String
,
Object
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"uploader"
,
required
=
false
)
String
uploader
,
@RequestParam
(
value
=
"uploader"
,
required
=
false
)
String
uploader
,
@RequestParam
(
value
=
"uploadStartTime"
,
required
=
false
)
String
uploadStartTime
,
@RequestParam
(
value
=
"uploadStartTime"
,
required
=
false
)
String
uploadStartTime
,
...
...
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 @
942ceb1d
...
@@ -458,7 +458,7 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
...
@@ -458,7 +458,7 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
public
Map
<
String
,
Object
>
queryForPage
(
int
current
,
int
size
,
HygfIcbcRecordQueryDTO
hygfIcbcRecordQueryDTO
)
{
public
Map
<
String
,
Object
>
queryForPage
(
int
current
,
int
size
,
HygfIcbcRecordQueryDTO
hygfIcbcRecordQueryDTO
)
{
PageHelper
.
startPage
(
current
,
size
);
PageHelper
.
startPage
(
current
,
size
);
List
<
HygfIcbcRecordDTO
>
list
=
hygfIcbcRecordMapper
.
pageList
(
hygfIcbcRecordQueryDTO
);
List
<
HygfIcbcRecordDTO
>
list
=
hygfIcbcRecordMapper
.
pageList
(
hygfIcbcRecordQueryDTO
);
double
sum
=
list
.
stream
().
mapToDouble
(
HygfIcbcRecordDTO:
:
getPaymentAmount
).
sum
();
double
sum
=
list
.
stream
().
filter
(
e
->
null
!=
e
.
getPaymentAmount
()).
mapToDouble
(
HygfIcbcRecordDTO:
:
getPaymentAmount
).
sum
();
PageInfo
<
HygfIcbcRecordDTO
>
page
=
new
PageInfo
(
list
);
PageInfo
<
HygfIcbcRecordDTO
>
page
=
new
PageInfo
(
list
);
...
@@ -467,7 +467,7 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
...
@@ -467,7 +467,7 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
pagenew
.
setTotal
(
page
.
getTotal
());
pagenew
.
setTotal
(
page
.
getTotal
());
pagenew
.
setSize
(
size
);
pagenew
.
setSize
(
size
);
pagenew
.
setRecords
(
toModels
(
page
.
getList
()));
pagenew
.
setRecords
(
toModels
(
page
.
getList
()));
Map
<
String
,
Object
>
resultMap
=
Bean
.
Beant
oMap
(
pagenew
);
Map
<
String
,
Object
>
resultMap
=
Bean
Util
.
beanT
oMap
(
pagenew
);
resultMap
.
put
(
"paymentAmountAll"
,
sum
);
resultMap
.
put
(
"paymentAmountAll"
,
sum
);
return
resultMap
;
return
resultMap
;
...
...
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 @
942ceb1d
...
@@ -648,17 +648,25 @@ public class IcbcWithholdServiceImpl extends BaseService<IcbcWithholdDto,IcbcWit
...
@@ -648,17 +648,25 @@ public class IcbcWithholdServiceImpl extends BaseService<IcbcWithholdDto,IcbcWit
}
}
public
Page
<
IcbcWithholdDto
>
queryForIcbcWithholdPage
(
int
current
,
int
size
,
String
uploader
,
String
uploadStartTime
,
String
uploadEndTime
,
String
uploadStatus
,
String
confirmator
,
String
confirmationStartTime
,
String
confirmationEndTime
,
String
desc
,
String
withholdStatus
)
{
public
Map
<
String
,
Object
>
queryForIcbcWithholdPage
(
int
current
,
int
size
,
String
uploader
,
String
uploadStartTime
,
String
uploadEndTime
,
String
uploadStatus
,
String
confirmator
,
String
confirmationStartTime
,
String
confirmationEndTime
,
String
desc
,
String
withholdStatus
)
{
Page
<
IcbcWithholdDto
>
page
=
new
Page
<>();
Page
<
IcbcWithholdDto
>
page
=
new
Page
<>();
PageHelper
.
startPage
(
current
,
size
);
PageHelper
.
startPage
(
current
,
size
);
List
<
IcbcWithholdDto
>
icbcWithholdDtos
=
this
.
getBaseMapper
().
queryForIcbcWithholdPage
(
uploader
,
uploadStartTime
,
uploadEndTime
,
uploadStatus
,
confirmator
,
confirmationStartTime
,
confirmationEndTime
,
desc
,
withholdStatus
);
List
<
IcbcWithholdDto
>
icbcWithholdDtos
=
this
.
getBaseMapper
().
queryForIcbcWithholdPage
(
uploader
,
uploadStartTime
,
uploadEndTime
,
uploadStatus
,
confirmator
,
confirmationStartTime
,
confirmationEndTime
,
desc
,
withholdStatus
);
PageInfo
<
IcbcWithholdDto
>
pageInfo
=
new
PageInfo
<>(
icbcWithholdDtos
);
PageInfo
<
IcbcWithholdDto
>
pageInfo
=
new
PageInfo
<>(
icbcWithholdDtos
);
double
sum
=
icbcWithholdDtos
.
stream
()
.
filter
(
e
->
null
!=
e
.
getPaymentAmount
())
.
map
(
e
->
Double
.
parseDouble
(
e
.
getPaymentAmount
()))
.
mapToDouble
(
Double:
:
doubleValue
)
.
sum
();
page
.
setSize
(
pageInfo
.
getSize
());
page
.
setSize
(
pageInfo
.
getSize
());
page
.
setCurrent
(
pageInfo
.
getPageNum
());
page
.
setCurrent
(
pageInfo
.
getPageNum
());
page
.
setTotal
(
pageInfo
.
getTotal
());
page
.
setTotal
(
pageInfo
.
getTotal
());
page
.
setRecords
(
icbcWithholdDtos
);
page
.
setRecords
(
icbcWithholdDtos
);
return
page
;
Map
<
String
,
Object
>
resultMap
=
BeanUtil
.
beanToMap
(
page
);
resultMap
.
put
(
"paymentAmountAll"
,
sum
);
return
resultMap
;
}
}
public
void
upIcbcWithholdRecordWithholdStatus
()
{
public
void
upIcbcWithholdRecordWithholdStatus
()
{
...
@@ -733,8 +741,8 @@ public class IcbcWithholdServiceImpl extends BaseService<IcbcWithholdDto,IcbcWit
...
@@ -733,8 +741,8 @@ public class IcbcWithholdServiceImpl extends BaseService<IcbcWithholdDto,IcbcWit
for
(
IcbcWithholdRecordDto
icbcWithholdRecordDto
:
dtos
)
{
for
(
IcbcWithholdRecordDto
icbcWithholdRecordDto
:
dtos
)
{
HygfIcbcWithholdRecordExportDTO
exportDTO
=
new
HygfIcbcWithholdRecordExportDTO
();
HygfIcbcWithholdRecordExportDTO
exportDTO
=
new
HygfIcbcWithholdRecordExportDTO
();
BeanUtil
.
copyProperties
(
icbcWithholdRecordDto
,
exportDTO
);
BeanUtil
.
copyProperties
(
icbcWithholdRecordDto
,
exportDTO
);
exportDTO
.
setDesc
(
icbcWithhold
.
getDesc
());
exportDTO
.
setDesc
(
icbcWithhold
RecordDto
.
getContentText
());
exportDTO
.
setUploader
(
icbcWithhold
.
getConfirmator
());
exportDTO
.
setUploader
(
icbcWithhold
RecordDto
.
getRecUserName
());
datas
.
add
(
exportDTO
);
datas
.
add
(
exportDTO
);
}
}
...
...
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