Commit 15f17238 by 刘宇峰

特约店、围栏

1 parent bb454820
......@@ -339,7 +339,7 @@ public class ElectricFenceService {
fenceCopy.setUpdatedBy(ShieldContextHolder.getUserId());
ElectricFenceCopy electricFenceCopy = electricFenceCopyMapper.selectByFenceId(fenceBO.getId());
if (electricFenceCopy != null) {
if (electricFenceCopy == null) {
int updateCnt = electricFenceCopyMapper.insertUseGeneratedKeys(fenceCopy);
} else {
int updateCnt = electricFenceCopyMapper.updateByPrimaryKey(fenceCopy);
......@@ -396,7 +396,7 @@ public class ElectricFenceService {
if (ObjectUtil.isNull(fence)) {
fence = new ElectricFence();
}
// TODO: 2021/5/27
BeanUtils.copyProperties(fenceCopy, fence);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!