|
@@ -88,7 +88,7 @@ public class CameraService {
|
|
|
pageRes.getRecords().forEach(item -> {
|
|
|
CameraVO resVO = new CameraVO();
|
|
|
BeanUtils.copyProperties(item,resVO);
|
|
|
- resVO.setStatusName(ConnectStatusEnum.getValueToName(resVO.getCode()));
|
|
|
+ resVO.setStatusName(ConnectStatusEnum.getValueToName(resVO.getStatus()));
|
|
|
resVO.setTypeName(CameraTypeEnum.getValueToName(resVO.getType()));
|
|
|
Long communityId1 = resVO.getCommunityId();
|
|
|
if(communityId1 != null){
|
|
@@ -184,7 +184,7 @@ public class CameraService {
|
|
|
list.forEach(item->{
|
|
|
CameraVO vo = new CameraVO();
|
|
|
BeanUtil.copyProperties(item, vo);
|
|
|
- vo.setStatusName(ConnectStatusEnum.getValueToName(vo.getCode()));
|
|
|
+ vo.setStatusName(ConnectStatusEnum.getValueToName(vo.getStatus()));
|
|
|
vo.setTypeName(CameraTypeEnum.getValueToName(vo.getType()));
|
|
|
Long communityId1 = vo.getCommunityId();
|
|
|
if(communityId1 != null){
|
|
@@ -265,14 +265,13 @@ public class CameraService {
|
|
|
}
|
|
|
final IdenCamera obj = new IdenCamera();
|
|
|
BeanUtils.copyProperties(tmpObj,obj);
|
|
|
+ obj.setStatus(ConnectStatusEnum.getNameToValue(tmpObj.getName()));
|
|
|
String communityName = tmpObj.getCommunityName();
|
|
|
QueryWrapper<IdenCommunity> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.lambda().eq(IdenCommunity::getName,communityName);
|
|
|
IdenCommunity idenCommunity = this.idenCommunityService.getOne(queryWrapper);
|
|
|
if(idenCommunity != null){
|
|
|
obj.setCommunityId(idenCommunity.getId());
|
|
|
- } else {
|
|
|
- continue;
|
|
|
}
|
|
|
obj.setType(type);
|
|
|
listDb.add(obj);
|