| | |
| | | |
| | | @Override |
| | | public List<Device> findList(Device device) { |
| | | device.setIsdeleted(Constants.ZERO); |
| | | QueryWrapper<Device> wrapper = new QueryWrapper<>(device); |
| | | return deviceMapper.selectList(wrapper); |
| | | } |
| | |
| | | } |
| | | String input = ""; |
| | | |
| | | model.setSendInfo(param.getSendInfo()); |
| | | return sendBroadcaseBobaoHttpBiz(model); |
| | | } |
| | | public static String sendBroadcaseBobaoHttpBiz(Device model){ |
| | | //重新下发计划 |
| | | JSONObject jsonObject = new JSONObject(); |
| | | |
| | | /* { |
| | | "command": "start", |
| | | "TTSContent": "冀G70122,毛重48.68吨,称重结束,请下磅", |
| | | "audioLevel": 6, |
| | | "audioOutID": [ |
| | | 1 |
| | | ], |
| | | "audioVolume": 100, |
| | | "voiceType": "female", |
| | | "TTSLanguageType": "chinese" |
| | | }*/ |
| | | jsonObject.put("command","start"); |
| | | jsonObject.put("TTSContent",param.getSendInfo()); |
| | | jsonObject.put("TTSContent",model.getSendInfo()); |
| | | jsonObject.put("audioLevel",6); |
| | | jsonObject.put("audioVolume",100); |
| | | jsonObject.put("TTSLanguageType","chinese"); |