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
36e5eb62
Commit
36e5eb62
authored
Jun 01, 2022
by
翁国栋
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台--
保单列表模糊查询、分页
parent
fb987a55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
+21
-1
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/dao/insure/InsurePolicyMapper.java
View file @
36e5eb62
...
...
@@ -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 @
36e5eb62
...
...
@@ -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