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
33448bf4
Commit
33448bf4
authored
Jun 01, 2022
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台--
保单列表模糊查询、分页
parent
4f452ff9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+3
-2
src/main/java/cn/timer/api/dao/insure/InsurePolicyMapper.java
+2
-1
src/main/resources/mapping/insure/InsurePolicyMapper.xml
+19
-0
No files found.
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
33448bf4
...
...
@@ -747,10 +747,11 @@ public class InsureContorll {
@PostMapping
(
value
=
"/policyTotalList"
)
@ApiOperation
(
value
=
"11.保单统计列表 -- 8小时端"
,
httpMethod
=
"POST"
,
notes
=
"保单统计列表"
)
public
Result
<
Object
>
policyTotal
(
@CurrentUser
UserBean
userBean
)
{
public
Result
<
Object
>
policyTotal
(
@CurrentUser
UserBean
userBean
,
@RequestBody
PolicyDto
policyDto
)
{
Map
map
=
Maps
.
newHashMap
();
List
<
InsureUserDto
>
list
=
insurePolicyMapper
.
selectPolicyListByorgCode
(
userBean
.
getOrgCode
());
List
<
InsureUserDto
>
list
=
insurePolicyMapper
.
selectPolicyListByorgCode
(
userBean
.
getOrgCode
()
,
policyDto
);
map
.
put
(
"list"
,
list
);
map
.
put
(
"total"
,
insurePolicyMapper
.
selectPolicyTotalByorgCode
(
userBean
.
getOrgCode
(),
policyDto
));
return
ResultUtil
.
data
(
map
);
}
...
...
src/main/java/cn/timer/api/dao/insure/InsurePolicyMapper.java
View file @
33448bf4
...
...
@@ -25,7 +25,8 @@ public interface InsurePolicyMapper extends BaseMapper<InsurePolicy> {
PolicyDto
getPolicyDetail
(
@Param
(
"id"
)
Integer
id
);
Integer
totalPolicy
(
@Param
(
"policy"
)
PolicyDto
policyDto
);
List
<
PolicyDto
>
policyTotalList
();
List
<
InsureUserDto
>
selectPolicyListByorgCode
(
@Param
(
"orgCode"
)
Integer
id
);
List
<
InsureUserDto
>
selectPolicyListByorgCode
(
@Param
(
"orgCode"
)
Integer
id
,
@Param
(
"policy"
)
PolicyDto
policyDto
);
Integer
selectPolicyTotalByorgCode
(
@Param
(
"orgCode"
)
Integer
id
,
@Param
(
"policy"
)
PolicyDto
policyDto
);
List
<
InsurePolicy
>
selectPolicyListByStatus
(
@Param
(
"date"
)
Date
date
);
Integer
selectPlansTotalByorgCode
(
@Param
(
"orgCode"
)
Integer
id
);
...
...
src/main/resources/mapping/insure/InsurePolicyMapper.xml
View file @
33448bf4
...
...
@@ -350,9 +350,28 @@
insure_policy ip
LEFT JOIN insure_product ir on ir.id=ip.product_id
WHERE ip.org_code=#{orgCode}
<if
test=
"policy.policyNo !=null and policy.policyNo!=''"
>
and ip.policy_no = #{policy.policyNo}
</if>
order by ip.update_time desc
<if
test=
"policy.page.offset != null and policy.page.totalPage != null"
>
limit #{policy.page.offset}, #{policy.page.totalPage}
</if>
</select>
<select
id=
"selectPolicyTotalByorgCode"
resultType=
"java.lang.Integer"
>
SELECT
count(ip.id)
FROM
insure_policy ip
LEFT JOIN insure_product ir on ir.id=ip.product_id
WHERE ip.org_code=#{orgCode}
<if
test=
"policy.policyNo !=null and policy.policyNo!=''"
>
and ip.policy_no = #{policy.policyNo}
</if>
</select>
<select
id=
"selectPlansTotalByorgCode"
resultType=
"java.lang.Integer"
>
SELECT
count(ip.id)
...
...
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