Commit 6bb79bd7 by levphon

围栏管理完善

1 parent da276936
...@@ -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());
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!