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
449cb713
Commit
449cb713
authored
Apr 11, 2022
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台--
保单列表批量替换
parent
f4ec6565
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
3 deletions
+35
-3
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+10
-0
src/main/java/cn/timer/api/dao/insure/InsurePolicyMapper.java
+2
-0
src/main/java/cn/timer/api/dao/insure/InsureUserMapper.java
+1
-0
src/main/java/cn/timer/api/dto/insure/InsureUserDto.java
+1
-2
src/main/resources/application.yml
+1
-1
src/main/resources/mapping/insure/InsurePolicyMapper.xml
+16
-0
src/main/resources/mapping/insure/InsureUserMapper.xml
+4
-0
No files found.
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
449cb713
...
@@ -12,6 +12,7 @@ import cn.timer.api.dao.insure.InsurePolicyMapper;
...
@@ -12,6 +12,7 @@ import cn.timer.api.dao.insure.InsurePolicyMapper;
import
cn.timer.api.dao.insure.InsureUserMapper
;
import
cn.timer.api.dao.insure.InsureUserMapper
;
import
cn.timer.api.dao.yggl.YgglMainEmpMapper
;
import
cn.timer.api.dao.yggl.YgglMainEmpMapper
;
import
cn.timer.api.dto.insure.InsureDto
;
import
cn.timer.api.dto.insure.InsureDto
;
import
cn.timer.api.dto.insure.InsureUserDto
;
import
cn.timer.api.dto.insure.PlansDto
;
import
cn.timer.api.dto.insure.PlansDto
;
import
cn.timer.api.dto.insure.PolicyDto
;
import
cn.timer.api.dto.insure.PolicyDto
;
import
cn.timer.api.utils.*
;
import
cn.timer.api.utils.*
;
...
@@ -847,4 +848,13 @@ public class InsureContorll {
...
@@ -847,4 +848,13 @@ public class InsureContorll {
return
ResultUtil
.
success
();
return
ResultUtil
.
success
();
};
};
@PostMapping
(
value
=
"/policyTotalList"
)
@ApiOperation
(
value
=
"11.保单统计列表 -- 8小时端"
,
httpMethod
=
"Post"
,
notes
=
"保单统计列表"
)
public
Result
<
Object
>
policyTotal
(
@CurrentUser
UserBean
userBean
,
@RequestBody
Page
page
)
{
List
<
InsureUserDto
>
list
=
insurePolicyMapper
.
selectPlansListByorgCode
(
userBean
.
getOrgCode
());
return
ResultUtil
.
data
(
list
);
}
}
}
src/main/java/cn/timer/api/dao/insure/InsurePolicyMapper.java
View file @
449cb713
package
cn
.
timer
.
api
.
dao
.
insure
;
package
cn
.
timer
.
api
.
dao
.
insure
;
import
cn.timer.api.bean.insure.InsurePolicy
;
import
cn.timer.api.bean.insure.InsurePolicy
;
import
cn.timer.api.dto.insure.InsureUserDto
;
import
cn.timer.api.dto.insure.PolicyDto
;
import
cn.timer.api.dto.insure.PolicyDto
;
import
cn.timer.api.utils.Page
;
import
cn.timer.api.utils.Page
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
...
@@ -23,5 +24,6 @@ public interface InsurePolicyMapper extends BaseMapper<InsurePolicy> {
...
@@ -23,5 +24,6 @@ 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
>
selectPlansListByorgCode
(
@Param
(
"orgCode"
)
Integer
id
);
}
}
src/main/java/cn/timer/api/dao/insure/InsureUserMapper.java
View file @
449cb713
...
@@ -27,4 +27,5 @@ public interface InsureUserMapper extends BaseMapper<InsureUser> {
...
@@ -27,4 +27,5 @@ public interface InsureUserMapper extends BaseMapper<InsureUser> {
List
<
InsureUserDto
>
selectPlansListById
(
@Param
(
"policyId"
)
String
id
);
List
<
InsureUserDto
>
selectPlansListById
(
@Param
(
"policyId"
)
String
id
);
}
}
src/main/java/cn/timer/api/dto/insure/InsureUserDto.java
View file @
449cb713
...
@@ -14,6 +14,5 @@ public class InsureUserDto {
...
@@ -14,6 +14,5 @@ public class InsureUserDto {
private
String
benefitOccupationCategory
;
private
String
benefitOccupationCategory
;
private
Integer
totalUser
;
private
Integer
totalUser
;
private
String
[]
oldIds
;
private
String
[]
oldIds
;
private
String
policyNo
;
}
}
src/main/resources/application.yml
View file @
449cb713
spring
:
spring
:
profiles
:
profiles
:
active
:
test
active
:
dev
#active: '@environment@'
#active: '@environment@'
src/main/resources/mapping/insure/InsurePolicyMapper.xml
View file @
449cb713
...
@@ -324,4 +324,20 @@
...
@@ -324,4 +324,20 @@
ip.id
ip.id
</select>
</select>
<select
id=
"selectPlansListByorgCode"
resultType=
"cn.timer.api.dto.insure.InsureUserDto"
>
SELECT
ip.id as policyId,
ip.policy_no as policyNo,
iu.benefit_basic_plan as benefitBasicPlan,
iu.benefit_occupation_category as benefitOccupationCategory,
count(iu.id) as totalUser
FROM
insure_policy ip
LEFT JOIN insure_user iu ON iu.policy_id = ip.id
WHERE ip.org_code=#{orgCode}
GROUP BY
ip.id,
iu.benefit_basic_plan,
iu.benefit_occupation_category
</select>
</mapper>
</mapper>
src/main/resources/mapping/insure/InsureUserMapper.xml
View file @
449cb713
...
@@ -303,6 +303,9 @@
...
@@ -303,6 +303,9 @@
<if
test=
"policyDto.policyDateStart !=null and policyDto.policyDateStart !=''"
>
<if
test=
"policyDto.policyDateStart !=null and policyDto.policyDateStart !=''"
>
and iu.policy_date_start
<![CDATA[>=]]>
#{policyDto.policyDateStart}
and iu.policy_date_start
<![CDATA[>=]]>
#{policyDto.policyDateStart}
</if>
</if>
<if
test=
"policyDto.policyDateEnd !=null and policyDto.policyDateEnd !=''"
>
and iu.policy_date_end
<![CDATA[<=]]>
#{policyDto.policyDateEnd}
</if>
<if
test=
"policyDto.status !=null and policyDto.status !=''"
>
<if
test=
"policyDto.status !=null and policyDto.status !=''"
>
and iu.insure_status = #{policyDto.status}
and iu.insure_status = #{policyDto.status}
</if>
</if>
...
@@ -373,4 +376,5 @@
...
@@ -373,4 +376,5 @@
WHERE policy_id = #{policyId}
WHERE policy_id = #{policyId}
group by benefit_basic_plan, benefit_occupation_category
group by benefit_basic_plan, benefit_occupation_category
</select>
</select>
</mapper>
</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