|
@@ -2,6 +2,7 @@ package com.yoho.ufo.order.service.impl; |
|
@@ -2,6 +2,7 @@ package com.yoho.ufo.order.service.impl; |
2
|
|
2
|
|
3
|
import com.yoho.error.exception.ServiceException;
|
3
|
import com.yoho.error.exception.ServiceException;
|
4
|
import com.yoho.order.dal.AreaMapper;
|
4
|
import com.yoho.order.dal.AreaMapper;
|
|
|
5
|
+import com.yoho.order.dal.CameraRecordMapper;
|
5
|
import com.yoho.order.dal.PhoneUidCameraMapper;
|
6
|
import com.yoho.order.dal.PhoneUidCameraMapper;
|
6
|
import com.yoho.order.model.Area;
|
7
|
import com.yoho.order.model.Area;
|
7
|
import com.yoho.order.model.PhoneUidCamera;
|
8
|
import com.yoho.order.model.PhoneUidCamera;
|
|
@@ -28,6 +29,9 @@ public class PhoneUidCameraService { |
|
@@ -28,6 +29,9 @@ public class PhoneUidCameraService { |
28
|
@Autowired
|
29
|
@Autowired
|
29
|
private AreaMapper areaMapper;
|
30
|
private AreaMapper areaMapper;
|
30
|
|
31
|
|
|
|
32
|
+ @Autowired
|
|
|
33
|
+ private CameraRecordService cameraRecordService;
|
|
|
34
|
+
|
31
|
public boolean insert(PhoneUidCameraBo record) {
|
35
|
public boolean insert(PhoneUidCameraBo record) {
|
32
|
if (StringUtils.isEmpty(record.getPhoneUid()) || null == record.getCameraCode()) {
|
36
|
if (StringUtils.isEmpty(record.getPhoneUid()) || null == record.getCameraCode()) {
|
33
|
return false;
|
37
|
return false;
|
|
@@ -61,6 +65,7 @@ public class PhoneUidCameraService { |
|
@@ -61,6 +65,7 @@ public class PhoneUidCameraService { |
61
|
PhoneUidCameraBo bo = new PhoneUidCameraBo();
|
65
|
PhoneUidCameraBo bo = new PhoneUidCameraBo();
|
62
|
bo.setCameraCode(phoneUidCamera.getCameraCode());
|
66
|
bo.setCameraCode(phoneUidCamera.getCameraCode());
|
63
|
bo.setPhoneUid(phoneUidCamera.getPhoneUid());
|
67
|
bo.setPhoneUid(phoneUidCamera.getPhoneUid());
|
|
|
68
|
+ bo.setCameraName(cameraRecordService.selectNameByCode(phoneUidCamera.getCameraCode()));
|
64
|
return bo;
|
69
|
return bo;
|
65
|
}
|
70
|
}
|
66
|
|
71
|
|