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
6f489f43
Commit
6f489f43
authored
May 07, 2022
by
翁国栋
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台,单人替换
parent
3b6431ad
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
0 deletions
+21
-0
src/main/java/cn/timer/api/dao/insure/InsurePolicyMapper.java
+3
-0
src/main/java/cn/timer/api/dao/insure/InsureUserMapper.java
+1
-0
src/main/resources/mapping/insure/InsurePolicyMapper.xml
+6
-0
src/main/resources/mapping/insure/InsureUserMapper.xml
+11
-0
No files found.
src/main/java/cn/timer/api/dao/insure/InsurePolicyMapper.java
View file @
6f489f43
...
...
@@ -9,6 +9,7 @@ import io.swagger.models.auth.In;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -26,4 +27,6 @@ public interface InsurePolicyMapper extends BaseMapper<InsurePolicy> {
List
<
PolicyDto
>
policyTotalList
();
List
<
InsureUserDto
>
selectPlansListByorgCode
(
@Param
(
"orgCode"
)
Integer
id
);
List
<
InsurePolicy
>
selectPolicyListByStatus
(
@Param
(
"date"
)
Date
date
);
}
src/main/java/cn/timer/api/dao/insure/InsureUserMapper.java
View file @
6f489f43
...
...
@@ -25,6 +25,7 @@ public interface InsureUserMapper extends BaseMapper<InsureUser> {
List
<
InsureUser
>
selectListByIds
(
@Param
(
"array"
)
String
[]
ids
);
List
<
InsureUserDto
>
selectPlansListByIds
(
@Param
(
"array"
)
String
[]
ids
);
List
<
InsureUserDto
>
selectPlansListById
(
@Param
(
"policyId"
)
String
id
);
int
updateInsure
(
@Param
(
"array"
)
Integer
[]
ids
);
...
...
src/main/resources/mapping/insure/InsurePolicyMapper.xml
View file @
6f489f43
...
...
@@ -347,4 +347,10 @@
iu.benefit_basic_plan,
iu.benefit_occupation_category
</select>
<select
id=
"selectPolicyListByStatus"
resultType=
"cn.timer.api.bean.insure.InsurePolicy"
>
select * from insure_policy
where status = 1 and
policy_date_end
<![CDATA[ < ]]>
#{date}
</select>
</mapper>
src/main/resources/mapping/insure/InsureUserMapper.xml
View file @
6f489f43
...
...
@@ -378,4 +378,15 @@
group by benefit_basic_plan, benefit_occupation_category
</select>
<update
id=
"updateInsure"
>
UPDATE insure_user
<set>
status = 2,
insure_status=2
</set>
WHERE policy_id IN
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</update>
</mapper>
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