Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
cbb1dd45
Commit
cbb1dd45
authored
Jul 27, 2021
by
tianbo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/moa/amos-boot-biz
into developer
parents
6dd60665
8f339b90
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
27 deletions
+38
-27
MaintenancePersonExcleDto.java
...boot/module/common/api/dto/MaintenancePersonExcleDto.java
+30
-25
MaintenanceCompanyController.java
...e/common/biz/controller/MaintenanceCompanyController.java
+0
-1
MaintenanceCompanyServiceImpl.java
...ommon/biz/service/impl/MaintenanceCompanyServiceImpl.java
+0
-0
ExcelController.java
.../amos/boot/module/jcs/biz/controller/ExcelController.java
+8
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/MaintenancePersonExcleDto.java
View file @
cbb1dd45
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.ExcelProperty
;
...
@@ -20,77 +21,81 @@ public class MaintenancePersonExcleDto implements Serializable {
...
@@ -20,77 +21,81 @@ public class MaintenancePersonExcleDto implements Serializable {
@ExcelIgnore
@ExcelIgnore
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ExcelProperty
(
value
=
"序号"
,
index
=
0
)
//
@ExcelProperty(value = "序号", index = 0)
@ApiModelProperty
(
value
=
"序号"
)
@ApiModelProperty
(
value
=
"序号"
)
@ExcelIgnore
private
Integer
number
;
private
Integer
number
;
@ExcelProperty
(
value
=
"姓名"
,
index
=
1
)
@ExcelProperty
(
value
=
"姓名"
,
index
=
0
)
@ApiModelProperty
(
value
=
"姓名"
)
@ApiModelProperty
(
value
=
"姓名"
)
private
String
name
;
private
String
name
;
@ExcelProperty
(
value
=
"员工编号"
,
index
=
2
)
@ExcelProperty
(
value
=
"员工编号"
,
index
=
1
)
@ApiModelProperty
(
value
=
"员工编号"
)
@ApiModelProperty
(
value
=
"员工编号"
)
protected
String
code
;
protected
String
code
;
@ExplicitConstraint
(
indexNum
=
3
,
sourceClass
=
RoleNameExplicitConstraint
.
class
,
method
=
"getCompanyAndDeparementTree"
)
//固定下拉内容
@ExplicitConstraint
(
indexNum
=
2
,
sourceClass
=
RoleNameExplicitConstraint
.
class
,
method
=
"getCompanyAndDeparementTree"
)
//固定下拉内容
@ExcelProperty
(
value
=
"所属单位及部门"
,
index
=
3
)
@ExcelProperty
(
value
=
"所属单位及部门"
,
index
=
2
)
@ApiModelProperty
(
value
=
"所属单位及部门"
)
@ApiModelProperty
(
value
=
"所属单位及部门"
)
private
String
parentId
;
private
String
parentName
;
@ExcelIgnore
private
Long
parentId
;
@ExplicitConstraint
(
type
=
"XB"
,
indexNum
=
4
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
@ExplicitConstraint
(
type
=
"XB"
,
indexNum
=
3
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
@ExcelProperty
(
value
=
"性别"
,
index
=
4
)
@ExcelProperty
(
value
=
"性别"
,
index
=
3
)
@ApiModelProperty
(
value
=
"性别"
)
@ApiModelProperty
(
value
=
"性别"
)
private
String
gender
;
private
String
gender
;
@ExcelProperty
(
value
=
"身份证号码"
,
index
=
5
)
@ExcelProperty
(
value
=
"身份证号码"
,
index
=
4
)
@ApiModelProperty
(
value
=
"身份证号码"
)
@ApiModelProperty
(
value
=
"身份证号码"
)
private
String
idNumber
;
private
String
idNumber
;
@ExcelProperty
(
value
=
"手机号码"
,
index
=
6
)
@ExcelProperty
(
value
=
"手机号码"
,
index
=
5
)
@ApiModelProperty
(
value
=
"手机号码"
)
@ApiModelProperty
(
value
=
"手机号码"
)
private
String
tel
;
private
String
tel
;
@ExcelProperty
(
value
=
"民族"
,
index
=
7
)
@ExcelProperty
(
value
=
"民族"
,
index
=
6
)
@ApiModelProperty
(
value
=
"民族"
)
@ApiModelProperty
(
value
=
"民族"
)
private
String
nation
;
private
String
nation
;
//项目负责人、消防设施操作员
//项目负责人、消防设施操作员
@ExcelProperty
(
value
=
"类别"
,
index
=
8
)
@ExcelProperty
(
value
=
"类别"
,
index
=
7
)
@ApiModelProperty
(
value
=
"类别"
)
@ApiModelProperty
(
value
=
"类别"
)
private
String
category
;
private
String
category
;
@ExcelProperty
(
value
=
"统账号"
,
index
=
9
)
@ExcelProperty
(
value
=
"统账号"
,
index
=
8
)
@ApiModelProperty
(
value
=
"系统账户"
)
@ApiModelProperty
(
value
=
"系统账户"
)
private
String
systemAccount
;
private
String
systemAccount
;
@ExplicitConstraint
(
type
=
"WBRYZT"
,
indexNum
=
10
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExplicitConstraint
(
type
=
"WBRYZT"
,
indexNum
=
9
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"人员状态"
,
index
=
10
)
@ExcelProperty
(
value
=
"人员状态"
,
index
=
9
)
@ApiModelProperty
(
value
=
"人员状态"
)
@ApiModelProperty
(
value
=
"人员状态"
)
private
String
status
;
private
String
status
;
@ExplicitConstraint
(
type
=
"WBZYZS"
,
indexNum
=
1
1
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExplicitConstraint
(
type
=
"WBZYZS"
,
indexNum
=
1
0
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"职业资格证书"
,
index
=
1
1
)
@ExcelProperty
(
value
=
"职业资格证书"
,
index
=
1
0
)
@ApiModelProperty
(
value
=
"职业资格证书"
)
@ApiModelProperty
(
value
=
"职业资格证书"
)
private
String
professionalCertificate
;
private
String
professionalCertificate
;
@ExplicitConstraint
(
type
=
"WBZYZG"
,
indexNum
=
1
2
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExplicitConstraint
(
type
=
"WBZYZG"
,
indexNum
=
1
1
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"职业资格"
,
index
=
1
2
)
@ExcelProperty
(
value
=
"职业资格"
,
index
=
1
1
)
@ApiModelProperty
(
value
=
"职业资格"
)
@ApiModelProperty
(
value
=
"职业资格"
)
private
String
qualification
;
private
String
qualification
;
@ExcelProperty
(
value
=
"证书编号"
,
index
=
1
3
)
@ExcelProperty
(
value
=
"证书编号"
,
index
=
1
2
)
@ApiModelProperty
(
value
=
"证书编号"
)
@ApiModelProperty
(
value
=
"证书编号"
)
private
String
certificateNo
;
private
String
certificateNo
;
@ExcelProperty
(
value
=
"注册有效期开始时间"
,
index
=
1
4
)
@ExcelProperty
(
value
=
"注册有效期开始时间"
,
index
=
1
3
)
@ApiModelProperty
(
value
=
"注册有效期开始时间"
)
@ApiModelProperty
(
value
=
"注册有效期开始时间"
)
private
String
registrationStartTime
;
private
Date
registrationStartTime
;
@ExcelProperty
(
value
=
"注册有效期结束时间"
,
index
=
1
5
)
@ExcelProperty
(
value
=
"注册有效期结束时间"
,
index
=
1
4
)
@ApiModelProperty
(
value
=
"注册有效期结束时间"
)
@ApiModelProperty
(
value
=
"注册有效期结束时间"
)
private
String
registrationEndTime
;
private
Date
registrationEndTime
;
@ExcelProperty
(
value
=
"注册号"
,
index
=
1
6
)
@ExcelProperty
(
value
=
"注册号"
,
index
=
1
5
)
@ApiModelProperty
(
value
=
"注册号"
)
@ApiModelProperty
(
value
=
"注册号"
)
private
String
amosAccount
;
private
String
amosAccount
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/MaintenanceCompanyController.java
View file @
cbb1dd45
...
@@ -112,7 +112,6 @@ public class MaintenanceCompanyController extends BaseController {
...
@@ -112,7 +112,6 @@ public class MaintenanceCompanyController extends BaseController {
@GetMapping
(
value
=
"/allList"
)
@GetMapping
(
value
=
"/allList"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"所有维保人员/单位/部门列表,不分页"
,
notes
=
"所有维保人员列表"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"所有维保人员/单位/部门列表,不分页"
,
notes
=
"所有维保人员列表"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getAllMaintenanceList
(
@RequestParam
String
maintenanceType
)
{
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getAllMaintenanceList
(
@RequestParam
String
maintenanceType
)
{
AgencyUserModel
amosUser
=
getUserInfo
();
return
ResponseHelper
.
buildResponse
(
maintenanceCompanyService
.
getAllMaintenanceList
(
maintenanceType
));
return
ResponseHelper
.
buildResponse
(
maintenanceCompanyService
.
getAllMaintenanceList
(
maintenanceType
));
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/MaintenanceCompanyServiceImpl.java
View file @
cbb1dd45
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/ExcelController.java
View file @
cbb1dd45
...
@@ -208,6 +208,11 @@ public class ExcelController extends BaseController {
...
@@ -208,6 +208,11 @@ public class ExcelController extends BaseController {
ExcelUtil
.
createTemplate
(
response
,
excelDto
.
getFileName
(),
excelDto
.
getSheetName
(),
ExcelUtil
.
createTemplate
(
response
,
excelDto
.
getFileName
(),
excelDto
.
getSheetName
(),
firefightersExcelDtoList
,
FirefightersExcelDto
.
class
,
null
,
false
);
firefightersExcelDtoList
,
FirefightersExcelDto
.
class
,
null
,
false
);
break
;
break
;
case
ExcelEnums
.
WBRY
:
List
<
MaintenancePersonExcleDto
>
maintenancePersonExcleDtoList
=
maintenanceCompanyService
.
exportToMaintenancePersonExcel
();
ExcelUtil
.
createTemplate
(
response
,
excelDto
.
getFileName
(),
excelDto
.
getSheetName
(),
maintenancePersonExcleDtoList
,
MaintenancePersonExcleDto
.
class
,
null
,
false
);
break
;
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -275,7 +280,7 @@ public class ExcelController extends BaseController {
...
@@ -275,7 +280,7 @@ public class ExcelController extends BaseController {
maintenanceCompany
=
Bean
.
toPo
(
maintenancePersonExcleDto
,
maintenanceCompany
);
maintenanceCompany
=
Bean
.
toPo
(
maintenancePersonExcleDto
,
maintenanceCompany
);
maintenanceCompany
.
setType
(
PERSON
);
maintenanceCompany
.
setType
(
PERSON
);
if
(
maintenanceCompany
.
getParentId
()
!=
null
)
{
if
(
maintenanceCompany
.
getParentId
()
!=
null
)
{
long
getParentId
=
Long
.
valueOf
(
maintenancePersonExcleDto
.
getParent
Id
().
split
(
"@"
)[
1
]);
long
getParentId
=
Long
.
valueOf
(
maintenancePersonExcleDto
.
getParent
Name
().
split
(
"@"
)[
1
]);
maintenanceCompany
.
setParentId
(
getParentId
);
maintenanceCompany
.
setParentId
(
getParentId
);
}
}
if
(
maintenanceCompanyService
.
checkPersonCodeExists
(
maintenancePersonExcleDto
.
getCode
()))
{
if
(
maintenanceCompanyService
.
checkPersonCodeExists
(
maintenancePersonExcleDto
.
getCode
()))
{
...
@@ -283,6 +288,8 @@ public class ExcelController extends BaseController {
...
@@ -283,6 +288,8 @@ public class ExcelController extends BaseController {
}
else
{
}
else
{
maintenanceCompany
.
setCode
(
null
);
maintenanceCompany
.
setCode
(
null
);
}
}
maintenanceCompany
.
setOrgCode
(
null
);
maintenanceCompany
.
setBizCode
(
sequence
.
nextId
()
+
""
);
maintenanceCompany
.
setInstanceId
(
instanceId
);
maintenanceCompany
.
setInstanceId
(
instanceId
);
maintenanceCompanyList
.
add
(
maintenanceCompany
);
maintenanceCompanyList
.
add
(
maintenanceCompany
);
maintenanceCompanyService
.
maintenancePersonExcleDtoToDynamicFormInstanceList
(
columns
,
maintenancePersonExcleDto
,
instanceId
,
dynamicFormInstanceList
);
maintenanceCompanyService
.
maintenancePersonExcleDtoToDynamicFormInstanceList
(
columns
,
maintenancePersonExcleDto
,
instanceId
,
dynamicFormInstanceList
);
...
...
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