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
30e3243f
Commit
30e3243f
authored
Jun 20, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_register' of…
Merge branch 'develop_tzs_register' of
http://39.100.92.250:5000/moa/amos-boot-biz
into develop_tzs_register
parents
f2bfe341
df0f86f1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
239 additions
and
19 deletions
+239
-19
UserInfoVo.java
...s/boot/module/jg/api/vo/tableDataExportVo/UserInfoVo.java
+112
-0
JgTableDataExportController.java
...module/jg/biz/controller/JgTableDataExportController.java
+51
-10
TcmServiceFeignClient.java
.../amos/boot/module/jg/biz/feign/TcmServiceFeignClient.java
+32
-0
IJgTableDataExportService.java
...boot/module/jg/biz/service/IJgTableDataExportService.java
+12
-6
JgTableDataExportServiceImpl.java
...ule/jg/biz/service/impl/JgTableDataExportServiceImpl.java
+0
-0
TzsUserInfoController.java
...boot/module/tcm/biz/controller/TzsUserInfoController.java
+4
-3
TzsUserInfoMapper.java
...in/amos/boot/module/ymt/api/mapper/TzsUserInfoMapper.java
+3
-0
TzsUserInfoMapper.xml
...e-ymt-api/src/main/resources/mapper/TzsUserInfoMapper.xml
+25
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/vo/tableDataExportVo/UserInfoVo.java
0 → 100644
View file @
30e3243f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
vo
.
tableDataExportVo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.yeejoin.amos.boot.module.jg.api.annotation.DictCode2DictName
;
import
lombok.Data
;
import
java.util.Date
;
/**
* 人员列表
*/
@Data
public
class
UserInfoVo
{
@ExcelProperty
(
"姓名"
)
private
String
name
;
@ExcelProperty
(
"证件类型"
)
@DictCode2DictName
(
type
=
"ZJLX"
,
typeHandler
=
"cbDataDictTypeHandler"
)
private
String
certificateType
;
@ExcelProperty
(
"证件编号"
)
private
String
certificateNum
;
@ExcelProperty
(
"性别"
)
private
String
gender
;
@ExcelProperty
(
"岗位名称"
)
private
String
postName
;
@ExcelProperty
(
value
=
"岗位子类型名称"
)
private
String
subPostName
;
@ExcelProperty
(
"联系电话"
)
private
String
phone
;
@ExcelProperty
(
"出生日期"
)
private
Date
birthday
;
@ExcelProperty
(
"学历"
)
@DictCode2DictName
(
type
=
"QYRYXL"
,
typeHandler
=
"cbDataDictTypeHandler"
)
private
String
education
;
@ExcelProperty
(
"专业"
)
private
String
speciality
;
@ExcelProperty
(
"邮箱"
)
private
String
email
;
@ExcelProperty
(
"住址"
)
private
String
address
;
@ExcelProperty
(
value
=
"执业注册"
)
private
String
practiceRegistration
;
@ExcelProperty
(
"平台账户名"
)
private
String
amosUserName
;
@ExcelProperty
(
"单位名称"
)
private
String
unitName
;
@ExcelProperty
(
"企业编码"
)
private
String
unitCode
;
@ExcelProperty
(
"平台账号id"
)
private
String
amosUserId
;
@ExcelProperty
(
"平台账号锁定状态"
)
private
String
lockStatus
;
@ExcelProperty
(
value
=
"检验检测-资质数据"
)
private
String
permissionData
;
@ExcelProperty
(
value
=
"职称"
)
private
String
jobTitle
;
@ExcelProperty
(
value
=
"人员是否转出"
)
protected
String
transferOut
;
@ExcelProperty
(
value
=
"人员转出时间"
)
protected
Date
transferOutTime
;
@ExcelProperty
(
"检验检测-级别"
)
private
String
permissionLevel
;
@ExcelProperty
(
"检验检测-资质项目"
)
private
String
permissionItem
;
@ExcelProperty
(
"证书编号"
)
private
String
certNo
;
@ExcelProperty
(
"有效期至"
)
private
Date
expiryDate
;
@ExcelProperty
(
"发证机关"
)
private
String
approvedOrgan
;
@ExcelProperty
(
"发证日期"
)
private
Date
issueDate
;
@ExcelProperty
(
"证书类型"
)
private
String
certType
;
@ExcelProperty
(
"作业项目"
)
private
String
jobItem
;
@ExcelProperty
(
"其他作业项目"
)
private
String
otherItem
;
@ExcelProperty
(
"备注"
)
private
String
remark
;
}
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 @
30e3243f
...
@@ -14,10 +14,7 @@ import io.swagger.annotations.ApiOperation;
...
@@ -14,10 +14,7 @@ import io.swagger.annotations.ApiOperation;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiParam
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.util.Assert
;
import
org.springframework.util.Assert
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
@@ -27,6 +24,7 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -27,6 +24,7 @@ import javax.servlet.http.HttpServletResponse;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.UUID
;
/**
/**
* JG表格数据导出
* JG表格数据导出
...
@@ -58,10 +56,12 @@ public class JgTableDataExportController extends BaseController {
...
@@ -58,10 +56,12 @@ public class JgTableDataExportController extends BaseController {
public
ResponseModel
<
String
>
certificateExport
(
JgUseRegistrationManageDto
dto
,
public
ResponseModel
<
String
>
certificateExport
(
JgUseRegistrationManageDto
dto
,
@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
();
iJgTableDataExportService
.
startDownLoadMsg
(
getSelectedOrgInfo
(),
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
iJgTableDataExportService
.
certificate
(
getSelectedOrgInfo
(),
dto
,
ids
==
null
?
new
ArrayList
<>()
:
Arrays
.
asList
(
ids
.
split
(
","
)),
sort
);
iJgTableDataExportService
.
certificate
(
uuid
,
getSelectedOrgInfo
(),
dto
,
ids
==
null
?
new
ArrayList
<>()
:
Arrays
.
asList
(
ids
.
split
(
","
)),
sort
);
}).
start
();
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
}
...
@@ -196,9 +196,11 @@ public class JgTableDataExportController extends BaseController {
...
@@ -196,9 +196,11 @@ public class JgTableDataExportController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"未纳管设备列表数据导出"
,
notes
=
"未纳管设备列表数据导出"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"未纳管设备列表数据导出"
,
notes
=
"未纳管设备列表数据导出"
)
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
();
iJgTableDataExportService
.
startDownLoadMsg
(
getSelectedOrgInfo
(),
uuid
);
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
iJgTableDataExportService
.
unregulatedEquip
(
getSelectedOrgInfo
(),
map
);
iJgTableDataExportService
.
unregulatedEquip
(
uuid
,
getSelectedOrgInfo
(),
map
);
}).
start
();
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
}
...
@@ -207,10 +209,12 @@ public class JgTableDataExportController extends BaseController {
...
@@ -207,10 +209,12 @@ public class JgTableDataExportController extends BaseController {
@GetMapping
(
value
=
"/manageEquipment"
)
@GetMapping
(
value
=
"/manageEquipment"
)
@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
();
iJgTableDataExportService
.
startDownLoadMsg
(
getSelectedOrgInfo
(),
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
iJgTableDataExportService
.
manageEquipment
(
getSelectedOrgInfo
(),
map
);
iJgTableDataExportService
.
manageEquipment
(
uuid
,
getSelectedOrgInfo
(),
map
);
}).
start
();
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
}
...
@@ -228,10 +232,12 @@ public class JgTableDataExportController extends BaseController {
...
@@ -228,10 +232,12 @@ public class JgTableDataExportController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"未纳管压力管道列表数据导出"
,
notes
=
"未纳管压力管道列表数据导出"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"未纳管压力管道列表数据导出"
,
notes
=
"未纳管压力管道列表数据导出"
)
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
();
iJgTableDataExportService
.
startDownLoadMsg
(
getSelectedOrgInfo
(),
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
iJgTableDataExportService
.
unregulatedPipe
(
params
,
sort
,
getSelectedOrgInfo
());
iJgTableDataExportService
.
unregulatedPipe
(
uuid
,
params
,
sort
,
getSelectedOrgInfo
());
}).
start
();
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
}
...
@@ -241,10 +247,12 @@ public class JgTableDataExportController extends BaseController {
...
@@ -241,10 +247,12 @@ public class JgTableDataExportController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"已纳管压力管道列表数据导出"
,
notes
=
"已纳管压力管道列表数据导出"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"已纳管压力管道列表数据导出"
,
notes
=
"已纳管压力管道列表数据导出"
)
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
();
iJgTableDataExportService
.
startDownLoadMsg
(
getSelectedOrgInfo
(),
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
iJgTableDataExportService
.
managePipe
(
params
,
sort
,
getSelectedOrgInfo
());
iJgTableDataExportService
.
managePipe
(
uuid
,
params
,
sort
,
getSelectedOrgInfo
());
}).
start
();
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
}
...
@@ -253,10 +261,43 @@ public class JgTableDataExportController extends BaseController {
...
@@ -253,10 +261,43 @@ public class JgTableDataExportController extends BaseController {
@GetMapping
(
value
=
"/enterpriseInformationExport"
)
@GetMapping
(
value
=
"/enterpriseInformationExport"
)
@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
();
iJgTableDataExportService
.
startDownLoadMsg
(
getSelectedOrgInfo
(),
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
new
Thread
(()
->
{
contextWrapper
.
apply
();
contextWrapper
.
apply
();
iJgTableDataExportService
.
enterpriseInformationExport
(
ids
,
tzBaseEnterpriseInfoDto
,
getSelectedOrgInfo
());
iJgTableDataExportService
.
enterpriseInformationExport
(
uuid
,
ids
,
tzBaseEnterpriseInfoDto
,
getSelectedOrgInfo
());
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/userInfoExport"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"基础设置-企业-人员信息列表数据导出"
,
notes
=
"基础设置-企业-人员信息列表数据导出"
)
public
ResponseModel
<
String
>
userInfoExport
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
String
ids
,
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
,
@RequestParam
Map
<
String
,
String
>
map
)
{
String
uuid
=
UUID
.
randomUUID
().
toString
();
iJgTableDataExportService
.
startDownLoadMsg
(
getSelectedOrgInfo
(),
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
contextWrapper
.
apply
();
iJgTableDataExportService
.
userInfoExport
(
uuid
,
ids
,
map
,
getSelectedOrgInfo
());
}).
start
();
return
ResponseHelper
.
buildResponse
(
"后台处理中,请注意下载!"
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/userInfoExportWithAdmin"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"基础设置-监管单位-人员信息列表数据导出"
,
notes
=
"基础设置-监管单位-人员信息列表数据导出"
)
public
ResponseModel
<
String
>
userInfoExportWithAdmin
(
@RequestParam
(
value
=
"ids"
,
required
=
false
)
String
ids
,
@RequestBody
Map
<
String
,
String
>
map
)
{
String
uuid
=
UUID
.
randomUUID
().
toString
();
iJgTableDataExportService
.
startDownLoadMsg
(
getSelectedOrgInfo
(),
uuid
);
RequestContextWrapper
contextWrapper
=
RequestContextWrapper
.
capture
();
new
Thread
(()
->
{
contextWrapper
.
apply
();
iJgTableDataExportService
.
userInfoExportWithAdmin
(
uuid
,
ids
,
map
,
getSelectedOrgInfo
());
}).
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/feign/TcmServiceFeignClient.java
0 → 100644
View file @
30e3243f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
feign
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.feign.FeignConfiguration
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.Map
;
@FeignClient
(
name
=
"TZS-COMMON"
,
path
=
"/tcm"
,
configuration
=
{
FeignConfiguration
.
class
})
public
interface
TcmServiceFeignClient
{
/**
* 人员信息列表分页查询
*/
@RequestMapping
(
value
=
"/userInfo/page"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Page
<
Map
<
String
,
String
>>>
page
(
@RequestParam
(
value
=
"current"
)
String
current
,
@RequestParam
(
value
=
"size"
)
String
size
,
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
,
@RequestParam
Map
<
String
,
String
>
dto
);
@RequestMapping
(
value
=
"/userInfo/permission-page"
,
method
=
RequestMethod
.
POST
)
ResponseModel
<
Page
<
Map
<
String
,
String
>>>
getUserByPermission
(
@RequestParam
(
value
=
"current"
)
long
current
,
@RequestParam
(
value
=
"size"
)
long
size
,
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
,
@RequestParam
(
required
=
false
,
defaultValue
=
"all"
)
String
type
,
@RequestBody
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/IJgTableDataExportService.java
View file @
30e3243f
...
@@ -15,9 +15,11 @@ import java.util.Map;
...
@@ -15,9 +15,11 @@ import java.util.Map;
*/
*/
public
interface
IJgTableDataExportService
{
public
interface
IJgTableDataExportService
{
void
startDownLoadMsg
(
ReginParams
reginParams
,
String
uuid
);
void
gen
(
String
jsonName
,
String
voName
,
String
tableName
);
void
gen
(
String
jsonName
,
String
voName
,
String
tableName
);
void
certificate
(
ReginParams
reginParams
,
JgUseRegistrationManageDto
dto
,
List
<
String
>
ids
,
String
sort
);
void
certificate
(
String
uuid
,
ReginParams
reginParams
,
JgUseRegistrationManageDto
dto
,
List
<
String
>
ids
,
String
sort
);
void
maintenance
(
HttpServletResponse
response
,
List
<
String
>
ids
);
void
maintenance
(
HttpServletResponse
response
,
List
<
String
>
ids
);
...
@@ -47,15 +49,19 @@ public interface IJgTableDataExportService {
...
@@ -47,15 +49,19 @@ public interface IJgTableDataExportService {
void
changeVehicleRegistrationUnit
(
HttpServletResponse
response
,
List
<
String
>
ids
);
void
changeVehicleRegistrationUnit
(
HttpServletResponse
response
,
List
<
String
>
ids
);
void
unregulatedEquip
(
ReginParams
reginParams
,
Map
<
String
,
Object
>
map
);
void
unregulatedEquip
(
String
uuid
,
ReginParams
reginParams
,
Map
<
String
,
Object
>
map
);
void
manageEquipment
(
ReginParams
reginParams
,
Map
<
String
,
Object
>
map
);
void
manageEquipment
(
String
uuid
,
ReginParams
reginParams
,
Map
<
String
,
Object
>
map
);
void
equipTransfer
(
HttpServletResponse
response
,
List
<
String
>
ids
);
void
equipTransfer
(
HttpServletResponse
response
,
List
<
String
>
ids
);
void
managePipe
(
Map
<
String
,
String
>
params
,
String
sort
,
ReginParams
reginParams
);
void
managePipe
(
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
u
nregulatedPipe
(
Map
<
String
,
String
>
params
,
String
sort
,
ReginParams
reginParams
);
void
u
serInfoExport
(
String
uuid
,
String
ids
,
Map
<
String
,
String
>
map
,
ReginParams
reginParams
);
void
enterpriseInformationExport
(
String
ids
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
,
ReginParams
reginParams
);
void
userInfoExportWithAdmin
(
String
uuid
,
String
ids
,
Map
<
String
,
String
>
map
,
ReginParams
reginParams
);
}
}
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 @
30e3243f
This diff is collapsed.
Click to expand it.
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 @
30e3243f
...
@@ -122,8 +122,8 @@ public class TzsUserInfoController extends BaseController {
...
@@ -122,8 +122,8 @@ public class TzsUserInfoController extends BaseController {
public
ResponseModel
<
IPage
<
TzsUserInfoDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
String
current
,
public
ResponseModel
<
IPage
<
TzsUserInfoDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
String
current
,
@RequestParam
(
value
=
"size"
)
String
size
,
@RequestParam
(
value
=
"size"
)
String
size
,
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
,
@RequestParam
(
value
=
"sort"
,
required
=
false
)
String
sort
,
TzsUserInfoDto
dto
)
{
@RequestParam
Map
<
String
,
String
>
map
)
{
TzsUserInfoDto
dto
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
map
),
TzsUserInfoDto
.
class
);
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
if
(
ObjectUtils
.
isEmpty
(
reginParams
))
{
if
(
ObjectUtils
.
isEmpty
(
reginParams
))
{
return
null
;
return
null
;
...
@@ -312,7 +312,8 @@ public class TzsUserInfoController extends BaseController {
...
@@ -312,7 +312,8 @@ 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
UserPermissionDto
filter
)
{
@RequestBody
Map
<
String
,
String
>
map
)
{
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
);
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/mapper/TzsUserInfoMapper.java
View file @
30e3243f
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.module.ymt.api.entity.TzsUserInfo;
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.module.ymt.api.entity.TzsUserInfo;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
@Mapper
@Mapper
public
interface
TzsUserInfoMapper
extends
BaseMapper
<
TzsUserInfo
>
{
public
interface
TzsUserInfoMapper
extends
BaseMapper
<
TzsUserInfo
>
{
...
@@ -18,4 +19,6 @@ public interface TzsUserInfoMapper extends BaseMapper<TzsUserInfo> {
...
@@ -18,4 +19,6 @@ public interface TzsUserInfoMapper extends BaseMapper<TzsUserInfo> {
List
<
TzsUserPermissionDto
>
queryPermissionByUserSeq
(
@Param
(
"userSeq"
)
Long
userSeq
,
@Param
(
"permissionPost"
)
String
permissionPost
);
List
<
TzsUserPermissionDto
>
queryPermissionByUserSeq
(
@Param
(
"userSeq"
)
Long
userSeq
,
@Param
(
"permissionPost"
)
String
permissionPost
);
List
<
TzsUserInfoDto
>
selectUserPermission
(
@Param
(
"operator"
)
String
operator
,
@Param
(
"posts"
)
List
<
String
>
posts
);
List
<
TzsUserInfoDto
>
selectUserPermission
(
@Param
(
"operator"
)
String
operator
,
@Param
(
"posts"
)
List
<
String
>
posts
);
List
<
Map
<
String
,
String
>>
getUserInfoWithExport
(
@Param
(
"ids"
)
List
<
String
>
userInfoSeqs
);
}
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/TzsUserInfoMapper.xml
View file @
30e3243f
...
@@ -100,4 +100,28 @@
...
@@ -100,4 +100,28 @@
</foreach>
</foreach>
)
)
</select>
</select>
<select
id=
"getUserInfoWithExport"
resultType=
"java.util.Map"
>
SELECT
ur."name",ur."certificate_type",ur."certificate_num",ur."post",ur."phone",ur."birthday",ur."education",ur."speciality",ur."email",ur."address",ur."identification",ur."profile",ur."rec_date",ur."rec_user_id",ur."rec_user_name",ur."amos_user_id",ur."amos_user_name",ur."unit_name",ur."is_delete",ur."lock_status",ur."unit_code",ur."post_name",ur."equip_type",ur."appoint_doc",ur."inner_person_code",ur."other_accessories",ur."permission_level",ur."permission_item",ur."permission_data",ur."new_post",ur."job_title",ur."qr_code_state",ur."sub_post",ur."sub_post_name",ur."transfer_out_time",ur."practice_registration",ur."labor_contract",
up."permission_level", up."permission_item", up."permission_post", up."cert_no", up."expiry_date", up."approved_organ", up."issue_date", up."cert_attachment", up."cert_type", up."job_item", up."other_item", up."remark", up."rec_date", up."rec_user_id", up."rec_user_name", up."item_code",
CASE
WHEN ur.gender = 1 THEN
'男' ELSE '女'
END AS gender,
CASE
WHEN ur."transfer_out" = 1 THEN
'已转出' ELSE '未转出'
END AS transfer_out
FROM "amos_tzs_biz"."tzs_user_info" ur
LEFT JOIN "amos_tzs_biz"."tzs_user_permission" up ON ur."sequence_nbr" = up."user_seq"
<where>
<if
test=
'ids != null'
>
and ur.sequence_nbr in
<foreach
collection=
"ids"
item=
"id"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</if>
</where>
</select>
</mapper>
</mapper>
\ No newline at end of file
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