|
@@ -40,14 +40,14 @@ public class AppDeviceServiceImp extends JpaServiceImp<AppDevice, String> implem
|
|
|
// 数据效验
|
|
|
if (null == diffAttrDTO) {
|
|
|
diffAttrDTO = new DeviceAttrDTO(device.getBatchNum(), device.getSn());
|
|
|
- diffAttrDTO.setDeliverAddr(device.getDeliverAddr());
|
|
|
+ diffAttrDTO.setReceivedPlace(device.getReceivedPlace());
|
|
|
}
|
|
|
DeviceAttrDTO temp = new DeviceAttrDTO(device.getBatchNum(), device.getSn());
|
|
|
- temp.setDeliverAddr(device.getDeliverAddr());
|
|
|
+ temp.setReceivedPlace(device.getReceivedPlace());
|
|
|
if (!temp.getBatchNum().equals(diffAttrDTO.getBatchNum())) new ApiRuntimeException("存在不同的批次号");
|
|
|
if (!temp.getPack().equals(diffAttrDTO.getPack())) new ApiRuntimeException("存在不同的PACK厂");
|
|
|
if (!temp.getType().equals(diffAttrDTO.getType())) new ApiRuntimeException("存在不同的电池类型");
|
|
|
- if (!temp.getDeliverAddr().equals(diffAttrDTO.getDeliverAddr())) new ApiRuntimeException("存在不同的发送地");
|
|
|
+ if (!temp.getReceivedPlace().equals(diffAttrDTO.getReceivedPlace())) new ApiRuntimeException("存在不同的收货地");
|
|
|
devices.add(device);
|
|
|
}
|
|
|
save(devices);
|