Commit d2c87991 by 刘宇峰

特约店、围栏同步

1 parent d7fe6b70
......@@ -421,11 +421,13 @@ public class ElectricFenceService {
if (ObjectUtil.isNull(fence)) {
fence = new ElectricFence();
BeanUtils.copyProperties(fenceCopy, fence);
fence.setId(null);
electricFenceMapper.insertUseGeneratedKeys(fence);
electricFenceCopyMapper.updateFenceIdById(fenceCopy.getId(), fence.getId());
} else {
BeanUtils.copyProperties(fenceCopy, fence);
fence.setId(fenceCopy.getFenceId());
electricFenceMapper.updateByPrimaryKey(fence);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!