云音箱

localizer
lzq 2025-10-10 18:09:18 +08:00
parent b96003d454
commit 4c0e199490
17 changed files with 616 additions and 6 deletions

View File

@ -0,0 +1,20 @@
package com.njzscloud.supervisory.config;
import com.njzscloud.common.http.HttpClientDecorator;
import com.njzscloud.supervisory.voicebox.service.VoiceboxApi;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableConfigurationProperties({CloudVoiceboxProperties.class})
@ConditionalOnBean(HttpClientDecorator.class)
public class CloudVoiceboxAutoConfiguration {
@Bean
public VoiceboxApi voiceboxApi(HttpClientDecorator httpClientDecorator) {
return httpClientDecorator.decorate(VoiceboxApi.class);
}
}

View File

@ -0,0 +1,33 @@
package com.njzscloud.supervisory.config;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* <a href="https://www.yuque.com/lingdutuandui/ugcpag/umbzsd#yG8IS"></a>
*/
@Getter
@Setter
@ToString
@Accessors(chain = true)
@ConfigurationProperties("cloud-voicebox")
public class CloudVoiceboxProperties {
/**
* https://speaker.17laimai.cn
*/
private String baseUrl = "https://speaker.17laimai.cn";
/**
*
*/
private String token;
/**
* 3
*/
private String version = "3";
}

View File

@ -3,6 +3,7 @@ package com.njzscloud.supervisory.order.mapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njzscloud.supervisory.biz.pojo.entity.BizCompanyEntity;
import com.njzscloud.supervisory.biz.pojo.entity.BizTruckEntity;
import com.njzscloud.supervisory.order.pojo.entity.OrderInfoEntity;
import com.njzscloud.supervisory.order.pojo.result.OrderPagingResult;
@ -33,4 +34,6 @@ public interface OrderInfoMapper extends BaseMapper<OrderInfoEntity> {
PaymentContextResult paymentContext(@Param("orderId") Long orderId);
BizTruckEntity getTruckInfo(@Param("truckId") Long truckId);
BizCompanyEntity getTransInfo(@Param("transCompanyId") Long transCompanyId);
}

View File

@ -22,10 +22,7 @@ import com.njzscloud.common.security.util.SecurityUtil;
import com.njzscloud.common.sn.support.SnUtil;
import com.njzscloud.supervisory.biz.constant.AuditStatus;
import com.njzscloud.supervisory.biz.constant.BizObj;
import com.njzscloud.supervisory.biz.pojo.entity.BizAuditConfigEntity;
import com.njzscloud.supervisory.biz.pojo.entity.BizTruckEntity;
import com.njzscloud.supervisory.biz.pojo.entity.BizWarnEntity;
import com.njzscloud.supervisory.biz.pojo.entity.TruckLocationTrackEntity;
import com.njzscloud.supervisory.biz.pojo.entity.*;
import com.njzscloud.supervisory.biz.service.BizAuditConfigService;
import com.njzscloud.supervisory.biz.service.BizWarnService;
import com.njzscloud.supervisory.biz.service.TruckLocationTrackService;
@ -45,6 +42,7 @@ import com.njzscloud.supervisory.station.pojo.entity.StationManageEntity;
import com.njzscloud.supervisory.station.service.StationManageService;
import com.njzscloud.supervisory.sys.auth.pojo.result.MyResult;
import com.njzscloud.supervisory.sys.stationletter.constant.WarnCategory;
import com.njzscloud.supervisory.voicebox.service.CloudVoiceboxService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@ -85,6 +83,7 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
private final AppProperties appProperties;
private final StationManageService stationManageService;
private final PlatformTransactionManager transactionManager;
private final CloudVoiceboxService cloudVoiceboxService;
private final ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(10, 100, 60, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100), new ThreadPoolExecutor.CallerRunsPolicy());
private static void stopTuqiangTrack(String gpsId) {
@ -118,8 +117,9 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
Long orderGoodsId = orderGoodsService.add(goodsId);
String orderSn = SnUtil.next();
OrderInfoEntity orderInfoEntity = BeanUtil.copyProperties(addOrderInfoParam, OrderInfoEntity.class)
.setSn(SnUtil.next())
.setSn(orderSn)
.setCargoPlaceId(cargoPlaceId)
.setUserId(userId)
.setOrderStatus(orderStatus)
@ -144,6 +144,12 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
this.updateById(new OrderInfoEntity().setId(addOrderInfoParam.getTargetOrderId())
.setTargetOrderId(orderId));
}
if (transCompanyId != null) {
BizCompanyEntity transCompanyEntity = baseMapper.getTransInfo(transCompanyId);
cloudVoiceboxService.play(transCompanyEntity.getUserId(), "您有新的待分配订单,请及时处理");
} else {
cloudVoiceboxService.play(1L, "您有新的待分配订单,请及时处理");
}
}
public PaymentContextResult paymentContext(Long orderId) {
@ -583,6 +589,11 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
oldOrder.setOrderStatus(OrderStatus.DaiPaiDan);
}
assignmentDriver(assignmentOrderParam, oldOrder);
if (assignmented) {
Long transCompanyId = assignmentOrderParam.getTransCompanyId();
BizCompanyEntity transCompanyEntity = baseMapper.getTransInfo(transCompanyId);
cloudVoiceboxService.play(transCompanyEntity.getUserId(), "您有新的待分配订单,请及时处理");
}
}
private void assignmentDriver(AssignmentOrderParam assignmentOrderParam, OrderInfoEntity orderInfo) {

View File

@ -0,0 +1,70 @@
package com.njzscloud.supervisory.voicebox.controller;
import com.njzscloud.common.core.utils.R;
import com.njzscloud.common.mp.support.PageParam;
import com.njzscloud.common.mp.support.PageResult;
import com.njzscloud.supervisory.voicebox.pojo.entity.CloudVoiceboxEntity;
import com.njzscloud.supervisory.voicebox.pojo.param.SearchCloudVoiceboxParam;
import com.njzscloud.supervisory.voicebox.pojo.result.SearchCloudVoiceboxResult;
import com.njzscloud.supervisory.voicebox.service.CloudVoiceboxService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
*
*/
@Slf4j
@RestController
@RequestMapping("/cloud_voicebox")
@RequiredArgsConstructor
public class CloudVoiceboxController {
private final CloudVoiceboxService cloudVoiceboxService;
/**
*
*/
@PostMapping("/add")
public R<?> add(@RequestBody CloudVoiceboxEntity cloudVoiceboxEntity) {
cloudVoiceboxService.add(cloudVoiceboxEntity);
return R.success();
}
/**
*
*/
@PostMapping("/modify")
public R<?> modify(@RequestBody CloudVoiceboxEntity cloudVoiceboxEntity) {
cloudVoiceboxService.modify(cloudVoiceboxEntity);
return R.success();
}
/**
*
*/
@PostMapping("/del")
public R<?> del(@RequestBody List<Long> ids) {
cloudVoiceboxService.del(ids);
return R.success();
}
/**
*
*/
@GetMapping("/detail")
public R<CloudVoiceboxEntity> detail(@RequestParam Long id) {
return R.success(cloudVoiceboxService.detail(id));
}
/**
*
*/
@GetMapping("/paging")
public R<PageResult<SearchCloudVoiceboxResult>> paging(PageParam pageParam, SearchCloudVoiceboxParam searchCloudVoiceboxParam) {
return R.success(cloudVoiceboxService.paging(pageParam, searchCloudVoiceboxParam));
}
}

View File

@ -0,0 +1,19 @@
package com.njzscloud.supervisory.voicebox.mapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njzscloud.supervisory.voicebox.pojo.entity.CloudVoiceboxEntity;
import com.njzscloud.supervisory.voicebox.pojo.result.SearchCloudVoiceboxResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
*
*/
@Mapper
public interface CloudVoiceboxMapper extends BaseMapper<CloudVoiceboxEntity> {
IPage<SearchCloudVoiceboxResult> paging(Page<Object> page, @Param("ew") QueryWrapper<CloudVoiceboxEntity> ew);
}

View File

@ -0,0 +1,37 @@
package com.njzscloud.supervisory.voicebox.pojo.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
/**
*
*/
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("cloud_voicebox")
public class CloudVoiceboxEntity {
/**
* Id
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
*
*/
private String sn;
/**
* Id
*/
private Long userId;
}

View File

@ -0,0 +1,27 @@
package com.njzscloud.supervisory.voicebox.pojo.param;
import cn.hutool.extra.spring.SpringUtil;
import com.njzscloud.supervisory.config.CloudVoiceboxProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class NotifyParam {
private String id;
private String token;
private String version;
private String message;
private String seq;
private String trace_no;
public NotifyParam() {
CloudVoiceboxProperties bean = SpringUtil.getBean(CloudVoiceboxProperties.class);
token = bean.getToken();
version = bean.getVersion();
}
}

View File

@ -0,0 +1,19 @@
package com.njzscloud.supervisory.voicebox.pojo.param;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class SearchCloudVoiceboxParam {
/**
*
*/
private String sn;
private String nickname;
}

View File

@ -0,0 +1,16 @@
package com.njzscloud.supervisory.voicebox.pojo.result;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class NotifyResult {
private Integer errcode;
private String errmsg;
private Object detail;
}

View File

@ -0,0 +1,28 @@
package com.njzscloud.supervisory.voicebox.pojo.result;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class SearchCloudVoiceboxResult {
private Long id;
/**
*
*/
private String sn;
/**
* Id
*/
private Long userId;
private String username;
private String nickname;
}

View File

@ -0,0 +1,94 @@
package com.njzscloud.supervisory.voicebox.service;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson2.JSON;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.njzscloud.common.mp.support.PageParam;
import com.njzscloud.common.mp.support.PageResult;
import com.njzscloud.supervisory.voicebox.mapper.CloudVoiceboxMapper;
import com.njzscloud.supervisory.voicebox.pojo.entity.CloudVoiceboxEntity;
import com.njzscloud.supervisory.voicebox.pojo.param.NotifyParam;
import com.njzscloud.supervisory.voicebox.pojo.param.SearchCloudVoiceboxParam;
import com.njzscloud.supervisory.voicebox.pojo.result.NotifyResult;
import com.njzscloud.supervisory.voicebox.pojo.result.SearchCloudVoiceboxResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
*
*/
@Slf4j
@Service
public class CloudVoiceboxService extends ServiceImpl<CloudVoiceboxMapper, CloudVoiceboxEntity> implements IService<CloudVoiceboxEntity> {
@Autowired(required = false)
private VoiceboxApi voiceboxApi;
/**
*
*/
public void add(CloudVoiceboxEntity cloudVoiceboxEntity) {
this.save(cloudVoiceboxEntity);
}
/**
*
*/
public void modify(CloudVoiceboxEntity cloudVoiceboxEntity) {
this.updateById(cloudVoiceboxEntity);
}
/**
*
*/
@Transactional(rollbackFor = Exception.class)
public void del(List<Long> ids) {
this.removeBatchByIds(ids);
}
/**
*
*/
public CloudVoiceboxEntity detail(Long id) {
return this.getById(id);
}
/**
*
*/
public PageResult<SearchCloudVoiceboxResult> paging(PageParam pageParam, SearchCloudVoiceboxParam searchCloudVoiceboxParam) {
String sn = searchCloudVoiceboxParam.getSn();
String nickname = searchCloudVoiceboxParam.getNickname();
return PageResult.of(baseMapper.paging(pageParam.toPage(), Wrappers.<CloudVoiceboxEntity>query()
.eq(StrUtil.isNotBlank(sn), "a.sn", sn)
.and(StrUtil.isNotBlank(nickname), it -> it.like("c.username", sn)
.or().like("b.nickname", nickname))
));
}
public void play(Long userId, String message, Object... param) {
if (voiceboxApi == null) {
return;
}
CloudVoiceboxEntity cloudVoiceboxEntity = this.getOne(Wrappers.<CloudVoiceboxEntity>lambdaQuery().eq(CloudVoiceboxEntity::getUserId, userId));
if (cloudVoiceboxEntity == null) {
log.warn("当前用户未配置云音箱:{}", userId);
return;
}
try {
NotifyResult notify = voiceboxApi.notify(new NotifyParam()
.setId(cloudVoiceboxEntity.getSn())
.setMessage(StrUtil.format(message, param))
);
log.info("播放结果:{}", JSON.toJSONString(notify));
} catch (Exception e) {
log.error("云音箱播放失败", e);
}
}
}

View File

@ -0,0 +1,13 @@
package com.njzscloud.supervisory.voicebox.service;
import com.njzscloud.common.http.annotation.PostEndpoint;
import com.njzscloud.common.http.annotation.RemoteServer;
import com.njzscloud.supervisory.voicebox.pojo.param.NotifyParam;
import com.njzscloud.supervisory.voicebox.pojo.result.NotifyResult;
import org.springframework.web.bind.annotation.RequestBody;
@RemoteServer(value = "${cloud-voicebox.base-url}")
public interface VoiceboxApi {
@PostEndpoint("/notify.php")
NotifyResult notify(@RequestBody NotifyParam notifyParam);
}

View File

@ -238,4 +238,9 @@
FROM biz_truck
WHERE id = #{truckId}
</select>
<select id="getTransInfo" resultType="com.njzscloud.supervisory.biz.pojo.entity.BizCompanyEntity">
SELECT *
FROM biz_company
WHERE id = #{transCompanyId}
</select>
</mapper>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.njzscloud.supervisory.voicebox.mapper.CloudVoiceboxMapper">
<select id="paging" resultType="com.njzscloud.supervisory.voicebox.pojo.result.SearchCloudVoiceboxResult">
SELECT a.id, a.sn, b.nickname, c.username
FROM cloud_voicebox a
INNER JOIN sys_user b ON b.id = a.user_id AND b.deleted = 0
INNER JOIN sys_user_account c ON c.user_id = a.user_id AND c.deleted = 0
<if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
${ew.customSqlSegment}
</if>
</select>
</mapper>

View File

@ -4,7 +4,7 @@
"avatar": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAEAYAAAD6+a2dAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAACv9JREFUeNrtnHtUVNUex7+/M+ADNBgkynfKDIiEmsrN11UhUYsB35ilBWoODBY+1l2+uHot8uYbCwZGE9EUn3nVQUEx8xFmoiGhYszgVdPsijJoXeR1zr5/4LC8oJnMwMHmfP5hLdj795ove++zZ+8DSEhISEhISNgiJHYAjYVWe9cvvfR5y5ZCaFkKlzdwIPIpn9vfurWgYCuRmp19965Go1CcPSt2nNbG5gTwXLJOZ5ju7s7FVI7ALpUKodSOOgQGUgnccHbQICQgml1q0qRmP7YIDGznzuIZrq7l8ydOBELGe+8qLxc7H0v5EwpgEfua2dk5xzy/pe3Ffv3QjUviClUqtMRcvK1S0WgY2VEvrzqbVwBYM3euKUujUcYtXSp2tpbyzArguT6fz7ww1sVF5lDWyX7osGEslVvN3Q4KotFMhtxhw/AdZrEPXVys7ngFDuKwwWCaotmrjPDwELsOlmIndgBPwiUj/sf8T7y82EnqiCEqFb6iv3KTVSq8WL4Ypf36IYM2Mz87O2rL/sbMncY9hYM38Aq9eecOCiGwXWlpCIOKzqWmMo7dYP8dPZrCKRmvhoRUtz+BYbRIJgOwV+zaWINGIIAdOxiTyeTOhTsuF/Tty66QP3tXpUI2FLgSHMxG4ys25uEhm4WxLwHkYvNTuRkBUP/LlzEMC6BLTSVvxAg79PqibrKcu4nHjgHq8N6dKipwqKq5c7iWM1wPC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L2ljb25fdjh0ZTByYWQxdmQvZ29uZ3NpLTAxLnN2Z1gR1IgAAAAASUVORK5CYII=",
"version": "4.9.4",
"createdTime": "2023-4-13 11:53:52",
"updatedTime": "2025-9-28 13:34:44",
"updatedTime": "2025-10-10 18:09:04",
"dbConns": [],
"profile": {
"default": {
@ -18818,6 +18818,206 @@
"correlations": [],
"indexes": [],
"type": "P"
},
{
"id": "8FED849B-4811-4BA5-AFB5-DBB52BA92542",
"env": {
"base": {
"nameSpace": "",
"codeRoot": ""
}
},
"defKey": "cloud_voicebox",
"defName": "云音箱",
"comment": "",
"properties": {},
"sysProps": {
"nameTemplate": "{defKey}[{defName}]"
},
"notes": {},
"headers": [
{
"refKey": "hideInGraph",
"hideInGraph": true
},
{
"refKey": "defKey",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "type",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "len",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "scale",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "defaultValue",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "defName",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "comment",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "notNull",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "primaryKey",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "autoIncrement",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "refDict",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "domain",
"freeze": false,
"hideInGraph": false
},
{
"refKey": "isStandard",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "uiHint",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "extProps",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr1",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr2",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr3",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr4",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr5",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr6",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr7",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr8",
"freeze": false,
"hideInGraph": true
},
{
"refKey": "attr9",
"freeze": false,
"hideInGraph": true
}
],
"fields": [
{
"defKey": "id",
"defName": "Id",
"comment": "",
"type": "BIGINT",
"len": "",
"scale": "",
"primaryKey": true,
"notNull": true,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"extProps": {},
"domain": "",
"id": "EEBD7FE9-AFCF-4DE9-9266-4BF65BA33036",
"baseType": "9B6B9E10-DB11-4409-878B-5868A19CD9B0"
},
{
"defKey": "sn",
"defName": "设备序列号",
"comment": "",
"type": "VARCHAR",
"len": 255,
"scale": "",
"primaryKey": false,
"notNull": true,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "AA07828C-4FCB-4EDA-9B51-53A3F264F231",
"extProps": {},
"id": "1A1B3ACF-9EC9-43C0-8977-8844AC4FFF74"
},
{
"defKey": "user_id",
"defName": "用户 Id",
"comment": "",
"type": "BIGINT",
"len": "",
"scale": "",
"primaryKey": false,
"notNull": true,
"autoIncrement": false,
"defaultValue": "",
"hideInGraph": false,
"refDict": "",
"baseType": "9B6B9E10-DB11-4409-878B-5868A19CD9B0",
"extProps": {},
"id": "B2A40BF6-3A62-4607-AA5C-E9F19BD2266A"
}
],
"correlations": [],
"indexes": [],
"type": "P"
}
],
"views": [],