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
4b5aa44f
Commit
4b5aa44f
authored
Jan 31, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_register' into develop_tzs_register_jyjc
parents
5663866c
ae827ad7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
84 additions
and
89 deletions
+84
-89
JgUseRegistrationController.java
...module/jg/biz/controller/JgUseRegistrationController.java
+57
-5
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+23
-4
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+1
-1
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+1
-1
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+2
-1
installation-notification-report.ftl
.../resources/templates/installation-notification-report.ftl
+0
-77
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/JgUseRegistrationController.java
View file @
4b5aa44f
...
...
@@ -5,13 +5,17 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistration
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgUseRegistrationServiceImpl
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.utils.FeignUtil
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
...
...
@@ -45,7 +49,7 @@ public class JgUseRegistrationController extends BaseController {
@PostMapping
(
value
=
"/flowExecute"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"执行流程"
,
notes
=
"执行流程"
)
public
ResponseModel
<
Object
>
flowExecute
(
@RequestBody
JSONObject
map
)
{
jgUseRegistrationServiceImpl
.
flowExecute
(
Long
.
valueOf
(
String
.
valueOf
(
map
.
get
(
"sequenceNbr"
))),
String
.
valueOf
(
map
.
get
(
"instanceId"
)),
String
.
valueOf
(
map
.
get
(
"operate"
)),
String
.
valueOf
(
map
.
get
(
"comment"
)));
jgUseRegistrationServiceImpl
.
flowExecute
(
Long
.
valueOf
(
String
.
valueOf
(
map
.
get
(
"sequenceNbr"
))),
String
.
valueOf
(
map
.
get
(
"instanceId"
)),
String
.
valueOf
(
map
.
get
(
"operate"
)),
String
.
valueOf
(
map
.
get
(
"comment"
)));
return
ResponseHelper
.
buildResponse
(
"ok"
);
}
...
...
@@ -86,9 +90,9 @@ public class JgUseRegistrationController extends BaseController {
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
current
,
size
);
ReginParams
info
=
getSelectedOrgInfo
();
dto
.
setCurrentUserId
(
info
.
getUserModel
().
getUserId
());
if
(
info
.
getCompany
().
getLevel
().
equals
(
BaseController
.
COMPANY_TYPE_COMPANY
)){
if
(
info
.
getCompany
().
getLevel
().
equals
(
BaseController
.
COMPANY_TYPE_COMPANY
))
{
dto
.
setDataType
(
BaseController
.
COMPANY_TYPE_COMPANY
);
}
else
{
}
else
{
dto
.
setDataType
(
BaseController
.
COMPANY_TYPE_SUPERVISION
);
}
return
ResponseHelper
.
buildResponse
(
jgUseRegistrationServiceImpl
.
getList
(
dto
,
page
,
dto
.
getRoleIds
()));
...
...
@@ -141,8 +145,56 @@ public class JgUseRegistrationController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/export"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"导出使用登记证"
,
notes
=
"导出使用登记证"
)
public
void
exportImageZip
(
HttpServletResponse
response
,
@RequestParam
(
"sequenceNbr"
)
String
sequenceNbr
){
public
void
exportImageZip
(
HttpServletResponse
response
,
@RequestParam
(
"sequenceNbr"
)
String
sequenceNbr
)
{
jgUseRegistrationServiceImpl
.
exportUseRegistrationCertificate
(
sequenceNbr
,
response
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getRegion"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
""
,
notes
=
""
)
public
ResponseModel
<
Map
<
String
,
Object
>>
exportImageZip
(
@RequestParam
(
"code"
)
String
code
)
{
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(!
ObjectUtils
.
isEmpty
(
code
))
{
String
[]
data
=
code
.
split
(
"_"
);
FeignClientResult
<
CompanyModel
>
result
=
Privilege
.
companyClient
.
queryByCompanyCode
(
data
[
0
]);
if
(!
ObjectUtils
.
isEmpty
(
result
))
{
CompanyModel
result1
=
result
.
getResult
();
if
(!
ObjectUtils
.
isEmpty
(
result1
.
getRegionSeq
()))
{
FeignClientResult
<
Collection
<
RegionModel
>>
region
=
Systemctl
.
regionClient
.
queryForParent
(
Long
.
valueOf
(
result1
.
getRegionSeq
()));
Collection
<
RegionModel
>
result2
=
region
.
getResult
();
List
<
RegionModel
>
list
=
new
ArrayList
<>(
Arrays
.
asList
(
result2
.
toArray
(
new
RegionModel
[
0
])));
RegionModel
region1
=
list
.
get
(
0
);
changeData
(
map
,
region1
);
}
}
}
return
ResponseHelper
.
buildResponse
(
map
);
}
private
HashMap
<
String
,
Object
>
changeData
(
HashMap
<
String
,
Object
>
map
,
RegionModel
regionModel
)
{
if
(!
ObjectUtils
.
isEmpty
(
regionModel
.
getChildren
()))
{
Collection
<
RegionModel
>
children
=
regionModel
.
getChildren
();
List
<
RegionModel
>
list
=
new
ArrayList
<>(
Arrays
.
asList
(
children
.
toArray
(
new
RegionModel
[
0
])));
RegionModel
region
=
list
.
get
(
0
);
if
(
map
.
containsKey
(
"region"
))
{
map
.
put
(
"region"
,
String
.
valueOf
(
map
.
get
(
"region"
))
+
region
.
getRegionCode
()
+
","
);
map
.
put
(
"regionAll"
,
String
.
valueOf
(
map
.
get
(
"regionAll"
))
+
region
.
getRegionCode
()
+
"_"
+
region
.
getRegionName
()
+
","
);
}
else
{
map
.
put
(
"regionAll"
,
region
.
getRegionCode
()
+
"_"
+
region
.
getRegionName
()
+
","
);
map
.
put
(
"region"
,
region
.
getRegionCode
()
+
","
);
}
if
(!
ObjectUtils
.
isEmpty
(
region
.
getChildren
()))
{
Collection
<
RegionModel
>
regionChildren
=
regionModel
.
getChildren
();
List
<
RegionModel
>
regionChildrenList
=
new
ArrayList
<>(
Arrays
.
asList
(
regionChildren
.
toArray
(
new
RegionModel
[
0
])));
changeData
(
map
,
regionChildrenList
.
get
(
0
));
}
}
return
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/CommonServiceImpl.java
View file @
4b5aa44f
...
...
@@ -110,6 +110,9 @@ public class CommonServiceImpl implements ICommonService {
//管辖机构redis缓存key
private
static
final
String
REGULATOR_UNIT_TREE
=
"REGULATOR_UNIT_TREE"
;
//管辖机构redis缓存key
private
static
final
String
REGULATOR_UNIT_TREE_ALL
=
"REGULATOR_UNIT_TREE_ALL"
;
//行政审批局redis缓存key
private
static
final
String
ADMINISTRATION_UNIT_TREE
=
"ADMINISTRATION_UNIT_TREE"
;
...
...
@@ -285,7 +288,7 @@ public class CommonServiceImpl implements ICommonService {
@Override
public
List
<
LinkedHashMap
>
getCreatTreeByInstallation
()
{
List
<
LinkedHashMap
>
result
=
(
List
<
LinkedHashMap
>)
redisUtils
.
get
(
REGULATOR_UNIT_TREE
);
List
<
LinkedHashMap
>
result
=
(
List
<
LinkedHashMap
>)
redisUtils
.
get
(
REGULATOR_UNIT_TREE
_ALL
);
//判断redis是否存在管辖机构树
return
!
ObjectUtils
.
isEmpty
(
result
)
?
result
:
getCreatTreeByInstallationTree
();
}
...
...
@@ -294,10 +297,10 @@ public class CommonServiceImpl implements ICommonService {
public
List
<
LinkedHashMap
>
getCreatTreeByInstallationTree
()
{
FeignClientResult
tree
=
privilegeFeginService
.
queryAgencyTreeForCache
(
RequestContext
.
getToken
(),
RequestContext
.
getAppKey
(),
RequestContext
.
getProduct
());
List
<
LinkedHashMap
>
result
=
(
List
<
LinkedHashMap
>)
tree
.
getResult
();
List
<
LinkedHashMap
>
treeData
=
delete
Tree
Data
(
result
,
REGULATOR_UNIT
);
List
<
LinkedHashMap
>
treeData
=
deleteData
(
result
,
REGULATOR_UNIT
);
List
<
LinkedHashMap
>
supervisionTree
=
treeData
.
stream
().
filter
(
e
->
code
.
equals
(
e
.
get
(
"orgCode"
))).
collect
(
Collectors
.
toList
());
List
<
LinkedHashMap
>
resultTree
=
updateNullChildren
(
supervisionTree
);
redisUtils
.
set
(
REGULATOR_UNIT_TREE
,
resultTree
);
redisUtils
.
set
(
REGULATOR_UNIT_TREE
_ALL
,
resultTree
);
return
resultTree
;
}
...
...
@@ -366,7 +369,8 @@ public class CommonServiceImpl implements ICommonService {
if
(!
e
.
get
(
"companyType"
).
toString
().
contains
(
companyType
))
{
it
.
remove
();
}
if
(
e
.
get
(
"companyName"
).
toString
().
contains
(
"监管所"
))
{
// 删除监管所
if
(
e
.
get
(
"level"
).
toString
().
equals
(
"organization"
))
{
it
.
remove
();
}
if
(!
ObjectUtils
.
isEmpty
(
e
.
get
(
"children"
)))
{
...
...
@@ -376,6 +380,21 @@ public class CommonServiceImpl implements ICommonService {
return
result
;
}
private
List
<
LinkedHashMap
>
deleteData
(
List
<
LinkedHashMap
>
result
,
String
companyType
)
{
Iterator
it
=
result
.
iterator
();
while
(
it
.
hasNext
())
{
LinkedHashMap
e
=
(
LinkedHashMap
)
it
.
next
();
// 删除非行政审批局
if
(!
e
.
get
(
"companyType"
).
toString
().
contains
(
companyType
))
{
it
.
remove
();
}
if
(!
ObjectUtils
.
isEmpty
(
e
.
get
(
"children"
)))
{
deleteData
((
List
<
LinkedHashMap
>)
e
.
get
(
"children"
),
companyType
);
}
}
return
result
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
getUnitListByType
(
String
type
)
{
...
...
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/JgChangeRegistrationReformServiceImpl.java
View file @
4b5aa44f
...
...
@@ -180,7 +180,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
jgRegistrationHistory
.
setSupervisoryCode
(
supervisoryCode
);
//数据状态
jgChangeRegistrationReform
.
setUseRegistrationCode
(
jgRegistrationHistory
.
getUseRegistrationCode
());
String
equipListName
=
Optional
.
ofNullable
(
map
.
get
(
"equListDesc"
)
.
toString
()).
orElse
(
" "
);
String
equipListName
=
Optional
.
ofNullable
(
map
.
get
(
"equListDesc"
)
).
orElse
(
"无"
).
toString
(
);
jgChangeRegistrationReform
.
setEquipListName
(
equipListName
);
jgChangeRegistrationReform
.
setCreateUserId
(
reginParams
.
getUserModel
().
getUserId
());
jgChangeRegistrationReform
.
setCreateUserName
(
reginParams
.
getUserModel
().
getRealName
());
...
...
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/JgChangeRegistrationTransferServiceImpl.java
View file @
4b5aa44f
...
...
@@ -337,7 +337,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
this
.
flowExecute
(
oldTransfer
.
getSequenceNbr
(),
oldTransfer
.
getInstanceId
(),
"0"
,
""
);
}
else
{
// 如果是新启动的流程开启自动访问
String
equipListName
=
Optional
.
ofNullable
(
tableData
.
get
(
"equListDesc"
)
.
toString
()).
orElse
(
" "
);
String
equipListName
=
Optional
.
ofNullable
(
tableData
.
get
(
"equListDesc"
)
).
orElse
(
"无"
).
toString
(
);
oldTransfer
.
setAuditStatus
(
WorkFlowStatusEnum
.
TRANSFER_RECEIVE
.
getPass
());
oldTransfer
.
setStatus
(
WorkFlowStatusEnum
.
TRANSFER_RECEIVE
.
getPass
());
oldTransfer
.
setEquipListName
(
equipListName
);
...
...
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/JgUseRegistrationServiceImpl.java
View file @
4b5aa44f
...
...
@@ -118,7 +118,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
map
.
remove
(
"status"
);
map
.
remove
(
"instanceId"
);
// 安全管理员
if
(
map
.
containsKey
(
"safetyManagerName"
)){
if
(
map
.
containsKey
(
"safetyManagerName"
))
{
map
.
put
(
"safetyManager"
,
map
.
get
(
"safetyManagerName"
));
}
IdxBizJgUseInfo
useInfo
=
new
IdxBizJgUseInfo
();
...
...
@@ -606,6 +606,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
detail
.
put
(
"designStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"designStandard"
))));
detail
.
put
(
"designDoc"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"designDoc"
))));
detail
.
put
(
"longitudeLatitude"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"longitudeLatitude"
))));
detail
.
put
(
"province"
,
"610000"
);
return
detail
;
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/templates/installation-notification-report.ftl
View file @
4b5aa44f
...
...
@@ -2934,83 +2934,6 @@
</w:tc>
</w:tr>
</w:tbl>
<w:p>
<w:pPr>
<w:spacing
w:line=
"360"
w:lineRule=
"auto"
/>
<w:rPr>
<w:rFonts
w:hint=
"eastAsia"
w:ascii=
"黑体"
w:hAnsi=
"黑体"
w:eastAsia=
"黑体"
w:cs=
"黑体"
/>
<w:sz
w:val=
"24"
/>
<w:szCs
w:val=
"24"
/>
<w:lang
w:val=
"en-US"
w:eastAsia=
"zh-CN"
/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts
w:hint=
"eastAsia"
w:ascii=
"黑体"
w:hAnsi=
"黑体"
w:eastAsia=
"黑体"
w:cs=
"黑体"
/>
<w:sz
w:val=
"24"
/>
<w:szCs
w:val=
"24"
/>
<w:lang
w:val=
"en-US"
w:eastAsia=
"zh-CN"
/>
</w:rPr>
<w:t>
注:1、告知单按每台设备填写。
</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:spacing
w:line=
"240"
w:lineRule=
"auto"
/>
<w:ind
w:firstLine=
"480"
w:firstLineChars=
"200"
/>
<w:rPr>
<w:rFonts
w:hint=
"eastAsia"
w:ascii=
"黑体"
w:hAnsi=
"黑体"
w:eastAsia=
"黑体"
w:cs=
"黑体"
/>
<w:sz
w:val=
"24"
/>
<w:szCs
w:val=
"24"
/>
<w:lang
w:val=
"en-US"
w:eastAsia=
"zh-CN"
/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts
w:hint=
"eastAsia"
w:ascii=
"黑体"
w:hAnsi=
"黑体"
w:eastAsia=
"黑体"
w:cs=
"黑体"
/>
<w:sz
w:val=
"24"
/>
<w:szCs
w:val=
"24"
/>
<w:lang
w:val=
"en-US"
w:eastAsia=
"zh-CN"
/>
</w:rPr>
<w:t>
2、施工单位应提供特种设备许可证书复印件(加盖单位公章)。
</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:keepNext
w:val=
"0"
/>
<w:keepLines
w:val=
"0"
/>
<w:pageBreakBefore
w:val=
"0"
/>
<w:widowControl
w:val=
"0"
/>
<w:numPr>
<w:ilvl
w:val=
"0"
/>
<w:numId
w:val=
"0"
/>
</w:numPr>
<w:kinsoku/>
<w:wordWrap/>
<w:overflowPunct/>
<w:topLinePunct
w:val=
"0"
/>
<w:autoSpaceDE/>
<w:autoSpaceDN/>
<w:bidi
w:val=
"0"
/>
<w:adjustRightInd/>
<w:snapToGrid/>
<w:spacing
w:line=
"300"
w:lineRule=
"auto"
/>
<w:textAlignment
w:val=
"auto"
/>
<w:rPr>
<w:sz
w:val=
"28"
/>
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts
w:hint=
"eastAsia"
w:ascii=
"等线"
w:hAnsi=
"等线"
w:eastAsia=
"等线"
w:cs=
"等线"
/>
<w:lang
w:val=
"en-US"
w:eastAsia=
"zh-CN"
/>
</w:rPr>
<w:t>
按照市委政府关于“四改两拆”三年攻坚行动实施方案要求,市域范围内的建筑物和建设项目,须符合城乡建设规划要求和《土地管理法》之要求并须取得合法手续,按要求,特种设备不允许装于不符合相关法规的建筑物之内。据此要求。
</w:t>
</w:r>
</w:p>
<w:sectPr>
<w:pgSz
w:w=
"11906"
w:h=
"16838"
/>
<w:pgMar
w:top=
"1440"
w:right=
"1800"
w:bottom=
"1440"
w:left=
"1800"
w:header=
"851"
w:footer=
"992"
...
...
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