Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
9100c3a0
Commit
9100c3a0
authored
Aug 24, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小数点处理
parent
5b95c132
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
BusinessInfoMapper.xml
...src/main/resources/mapper/business/BusinessInfoMapper.xml
+2
-2
CustomerMapper.xml
.../main/resources/mapper/system/customer/CustomerMapper.xml
+1
-1
No files found.
dsk-system/src/main/resources/mapper/business/BusinessInfoMapper.xml
View file @
9100c3a0
...
...
@@ -391,14 +391,14 @@
<select
id=
"selectAmountAnalyze"
resultType=
"com.dsk.system.domain.business.vo.BusinessAnalyzeVo"
>
select
bi.amount_source,count(bi.id) businessCount,
sum(bi.investment_amount
) totalAmount
bi.amount_source,count(bi.id) businessCount,
ROUND(sum(bi.investment_amount), 4
) totalAmount
<include
refid=
"businessSearchSql"
/>
group by bi.amount_source
</select>
<select
id=
"selectTypeAnalyze"
resultType=
"com.dsk.system.domain.business.vo.BusinessAnalyzeVo"
>
select
bi.project_type,count(bi.id) businessCount,sum(bi.investment_amount
) totalAmount
bi.project_type,count(bi.id) businessCount, ROUND(sum(bi.investment_amount), 4
) totalAmount
<include
refid=
"businessSearchSql"
/>
group by bi.project_type
</select>
...
...
dsk-system/src/main/resources/mapper/system/customer/CustomerMapper.xml
View file @
9100c3a0
...
...
@@ -112,7 +112,7 @@
<select
id=
"selectCooperationTop"
resultType=
"com.dsk.system.domain.customer.vo.CustomerAnalyzeVo"
>
select
ct.customer_id, ct.company_name, ct.company_id, ct.uip_id, count(bi.id) businessCount,
sum(bi.investment_amount
) totalAmount
ROUND(sum(bi.investment_amount), 4
) totalAmount
from customer ct
join customer_user ctu on ct.customer_id = ctu.customer_id
left join business_info bi on (bi.customer_id = ct.customer_id and bi.status = 2)
...
...
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