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
288fa411
Commit
288fa411
authored
Dec 08, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重点部位 耐火性质 使用性质 修改 前端传值错误
parent
7de1f492
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
3 deletions
+49
-3
KeySiteController.java
.../boot/module/common/biz/controller/KeySiteController.java
+42
-1
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+7
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/KeySiteController.java
View file @
288fa411
...
...
@@ -7,7 +7,12 @@ import java.util.Map;
import
javax.servlet.http.HttpServletRequest
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.controller.DataDictionaryController
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.velocity.runtime.directive.Break
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
...
...
@@ -79,6 +84,9 @@ public class KeySiteController extends BaseController {
@Value
(
"${auth-key-key-site:key_site_info}"
)
private
String
authKey
;
@Autowired
DataDictionaryServiceImpl
iDataDictionaryService
;
/**
* 新增重点部位
*
...
...
@@ -105,6 +113,12 @@ public class KeySiteController extends BaseController {
model
.
setLatitude
(
Double
.
valueOf
(
address
.
getString
(
BizConstant
.
LATITUDE
)));
}
}
if
(
model
.
getFireEnduranceRateName
()!=
null
){
setData
(
model
,
"NHDJ"
);
}
if
(
model
.
getUseNature
()!=
null
){
setData
(
model
,
"JZWSYXZ"
);
}
List
<
String
>
ids
=
new
ArrayList
<
String
>();
ids
.
add
(
model
.
getBuildingId
().
toString
());
Map
<
String
,
String
>
map3
=
keySiteService
.
getNodeAllParentIds
(
ids
);
...
...
@@ -113,6 +127,22 @@ public class KeySiteController extends BaseController {
return
ResponseHelper
.
buildResponse
(
entity
);
}
private
void
setData
(
KeySiteDto
model
,
String
type
){
QueryWrapper
<
DataDictionary
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"type"
,
type
);
List
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
queryWrapper
);
for
(
DataDictionary
dataDictionary
:
list
)
{
if
(
type
.
equals
(
"NHDJ"
)
&&
dataDictionary
.
getName
().
equals
(
model
.
getFireEnduranceRateName
())){
model
.
setFireEnduranceRate
(
dataDictionary
.
getCode
());
}
if
(
type
.
equals
(
"JZWSYXZ"
)
&&
dataDictionary
.
getName
().
equals
(
model
.
getUseNatureName
())){
model
.
setUseNature
(
dataDictionary
.
getCode
());
}
break
;
}
}
public
static
JSONObject
getLongLatFromAddress
(
String
address
)
{
JSONObject
result
=
new
JSONObject
();
result
.
put
(
BizConstant
.
ADDRESS
,
""
);
...
...
@@ -179,6 +209,12 @@ public class KeySiteController extends BaseController {
model
.
setLatitude
(
Double
.
valueOf
(
address
.
getString
(
BizConstant
.
LATITUDE
)));
}
}
if
(
model
.
getFireEnduranceRateName
()!=
null
){
setData
(
model
,
"NHDJ"
);
}
if
(
model
.
getUseNature
()!=
null
){
setData
(
model
,
"JZWSYXZ"
);
}
return
ResponseHelper
.
buildResponse
(
keySiteService
.
update
(
model
,
getUserInfo
()));
}
...
...
@@ -226,7 +262,12 @@ public class KeySiteController extends BaseController {
}
}
dto
.
setAttachmentsList
(
list
);
if
(
dto
.
getFireEnduranceRateName
()
!=
null
){
dto
.
setFireEnduranceRate
(
dto
.
getFireEnduranceRateName
());
}
if
(
dto
.
getUseNatureName
()
!=
null
){
dto
.
setUseNature
(
dto
.
getUseNatureName
());
}
if
(
null
!=
dto
.
getLongitude
()
&&
null
!=
dto
.
getLatitude
())
{
dto
.
setAddressDesc
(
dto
.
getAddressDesc
().
concat
(
"@address@"
).
concat
(
"{\"longitude\":"
).
concat
(
dto
.
getLongitude
().
toString
().
concat
(
",\"latitude\":"
).
concat
(
dto
.
getLatitude
().
toString
().
concat
(
"}"
))));
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgUsrController.java
View file @
288fa411
...
...
@@ -1127,14 +1127,19 @@ public class OrgUsrController extends BaseController {
@RequestParam
(
"nodeKey"
)
String
nodeKey
)
throws
Exception
{
JSONObject
jsonObject
=
workflowFeignService
.
candidateGroupsUser
(
processDefinitionKey
,
processDefinitionId
,
nodeKey
);
String
result
=
JSONObject
.
toJSONString
(
jsonObject
.
get
(
"result"
));
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
List
<
Map
>
objects
=
JSONObject
.
parseArray
(
result
,
Map
.
class
);
//9891 按照测试要求转成人员管理信息且按换流站过滤
List
<
Map
>
map
=
new
ArrayList
<>();
objects
.
stream
().
forEach
(
e
->{
OrgUsr
orgUsr
=
orgUsrMapper
.
queryByUserId
(
Long
.
valueOf
(
e
.
get
(
"userId"
).
toString
()));
if
(!
ObjectUtils
.
isEmpty
(
orgUsr
)){
if
(!
ObjectUtils
.
isEmpty
(
orgUsr
)
&&
orgUsr
.
getBizOrgCode
().
startsWith
(
bizOrgCode
)
){
e
.
put
(
"realName"
,
orgUsr
.
getBizOrgName
());
map
.
add
(
e
);
}
});
return
ResponseHelper
.
buildResponse
(
objects
)
;
return
ResponseHelper
.
buildResponse
(
map
)
;
}
...
...
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