localizer
parent
fee617cfe3
commit
e3769b129b
|
|
@ -196,7 +196,7 @@ public class DeviceInfoService extends ServiceImpl<DeviceInfoMapper, DeviceInfoE
|
||||||
OrderPagingResult orderPagingResult = orderInfoService.pendingOrder(licensePlate);
|
OrderPagingResult orderPagingResult = orderInfoService.pendingOrder(licensePlate);
|
||||||
if (orderPagingResult == null) {
|
if (orderPagingResult == null) {
|
||||||
// 播语音
|
// 播语音
|
||||||
playVoice(sn, "{}无订单", licensePlate);
|
playVoice(sn, cid, "{}无订单", licensePlate);
|
||||||
return resBuilder
|
return resBuilder
|
||||||
.put("data", dataBuilder.put("type", 0).build())
|
.put("data", dataBuilder.put("type", 0).build())
|
||||||
.build();
|
.build();
|
||||||
|
|
@ -221,7 +221,7 @@ public class DeviceInfoService extends ServiceImpl<DeviceInfoMapper, DeviceInfoE
|
||||||
CheckStatus checkStatus = orderPagingResult.getCheckStatus();
|
CheckStatus checkStatus = orderPagingResult.getCheckStatus();
|
||||||
if (deviceCode == DeviceCode.ChuQianZhi && checkStatus == CheckStatus.WeiKanLiao) {
|
if (deviceCode == DeviceCode.ChuQianZhi && checkStatus == CheckStatus.WeiKanLiao) {
|
||||||
// 播语音
|
// 播语音
|
||||||
playVoice(sn, "{}未看料", licensePlate);
|
playVoice(sn, cid, "{}未看料", licensePlate);
|
||||||
|
|
||||||
return resBuilder
|
return resBuilder
|
||||||
.put("data", dataBuilder.put("type", 0).build())
|
.put("data", dataBuilder.put("type", 0).build())
|
||||||
|
|
@ -283,14 +283,14 @@ public class DeviceInfoService extends ServiceImpl<DeviceInfoMapper, DeviceInfoE
|
||||||
String bodyPhoto = data.getString("photoBody");
|
String bodyPhoto = data.getString("photoBody");
|
||||||
if (weight == null || weight == 0) {
|
if (weight == null || weight == 0) {
|
||||||
// 播语音
|
// 播语音
|
||||||
playVoice(sn, "{}磅重异常,请重新称重", licensePlate);
|
playVoice(sn, cid, "{}磅重异常,请重新称重", licensePlate);
|
||||||
return resBuilder
|
return resBuilder
|
||||||
.put("data", dataBuilder.build())
|
.put("data", dataBuilder.build())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
if (deviceCode == DeviceCode.Jin) {
|
if (deviceCode == DeviceCode.Jin) {
|
||||||
// 播语音
|
// 播语音
|
||||||
playVoice(sn, "{}称重完成,磅重{}吨", licensePlate, weight / 1000);
|
playVoice(sn, cid, "{}称重完成,磅重{}吨", licensePlate, weight / 1000);
|
||||||
// 开门
|
// 开门
|
||||||
open(sn, cid);
|
open(sn, cid);
|
||||||
orderInfoService.truckComing(new TruckComingOrderParam()
|
orderInfoService.truckComing(new TruckComingOrderParam()
|
||||||
|
|
@ -310,7 +310,7 @@ public class DeviceInfoService extends ServiceImpl<DeviceInfoMapper, DeviceInfoE
|
||||||
.setBodyPhoto(bodyPhoto),
|
.setBodyPhoto(bodyPhoto),
|
||||||
0);
|
0);
|
||||||
// 播语音
|
// 播语音
|
||||||
playVoice(sn, "{}称重完成,磅重{}吨", licensePlate, weight / 1000);
|
playVoice(sn, cid, "{}称重完成,磅重{}吨", licensePlate, weight / 1000);
|
||||||
// 开门
|
// 开门
|
||||||
open(sn, cid);
|
open(sn, cid);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue