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
065e806b
Commit
065e806b
authored
May 27, 2022
by
翁国栋
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台--
新增一个保单列表
parent
ec118016
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
15 deletions
+17
-15
src/main/java/cn/timer/api/dao/insure/InsurePolicyMapper.java
+2
-1
src/main/java/cn/timer/api/dto/insure/InsureUserDto.java
+5
-0
src/main/resources/mapping/insure/InsurePolicyMapper.xml
+6
-10
src/main/resources/mapping/qyzx/QyzxEntInfoMMapper.xml
+4
-4
No files found.
src/main/java/cn/timer/api/dao/insure/InsurePolicyMapper.java
View file @
065e806b
...
@@ -25,9 +25,10 @@ public interface InsurePolicyMapper extends BaseMapper<InsurePolicy> {
...
@@ -25,9 +25,10 @@ public interface InsurePolicyMapper extends BaseMapper<InsurePolicy> {
PolicyDto
getPolicyDetail
(
@Param
(
"id"
)
Integer
id
);
PolicyDto
getPolicyDetail
(
@Param
(
"id"
)
Integer
id
);
Integer
totalPolicy
(
@Param
(
"policy"
)
PolicyDto
policyDto
);
Integer
totalPolicy
(
@Param
(
"policy"
)
PolicyDto
policyDto
);
List
<
PolicyDto
>
policyTotalList
();
List
<
PolicyDto
>
policyTotalList
();
List
<
InsureUserDto
>
selectP
lans
ListByorgCode
(
@Param
(
"orgCode"
)
Integer
id
);
List
<
InsureUserDto
>
selectP
olicy
ListByorgCode
(
@Param
(
"orgCode"
)
Integer
id
);
List
<
InsurePolicy
>
selectPolicyListByStatus
(
@Param
(
"date"
)
Date
date
);
List
<
InsurePolicy
>
selectPolicyListByStatus
(
@Param
(
"date"
)
Date
date
);
Integer
selectPlansTotalByorgCode
(
@Param
(
"orgCode"
)
Integer
id
);
Integer
selectPlansTotalByorgCode
(
@Param
(
"orgCode"
)
Integer
id
);
}
}
src/main/java/cn/timer/api/dto/insure/InsureUserDto.java
View file @
065e806b
...
@@ -2,6 +2,8 @@ package cn.timer.api.dto.insure;
...
@@ -2,6 +2,8 @@ package cn.timer.api.dto.insure;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
/**
/**
* @Description TODO
* @Description TODO
* @Author wgd
* @Author wgd
...
@@ -9,10 +11,13 @@ import lombok.Data;
...
@@ -9,10 +11,13 @@ import lombok.Data;
*/
*/
@Data
@Data
public
class
InsureUserDto
{
public
class
InsureUserDto
{
private
Integer
id
;
private
Integer
policyId
;
private
Integer
policyId
;
private
String
benefitBasicPlan
;
private
String
benefitBasicPlan
;
private
String
benefitOccupationCategory
;
private
String
benefitOccupationCategory
;
private
Integer
totalUser
;
private
Integer
totalUser
;
private
String
[]
oldIds
;
private
String
[]
oldIds
;
private
String
policyNo
;
private
String
policyNo
;
private
String
name
;
private
Date
updateTime
;
}
}
src/main/resources/mapping/insure/InsurePolicyMapper.xml
View file @
065e806b
...
@@ -337,22 +337,18 @@
...
@@ -337,22 +337,18 @@
ip.id
ip.id
</select>
</select>
<select
id=
"selectP
lans
ListByorgCode"
resultType=
"cn.timer.api.dto.insure.InsureUserDto"
>
<select
id=
"selectP
olicy
ListByorgCode"
resultType=
"cn.timer.api.dto.insure.InsureUserDto"
>
SELECT
SELECT
ip.id as
policyI
d,
ip.id as
i
d,
ip.policy_no as policyNo,
ip.policy_no as policyNo,
iu.benefit_basic_plan as benefitBasicPlan,
ir.name,
iu.benefit_occupation_category as benefitOccupationCategory,
ip.update_time as updateTime
count(iu.id) as totalUser
FROM
FROM
insure_policy ip
insure_policy ip
LEFT JOIN insure_
user iu ON iu.policy_id = ip.
id
LEFT JOIN insure_
product ir on ir.id=ip.product_
id
WHERE ip.org_code=#{orgCode}
WHERE ip.org_code=#{orgCode}
GROUP BY
ip.id,
iu.benefit_basic_plan,
iu.benefit_occupation_category
</select>
</select>
<select
id=
"selectPlansTotalByorgCode"
resultType=
"java.lang.Integer"
>
<select
id=
"selectPlansTotalByorgCode"
resultType=
"java.lang.Integer"
>
SELECT
SELECT
count(ip.id)
count(ip.id)
...
...
src/main/resources/mapping/qyzx/QyzxEntInfoMMapper.xml
View file @
065e806b
...
@@ -219,18 +219,18 @@
...
@@ -219,18 +219,18 @@
LEFT JOIN ( SELECT cc.organization_id AS oid, count( cc.id ) AS totlaCc FROM cms_content cc GROUP BY cc.organization_id ) AS b ON b.oid = qeim.id
LEFT JOIN ( SELECT cc.organization_id AS oid, count( cc.id ) AS totlaCc FROM cms_content cc GROUP BY cc.organization_id ) AS b ON b.oid = qeim.id
<where>
<where>
<if
test=
"param.name != null and param.name !=''"
>
<if
test=
"param.name != null and param.name !=''"
>
and qeim.NAME like CONCAT('%',#{name},'%')
and qeim.NAME like CONCAT('%',#{
param.
name},'%')
</if>
</if>
<if
test=
"param.linkMan != null and param.linkMan !=''"
>
<if
test=
"param.linkMan != null and param.linkMan !=''"
>
and qeim.link_man like CONCAT('%',#{linkMan},'%')
and qeim.link_man like CONCAT('%',#{
param.
linkMan},'%')
</if>
</if>
<if
test=
"param.linkManPhone != null and param.linkManPhone !=''"
>
<if
test=
"param.linkManPhone != null and param.linkManPhone !=''"
>
and qeim.phone like CONCAT('%',#{linkManPhone},'%')
and qeim.phone like CONCAT('%',#{
param.
linkManPhone},'%')
</if>
</if>
</where>
</where>
GROUP BY
GROUP BY
qeim.id
qeim.id
<if
test=
"param.page.
offset
!= null and param.page.totalPage !=null"
>
<if
test=
"param.page.
currentPage
!= null and param.page.totalPage !=null"
>
limit #{param.page.offset},#{param.page.totalPage}
limit #{param.page.offset},#{param.page.totalPage}
</if>
</if>
</select>
</select>
...
...
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