|
@@ -90,6 +90,7 @@ public class CameraServiceImpl extends MPJBaseServiceImpl<ICameraMapper, Camera>
|
|
|
}
|
|
|
detail.setOutTime(new Date());
|
|
|
detail.setAgency(Constant.DEFAULT_AGENT);
|
|
|
+ detail.setAddress(param.getAddress());
|
|
|
cameraDetailService.save(detail);
|
|
|
}
|
|
|
|
|
@@ -124,7 +125,7 @@ public class CameraServiceImpl extends MPJBaseServiceImpl<ICameraMapper, Camera>
|
|
|
if(param.getChildNames() == null || param.getChildNames().size() <=0 || param.getCompanyId() == null){
|
|
|
throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
|
}
|
|
|
- Company company = companyService.getById(param.getCameraId());
|
|
|
+ Company company = companyService.getById(param.getCompanyId());
|
|
|
if(company == null){
|
|
|
throw new BusinessException(ResultCode.COMPANY_NOT_EXIST);
|
|
|
}
|