|
@@ -48,7 +48,15 @@ public class AppCameraService {
|
|
|
if(user == null){
|
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3015, LoginConstant.FAILURE_MSG_3015);
|
|
|
}
|
|
|
- return cameraDetailService.getListByUserAndType(user.getId(),cameraType);
|
|
|
+ List<CameraAppVo> cameraAppVoList = cameraDetailService.getListByUserAndType(user.getId(), cameraType);
|
|
|
+ for (CameraAppVo cameraApp : cameraAppVoList) {
|
|
|
+ UserIncrement userIncrementEntity = userIncrementService.getByCameraId(cameraApp.getId());
|
|
|
+ if(userIncrementEntity != null){
|
|
|
+ cameraApp.setUserIncrementId(userIncrementEntity.getId());
|
|
|
+ cameraApp.setIsExpire(userIncrementEntity.getIsExpired());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return cameraAppVoList;
|
|
|
}
|
|
|
|
|
|
public CameraAppVo bindCamera(String userName, String snCode) {
|