|
@@ -43,9 +43,9 @@ public class PlatformAapiServiceImpl implements PlatformAapiService {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public void sendCommond(String meterNo, Integer type, String customerNo) {
|
|
|
|
-
|
|
|
|
|
|
+ public int sendCommond(String meterNo, Integer type, String customerNo) {
|
|
|
|
|
|
|
|
+ int result=-1;
|
|
Device device = getDevice(meterNo, customerNo);
|
|
Device device = getDevice(meterNo, customerNo);
|
|
if(device!=null){
|
|
if(device!=null){
|
|
deviceService.setValveV2(device.getId(),type+"");
|
|
deviceService.setValveV2(device.getId(),type+"");
|
|
@@ -57,11 +57,12 @@ public class PlatformAapiServiceImpl implements PlatformAapiService {
|
|
operatingValveRecord.setWaterFileNo(device.getMetercode());
|
|
operatingValveRecord.setWaterFileNo(device.getMetercode());
|
|
operatingValveRecord.setWaterNo(device.getWaterMeterNo());
|
|
operatingValveRecord.setWaterNo(device.getWaterMeterNo());
|
|
operatingValveRecord.setOperation(type);
|
|
operatingValveRecord.setOperation(type);
|
|
|
|
+ result=0;
|
|
operatingValveRecordMapper.insert(operatingValveRecord);
|
|
operatingValveRecordMapper.insert(operatingValveRecord);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ return result;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|