Commit fed2b5be by 赵剑炜

警柜配置接口调整

parent 5344d7cf
......@@ -48,6 +48,11 @@ public class CabinetDto implements Serializable{
@ApiModelProperty(value = "位置信息")
private String location;
/**
* 警柜配置
*/
@ApiModelProperty(value = "警柜配置")
private String config;
/**
* 单警柜号
*/
@ApiModelProperty(value = "单警柜号")
......
......@@ -52,6 +52,12 @@ public class UpdateCabinetReq extends BaseRequest {
@ApiModelProperty(value = "位置信息")
private String location;
/**
* 主柜配置信息
*/
@ApiModelProperty(value = "主柜配置信息")
private String config;
/**
* 单警柜当前状态,0正常,1异常
......
......@@ -89,6 +89,11 @@ public class Cabinet implements Serializable {
private Integer outSum;
/**
* 主柜配置信息
*/
@ApiModelProperty(value = "主柜配置信息")
private String config;
/**
* 库存总价
*/
@ApiModelProperty(value = "库存总价")
......
......@@ -89,6 +89,7 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
cabinet.setCabinetNum(req.getSerialNum());
cabinet.setNum(req.getCabinetBoxList().size());
cabinet.setOnlineState(1);//新增后设置离线
cabinet.setConfig(req.getConfig());
cabinet.setUpdateTime(new Date());
cabinet.setCreateTime(new Date());
// 添加或更新单警柜
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论