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
71269f0a
Commit
71269f0a
authored
Jan 06, 2025
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代扣优化项 聚富通信息导出
parent
2ef67317
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
13 deletions
+39
-13
HygfIcbcRecordMapper.java
...mos/boot/module/hygf/api/mapper/HygfIcbcRecordMapper.java
+1
-1
HygfIcbcRecordMapper.xml
.../src/main/resources/mapper/mysql/HygfIcbcRecordMapper.xml
+21
-10
HygfIcbcController.java
...s/boot/module/hygf/biz/controller/HygfIcbcController.java
+9
-0
HygfIcbcServiceImpl.java
...oot/module/hygf/biz/service/impl/HygfIcbcServiceImpl.java
+8
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/HygfIcbcRecordMapper.java
View file @
71269f0a
...
...
@@ -34,5 +34,5 @@ public interface HygfIcbcRecordMapper extends BaseMapper<HygfIcbcRecord> {
List
<
HygfIcbcRecordExportDTO
>
exportTotal
(
String
developerCode
,
String
regionalCompaniesCode
,
String
province
,
String
city
,
String
district
);
@UserEmpower
(
field
=
{
"ph.regional_companies_code"
},
dealerField
=
{
"ph.developer_code"
,
"ph.regional_companies_code"
,
"ph.developer_user_id"
},
fieldConditions
=
{
"in"
,
"in"
,
"in"
},
relationship
=
"and"
)
List
<
HygfIcbcRecordExportDTO
>
paymentAmountExport
(
String
developerCode
,
String
regionalCompaniesCode
,
String
province
,
String
city
,
String
district
);
List
<
HygfIcbcRecordExportDTO
>
paymentAmountExport
(
@Param
(
"param"
)
HygfIcbcRecordQueryDTO
hygfIcbcRecordQueryDTO
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/HygfIcbcRecordMapper.xml
View file @
71269f0a
...
...
@@ -259,20 +259,31 @@
LEFT JOIN
PaymentAmounts pa ON pa.amos_user_id = ph.amos_user_id
<where>
<if
test=
"
developerCode != null and developerCod
e != ''"
>
AND
ph.developer_code = #{developerCode}
<if
test=
"
param.custName != null and param.custNam
e != ''"
>
AND
(ph.owners_name LIKE CONCAT('%', #{param.custName}, '%') OR re.cust_name LIKE CONCAT('%', #{param.custName}, '%'))
</if>
<if
test=
"
regionalCompaniesCode != null and regionalCompaniesCode
!= ''"
>
AND
ph.regional_companies_code = #{regionalCompaniesCode}
<if
test=
"
param.idCard != null and param.idCard
!= ''"
>
AND
(ph.id_card LIKE CONCAT('%', #{param.idCard}, '%') OR icbc.id_card LIKE CONCAT('%', #{param.idCard}, '%'))
</if>
<if
test=
"p
rovince != null and provinc
e != ''"
>
AND
ph.project_address LIKE CONCAT ('%',#{province},'%'
)
<if
test=
"p
aram.phone != null and param.phon
e != ''"
>
AND
(ph.telephone LIKE CONCAT('%', #{param.phone}, '%') OR icbc.phone LIKE CONCAT('%', #{param.phone}, '%')
)
</if>
<if
test=
"
city != null and city
!= ''"
>
AND ph.
project_address LIKE CONCAT ('%',#{city},
'%')
<if
test=
"
param.regionalCompaniesName != null and param.regionalCompaniesName
!= ''"
>
AND ph.
regional_companies_name LIKE CONCAT('%', #{param.regionalCompaniesName},
'%')
</if>
<if
test=
"district != null and district != ''"
>
AND ph.project_address LIKE CONCAT ('%',#{district},'%')
<if
test=
"param.addressName != null and param.addressName != ''"
>
AND ph.project_address LIKE CONCAT('%', #{param.addressName}, '%')
</if>
<if
test=
"param != null"
>
<if
test=
"param.openAccountStatus != null and param.openAccountStatus != ''"
>
<if
test=
"param.openAccountStatus != '00'"
>
AND re.open_account_status = #{param.openAccountStatus}
</if>
<if
test=
"param.openAccountStatus == '00'"
>
AND (re.open_account_status = #{param.openAccountStatus} OR re.open_account_status is null)
</if>
</if>
</if>
</where>
GROUP BY
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/HygfIcbcController.java
View file @
71269f0a
...
...
@@ -150,4 +150,13 @@ public class HygfIcbcController extends BaseController {
hygfIcbcService
.
exportData
(
response
,
developerCode
,
regionalCompaniesCode
,
province
,
city
,
district
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"聚富通信息"
,
notes
=
"聚富通信息"
)
@GetMapping
(
value
=
"/exportExcel"
)
public
void
exportData
(
HttpServletResponse
response
,
HygfIcbcRecordQueryDTO
hygfIcbcRecordQueryDTO
)
{
hygfIcbcService
.
exportExcel
(
response
,
hygfIcbcRecordQueryDTO
);
}
}
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 @
71269f0a
...
...
@@ -457,9 +457,7 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
public
Page
<
HygfIcbcRecordDTO
>
queryForPage
(
int
current
,
int
size
,
HygfIcbcRecordQueryDTO
hygfIcbcRecordQueryDTO
)
{
PageHelper
.
startPage
(
current
,
size
);
List
<
HygfIcbcRecordDTO
>
list
=
hygfIcbcRecordMapper
.
pageList
(
hygfIcbcRecordQueryDTO
);
for
(
HygfIcbcRecordDTO
hygfIcbcRecordDTO
:
list
)
{
}
PageInfo
<
HygfIcbcRecordDTO
>
page
=
new
PageInfo
(
list
);
...
...
@@ -684,4 +682,11 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
}
public
void
exportExcel
(
HttpServletResponse
response
,
HygfIcbcRecordQueryDTO
hygfIcbcRecordQueryDTO
){
List
<
HygfIcbcRecordExportDTO
>
hygfIcbcRecordExportDTOS
=
hygfIcbcRecordMapper
.
paymentAmountExport
(
hygfIcbcRecordQueryDTO
);
if
(
CollectionUtil
.
isNotEmpty
(
hygfIcbcRecordExportDTOS
)){
ExcelUtil
.
createTemplate
(
response
,
"聚富通信息"
,
"聚富通信息"
,
hygfIcbcRecordExportDTOS
,
HygfIcbcRecordExportDTO
.
class
,
null
,
false
);
}
}
}
\ 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