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
3c448dcd
Commit
3c448dcd
authored
Oct 11, 2022
by
litengwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_plan6' into develop_dl_plan6
parents
3b65365d
3d947633
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
7 deletions
+15
-7
BuildingController.java
...om/yeejoin/equipmanage/controller/BuildingController.java
+2
-1
SyncRiskOperator.java
...a/com/yeejoin/equipmanage/operation/SyncRiskOperator.java
+1
-1
IBuilldService.java
.../java/com/yeejoin/equipmanage/service/IBuilldService.java
+1
-1
IFormInstanceService.java
...com/yeejoin/equipmanage/service/IFormInstanceService.java
+1
-1
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+2
-2
FormInstanceServiceImpl.java
...oin/equipmanage/service/impl/FormInstanceServiceImpl.java
+8
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/BuildingController.java
View file @
3c448dcd
...
@@ -167,9 +167,10 @@ public class BuildingController extends AbstractBaseController {
...
@@ -167,9 +167,10 @@ public class BuildingController extends AbstractBaseController {
@ApiOperation
(
value
=
"通用保存"
)
@ApiOperation
(
value
=
"通用保存"
)
public
Object
save
(
public
Object
save
(
@RequestParam
(
value
=
"groupCode"
)
String
groupCode
,
@RequestParam
(
value
=
"groupCode"
)
String
groupCode
,
@RequestParam
(
value
=
"instanceId"
,
required
=
false
)
String
instanceId
,
@RequestBody
Map
<
String
,
Object
>
map
)
{
@RequestBody
Map
<
String
,
Object
>
map
)
{
String
orgCode
=
getOrgCode
();
String
orgCode
=
getOrgCode
();
return
buildService
.
saveForm
(
groupCode
,
orgCode
,
map
);
return
buildService
.
saveForm
(
groupCode
,
orgCode
,
map
,
instanceId
);
}
}
@GetMapping
(
value
=
"/pointTree"
)
@GetMapping
(
value
=
"/pointTree"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/operation/SyncRiskOperator.java
View file @
3c448dcd
...
@@ -53,7 +53,7 @@ public enum SyncRiskOperator {
...
@@ -53,7 +53,7 @@ public enum SyncRiskOperator {
newMap
.
put
(
"parentId"
,
item
.
get
(
"parentId"
));
newMap
.
put
(
"parentId"
,
item
.
get
(
"parentId"
));
RiskSource
riskSource1
=
new
RiskSource
();
RiskSource
riskSource1
=
new
RiskSource
();
Map
<
String
,
Object
>
createMap
=
formInstanceService
.
createByMap
(
String
.
valueOf
(
item
.
get
(
"groupCode"
)),
Map
<
String
,
Object
>
createMap
=
formInstanceService
.
createByMap
(
String
.
valueOf
(
item
.
get
(
"groupCode"
)),
String
.
valueOf
(
map
.
get
(
"companyCode"
)),
newMap
);
String
.
valueOf
(
map
.
get
(
"companyCode"
)),
newMap
,
null
);
riskSource1
.
setParentId
(
Long
.
parseLong
(
String
.
valueOf
(
map
.
get
(
"riskPointId"
))));
riskSource1
.
setParentId
(
Long
.
parseLong
(
String
.
valueOf
(
map
.
get
(
"riskPointId"
))));
riskSource1
.
setName
(
String
.
valueOf
(
item
.
get
(
"buildName"
)));
riskSource1
.
setName
(
String
.
valueOf
(
item
.
get
(
"buildName"
)));
riskSource1
.
setId
(
Long
.
parseLong
(
String
.
valueOf
(
createMap
.
get
(
"instanceId"
))));
riskSource1
.
setId
(
Long
.
parseLong
(
String
.
valueOf
(
createMap
.
get
(
"instanceId"
))));
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IBuilldService.java
View file @
3c448dcd
...
@@ -98,7 +98,7 @@ public interface IBuilldService extends IService<Building> {
...
@@ -98,7 +98,7 @@ public interface IBuilldService extends IService<Building> {
* @param map form
* @param map form
* @return Object
* @return Object
*/
*/
Object
saveForm
(
String
groupCode
,
String
companyCode
,
Map
<
String
,
Object
>
map
);
Object
saveForm
(
String
groupCode
,
String
companyCode
,
Map
<
String
,
Object
>
map
,
String
caseId
);
/**
/**
* 通用表单更新
* 通用表单更新
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IFormInstanceService.java
View file @
3c448dcd
...
@@ -35,7 +35,7 @@ public interface IFormInstanceService extends IService<FormInstance> {
...
@@ -35,7 +35,7 @@ public interface IFormInstanceService extends IService<FormInstance> {
* @param map 字段值对象
* @param map 字段值对象
* @return Map<String, Object>
* @return Map<String, Object>
*/
*/
Map
<
String
,
Object
>
createByMap
(
String
groupCode
,
String
companyCode
,
Map
<
String
,
Object
>
map
);
Map
<
String
,
Object
>
createByMap
(
String
groupCode
,
String
companyCode
,
Map
<
String
,
Object
>
map
,
String
caseId
);
/**
/**
* 更新
* 更新
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
3c448dcd
...
@@ -298,7 +298,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
...
@@ -298,7 +298,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
}
}
@Override
@Override
public
Object
saveForm
(
String
groupCode
,
String
companyCode
,
Map
<
String
,
Object
>
map
)
{
public
Object
saveForm
(
String
groupCode
,
String
companyCode
,
Map
<
String
,
Object
>
map
,
String
caseId
)
{
final
String
instanceId
=
"instanceId"
;
final
String
instanceId
=
"instanceId"
;
//1.保存表单数据
//1.保存表单数据
//前端的address中携带了经纬度,后台切割保存
//前端的address中携带了经纬度,后台切割保存
...
@@ -324,7 +324,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
...
@@ -324,7 +324,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
// }
// }
}
}
Map
<
String
,
Object
>
formKeyMap
=
iFormInstanceService
.
createByMap
(
groupCode
,
companyCode
,
map
);
Map
<
String
,
Object
>
formKeyMap
=
iFormInstanceService
.
createByMap
(
groupCode
,
companyCode
,
map
,
caseId
);
if
(
formKeyMap
.
get
(
instanceId
)
!=
null
)
{
if
(
formKeyMap
.
get
(
instanceId
)
!=
null
)
{
//2.保存图片
//2.保存图片
this
.
saveFiles
(
Long
.
parseLong
(
formKeyMap
.
get
(
"instanceId"
).
toString
()),
map
);
this
.
saveFiles
(
Long
.
parseLong
(
formKeyMap
.
get
(
"instanceId"
).
toString
()),
map
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FormInstanceServiceImpl.java
View file @
3c448dcd
...
@@ -83,12 +83,14 @@ public class FormInstanceServiceImpl extends ServiceImpl<FormInstanceMapper, For
...
@@ -83,12 +83,14 @@ public class FormInstanceServiceImpl extends ServiceImpl<FormInstanceMapper, For
private
final
String
ORGCODE
=
"orgCode"
;
private
final
String
ORGCODE
=
"orgCode"
;
final
static
String
[]
list
=
{
"92031900"
,
"92011000"
,
"92010700"
};
@Value
(
"${systemctl.sync.switch}"
)
@Value
(
"${systemctl.sync.switch}"
)
private
Boolean
syncSwitch
;
private
Boolean
syncSwitch
;
@Override
@Override
@Transactional
(
rollbackFor
=
{
BaseException
.
class
,
Exception
.
class
})
@Transactional
(
rollbackFor
=
{
BaseException
.
class
,
Exception
.
class
})
public
Map
<
String
,
Object
>
createByMap
(
String
groupCode
,
String
companyCode
,
Map
<
String
,
Object
>
map
)
{
public
Map
<
String
,
Object
>
createByMap
(
String
groupCode
,
String
companyCode
,
Map
<
String
,
Object
>
map
,
String
caseId
)
{
//1.查询分组表数据,数据准备用
//1.查询分组表数据,数据准备用
Map
<
String
,
Object
>
returnMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
returnMap
=
new
HashMap
<>();
FormGroup
formGroup
=
iFormGroupService
.
getByUniqueKey
(
groupCode
);
FormGroup
formGroup
=
iFormGroupService
.
getByUniqueKey
(
groupCode
);
...
@@ -98,6 +100,11 @@ public class FormInstanceServiceImpl extends ServiceImpl<FormInstanceMapper, For
...
@@ -98,6 +100,11 @@ public class FormInstanceServiceImpl extends ServiceImpl<FormInstanceMapper, For
return
returnMap
;
return
returnMap
;
}
}
Long
instanceId
=
sequence
.
nextId
();
Long
instanceId
=
sequence
.
nextId
();
if
(
com
.
yeejoin
.
equipmanage
.
common
.
utils
.
StringUtil
.
isNotEmpty
(
Arrays
.
stream
(
list
).
filter
(
x
->
x
==
groupCode
).
findFirst
()))
{
instanceId
=
Long
.
valueOf
(
caseId
);
map
.
put
(
"code"
,
sequence
.
nextId
());
map
.
put
(
"name"
,
""
);
}
String
groupType
=
formGroup
.
getGroupType
();
String
groupType
=
formGroup
.
getGroupType
();
List
<
FormInstance
>
entities
=
new
ArrayList
<>();
List
<
FormInstance
>
entities
=
new
ArrayList
<>();
//3.以数据库现在配置的动态表单字段为准,进行数据插入的准备
//3.以数据库现在配置的动态表单字段为准,进行数据插入的准备
...
...
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