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
f04d6352
Commit
f04d6352
authored
Aug 05, 2022
by
zhaji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"feature-zhaJi:新增查询列表的权限校验"
parent
290a599a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
408 additions
and
81 deletions
+408
-81
CommonConstants.java
...ud.plus.v1/yifu/common/core/constant/CommonConstants.java
+4
-0
InsurancesConstants.java
...lus/v1/yifu/insurances/constants/InsurancesConstants.java
+20
-7
TInsuranceDetailController.java
...ifu/insurances/controller/TInsuranceDetailController.java
+30
-3
TInsuranceDetailMapper.java
...lus/v1/yifu/insurances/mapper/TInsuranceDetailMapper.java
+21
-2
TInsuranceDetailService.java
...s/v1/yifu/insurances/service/TInsuranceDetailService.java
+22
-2
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+177
-50
TInsuranceDetailMapper.xml
...-biz/src/main/resources/mapper/TInsuranceDetailMapper.xml
+134
-17
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/constant/CommonConstants.java
View file @
f04d6352
...
@@ -126,6 +126,10 @@ public interface CommonConstants {
...
@@ -126,6 +126,10 @@ public interface CommonConstants {
String
FIVE_STRING
=
"5"
;
String
FIVE_STRING
=
"5"
;
String
TWELVE_STRING
=
"12"
;
String
THIRTEEN_STRING
=
"13"
;
/**
/**
* number 0
* number 0
*/
*/
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/constants/InsurancesConstants.java
View file @
f04d6352
...
@@ -542,6 +542,21 @@ public class InsurancesConstants {
...
@@ -542,6 +542,21 @@ public class InsurancesConstants {
*/
*/
public
static
final
String
DEPT_NO_CHANGE_NOT_EMPTY
=
"替换项目编码不能为空"
;
public
static
final
String
DEPT_NO_CHANGE_NOT_EMPTY
=
"替换项目编码不能为空"
;
/**
* 无替换项目的操作权限
*/
public
static
final
String
NEW_DEPT_NO_NOT_IN_DEPT_LIST
=
"无替换项目的操作权限"
;
/**
* 无被替换项目的操作权限
*/
public
static
final
String
OLD_DEPT_NO_NOT_IN_DEPT_LIST
=
"无被替换项目的操作权限"
;
/**
* 无该项目的操作权限
*/
public
static
final
String
DEPT_NO_NOT_IN_USER_DEPT_LIST
=
"无该项目的操作权限"
;
/**
/**
* 替换项目不存在
* 替换项目不存在
*/
*/
...
@@ -587,6 +602,11 @@ public class InsurancesConstants {
...
@@ -587,6 +602,11 @@ public class InsurancesConstants {
*/
*/
public
static
final
String
USER_DATA_IS_NOT_EXIST
=
"员工投保记录不存在"
;
public
static
final
String
USER_DATA_IS_NOT_EXIST
=
"员工投保记录不存在"
;
/**
* 无该投保记录的操作权限
*/
public
static
final
String
DEPT_NO_NOT_IN_DEPT_LIST
=
"无该投保记录的操作权限"
;
/**
/**
* 存在多条在保记录
* 存在多条在保记录
*/
*/
...
@@ -752,11 +772,4 @@ public class InsurancesConstants {
...
@@ -752,11 +772,4 @@ public class InsurancesConstants {
public
static
final
String
NOT_CREATE_USER_DELETE_ERROR
=
"非创建人无法删除保单信息"
;
public
static
final
String
NOT_CREATE_USER_DELETE_ERROR
=
"非创建人无法删除保单信息"
;
/**
* 非创建人无法进行出险
*/
public
static
final
String
NOT_CREATE_USER_UPDATE_IS_USE_ERROR
=
"非创建人无法进行出险"
;
}
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceDetailController.java
View file @
f04d6352
...
@@ -71,24 +71,51 @@ public class TInsuranceDetailController {
...
@@ -71,24 +71,51 @@ public class TInsuranceDetailController {
* @return {@link R<IPage<InsuranceListVO>>}
* @return {@link R<IPage<InsuranceListVO>>}
*/
*/
@Operation
(
summary
=
"投保办理分页查询"
,
description
=
"投保办理分页查询"
)
@Operation
(
summary
=
"投保办理分页查询"
,
description
=
"投保办理分页查询"
)
@PostMapping
(
"/getInsuranceHandleListPage"
)
public
R
<
IPage
<
InsuranceListVO
>>
getInsuranceHandleListPage
(
Page
<
InsuranceListVO
>
page
,
@RequestBody
InsuranceListParam
param
)
{
return
R
.
ok
(
tInsuranceDetailService
.
getInsuranceHandleListPage
(
page
,
param
));
}
/**
* 投保分页查询
*
* @author licancan
* @param page
* @param param
* @return {@link R<IPage<InsuranceListVO>>}
*/
@Operation
(
summary
=
"投保分页查询"
,
description
=
"投保分页查询"
)
@PostMapping
(
"/getInsuranceListPage"
)
@PostMapping
(
"/getInsuranceListPage"
)
public
R
<
IPage
<
InsuranceListVO
>>
getInsuranceListPage
(
Page
<
InsuranceListVO
>
page
,
@RequestBody
InsuranceListParam
param
)
{
public
R
<
IPage
<
InsuranceListVO
>>
getInsuranceListPage
(
Page
<
InsuranceListVO
>
page
,
@RequestBody
InsuranceListParam
param
)
{
return
R
.
ok
(
tInsuranceDetailService
.
getInsuranceListPage
(
page
,
param
));
return
R
.
ok
(
tInsuranceDetailService
.
getInsuranceListPage
(
page
,
param
));
}
}
/**
/**
* 投保
办理
不分页查询
* 投保不分页查询
*
*
* @author licancan
* @author licancan
* @param param
* @param param
* @return {@link R<List<InsuranceListVO>>}
* @return {@link R<List<InsuranceListVO>>}
*/
*/
@Operation
(
summary
=
"投保
办理不分页查询"
,
description
=
"投保办理
不分页查询"
)
@Operation
(
summary
=
"投保
不分页查询"
,
description
=
"投保
不分页查询"
)
@PostMapping
(
"/getInsuranceList"
)
@PostMapping
(
"/getInsuranceList"
)
public
R
<
List
<
InsuranceListVO
>>
getInsuranceList
(
@RequestBody
InsuranceListParam
param
)
{
public
R
<
List
<
InsuranceListVO
>>
getInsuranceList
(
@RequestBody
InsuranceListParam
param
)
{
return
R
.
ok
(
tInsuranceDetailService
.
getInsuranceList
(
param
));
return
R
.
ok
(
tInsuranceDetailService
.
getInsuranceList
(
param
));
}
}
/**
* 投保办理不分页查询
*
* @author licancan
* @param param
* @return {@link R<List<InsuranceListVO>>}
*/
@Operation
(
summary
=
"投保办理不分页查询"
,
description
=
"投保办理不分页查询"
)
@PostMapping
(
"/getInsuranceHandleList"
)
public
R
<
List
<
InsuranceListVO
>>
getInsuranceHandleList
(
@RequestBody
InsuranceListParam
param
)
{
return
R
.
ok
(
tInsuranceDetailService
.
getInsuranceHandleList
(
param
));
}
/**
/**
* 商险新增
* 商险新增
*
*
...
@@ -414,7 +441,7 @@ public class TInsuranceDetailController {
...
@@ -414,7 +441,7 @@ public class TInsuranceDetailController {
@Operation
(
summary
=
"查询项目列表"
,
description
=
"查询项目列表"
)
@Operation
(
summary
=
"查询项目列表"
,
description
=
"查询项目列表"
)
@GetMapping
(
"/deptList"
)
@GetMapping
(
"/deptList"
)
public
R
getDeptList
()
{
public
R
getDeptList
()
{
return
tInsuranceDetailService
.
getDeptList
();
return
tInsuranceDetailService
.
getDeptList
ByUser
();
}
}
/**
/**
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/mapper/TInsuranceDetailMapper.java
View file @
f04d6352
...
@@ -20,7 +20,7 @@ import java.util.List;
...
@@ -20,7 +20,7 @@ import java.util.List;
public
interface
TInsuranceDetailMapper
extends
BaseMapper
<
TInsuranceDetail
>
{
public
interface
TInsuranceDetailMapper
extends
BaseMapper
<
TInsuranceDetail
>
{
/***********************商险办理********************************/
/***********************商险办理********************************/
/**
/**
* 投保
办理
分页查询
* 投保分页查询
*
*
* @author licancan
* @author licancan
* @param page
* @param page
...
@@ -29,6 +29,25 @@ public interface TInsuranceDetailMapper extends BaseMapper<TInsuranceDetail> {
...
@@ -29,6 +29,25 @@ public interface TInsuranceDetailMapper extends BaseMapper<TInsuranceDetail> {
*/
*/
IPage
<
InsuranceListVO
>
getInsuranceListPage
(
Page
<
InsuranceListVO
>
page
,
@Param
(
"param"
)
InsuranceListParam
param
);
IPage
<
InsuranceListVO
>
getInsuranceListPage
(
Page
<
InsuranceListVO
>
page
,
@Param
(
"param"
)
InsuranceListParam
param
);
/**
* 投保不分页查询
*
* @author licancan
* @param param
* @return {@link List<InsuranceListVO>}
*/
List
<
InsuranceListVO
>
getInsuranceList
(
@Param
(
"param"
)
InsuranceListParam
param
);
/**
* 投保办理分页查询
*
* @author licancan
* @param page
* @param param
* @return {@link IPage< InsuranceListVO>}
*/
IPage
<
InsuranceListVO
>
getInsuranceHandleListPage
(
Page
<
InsuranceListVO
>
page
,
@Param
(
"param"
)
InsuranceListParam
param
);
/**
/**
* 投保办理不分页查询
* 投保办理不分页查询
*
*
...
@@ -36,7 +55,7 @@ public interface TInsuranceDetailMapper extends BaseMapper<TInsuranceDetail> {
...
@@ -36,7 +55,7 @@ public interface TInsuranceDetailMapper extends BaseMapper<TInsuranceDetail> {
* @param param
* @param param
* @return {@link List<InsuranceListVO>}
* @return {@link List<InsuranceListVO>}
*/
*/
List
<
InsuranceListVO
>
getInsuranc
eList
(
@Param
(
"param"
)
InsuranceListParam
param
);
List
<
InsuranceListVO
>
getInsuranceHandl
eList
(
@Param
(
"param"
)
InsuranceListParam
param
);
/**
/**
* 通过id查询
* 通过id查询
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/TInsuranceDetailService.java
View file @
f04d6352
...
@@ -38,7 +38,7 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
...
@@ -38,7 +38,7 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
R
<
String
>
updateInsuranceSettle
(
UpdateInsuranceSettleParam
param
);
R
<
String
>
updateInsuranceSettle
(
UpdateInsuranceSettleParam
param
);
/**
/**
* 投保
办理
分页查询
* 投保分页查询
*
*
* @author licancan
* @author licancan
* @param page
* @param page
...
@@ -48,7 +48,18 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
...
@@ -48,7 +48,18 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
IPage
<
InsuranceListVO
>
getInsuranceListPage
(
Page
<
InsuranceListVO
>
page
,
InsuranceListParam
param
);
IPage
<
InsuranceListVO
>
getInsuranceListPage
(
Page
<
InsuranceListVO
>
page
,
InsuranceListParam
param
);
/**
/**
* 投保办理不分页查询
* 投保办理分页查询
*
* @author licancan
* @param page
* @param param
* @return {@link IPage<InsuranceListVO>}
*/
IPage
<
InsuranceListVO
>
getInsuranceHandleListPage
(
Page
<
InsuranceListVO
>
page
,
InsuranceListParam
param
);
/**
* 投保不分页查询
*
*
* @author licancan
* @author licancan
* @param param
* @param param
...
@@ -56,6 +67,15 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
...
@@ -56,6 +67,15 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
*/
*/
List
<
InsuranceListVO
>
getInsuranceList
(
InsuranceListParam
param
);
List
<
InsuranceListVO
>
getInsuranceList
(
InsuranceListParam
param
);
/**
* 投保办理不分页查询
*
* @author licancan
* @param param
* @return {@link List<InsuranceListVO>}
*/
List
<
InsuranceListVO
>
getInsuranceHandleList
(
InsuranceListParam
param
);
/**
/**
* 商险新增
* 商险新增
*
*
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceDetailServiceImpl.java
View file @
f04d6352
This diff is collapsed.
Click to expand it.
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/TInsuranceDetailMapper.xml
View file @
f04d6352
This diff is collapsed.
Click to expand it.
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