feat(智能柜): 添加corpid字段支持企业微信集成

为智能柜功能添加企业微信集成支持,包括数据库字段、实体类属性和查询条件
This commit is contained in:
dzq 2025-10-14 09:32:29 +08:00
parent ddc3c914b7
commit e53ff77321
3 changed files with 8 additions and 0 deletions

View File

@ -83,6 +83,10 @@ public class SmartCabinetEntity extends BaseEntity<SmartCabinetEntity> {
@TableField("return_deadline") @TableField("return_deadline")
private Integer returnDeadline; private Integer returnDeadline;
@ApiModelProperty("企业微信id")
@TableField("corpid")
private String corpid;
@ApiModelProperty("已用格口数") @ApiModelProperty("已用格口数")
@TableField(exist = false) @TableField(exist = false)
private Integer usedCells; private Integer usedCells;

View File

@ -18,6 +18,7 @@ public class SearchSmartCabinetQuery<T> extends AbstractPageQuery<T> {
private Date endTime; private Date endTime;
private Long mqttServerId; private Long mqttServerId;
private Long shopId; private Long shopId;
private String corpid;
private Integer belongType; private Integer belongType;
private Integer mode; private Integer mode;
@ -32,6 +33,7 @@ public class SearchSmartCabinetQuery<T> extends AbstractPageQuery<T> {
.eq(cabinetType != null, "sc.cabinet_type", cabinetType) .eq(cabinetType != null, "sc.cabinet_type", cabinetType)
.eq(mqttServerId!= null, "sc.mqtt_server_id", mqttServerId) .eq(mqttServerId!= null, "sc.mqtt_server_id", mqttServerId)
.eq(shopId!= null, "sc.shop_id", shopId) .eq(shopId!= null, "sc.shop_id", shopId)
.eq(StrUtil.isNotEmpty(corpid), "sc.corpid", corpid)
.eq(belongType!= null, "sc.belong_type", belongType) .eq(belongType!= null, "sc.belong_type", belongType)
.eq(mode != null, "sc.mode", mode) .eq(mode != null, "sc.mode", mode)
.eq(balanceEnable != null, "sc.balance_enable", balanceEnable) .eq(balanceEnable != null, "sc.balance_enable", balanceEnable)

View File

@ -0,0 +1,2 @@
-- 为smart_cabinet表添加corpid字段
ALTER TABLE `smart_cabinet` ADD COLUMN `corpid` varchar(50) DEFAULT NULL COMMENT '企业微信id';