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
34aa0c21
Commit
34aa0c21
authored
Nov 02, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限配置页面
parent
42b7ef7e
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
47 additions
and
34 deletions
+47
-34
TEmployeeContractAreaRes.java
...lus/v1/yifu/archives/entity/TEmployeeContractAreaRes.java
+4
-4
TEmpContractAreaExportVo.java
...ud/plus/v1/yifu/archives/vo/TEmpContractAreaExportVo.java
+15
-8
TEmployeeContractAreaResVo.java
.../plus/v1/yifu/archives/vo/TEmployeeContractAreaResVo.java
+3
-3
TEmployeeContractAreaResController.java
...chives/controller/TEmployeeContractAreaResController.java
+1
-1
TEmployeeContractAreaResServiceImpl.java
...ves/service/impl/TEmployeeContractAreaResServiceImpl.java
+1
-1
TEmployeeContractAreaResMapper.xml
.../main/resources/mapper/TEmployeeContractAreaResMapper.xml
+3
-3
TInsuranceAreaRes.java
...oud/plus/v1/yifu/insurances/entity/TInsuranceAreaRes.java
+3
-3
TInsuranceAreaExportVo.java
...ud/plus/v1/yifu/insurances/vo/TInsuranceAreaExportVo.java
+12
-6
TInsuranceAreaResVo.java
...cloud/plus/v1/yifu/insurances/vo/TInsuranceAreaResVo.java
+2
-2
TInsuranceAreaResController.java
...fu/insurances/controller/TInsuranceAreaResController.java
+2
-2
TInsuranceAreaResServiceImpl.java
.../service/insurance/impl/TInsuranceAreaResServiceImpl.java
+1
-1
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmployeeContractAreaRes.java
View file @
34aa0c21
...
...
@@ -68,7 +68,7 @@ public class TEmployeeContractAreaRes extends BaseEntity {
/**
* 档案-省
*/
@ExcelAttribute
(
name
=
"档案-省"
,
isNotEmpty
=
true
,
errorInfo
=
"档案-省不能为空"
)
@ExcelAttribute
(
name
=
"档案-省"
,
isArea
=
true
,
isNotEmpty
=
true
,
errorInfo
=
"档案-省不能为空"
)
@NotBlank
(
message
=
"档案-省不能为空"
)
@ExcelProperty
(
"档案-省"
)
@Schema
(
description
=
"档案-省"
)
...
...
@@ -76,14 +76,14 @@ public class TEmployeeContractAreaRes extends BaseEntity {
/**
* 档案-市
*/
@ExcelAttribute
(
name
=
"档案-市"
)
@ExcelAttribute
(
name
=
"档案-市"
,
isArea
=
true
,
parentField
=
"fileProvince"
)
@ExcelProperty
(
"档案-市"
)
@Schema
(
description
=
"档案-市"
)
private
Integer
fileCity
;
/**
* 档案-县
*/
@ExcelAttribute
(
name
=
"档案-县"
)
@ExcelAttribute
(
name
=
"档案-县"
,
isArea
=
true
,
parentField
=
"fileCity"
)
@ExcelProperty
(
"档案-县"
)
@Schema
(
description
=
"档案-县"
)
private
Integer
fileTown
;
...
...
@@ -94,7 +94,7 @@ public class TEmployeeContractAreaRes extends BaseEntity {
@ExcelAttribute
(
name
=
"审核人所在部门"
)
@ExcelProperty
(
"办审核人所在部门"
)
@Schema
(
description
=
"审核人所在部门"
)
private
Integer
organName
;
private
String
organName
;
/**
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TEmpContractAreaExportVo.java
View file @
34aa0c21
...
...
@@ -17,6 +17,7 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.write.style.HeadFontStyle
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractAreaRes
;
...
...
@@ -40,45 +41,51 @@ public class TEmpContractAreaExportVo implements Serializable {
/**
* 登录人姓名
*/
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"审核人"
)
@Schema
(
description
=
"审核人"
)
private
String
userName
;
/**
* 档案-省
*/
@ExcelAttribute
(
name
=
"档案-省"
,
isNotEmpty
=
true
,
errorInfo
=
"档案-省不能为空"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelAttribute
(
name
=
"档案-省"
,
isArea
=
true
,
isNotEmpty
=
true
,
errorInfo
=
"档案-省不能为空"
)
@NotBlank
(
message
=
"档案-省不能为空"
)
@ExcelProperty
(
"档案-省"
)
@Schema
(
description
=
"档案-省"
)
private
Integer
fileProvince
;
private
String
fileProvince
;
/**
* 档案-市
*/
@ExcelAttribute
(
name
=
"档案-市"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelAttribute
(
name
=
"档案-市"
,
isArea
=
true
,
parentField
=
"fileProvince"
)
@ExcelProperty
(
"档案-市"
)
@Schema
(
description
=
"档案-市"
)
private
Integer
fileCity
;
private
String
fileCity
;
/**
* 档案-县
*/
@ExcelAttribute
(
name
=
"档案-县"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelAttribute
(
name
=
"档案-县"
,
isArea
=
true
,
parentField
=
"fileCity"
)
@ExcelProperty
(
"档案-县"
)
@Schema
(
description
=
"档案-县"
)
private
Integer
fileTown
;
private
String
fileTown
;
/**
* 申請人所在部门
*/
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelAttribute
(
name
=
"审核人所在部门"
)
@ExcelProperty
(
"办审核人所在部门"
)
@Schema
(
description
=
"审核人所在部门"
)
private
Integer
organName
;
private
String
organName
;
/**
* 状态 0 启用 1 禁用
*/
@ExcelAttribute
(
name
=
"授权状态"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelAttribute
(
name
=
"授权状态"
,
readConverterExp
=
"0=启用,1=禁用"
)
@ExcelProperty
(
"授权状态"
)
@Schema
(
description
=
"授权状态:0 启用 1 禁用"
)
private
String
status
;
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TEmployeeContractAreaResVo.java
View file @
34aa0c21
...
...
@@ -63,20 +63,20 @@ public class TEmployeeContractAreaResVo extends RowIndex implements Serializable
@ExcelAttribute
(
name
=
"档案-省"
,
isNotEmpty
=
true
,
errorInfo
=
"档案-省 不能为空"
)
@Schema
(
description
=
"档案-省"
)
@ExcelProperty
(
"档案-省"
)
private
Integer
fileProvince
;
private
String
fileProvince
;
/**
* 档案-市
*/
@ExcelAttribute
(
name
=
"档案-市"
)
@Schema
(
description
=
"档案-市"
)
@ExcelProperty
(
"档案-市"
)
private
Integer
fileCity
;
private
String
fileCity
;
/**
* 档案-县
*/
@ExcelAttribute
(
name
=
"档案-县"
)
@Schema
(
description
=
"档案-县"
)
@ExcelProperty
(
"档案-县"
)
private
Integer
fileTown
;
private
String
fileTown
;
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeContractAreaResController.java
View file @
34aa0c21
...
...
@@ -141,7 +141,7 @@ public class TEmployeeContractAreaResController {
*/
@Operation
(
summary
=
"通过id启用或禁用合同地市权限配置表"
,
description
=
"通过id启用或禁用(0 启用,1禁用)合同地市权限配置表:hasPermission('temployeecontractareares_edit')"
)
@SysLog
(
"通过id启用或禁用合同地市权限配置表"
)
@
Delete
Mapping
(
"/updateStatus"
)
@
Put
Mapping
(
"/updateStatus"
)
@PreAuthorize
(
"@pms.hasPermission('temployeecontractareares_edit')"
)
public
R
<
Boolean
>
removeById
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
,
@RequestParam
(
name
=
"status"
,
required
=
true
)
String
status
)
{
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractAreaResServiceImpl.java
View file @
34aa0c21
...
...
@@ -86,7 +86,7 @@ public class TEmployeeContractAreaResServiceImpl extends ServiceImpl<TEmployeeCo
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TEmp
loyeeContractAreaRes
.
class
).
build
();
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TEmp
ContractAreaExportVo
.
class
).
build
();
int
index
=
0
;
if
(
count
>
CommonConstants
.
ZERO_INT
)
{
for
(
int
i
=
0
;
i
<=
count
;
)
{
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeContractAreaResMapper.xml
View file @
34aa0c21
...
...
@@ -66,13 +66,13 @@
AND a.FILE_TOWN = #{tEmployeeContractAreaRes.fileTown}
</if>
<if
test=
"tEmployeeContractAreaRes.status!= null"
>
AND a.status like CONCAT(#{t
Insurance
AreaRes.status},'%')
AND a.status like CONCAT(#{t
EmployeeContract
AreaRes.status},'%')
</if>
<if
test=
"tEmployeeContractAreaRes.userName != null"
>
AND a.USER_NAME like CONCAT(#{t
Insurance
AreaRes.userName},'%')
AND a.USER_NAME like CONCAT(#{t
EmployeeContract
AreaRes.userName},'%')
</if>
<if
test=
"tEmployeeContractAreaRes.organName != null"
>
AND a.ORGAN_NAME like CONCAT(#{t
Insurance
AreaRes.organName},'%')
AND a.ORGAN_NAME like CONCAT(#{t
EmployeeContract
AreaRes.organName},'%')
</if>
</if>
</sql>
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/entity/TInsuranceAreaRes.java
View file @
34aa0c21
...
...
@@ -68,7 +68,7 @@ public class TInsuranceAreaRes extends BaseEntity {
/**
* 档案-省
*/
@ExcelAttribute
(
name
=
"档案-省"
,
isNotEmpty
=
true
,
errorInfo
=
"档案-省不能为空"
)
@ExcelAttribute
(
name
=
"档案-省"
,
isArea
=
true
,
isNotEmpty
=
true
,
errorInfo
=
"档案-省不能为空"
)
@NotBlank
(
message
=
"档案-省不能为空"
)
@ExcelProperty
(
"档案-省"
)
@Schema
(
description
=
"档案-省"
)
...
...
@@ -76,7 +76,7 @@ public class TInsuranceAreaRes extends BaseEntity {
/**
* 档案-市
*/
@ExcelAttribute
(
name
=
"档案-市"
)
@ExcelAttribute
(
name
=
"档案-市"
,
isArea
=
true
,
parentField
=
"province"
)
@ExcelProperty
(
"档案-市"
)
@Schema
(
description
=
"档案-市"
)
private
Integer
city
;
...
...
@@ -88,7 +88,7 @@ public class TInsuranceAreaRes extends BaseEntity {
@ExcelAttribute
(
name
=
"办理人所在部门"
)
@ExcelProperty
(
"办理人所在部门"
)
@Schema
(
description
=
"办理人所在部门"
)
private
Integer
organName
;
private
String
organName
;
/**
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/TInsuranceAreaExportVo.java
View file @
34aa0c21
...
...
@@ -17,6 +17,7 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
insurances
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.write.style.HeadFontStyle
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
...
...
@@ -41,39 +42,44 @@ public class TInsuranceAreaExportVo implements Serializable {
/**
* 登录人姓名
*/
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"办理人"
)
@Schema
(
description
=
"办理人"
)
private
String
userName
;
/**
* 档案-省
*/
@ExcelAttribute
(
name
=
"档案-省"
,
isNotEmpty
=
true
,
errorInfo
=
"档案-省不能为空"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelAttribute
(
name
=
"档案-省"
,
isArea
=
true
)
@NotBlank
(
message
=
"档案-省不能为空"
)
@ExcelProperty
(
"档案-省"
)
@Schema
(
description
=
"档案-省"
)
private
Integer
province
;
private
String
province
;
/**
* 档案-市
*/
@ExcelAttribute
(
name
=
"档案-市"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelAttribute
(
name
=
"档案-市"
,
isArea
=
true
,
parentField
=
"province"
)
@ExcelProperty
(
"档案-市"
)
@Schema
(
description
=
"档案-市"
)
private
Integer
city
;
private
String
city
;
/**
* 申請人所在部门
*/
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelAttribute
(
name
=
"办理人所在部门"
)
@ExcelProperty
(
"办理人所在部门"
)
@Schema
(
description
=
"办理人所在部门"
)
private
Integer
organName
;
private
String
organName
;
/**
* 状态 0 启用 1 禁用
*/
@ExcelAttribute
(
name
=
"授权状态"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelAttribute
(
name
=
"授权状态"
,
readConverterExp
=
"0=启用,1=禁用"
)
@ExcelProperty
(
"授权状态"
)
@Schema
(
description
=
"授权状态:0 启用 1 禁用"
)
private
String
status
;
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/TInsuranceAreaResVo.java
View file @
34aa0c21
...
...
@@ -66,13 +66,13 @@ public class TInsuranceAreaResVo extends RowIndex implements Serializable {
@ExcelAttribute
(
name
=
"档案-省"
,
isNotEmpty
=
true
,
errorInfo
=
"档案-省 不能为空"
)
@Schema
(
description
=
"档案-省"
)
@ExcelProperty
(
"档案-省"
)
private
Integer
province
;
private
String
province
;
/**
* 档案-市
*/
@ExcelAttribute
(
name
=
"档案-市"
)
@Schema
(
description
=
"档案-市"
)
@ExcelProperty
(
"档案-市"
)
private
Integer
city
;
private
String
city
;
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceAreaResController.java
View file @
34aa0c21
...
...
@@ -152,9 +152,9 @@ public class TInsuranceAreaResController {
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id启用或禁用商险地市权限配置表"
,
description
=
"通过id启用或禁用(0 启用,1禁用)商险地市权限配置表:hasPermission('tinsuranceareares_
del
')"
)
@Operation
(
summary
=
"通过id启用或禁用商险地市权限配置表"
,
description
=
"通过id启用或禁用(0 启用,1禁用)商险地市权限配置表:hasPermission('tinsuranceareares_
edit
')"
)
@SysLog
(
"通过id启用或禁用商险地市权限配置表"
)
@
Delete
Mapping
(
"/updateStatus"
)
@
Put
Mapping
(
"/updateStatus"
)
@PreAuthorize
(
"@pms.hasPermission('tinsuranceareares_edit')"
)
public
R
<
Boolean
>
removeById
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
,
@RequestParam
(
name
=
"status"
,
required
=
true
)
String
status
)
{
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceAreaResServiceImpl.java
View file @
34aa0c21
...
...
@@ -86,7 +86,7 @@ public class TInsuranceAreaResServiceImpl extends ServiceImpl<TInsuranceAreaResM
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TInsuranceArea
Res
.
class
).
build
();
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TInsuranceArea
ExportVo
.
class
).
build
();
int
index
=
0
;
if
(
count
>
CommonConstants
.
ZERO_INT
){
for
(
int
i
=
0
;
i
<=
count
;
)
{
...
...
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