Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
88bb8a29
Commit
88bb8a29
authored
Apr 22, 2022
by
翁国栋
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改为可选择产品
parent
2ebeff8a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/main/java/cn/timer/api/dto/insure/PolicyDto.java
+1
-0
src/main/resources/mapping/insure/InsurePolicyMapper.xml
+7
-3
No files found.
src/main/java/cn/timer/api/dto/insure/PolicyDto.java
View file @
88bb8a29
...
...
@@ -39,5 +39,6 @@ public class PolicyDto {
private
Integer
insureStatus
;
private
String
planId
;
private
String
categoryId
;
private
String
productId
;
}
src/main/resources/mapping/insure/InsurePolicyMapper.xml
View file @
88bb8a29
...
...
@@ -249,6 +249,9 @@
LEFT JOIN insure_user iu ON iu.policy_id = ip.id
LEFT JOIN qyzx_ent_info_m qy on qy.id=ip.org_code
<where>
<if
test=
"policy.productId!=null and policy.productId!=''"
>
and ip.product_id = #{policy.productId}
</if>
<if
test=
"policy.status!=null and policy.status!=''"
>
and ip.status = #{policy.status}
</if>
...
...
@@ -307,12 +310,13 @@
<select
id=
"policyTotalList"
resultType=
"cn.timer.api.dto.insure.PolicyDto"
>
SELECT
ip.id as id,
ip.name AS schemeName,
ip.type AS type,
(select count(id) from insure_policy
) AS totaPolicy,
(select count(org_code) from insure_policy
) AS totalCompany,
count(ipp.id
) AS totaPolicy,
count(ipp.org_code
) AS totalCompany,
count( iu.id ) AS totalUser,
IFNULL((select sum(price) from insure_user),0)
as totalPremium,
sum(iu.price)
as totalPremium,
ipp.update_time AS updateTime
FROM
insure_product ip
...
...
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