Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
5b963128
Commit
5b963128
authored
Nov 08, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20221108 基础配置 险种列表增加搜索条件
parent
523c4a7f
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
7 deletions
+15
-7
InsuranceTypeVo.java
...ifu/cloud/plus/v1/yifu/insurances/vo/InsuranceTypeVo.java
+2
-0
TInsuranceTypeController.java
.../yifu/insurances/controller/TInsuranceTypeController.java
+1
-1
TInsuranceTypeMapper.java
...fu/insurances/mapper/insurances/TInsuranceTypeMapper.java
+2
-2
TInsuranceTypeService.java
...u/insurances/service/insurance/TInsuranceTypeService.java
+2
-2
TInsuranceTypeServiceImpl.java
...ces/service/insurance/impl/TInsuranceTypeServiceImpl.java
+2
-2
TInsuranceTypeMapper.xml
...main/resources/mapper/insurances/TInsuranceTypeMapper.xml
+6
-0
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsuranceTypeVo.java
View file @
5b963128
...
@@ -3,6 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.insurances.vo;
...
@@ -3,6 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.insurances.vo;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceType
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceType
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceTypeRate
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceTypeRate
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceTypeStandard
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceTypeStandard
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
import
java.util.List
;
...
@@ -18,6 +19,7 @@ public class InsuranceTypeVo extends TInsuranceType {
...
@@ -18,6 +19,7 @@ public class InsuranceTypeVo extends TInsuranceType {
/**
/**
* 所属保险公司名称
* 所属保险公司名称
*/
*/
@Schema
(
description
=
"所属保险公司名称"
)
private
String
insuranceCompanyName
;
private
String
insuranceCompanyName
;
/**
/**
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceTypeController.java
View file @
5b963128
...
@@ -39,7 +39,7 @@ public class TInsuranceTypeController {
...
@@ -39,7 +39,7 @@ public class TInsuranceTypeController {
*/
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
@GetMapping
(
"/page"
)
public
R
<
IPage
<
InsuranceTypeVo
>>
getInsuranceTypePage
(
Page
<
TInsuranceType
>
page
,
TInsuranceType
insuranceType
)
{
public
R
<
IPage
<
InsuranceTypeVo
>>
getInsuranceTypePage
(
Page
<
InsuranceTypeVo
>
page
,
InsuranceTypeVo
insuranceType
)
{
return
R
.
ok
(
insuranceTypeService
.
pageDiy
(
page
,
insuranceType
));
return
R
.
ok
(
insuranceTypeService
.
pageDiy
(
page
,
insuranceType
));
}
}
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/mapper/insurances/TInsuranceTypeMapper.java
View file @
5b963128
...
@@ -44,9 +44,9 @@ public interface TInsuranceTypeMapper extends BaseMapper<TInsuranceType> {
...
@@ -44,9 +44,9 @@ public interface TInsuranceTypeMapper extends BaseMapper<TInsuranceType> {
* @author zhaji
* @author zhaji
* @param page 分页参数
* @param page 分页参数
* @param insuranceType 查询参数
* @param insuranceType 查询参数
* @return {@link IPage<
InsuranceTypeVo>}
* @return {@link IPage<InsuranceTypeVo>}
*/
*/
IPage
<
InsuranceTypeVo
>
selectInsuranceTypePage
(
Page
page
,
@Param
(
"insuranceType"
)
TInsuranceType
insuranceType
);
IPage
<
InsuranceTypeVo
>
selectInsuranceTypePage
(
Page
page
,
@Param
(
"insuranceType"
)
InsuranceTypeVo
insuranceType
);
InsuranceTypeVo
getInsuranceTypeDetailById
(
String
id
);
InsuranceTypeVo
getInsuranceTypeDetailById
(
String
id
);
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/TInsuranceTypeService.java
View file @
5b963128
...
@@ -22,9 +22,9 @@ public interface TInsuranceTypeService extends IService<TInsuranceType> {
...
@@ -22,9 +22,9 @@ public interface TInsuranceTypeService extends IService<TInsuranceType> {
* @author zhaji
* @author zhaji
* @param page 分页参数
* @param page 分页参数
* @param insuranceType 分页查询参数
* @param insuranceType 分页查询参数
* @return {@link IPage<
TInsuranceType
>}
* @return {@link IPage<
InsuranceTypeVo
>}
*/
*/
IPage
<
InsuranceTypeVo
>
pageDiy
(
Page
<
TInsuranceType
>
page
,
TInsuranceType
insuranceType
);
IPage
<
InsuranceTypeVo
>
pageDiy
(
Page
<
InsuranceTypeVo
>
page
,
InsuranceTypeVo
insuranceType
);
/**
/**
* 新增险种信息
* 新增险种信息
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceTypeServiceImpl.java
View file @
5b963128
...
@@ -46,10 +46,10 @@ public class TInsuranceTypeServiceImpl extends ServiceImpl<TInsuranceTypeMapper,
...
@@ -46,10 +46,10 @@ public class TInsuranceTypeServiceImpl extends ServiceImpl<TInsuranceTypeMapper,
* @author zhaji
* @author zhaji
* @param page 分页参数
* @param page 分页参数
* @param insuranceType 分页查询参数
* @param insuranceType 分页查询参数
* @return {@link IPage<
TInsuranceType
>}
* @return {@link IPage<
InsuranceTypeVo
>}
*/
*/
@Override
@Override
public
IPage
<
InsuranceTypeVo
>
pageDiy
(
Page
<
TInsuranceType
>
page
,
TInsuranceType
insuranceType
)
{
public
IPage
<
InsuranceTypeVo
>
pageDiy
(
Page
<
InsuranceTypeVo
>
page
,
InsuranceTypeVo
insuranceType
)
{
return
this
.
baseMapper
.
selectInsuranceTypePage
(
page
,
insuranceType
);
return
this
.
baseMapper
.
selectInsuranceTypePage
(
page
,
insuranceType
);
}
}
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/insurances/TInsuranceTypeMapper.xml
View file @
5b963128
...
@@ -71,6 +71,12 @@
...
@@ -71,6 +71,12 @@
a.INSURANCE_COMPANY_ID = b.ID
a.INSURANCE_COMPANY_ID = b.ID
and
and
a.DELETE_FLAG = 0
a.DELETE_FLAG = 0
<if
test=
"insuranceType.insuranceCompanyName != null and insuranceType.insuranceCompanyName.trim() != ''"
>
and b.COMPANY_NAME = #{insuranceType.insuranceCompanyName}
</if>
<if
test=
"insuranceType.name != null and insuranceType.name.trim() != ''"
>
and a.NAME = #{insuranceType.name}
</if>
ORDER BY a.CREATE_TIME DESC
ORDER BY a.CREATE_TIME DESC
</select>
</select>
<select
id=
"getInsuranceTypeDetailById"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceTypeVo"
>
<select
id=
"getInsuranceTypeDetailById"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceTypeVo"
>
...
...
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