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
effdde1b
Commit
effdde1b
authored
Jun 20, 2025
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出topic改用token + 人员bugfix 29605
parent
de895c8a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
48 deletions
+65
-48
JgTableDataExportController.java
...module/jg/biz/controller/JgTableDataExportController.java
+15
-15
IJgTableDataExportService.java
...boot/module/jg/biz/service/IJgTableDataExportService.java
+7
-7
JgTableDataExportServiceImpl.java
...ule/jg/biz/service/impl/JgTableDataExportServiceImpl.java
+0
-0
ITzsUserInfoService.java
...amos/boot/module/tcm/api/service/ITzsUserInfoService.java
+11
-9
TzsUserInfoController.java
...boot/module/tcm/biz/controller/TzsUserInfoController.java
+7
-7
TzsUserInfoServiceImpl.java
...t/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
+25
-10
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgTableDataExportController.java
View file @
effdde1b
...
@@ -57,11 +57,11 @@ public class JgTableDataExportController extends BaseController {
...
@@ -57,11 +57,11 @@ public class JgTableDataExportController extends BaseController {
@RequestParam
(
value
=
"ids"
,
required
=
false
)
String
ids
,
@RequestParam
(
value
=
"ids"
,
required
=
false
)
String
ids
,
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
)
{
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
)
{
String
uuid
=
UUID
.
randomUUID
().
toString
();
String
uuid
=
UUID
.
randomUUID
().
toString
();
iJgTableDataExportService
.
startDownLoadMsg
(
""
,
getSelectedOrgInfo
(),
uuid
);
iJgTableDataExportService
.
startDownLoadMsg
(
""
,
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
iJgTableDataExportService
.
certificate
(
uuid
,
getSelectedOrgInfo
(),
dto
,
ids
==
null
?
new
ArrayList
<>()
:
Arrays
.
asList
(
ids
.
split
(
","
)),
sort
);
iJgTableDataExportService
.
certificate
(
uuid
,
dto
,
ids
==
null
?
new
ArrayList
<>()
:
Arrays
.
asList
(
ids
.
split
(
","
)),
sort
);
}).
start
();
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
}
...
@@ -197,10 +197,10 @@ public class JgTableDataExportController extends BaseController {
...
@@ -197,10 +197,10 @@ public class JgTableDataExportController extends BaseController {
public
ResponseModel
<
String
>
unregulatedEquipExport
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
public
ResponseModel
<
String
>
unregulatedEquipExport
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
String
uuid
=
UUID
.
randomUUID
().
toString
();
String
uuid
=
UUID
.
randomUUID
().
toString
();
iJgTableDataExportService
.
startDownLoadMsg
(
"未纳管设备列表数据"
,
getSelectedOrgInfo
(),
uuid
);
iJgTableDataExportService
.
startDownLoadMsg
(
"未纳管设备列表数据"
,
uuid
);
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
iJgTableDataExportService
.
unregulatedEquip
(
uuid
,
getSelectedOrgInfo
(),
map
);
iJgTableDataExportService
.
unregulatedEquip
(
uuid
,
map
);
}).
start
();
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
}
...
@@ -210,11 +210,11 @@ public class JgTableDataExportController extends BaseController {
...
@@ -210,11 +210,11 @@ public class JgTableDataExportController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"已纳管设备列表数据导出"
,
notes
=
"已纳管设备列表数据导出"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"已纳管设备列表数据导出"
,
notes
=
"已纳管设备列表数据导出"
)
public
ResponseModel
<
String
>
manageEquipmentExport
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
public
ResponseModel
<
String
>
manageEquipmentExport
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
String
uuid
=
UUID
.
randomUUID
().
toString
();
String
uuid
=
UUID
.
randomUUID
().
toString
();
iJgTableDataExportService
.
startDownLoadMsg
(
"已纳管设备列表数据"
,
getSelectedOrgInfo
(),
uuid
);
iJgTableDataExportService
.
startDownLoadMsg
(
"已纳管设备列表数据"
,
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
iJgTableDataExportService
.
manageEquipment
(
uuid
,
getSelectedOrgInfo
(),
map
);
iJgTableDataExportService
.
manageEquipment
(
uuid
,
map
);
}).
start
();
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
}
...
@@ -233,7 +233,7 @@ public class JgTableDataExportController extends BaseController {
...
@@ -233,7 +233,7 @@ public class JgTableDataExportController extends BaseController {
public
ResponseModel
<
String
>
unregulatedPipe
(
@RequestParam
Map
<
String
,
String
>
params
,
public
ResponseModel
<
String
>
unregulatedPipe
(
@RequestParam
Map
<
String
,
String
>
params
,
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
)
{
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
)
{
String
uuid
=
UUID
.
randomUUID
().
toString
();
String
uuid
=
UUID
.
randomUUID
().
toString
();
iJgTableDataExportService
.
startDownLoadMsg
(
"未纳管压力管道列表"
,
getSelectedOrgInfo
(),
uuid
);
iJgTableDataExportService
.
startDownLoadMsg
(
"未纳管压力管道列表"
,
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
...
@@ -248,7 +248,7 @@ public class JgTableDataExportController extends BaseController {
...
@@ -248,7 +248,7 @@ public class JgTableDataExportController extends BaseController {
public
ResponseModel
<
String
>
managePipe
(
@RequestParam
Map
<
String
,
String
>
params
,
public
ResponseModel
<
String
>
managePipe
(
@RequestParam
Map
<
String
,
String
>
params
,
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
)
{
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
)
{
String
uuid
=
UUID
.
randomUUID
().
toString
();
String
uuid
=
UUID
.
randomUUID
().
toString
();
iJgTableDataExportService
.
startDownLoadMsg
(
"已纳管压力管道列表"
,
getSelectedOrgInfo
(),
uuid
);
iJgTableDataExportService
.
startDownLoadMsg
(
"已纳管压力管道列表"
,
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
...
@@ -262,11 +262,11 @@ public class JgTableDataExportController extends BaseController {
...
@@ -262,11 +262,11 @@ public class JgTableDataExportController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"基础设置-企业信息列表数据导出"
,
notes
=
"基础设置-企业信息列表数据导出"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"基础设置-企业信息列表数据导出"
,
notes
=
"基础设置-企业信息列表数据导出"
)
public
ResponseModel
<
String
>
managePipe
(
String
ids
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
)
{
public
ResponseModel
<
String
>
managePipe
(
String
ids
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
)
{
String
uuid
=
UUID
.
randomUUID
().
toString
();
String
uuid
=
UUID
.
randomUUID
().
toString
();
iJgTableDataExportService
.
startDownLoadMsg
(
"企业信息列表"
,
getSelectedOrgInfo
(),
uuid
);
iJgTableDataExportService
.
startDownLoadMsg
(
"企业信息列表"
,
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
iJgTableDataExportService
.
enterpriseInformationExport
(
uuid
,
ids
,
tzBaseEnterpriseInfoDto
,
getSelectedOrgInfo
()
);
iJgTableDataExportService
.
enterpriseInformationExport
(
uuid
,
ids
,
tzBaseEnterpriseInfoDto
);
}).
start
();
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
}
...
@@ -278,11 +278,11 @@ public class JgTableDataExportController extends BaseController {
...
@@ -278,11 +278,11 @@ public class JgTableDataExportController extends BaseController {
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
,
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
,
@RequestParam
Map
<
String
,
String
>
map
)
{
@RequestParam
Map
<
String
,
String
>
map
)
{
String
uuid
=
UUID
.
randomUUID
().
toString
();
String
uuid
=
UUID
.
randomUUID
().
toString
();
iJgTableDataExportService
.
startDownLoadMsg
(
"人员信息列表"
,
getSelectedOrgInfo
(),
uuid
);
iJgTableDataExportService
.
startDownLoadMsg
(
"人员信息列表"
,
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
iJgTableDataExportService
.
userInfoExport
(
uuid
,
ids
,
map
,
getSelectedOrgInfo
()
);
iJgTableDataExportService
.
userInfoExport
(
uuid
,
ids
,
map
);
}).
start
();
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
}
...
@@ -291,13 +291,13 @@ public class JgTableDataExportController extends BaseController {
...
@@ -291,13 +291,13 @@ public class JgTableDataExportController extends BaseController {
@PostMapping
(
value
=
"/userInfoExportWithAdmin"
)
@PostMapping
(
value
=
"/userInfoExportWithAdmin"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"基础设置-监管单位-人员信息列表数据导出"
,
notes
=
"基础设置-监管单位-人员信息列表数据导出"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"基础设置-监管单位-人员信息列表数据导出"
,
notes
=
"基础设置-监管单位-人员信息列表数据导出"
)
public
ResponseModel
<
String
>
userInfoExportWithAdmin
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
String
ids
,
public
ResponseModel
<
String
>
userInfoExportWithAdmin
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
String
ids
,
@RequestBody
Map
<
String
,
String
>
map
)
{
@RequestBody
Map
<
String
,
String
>
map
)
{
String
uuid
=
UUID
.
randomUUID
().
toString
();
String
uuid
=
UUID
.
randomUUID
().
toString
();
iJgTableDataExportService
.
startDownLoadMsg
(
"人员信息列表"
,
getSelectedOrgInfo
(),
uuid
);
iJgTableDataExportService
.
startDownLoadMsg
(
"人员信息列表"
,
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
iJgTableDataExportService
.
userInfoExportWithAdmin
(
uuid
,
ids
,
map
,
getSelectedOrgInfo
()
);
iJgTableDataExportService
.
userInfoExportWithAdmin
(
uuid
,
ids
,
map
);
}).
start
();
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/IJgTableDataExportService.java
View file @
effdde1b
...
@@ -15,11 +15,11 @@ import java.util.Map;
...
@@ -15,11 +15,11 @@ import java.util.Map;
*/
*/
public
interface
IJgTableDataExportService
{
public
interface
IJgTableDataExportService
{
void
startDownLoadMsg
(
String
fileName
,
ReginParams
reginParams
,
String
uuid
);
void
startDownLoadMsg
(
String
fileName
,
String
uuid
);
void
gen
(
String
jsonName
,
String
voName
,
String
tableName
);
void
gen
(
String
jsonName
,
String
voName
,
String
tableName
);
void
certificate
(
String
uuid
,
ReginParams
reginParams
,
JgUseRegistrationManageDto
dto
,
List
<
String
>
ids
,
String
sort
);
void
certificate
(
String
uuid
,
JgUseRegistrationManageDto
dto
,
List
<
String
>
ids
,
String
sort
);
void
maintenance
(
HttpServletResponse
response
,
List
<
String
>
ids
);
void
maintenance
(
HttpServletResponse
response
,
List
<
String
>
ids
);
...
@@ -49,9 +49,9 @@ public interface IJgTableDataExportService {
...
@@ -49,9 +49,9 @@ public interface IJgTableDataExportService {
void
changeVehicleRegistrationUnit
(
HttpServletResponse
response
,
List
<
String
>
ids
);
void
changeVehicleRegistrationUnit
(
HttpServletResponse
response
,
List
<
String
>
ids
);
void
unregulatedEquip
(
String
uuid
,
ReginParams
reginParams
,
Map
<
String
,
Object
>
map
);
void
unregulatedEquip
(
String
uuid
,
Map
<
String
,
Object
>
map
);
void
manageEquipment
(
String
uuid
,
ReginParams
reginParams
,
Map
<
String
,
Object
>
map
);
void
manageEquipment
(
String
uuid
,
Map
<
String
,
Object
>
map
);
void
equipTransfer
(
HttpServletResponse
response
,
List
<
String
>
ids
);
void
equipTransfer
(
HttpServletResponse
response
,
List
<
String
>
ids
);
...
@@ -59,9 +59,9 @@ public interface IJgTableDataExportService {
...
@@ -59,9 +59,9 @@ public interface IJgTableDataExportService {
void
unregulatedPipe
(
String
uuid
,
Map
<
String
,
String
>
params
,
String
sort
,
ReginParams
reginParams
);
void
unregulatedPipe
(
String
uuid
,
Map
<
String
,
String
>
params
,
String
sort
,
ReginParams
reginParams
);
void
enterpriseInformationExport
(
String
uuid
,
String
ids
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
,
ReginParams
reginParams
);
void
enterpriseInformationExport
(
String
uuid
,
String
ids
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
);
void
userInfoExport
(
String
uuid
,
String
ids
,
Map
<
String
,
String
>
map
,
ReginParams
reginParams
);
void
userInfoExport
(
String
uuid
,
String
ids
,
Map
<
String
,
String
>
map
);
void
userInfoExportWithAdmin
(
String
uuid
,
String
ids
,
Map
<
String
,
String
>
map
,
ReginParams
reginParams
);
void
userInfoExportWithAdmin
(
String
uuid
,
String
ids
,
Map
<
String
,
String
>
map
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgTableDataExportServiceImpl.java
View file @
effdde1b
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/service/ITzsUserInfoService.java
View file @
effdde1b
...
@@ -25,13 +25,14 @@ public interface ITzsUserInfoService extends IService<TzsUserInfo> {
...
@@ -25,13 +25,14 @@ public interface ITzsUserInfoService extends IService<TzsUserInfo> {
void
addQualificationsMessage
(
String
userId
,
List
<
TzsUserQualifications
>
list
);
void
addQualificationsMessage
(
String
userId
,
List
<
TzsUserQualifications
>
list
);
void
updateQualificationsMessage
(
String
userId
,
List
<
TzsUserQualifications
>
list
);
void
updateQualificationsMessage
(
String
userId
,
List
<
TzsUserQualifications
>
list
);
void
deleteBatch
(
Object
[]
ids
);
void
deleteBatch
(
Object
[]
ids
);
Map
<
String
,
Object
>
getDetail
(
Long
id
);
Map
<
String
,
Object
>
getDetail
(
Long
id
,
ReginParams
reginParams
);
boolean
BindAccount
(
Map
<
String
,
Object
>
map
);
boolean
BindAccount
(
Map
<
String
,
Object
>
map
);
String
startOrStopAccount
(
Map
<
String
,
Object
>
map
);
String
startOrStopAccount
(
Map
<
String
,
Object
>
map
);
List
<
Map
<
String
,
Object
>>
getEquipmentType
(
String
creditCode
);
List
<
Map
<
String
,
Object
>>
getEquipmentType
(
String
creditCode
);
...
@@ -46,21 +47,21 @@ public interface ITzsUserInfoService extends IService<TzsUserInfo> {
...
@@ -46,21 +47,21 @@ public interface ITzsUserInfoService extends IService<TzsUserInfo> {
JSONObject
statisticsOfPersonnelTypesByPatentCode
(
String
parentId
);
JSONObject
statisticsOfPersonnelTypesByPatentCode
(
String
parentId
);
Map
<
String
,
Integer
>
getArrangementStatistic
(
String
companyCode
);
Map
<
String
,
Integer
>
getArrangementStatistic
(
String
companyCode
);
Map
<
String
,
Object
>
getCompanyType
();
Map
<
String
,
Object
>
getCompanyType
();
Map
<
String
,
Object
>
getCompanyTypeForRedis
(
ReginParams
selectedOrgInfo
);
Map
<
String
,
Object
>
getCompanyTypeForRedis
(
ReginParams
selectedOrgInfo
);
Page
<
TzsEquipListDto
>
getEquipList
(
String
type
,
String
userSeq
,
TzsEquipListDto
dto
,
Page
<
TzsEquipListDto
>
page
);
Page
<
TzsEquipListDto
>
getEquipList
(
String
type
,
String
userSeq
,
TzsEquipListDto
dto
,
Page
<
TzsEquipListDto
>
page
);
Boolean
equipBind
(
String
type
,
String
userSeq
,
String
creditCode
,
Map
<
String
,
Object
>
map
);
Boolean
equipBind
(
String
type
,
String
userSeq
,
String
creditCode
,
Map
<
String
,
Object
>
map
);
List
<
TzsUserInfo
>
getSafetyList
(
String
companyCode
);
List
<
TzsUserInfo
>
getSafetyList
(
String
companyCode
);
List
<
Map
<
String
,
Object
>>
getGroupList
();
List
<
Map
<
String
,
Object
>>
getGroupList
();
Map
<
String
,
Object
>
getPersonType
();
Map
<
String
,
Object
>
getPersonType
();
List
<
GroupAndPersonInfoDto
>
getGroupAndPersonInfo
(
Long
groupId
);
List
<
GroupAndPersonInfoDto
>
getGroupAndPersonInfo
(
Long
groupId
);
...
@@ -78,6 +79,7 @@ public interface ITzsUserInfoService extends IService<TzsUserInfo> {
...
@@ -78,6 +79,7 @@ public interface ITzsUserInfoService extends IService<TzsUserInfo> {
/**
/**
* 批量导入人员
* 批量导入人员
*
* @param file 导入的文件
* @param file 导入的文件
* @return 失败时返回失败信息,提供时返回success
* @return 失败时返回失败信息,提供时返回success
*/
*/
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/controller/TzsUserInfoController.java
View file @
effdde1b
...
@@ -113,7 +113,7 @@ public class TzsUserInfoController extends BaseController {
...
@@ -113,7 +113,7 @@ public class TzsUserInfoController extends BaseController {
@GetMapping
(
value
=
"/getDetail"
)
@GetMapping
(
value
=
"/getDetail"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"详情"
,
notes
=
"详情"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"详情"
,
notes
=
"详情"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
queryForPage
(
@RequestParam
(
value
=
"id"
)
Long
id
)
{
public
ResponseModel
<
Map
<
String
,
Object
>>
queryForPage
(
@RequestParam
(
value
=
"id"
)
Long
id
)
{
return
ResponseHelper
.
buildResponse
(
tzsUserInfoService
.
getDetail
(
id
));
return
ResponseHelper
.
buildResponse
(
tzsUserInfoService
.
getDetail
(
id
,
getSelectedOrgInfo
()
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
@@ -312,11 +312,11 @@ public class TzsUserInfoController extends BaseController {
...
@@ -312,11 +312,11 @@ public class TzsUserInfoController extends BaseController {
@RequestParam
(
value
=
"size"
)
long
size
,
@RequestParam
(
value
=
"size"
)
long
size
,
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
,
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
,
@RequestParam
(
required
=
false
,
defaultValue
=
"all"
)
String
type
,
@RequestParam
(
required
=
false
,
defaultValue
=
"all"
)
String
type
,
@RequestBody
Map
<
String
,
String
>
map
)
{
@RequestBody
Map
<
String
,
String
>
map
)
{
UserPermissionDto
filter
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
map
),
UserPermissionDto
.
class
);
UserPermissionDto
filter
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
map
),
UserPermissionDto
.
class
);
filter
.
setOrgCode
(
getSelectedOrgInfo
().
getCompany
().
getOrgCode
());
filter
.
setOrgCode
(
getSelectedOrgInfo
().
getCompany
().
getOrgCode
());
filter
.
setCityCode
(
getSelectedOrgInfo
().
getCompany
().
getCompanyCode
());
filter
.
setCityCode
(
getSelectedOrgInfo
().
getCompany
().
getCompanyCode
());
Page
<
UserPermissionDto
>
userPermissionDtos
=
tzsUserInfoServiceImpl
.
getUserByPermission
(
current
,
size
,
type
,
filter
,
sort
);
Page
<
UserPermissionDto
>
userPermissionDtos
=
tzsUserInfoServiceImpl
.
getUserByPermission
(
current
,
size
,
type
,
filter
,
sort
);
return
ResponseHelper
.
buildResponse
(
userPermissionDtos
);
return
ResponseHelper
.
buildResponse
(
userPermissionDtos
);
}
}
...
@@ -350,7 +350,7 @@ public class TzsUserInfoController extends BaseController {
...
@@ -350,7 +350,7 @@ public class TzsUserInfoController extends BaseController {
@GetMapping
(
value
=
"/export"
)
@GetMapping
(
value
=
"/export"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"人员管理列表数据导出"
,
notes
=
"人员管理列表数据导出"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"人员管理列表数据导出"
,
notes
=
"人员管理列表数据导出"
)
public
void
userInfoExport
(
HttpServletResponse
response
,
String
ids
)
{
public
void
userInfoExport
(
HttpServletResponse
response
,
String
ids
)
{
Assert
.
hasText
(
ids
,
"未选择导出数据"
);
Assert
.
hasText
(
ids
,
"未选择导出数据"
);
tzsUserInfoService
.
userInfoExport
(
response
,
Arrays
.
asList
(
ids
.
split
(
","
)));
tzsUserInfoService
.
userInfoExport
(
response
,
Arrays
.
asList
(
ids
.
split
(
","
)));
}
}
...
@@ -369,7 +369,7 @@ public class TzsUserInfoController extends BaseController {
...
@@ -369,7 +369,7 @@ public class TzsUserInfoController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/import"
)
@PostMapping
(
value
=
"/import"
)
@ApiOperation
(
value
=
"人员导入"
,
httpMethod
=
"POST"
,
notes
=
"导入已经存在公司的人员"
)
@ApiOperation
(
value
=
"人员导入"
,
httpMethod
=
"POST"
,
notes
=
"导入已经存在公司的人员"
)
public
ResponseModel
<?>
importUser
(
@RequestBody
MultipartFile
file
)
{
public
ResponseModel
<?>
importUser
(
@RequestBody
MultipartFile
file
)
{
return
tzsUserInfoService
.
importUserBatch
(
file
);
return
tzsUserInfoService
.
importUserBatch
(
file
);
}
}
...
@@ -398,8 +398,8 @@ public class TzsUserInfoController extends BaseController {
...
@@ -398,8 +398,8 @@ public class TzsUserInfoController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getJobItemBySubPost"
)
@GetMapping
(
value
=
"/getJobItemBySubPost"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据人员子类型查询作业项目"
,
notes
=
"根据人员子类型查询作业项目"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据人员子类型查询作业项目"
,
notes
=
"根据人员子类型查询作业项目"
)
public
ResponseModel
<
List
<
DictionarieValueModel
>
>
getJobItemBySubPost
(
@RequestParam
(
value
=
"dicKey"
)
String
dicKey
,
public
ResponseModel
<
List
<
DictionarieValueModel
>>
getJobItemBySubPost
(
@RequestParam
(
value
=
"dicKey"
)
String
dicKey
,
@RequestParam
(
value
=
""
)
String
subPost
)
{
@RequestParam
(
value
=
""
)
String
subPost
)
{
List
<
DictionarieValueModel
>
result
=
Systemctl
.
dictionarieClient
.
dictValues
(
dicKey
).
getResult
();
List
<
DictionarieValueModel
>
result
=
Systemctl
.
dictionarieClient
.
dictValues
(
dicKey
).
getResult
();
// 包含 持证人员(P)6764 或 持证人员(R2)6765 并且不包含持证人员 6713 的情况下 只显示【移动式压力容器充装】和【气瓶充装】
// 包含 持证人员(P)6764 或 持证人员(R2)6765 并且不包含持证人员 6713 的情况下 只显示【移动式压力容器充装】和【气瓶充装】
if
((
subPost
.
contains
(
"6764"
)
||
subPost
.
contains
(
"6765"
))
&&
!
subPost
.
contains
(
"6713"
))
{
if
((
subPost
.
contains
(
"6764"
)
||
subPost
.
contains
(
"6765"
))
&&
!
subPost
.
contains
(
"6713"
))
{
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
View file @
effdde1b
...
@@ -317,7 +317,11 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
...
@@ -317,7 +317,11 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
}
}
@Override
@Override
public
Map
<
String
,
Object
>
getDetail
(
Long
id
)
{
public
Map
<
String
,
Object
>
getDetail
(
Long
id
,
ReginParams
reginParams
)
{
// 为了处理以下场景
// 1:没有单位限制的时候添加了所有类型的人员,现在有了单位类型限制的情况下更新不了原先人员
// 2:多种单位类型的企业编辑另一种单位类型下的人员
List
<
String
>
unitTypeAllPostCode
=
this
.
postByUnitType
(
reginParams
.
getCompany
()).
stream
().
map
(
DataDictionary:
:
getCode
).
collect
(
Collectors
.
toList
());
Map
<
String
,
Object
>
maps
=
new
HashMap
<>();
Map
<
String
,
Object
>
maps
=
new
HashMap
<>();
TzsUserInfo
tzsUserInfo
=
tzsUserInfoMapper
.
selectById
(
id
);
TzsUserInfo
tzsUserInfo
=
tzsUserInfoMapper
.
selectById
(
id
);
TzsUserInfoVo
tzsUserInfoVo
=
new
TzsUserInfoVo
();
TzsUserInfoVo
tzsUserInfoVo
=
new
TzsUserInfoVo
();
...
@@ -326,8 +330,13 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
...
@@ -326,8 +330,13 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
tzsUserInfoVo
.
setPost
(
JSON
.
parseArray
(
tzsUserInfo
.
getPost
()));
tzsUserInfoVo
.
setPost
(
JSON
.
parseArray
(
tzsUserInfo
.
getPost
()));
}
}
Optional
.
ofNullable
(
tzsUserInfo
.
getNewPost
())
Optional
.
ofNullable
(
tzsUserInfo
.
getNewPost
())
.
filter
(
post
->
!
ObjectUtils
.
isEmpty
(
post
))
.
map
(
JSON:
:
parseArray
)
.
map
(
JSON:
:
parseArray
)
.
map
(
array
->
array
.
stream
()
.
map
(
String:
:
valueOf
)
.
filter
(
unitTypeAllPostCode:
:
contains
)
.
collect
(
Collectors
.
toList
()))
.
filter
(
list
->
!
list
.
isEmpty
())
.
map
(
item
->
JSONArray
.
parseArray
(
JSON
.
toJSONString
(
item
)))
.
ifPresent
(
tzsUserInfoVo:
:
setNewPost
);
.
ifPresent
(
tzsUserInfoVo:
:
setNewPost
);
Optional
.
ofNullable
(
tzsUserInfo
.
getSubPost
())
Optional
.
ofNullable
(
tzsUserInfo
.
getSubPost
())
.
filter
(
post
->
!
ObjectUtils
.
isEmpty
(
post
))
.
filter
(
post
->
!
ObjectUtils
.
isEmpty
(
post
))
...
@@ -1686,15 +1695,21 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
...
@@ -1686,15 +1695,21 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
@Override
@Override
public
List
<
DataDictionary
>
postByUnitType
(
CompanyBo
company
)
{
public
List
<
DataDictionary
>
postByUnitType
(
CompanyBo
company
)
{
ArrayList
<
String
>
postDictCodeList
=
new
ArrayList
<>();
ArrayList
<
String
>
postDictCodeList
=
new
ArrayList
<>();
JsonNode
companyTypeNode
=
postData
.
get
(
company
.
getCompanyType
());
TzBaseEnterpriseInfo
enterpriseInfo
=
baseEnterpriseInfoService
.
lambdaQuery
()
if
(
companyTypeNode
!=
null
&&
companyTypeNode
.
isObject
())
{
.
eq
(
TzBaseEnterpriseInfo:
:
getUseCode
,
company
.
getCompanyCode
())
Iterator
<
Map
.
Entry
<
String
,
JsonNode
>>
fields
=
companyTypeNode
.
fields
();
.
one
();
while
(
fields
.
hasNext
())
{
List
<
String
>
unitTypes
=
Arrays
.
asList
(
enterpriseInfo
.
getUnitType
().
split
(
"#"
));
Map
.
Entry
<
String
,
JsonNode
>
entry
=
fields
.
next
();
unitTypes
.
forEach
(
unitType
->
{
String
postCode
=
entry
.
getKey
();
JsonNode
companyTypeNode
=
postData
.
get
(
unitType
);
postDictCodeList
.
add
(
postCode
);
// 主岗位
if
(
companyTypeNode
!=
null
&&
companyTypeNode
.
isObject
())
{
Iterator
<
Map
.
Entry
<
String
,
JsonNode
>>
fields
=
companyTypeNode
.
fields
();
while
(
fields
.
hasNext
())
{
Map
.
Entry
<
String
,
JsonNode
>
entry
=
fields
.
next
();
String
postCode
=
entry
.
getKey
();
postDictCodeList
.
add
(
postCode
);
// 主岗位
}
}
}
}
}
);
return
this
.
getAllUserType
().
stream
()
return
this
.
getAllUserType
().
stream
()
.
filter
(
item
->
postDictCodeList
.
contains
(
item
.
getCode
()))
.
filter
(
item
->
postDictCodeList
.
contains
(
item
.
getCode
()))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
...
...
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