|
|
package com.yoho.ufo.order.service.impl;
|
|
|
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yoho.order.dal.AreaMapper;
|
|
|
import com.yoho.order.dal.PhoneUidCameraMapper;
|
|
|
import com.yoho.order.model.Area;
|
|
|
import com.yoho.order.model.PhoneUidCamera;
|
|
|
import com.yoho.ufo.exception.PlatformException;
|
|
|
import com.yohobuy.ufo.model.order.bo.PhoneUidCameraBo;
|
...
|
...
|
@@ -23,6 +25,9 @@ public class PhoneUidCameraService { |
|
|
@Autowired
|
|
|
private PhoneUidCameraMapper phoneUidCameraMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private AreaMapper areaMapper;
|
|
|
|
|
|
public boolean insert(PhoneUidCameraBo record) {
|
|
|
if (StringUtils.isEmpty(record.getPhoneUid()) || null == record.getCameraCode()) {
|
|
|
return false;
|
...
|
...
|
@@ -70,4 +75,9 @@ public class PhoneUidCameraService { |
|
|
|
|
|
return phoneUidCameraMapper.updateByphoneUid(phoneUidCamera);
|
|
|
}
|
|
|
|
|
|
public int insertArea(Area area) {
|
|
|
return areaMapper.insertArea(area);
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|