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
f172b23c
Commit
f172b23c
authored
May 27, 2022
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台--
新增一个保单列表
parent
8213aa3e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
16 deletions
+18
-16
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+1
-1
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/controller/insure/InsureContorll.java
View file @
f172b23c
...
@@ -945,7 +945,7 @@ public class InsureContorll {
...
@@ -945,7 +945,7 @@ public class InsureContorll {
@ApiOperation
(
value
=
"11.保单统计列表 -- 8小时端"
,
httpMethod
=
"POST"
,
notes
=
"保单统计列表"
)
@ApiOperation
(
value
=
"11.保单统计列表 -- 8小时端"
,
httpMethod
=
"POST"
,
notes
=
"保单统计列表"
)
public
Result
<
Object
>
policyTotal
(
@CurrentUser
UserBean
userBean
)
{
public
Result
<
Object
>
policyTotal
(
@CurrentUser
UserBean
userBean
)
{
Map
map
=
Maps
.
newHashMap
();
Map
map
=
Maps
.
newHashMap
();
List
<
InsureUserDto
>
list
=
insurePolicyMapper
.
selectP
lans
ListByorgCode
(
userBean
.
getOrgCode
());
List
<
InsureUserDto
>
list
=
insurePolicyMapper
.
selectP
olicy
ListByorgCode
(
userBean
.
getOrgCode
());
map
.
put
(
"list"
,
list
);
map
.
put
(
"list"
,
list
);
return
ResultUtil
.
data
(
map
);
return
ResultUtil
.
data
(
map
);
}
}
...
...
src/main/java/cn/timer/api/dao/insure/InsurePolicyMapper.java
View file @
f172b23c
...
@@ -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 @
f172b23c
...
@@ -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 @
f172b23c
...
@@ -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 @
f172b23c
...
@@ -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