feat(智能柜): 添加corpid字段支持企业微信集成
为智能柜功能添加企业微信集成支持,包括数据库字段、实体类属性和查询条件
This commit is contained in:
parent
ddc3c914b7
commit
e53ff77321
|
|
@ -83,6 +83,10 @@ public class SmartCabinetEntity extends BaseEntity<SmartCabinetEntity> {
|
|||
@TableField("return_deadline")
|
||||
private Integer returnDeadline;
|
||||
|
||||
@ApiModelProperty("企业微信id")
|
||||
@TableField("corpid")
|
||||
private String corpid;
|
||||
|
||||
@ApiModelProperty("已用格口数")
|
||||
@TableField(exist = false)
|
||||
private Integer usedCells;
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ public class SearchSmartCabinetQuery<T> extends AbstractPageQuery<T> {
|
|||
private Date endTime;
|
||||
private Long mqttServerId;
|
||||
private Long shopId;
|
||||
private String corpid;
|
||||
|
||||
private Integer belongType;
|
||||
private Integer mode;
|
||||
|
|
@ -32,6 +33,7 @@ public class SearchSmartCabinetQuery<T> extends AbstractPageQuery<T> {
|
|||
.eq(cabinetType != null, "sc.cabinet_type", cabinetType)
|
||||
.eq(mqttServerId!= null, "sc.mqtt_server_id", mqttServerId)
|
||||
.eq(shopId!= null, "sc.shop_id", shopId)
|
||||
.eq(StrUtil.isNotEmpty(corpid), "sc.corpid", corpid)
|
||||
.eq(belongType!= null, "sc.belong_type", belongType)
|
||||
.eq(mode != null, "sc.mode", mode)
|
||||
.eq(balanceEnable != null, "sc.balance_enable", balanceEnable)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
-- 为smart_cabinet表添加corpid字段
|
||||
ALTER TABLE `smart_cabinet` ADD COLUMN `corpid` varchar(50) DEFAULT NULL COMMENT '企业微信id';
|
||||
Loading…
Reference in New Issue