Commit d47cc21a by 刘宇峰

特约店、围栏bug修复

1 parent 9e01defd
...@@ -486,17 +486,17 @@ public class ElectricFenceService { ...@@ -486,17 +486,17 @@ public class ElectricFenceService {
return detailsDTO; return detailsDTO;
} }
public ElectricFenceDetailsDTO getCopyInfoById(Long fenceId) { public ElectricFenceDetailsDTO getCopyInfoById(Long bizId) {
ElectricFenceDetailsDTO detailsDTO = null; ElectricFenceDetailsDTO detailsDTO = null;
ElectricFenceCopy fenceCopy = electricFenceCopyMapper.selectByFenceId(fenceId); ElectricFenceCopy fenceCopy = electricFenceCopyMapper.selectById(bizId);
if (fenceCopy != null) { if (fenceCopy != null) {
detailsDTO = new ElectricFenceDetailsDTO(); detailsDTO = new ElectricFenceDetailsDTO();
BeanUtils.copyProperties(fenceCopy, detailsDTO); BeanUtils.copyProperties(fenceCopy, detailsDTO);
List<ElectricFenceSnsDTO> snsList = Lists.newLinkedList(); List<ElectricFenceSnsDTO> snsList = Lists.newLinkedList();
List<ElectricFenceSnsCopy> fenceSnsList = electricFenceSnsCopyMapper.selectByFenceId(fenceId); List<ElectricFenceSnsCopy> fenceSnsList = electricFenceSnsCopyMapper.selectByFenceId(bizId);
fenceSnsList.forEach(fs -> { fenceSnsList.forEach(fs -> {
ElectricFenceSnsDTO snsDTO = new ElectricFenceSnsDTO(); ElectricFenceSnsDTO snsDTO = new ElectricFenceSnsDTO();
BeanUtils.copyProperties(fs, snsDTO); BeanUtils.copyProperties(fs, snsDTO);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!