Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6a8c296f
authored
Oct 26, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
2 parents
025f1c3c
1795b64d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
23 deletions
project-order/src/main/java/com/dituhui/pea/order/entity/MapBlockInfoEntity.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BlockServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerBusinessServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/entity/MapBlockInfoEntity.java
View file @
6a8c296
...
@@ -14,11 +14,11 @@ public class MapBlockInfoEntity {
...
@@ -14,11 +14,11 @@ public class MapBlockInfoEntity {
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
private
Integer
id
;
@Column
(
name
=
"
block_id"
,
length
=
50
,
nullable
=
false
)
@Column
(
name
=
"
area_ids"
,
length
=
1024
,
nullable
=
false
)
private
String
blockId
;
private
String
areaIds
;
@Column
(
name
=
"
block_name"
,
length
=
2
0
,
nullable
=
false
)
@Column
(
name
=
"
area_name"
,
length
=
5
0
,
nullable
=
false
)
private
String
block
Name
;
private
String
area
Name
;
@Column
(
name
=
"branch_id"
,
length
=
50
,
nullable
=
false
)
@Column
(
name
=
"branch_id"
,
length
=
50
,
nullable
=
false
)
private
String
branchId
;
private
String
branchId
;
...
@@ -26,26 +26,32 @@ public class MapBlockInfoEntity {
...
@@ -26,26 +26,32 @@ public class MapBlockInfoEntity {
@Column
(
name
=
"group_id"
,
length
=
50
,
nullable
=
false
)
@Column
(
name
=
"group_id"
,
length
=
50
,
nullable
=
false
)
private
String
groupId
;
private
String
groupId
;
@Column
(
name
=
"team_id"
,
length
=
50
,
nullable
=
false
)
private
String
teamId
;
@Column
(
name
=
"city_code"
,
nullable
=
true
)
@Column
(
name
=
"city_code"
,
nullable
=
true
)
private
String
cityCode
;
private
String
cityCode
;
@Column
(
name
=
"area"
)
@Column
(
name
=
"area
Count
"
)
private
Long
area
;
private
Long
area
Count
;
@Column
(
name
=
"area_data"
,
nullable
=
true
,
columnDefinition
=
"json"
)
@Column
(
name
=
"area_data"
,
nullable
=
true
,
columnDefinition
=
"json"
)
private
String
areaData
;
private
String
areaData
;
@Column
(
nullable
=
true
)
@Column
(
nullable
=
true
)
private
Boolean
kind
;
private
Integer
type
;
@Column
(
name
=
"team_id"
,
length
=
50
,
nullable
=
false
)
private
String
teamId
;
@Column
(
name
=
"layer_id"
,
length
=
50
,
nullable
=
false
)
@Column
(
name
=
"layer_id"
,
length
=
50
,
nullable
=
false
)
private
String
layerId
;
private
String
layerId
;
@Column
(
length
=
50
,
nullable
=
false
)
@Column
(
name
=
"layer_name"
,
length
=
50
,
nullable
=
false
)
private
String
layer
;
private
String
layerName
;
@Column
(
name
=
"saas_layercode"
,
length
=
50
,
nullable
=
false
)
private
String
saasLayercode
;
@Column
(
name
=
"saas_layer_id"
,
length
=
50
,
nullable
=
false
)
private
String
saasLayerName
;
@Column
(
nullable
=
false
)
@Column
(
nullable
=
false
)
private
Boolean
status
;
private
Boolean
status
;
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/BlockServiceImpl.java
View file @
6a8c296
...
@@ -27,7 +27,7 @@ public class BlockServiceImpl implements IBlockService {
...
@@ -27,7 +27,7 @@ public class BlockServiceImpl implements IBlockService {
return
Result
.
failure
(
blockId
+
" blockId不存在"
);
return
Result
.
failure
(
blockId
+
" blockId不存在"
);
}
}
mapBlockInfoEntity
.
setAreaData
(
gson
.
toJson
(
region
));
mapBlockInfoEntity
.
setAreaData
(
gson
.
toJson
(
region
));
mapBlockInfoEntity
.
setArea
(
area
);
//
mapBlockInfoEntity.setArea(area);
mapBlockInfoEntity
.
setUpdateTime
(
LocalDateTime
.
now
());
mapBlockInfoEntity
.
setUpdateTime
(
LocalDateTime
.
now
());
mapBlockInfoDao
.
save
(
mapBlockInfoEntity
);
mapBlockInfoDao
.
save
(
mapBlockInfoEntity
);
mapBlockInfoDao
.
flush
();
mapBlockInfoDao
.
flush
();
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
View file @
6a8c296
...
@@ -120,14 +120,14 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
...
@@ -120,14 +120,14 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
String
groupId
=
team
.
getGroupId
();
String
groupId
=
team
.
getGroupId
();
String
groupName
=
groupMapping
.
get
(
groupId
);
String
groupName
=
groupMapping
.
get
(
groupId
);
block
.
setId
(
b
.
get
BlockId
());
block
.
setId
(
b
.
get
AreaIds
());
block
.
setGroupId
(
groupId
);
block
.
setGroupId
(
groupId
);
block
.
setGroupName
(
groupName
);
block
.
setGroupName
(
groupName
);
block
.
setLayerId
(
b
.
getLayerId
());
block
.
setLayerId
(
b
.
getLayerId
());
block
.
setLayerName
(
b
.
getLayer
());
block
.
setLayerName
(
b
.
getLayer
Name
());
block
.
setTeamId
(
b
.
getTeamId
());
block
.
setTeamId
(
b
.
getTeamId
());
block
.
setTeamName
(
team
.
getTeamName
());
block
.
setTeamName
(
team
.
getTeamName
());
block
.
setArea
(
b
.
getArea
().
toString
());
//
block.setArea(b.getArea().toString());
if
(
null
!=
b
.
getUpdateTime
())
{
if
(
null
!=
b
.
getUpdateTime
())
{
block
.
setUpdateTime
(
TimeUtils
.
IsoLocalDateTime2String
(
b
.
getUpdateTime
()));
block
.
setUpdateTime
(
TimeUtils
.
IsoLocalDateTime2String
(
b
.
getUpdateTime
()));
}
}
...
@@ -194,15 +194,15 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
...
@@ -194,15 +194,15 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
String
blockName
=
String
.
format
(
"%s_%s"
,
layerName
,
team
.
getTeamName
());
//区块名称
String
blockName
=
String
.
format
(
"%s_%s"
,
layerName
,
team
.
getTeamName
());
//区块名称
MapBlockInfoEntity
block
=
new
MapBlockInfoEntity
();
MapBlockInfoEntity
block
=
new
MapBlockInfoEntity
();
block
.
set
BlockId
(
blockId
);
block
.
set
AreaIds
(
blockId
);
block
.
set
Block
Name
(
blockName
);
block
.
set
Area
Name
(
blockName
);
block
.
setBranchId
(
team
.
getBranchId
());
block
.
setBranchId
(
team
.
getBranchId
());
block
.
setGroupId
(
team
.
getGroupId
());
block
.
setGroupId
(
team
.
getGroupId
());
block
.
setTeamId
(
teamId
);
block
.
setTeamId
(
teamId
);
block
.
setLayerId
(
layerId
);
block
.
setLayerId
(
layerId
);
block
.
setLayer
(
layerName
);
block
.
setLayer
Name
(
layerName
);
block
.
setStatus
(
true
);
block
.
setStatus
(
true
);
block
.
setArea
(
0L
);
//
block.setArea(0L);
block
.
setCreateTime
(
LocalDateTime
.
now
());
block
.
setCreateTime
(
LocalDateTime
.
now
());
block
.
setUpdateTime
(
block
.
getCreateTime
());
block
.
setUpdateTime
(
block
.
getCreateTime
());
entityManager
.
persist
(
block
);
entityManager
.
persist
(
block
);
...
@@ -271,7 +271,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
...
@@ -271,7 +271,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
String
saasLayerId
=
getSaaSLayerId
(
block
.
getBranchId
(),
block
.
getLayerId
());
String
saasLayerId
=
getSaaSLayerId
(
block
.
getBranchId
(),
block
.
getLayerId
());
HashMap
<
String
,
String
>
res
=
new
HashMap
<>();
HashMap
<
String
,
String
>
res
=
new
HashMap
<>();
res
.
put
(
"url"
,
url
+
"/mlAutoLogin?userAccount="
+
userAccount
+
"&password="
+
password
res
.
put
(
"url"
,
url
+
"/mlAutoLogin?userAccount="
+
userAccount
+
"&password="
+
password
+
"&jump=basedata&navHidden=true&layerId="
+
saasLayerId
+
"&areaId="
+
block
.
get
BlockId
());
+
"&jump=basedata&navHidden=true&layerId="
+
saasLayerId
+
"&areaId="
+
block
.
get
AreaIds
());
return
Result
.
success
(
res
);
return
Result
.
success
(
res
);
}
}
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerBusinessServiceImpl.java
View file @
6a8c296
...
@@ -121,8 +121,8 @@ public class EngineerBusinessServiceImpl implements EngineerBusinessService {
...
@@ -121,8 +121,8 @@ public class EngineerBusinessServiceImpl implements EngineerBusinessService {
return
blockInfoList
.
stream
().
map
(
item
->
{
return
blockInfoList
.
stream
().
map
(
item
->
{
EngineerBusinessDTO
.
Blocks
block
=
new
EngineerBusinessDTO
.
Blocks
();
EngineerBusinessDTO
.
Blocks
block
=
new
EngineerBusinessDTO
.
Blocks
();
block
.
setBlockId
(
item
.
get
BlockId
());
block
.
setBlockId
(
item
.
get
AreaIds
());
block
.
setBlockName
(
item
.
get
Block
Name
());
block
.
setBlockName
(
item
.
get
Area
Name
());
block
.
setBlockData
(
item
.
getAreaData
());
block
.
setBlockData
(
item
.
getAreaData
());
block
.
setTeamId
(
item
.
getTeamId
());
block
.
setTeamId
(
item
.
getTeamId
());
return
block
;
return
block
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment