Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6bb79bd7
authored
Apr 13, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
围栏管理完善
1 parent
da276936
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
src/main/java/cn/com/glsx/admin/modules/service/ElectricFenceService.java
src/main/java/cn/com/glsx/admin/modules/service/ElectricFenceService.java
View file @
6bb79bd
...
@@ -26,6 +26,7 @@ import com.alibaba.fastjson.JSON;
...
@@ -26,6 +26,7 @@ import com.alibaba.fastjson.JSON;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.plat.common.utils.DateUtils
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
...
@@ -162,6 +163,7 @@ public class ElectricFenceService {
...
@@ -162,6 +163,7 @@ public class ElectricFenceService {
public
ElectricFence
updateFence
(
ElectricFenceBO
fenceBO
)
{
public
ElectricFence
updateFence
(
ElectricFenceBO
fenceBO
)
{
//1.更新围栏信息
//1.更新围栏信息
ElectricFence
localFence
=
electricFenceMapper
.
selectById
(
fenceBO
.
getId
());
ElectricFence
localFence
=
electricFenceMapper
.
selectById
(
fenceBO
.
getId
());
log
.
info
(
"被更新围栏原始信息:{}"
,
JSONUtil
.
toJsonStr
(
localFence
));
electricFenceSnsMapper
.
logicDeleteByFenceId
(
fenceBO
.
getId
());
electricFenceSnsMapper
.
logicDeleteByFenceId
(
fenceBO
.
getId
());
...
@@ -185,13 +187,13 @@ public class ElectricFenceService {
...
@@ -185,13 +187,13 @@ public class ElectricFenceService {
fence
.
setAreaText
(
fence
.
getAreaText
());
fence
.
setAreaText
(
fence
.
getAreaText
());
}
}
}
}
//业务围栏类型 12试驾围栏,13特约店围栏
(12,13
直接和大数据那边类型对应)
//业务围栏类型 12试驾围栏,13特约店围栏
,14警情围栏(12,13,14
直接和大数据那边类型对应)
fence
.
setBizFenceType
(
fenceBO
.
getBizFenceType
());
fence
.
setBizFenceType
(
fenceBO
.
getBizFenceType
());
fence
.
setTriggerType
(
fenceBO
.
getTriggerType
()
==
null
?
3
:
fenceBO
.
getTriggerType
());
fence
.
setTriggerType
(
fenceBO
.
getTriggerType
()
==
null
?
3
:
fenceBO
.
getTriggerType
());
fence
.
setLocationType
(
1
);
fence
.
setLocationType
(
1
);
//
fence.setRecord(localFence.getRecord() + "操作时间:" + DateUtils.formatNormal(new Date())
fence
.
setRecord
(
localFence
.
getRecord
()
+
"操作时间:"
+
DateUtils
.
formatNormal
(
new
Date
())
// + " 操作人:" + ShieldContextHolder.getAccount() + "(" + ShieldContextHolder.getUserId
() + ")"
+
" 操作人:"
+
ShieldContextHolder
.
getUsername
()
+
"("
+
ShieldContextHolder
.
getAccount
()
+
")"
//
+ "<br/>");
+
"<br/>"
);
if
(
fenceBO
.
getShopId
()
!=
null
&&
fenceBO
.
getShopId
()
!=
0
)
{
//试驾或门店围栏的特约店账号id
if
(
fenceBO
.
getShopId
()
!=
null
&&
fenceBO
.
getShopId
()
!=
0
)
{
//试驾或门店围栏的特约店账号id
fence
.
setCreatedBy
(
fenceBO
.
getShopId
());
fence
.
setCreatedBy
(
fenceBO
.
getShopId
());
}
}
...
...
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