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
523c4a7f
Commit
523c4a7f
authored
Nov 08, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20221108 基础配置 保险公司增加办理地 列表显示及搜索
parent
b9ae75d7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
4 deletions
+32
-4
TInsuranceCompany.java
...oud/plus/v1/yifu/insurances/entity/TInsuranceCompany.java
+5
-0
TInsuranceCompanyMapper.java
...insurances/mapper/insurances/TInsuranceCompanyMapper.java
+12
-0
TInsuranceCompanyServiceImpl.java
.../service/insurance/impl/TInsuranceCompanyServiceImpl.java
+2
-4
TInsuranceCompanyMapper.xml
...n/resources/mapper/insurances/TInsuranceCompanyMapper.xml
+13
-0
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/entity/TInsuranceCompany.java
View file @
523c4a7f
...
...
@@ -12,6 +12,7 @@ import org.checkerframework.common.value.qual.StringVal;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
/**
...
...
@@ -74,24 +75,28 @@ public class TInsuranceCompany extends BaseEntity {
* 商险办理省code
*/
@Schema
(
description
=
"商险办理省code"
)
@NotNull
(
message
=
"商险办理省code不能为空"
)
private
Integer
insuranceHandleProvince
;
/**
* 商险办理省
*/
@Schema
(
description
=
"商险办理省"
)
@NotBlank
(
message
=
"商险办理省不能为空"
)
private
String
insuranceHandleProvinceName
;
/**
* 商险办理城市code
*/
@Schema
(
description
=
"商险办理城市code"
)
@NotNull
(
message
=
"商险办理城市code不能为空"
)
private
Integer
insuranceHandleCity
;
/**
* 商险办理城市
*/
@Schema
(
description
=
"商险办理城市"
)
@NotBlank
(
message
=
"商险办理城市不能为空"
)
private
String
insuranceHandleCityName
;
}
\ No newline at end of file
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/mapper/insurances/TInsuranceCompanyMapper.java
View file @
523c4a7f
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
mapper
.
insurances
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceCompany
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* @author Administrator
...
...
@@ -14,4 +17,13 @@ import org.apache.ibatis.annotations.Mapper;
public
interface
TInsuranceCompanyMapper
extends
BaseMapper
<
TInsuranceCompany
>
{
/**
* 分页查询保险公司
*
* @author licancan
* @param page
* @param param
* @return {@link IPage<TInsuranceCompany>}
*/
IPage
<
TInsuranceCompany
>
getInsuranceCompanyListPage
(
Page
<
TInsuranceCompany
>
page
,
@Param
(
"param"
)
TInsuranceCompany
param
);
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceCompanyServiceImpl.java
View file @
523c4a7f
...
...
@@ -48,13 +48,11 @@ public class TInsuranceCompanyServiceImpl extends ServiceImpl<TInsuranceCompanyM
* @author zhaji
* @param page 分页参数
* @param insuranceCompany 查询类
* @return {@link IPage<
TInsuranceCompany>}
* @return {@link IPage<TInsuranceCompany>}
*/
@Override
public
IPage
<
TInsuranceCompany
>
pageDiy
(
Page
page
,
TInsuranceCompany
insuranceCompany
)
{
LambdaQueryWrapper
<
TInsuranceCompany
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
orderByDesc
(
TInsuranceCompany:
:
getCreateTime
);
IPage
<
TInsuranceCompany
>
list
=
this
.
baseMapper
.
selectPage
(
page
,
wrapper
);
IPage
<
TInsuranceCompany
>
list
=
this
.
baseMapper
.
getInsuranceCompanyListPage
(
page
,
insuranceCompany
);
return
list
;
}
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/insurances/TInsuranceCompanyMapper.xml
View file @
523c4a7f
...
...
@@ -28,4 +28,17 @@
DELETE_FLAG,
INSURANCE_HANDLE_PROVINCE,INSURANCE_HANDLE_PROVINCE_NAME,INSURANCE_HANDLE_CITY,INSURANCE_HANDLE_CITY_NAME
</sql>
<select
id=
"getInsuranceCompanyListPage"
resultMap=
"BaseResultMap"
>
SELECT
<include
refid=
"Base_Column_List"
></include>
FROM t_insurance_company
where DELETE_FLAG = 0
<if
test=
"param.companyName != null and param.companyName.trim() != ''"
>
and COMPANY_NAME = #{param.companyName}
</if>
<if
test=
"param.insuranceHandleCity != null"
>
and INSURANCE_HANDLE_CITY = #{param.insuranceHandleCity}
</if>
ORDER BY CREATE_TIME DESC
</select>
</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