init
This commit is contained in:
parent
452d5220c8
commit
3b4972c95a
|
|
@ -0,0 +1,119 @@
|
|||
package com.bonus.canteen.device.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.common.log.enums.OperaType;
|
||||
import com.bonus.canteen.common.annotation.PreventRepeatSubmit;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.bonus.common.log.annotation.SysLog;
|
||||
import com.bonus.common.security.annotation.RequiresPermissions;
|
||||
import com.bonus.canteen.device.domain.DeviceBind;
|
||||
import com.bonus.canteen.device.service.IDeviceBindService;
|
||||
import com.bonus.common.core.web.controller.BaseController;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 设备绑定多档口子Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-04-03
|
||||
*/
|
||||
@Api(tags = "设备绑定多档口子接口")
|
||||
@RestController
|
||||
@RequestMapping("/device_bind")
|
||||
public class DeviceBindController extends BaseController {
|
||||
@Autowired
|
||||
private IDeviceBindService deviceBindService;
|
||||
|
||||
/**
|
||||
* 查询设备绑定多档口子列表
|
||||
*/
|
||||
@ApiOperation(value = "查询设备绑定多档口子列表")
|
||||
//@RequiresPermissions("device:bind:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DeviceBind deviceBind) {
|
||||
startPage();
|
||||
List<DeviceBind> list = deviceBindService.selectDeviceBindList(deviceBind);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备绑定多档口子列表
|
||||
*/
|
||||
@ApiOperation(value = "导出设备绑定多档口子列表")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("device:bind:export")
|
||||
@SysLog(title = "设备绑定多档口子", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出设备绑定多档口子")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceBind deviceBind) {
|
||||
List<DeviceBind> list = deviceBindService.selectDeviceBindList(deviceBind);
|
||||
ExcelUtil<DeviceBind> util = new ExcelUtil<DeviceBind>(DeviceBind.class);
|
||||
util.exportExcel(response, list, "设备绑定多档口子数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备绑定多档口子详细信息
|
||||
*/
|
||||
@ApiOperation(value = "获取设备绑定多档口子详细信息")
|
||||
//@RequiresPermissions("device:bind:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(deviceBindService.selectDeviceBindById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备绑定多档口子
|
||||
*/
|
||||
@ApiOperation(value = "新增设备绑定多档口子")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("device:bind:add")
|
||||
@SysLog(title = "设备绑定多档口子", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增设备绑定多档口子")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DeviceBind deviceBind) {
|
||||
try {
|
||||
return toAjax(deviceBindService.insertDeviceBind(deviceBind));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备绑定多档口子
|
||||
*/
|
||||
@ApiOperation(value = "修改设备绑定多档口子")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("device:bind:edit")
|
||||
@SysLog(title = "设备绑定多档口子", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改设备绑定多档口子")
|
||||
@PostMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody DeviceBind deviceBind) {
|
||||
try {
|
||||
return toAjax(deviceBindService.updateDeviceBind(deviceBind));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备绑定多档口子
|
||||
*/
|
||||
@ApiOperation(value = "删除设备绑定多档口子")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("device:bind:remove")
|
||||
@SysLog(title = "设备绑定多档口子", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除设备绑定多档口子")
|
||||
@PostMapping("/del/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(deviceBindService.deleteDeviceBindByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,119 @@
|
|||
package com.bonus.canteen.device.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.common.log.enums.OperaType;
|
||||
import com.bonus.canteen.common.annotation.PreventRepeatSubmit;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.bonus.common.log.annotation.SysLog;
|
||||
import com.bonus.common.security.annotation.RequiresPermissions;
|
||||
import com.bonus.canteen.device.domain.DeviceInfo;
|
||||
import com.bonus.canteen.device.service.IDeviceInfoService;
|
||||
import com.bonus.common.core.web.controller.BaseController;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 设备资料Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-04-03
|
||||
*/
|
||||
@Api(tags = "设备资料接口")
|
||||
@RestController
|
||||
@RequestMapping("/device_info")
|
||||
public class DeviceInfoController extends BaseController {
|
||||
@Autowired
|
||||
private IDeviceInfoService deviceInfoService;
|
||||
|
||||
/**
|
||||
* 查询设备资料列表
|
||||
*/
|
||||
@ApiOperation(value = "查询设备资料列表")
|
||||
//@RequiresPermissions("device:info:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DeviceInfo deviceInfo) {
|
||||
startPage();
|
||||
List<DeviceInfo> list = deviceInfoService.selectDeviceInfoList(deviceInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备资料列表
|
||||
*/
|
||||
@ApiOperation(value = "导出设备资料列表")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("device:info:export")
|
||||
@SysLog(title = "设备资料", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出设备资料")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceInfo deviceInfo) {
|
||||
List<DeviceInfo> list = deviceInfoService.selectDeviceInfoList(deviceInfo);
|
||||
ExcelUtil<DeviceInfo> util = new ExcelUtil<DeviceInfo>(DeviceInfo.class);
|
||||
util.exportExcel(response, list, "设备资料数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备资料详细信息
|
||||
*/
|
||||
@ApiOperation(value = "获取设备资料详细信息")
|
||||
//@RequiresPermissions("device:info:query")
|
||||
@GetMapping(value = "/{deviceId}")
|
||||
public AjaxResult getInfo(@PathVariable("deviceId") Long deviceId) {
|
||||
return success(deviceInfoService.selectDeviceInfoByDeviceId(deviceId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备资料
|
||||
*/
|
||||
@ApiOperation(value = "新增设备资料")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("device:info:add")
|
||||
@SysLog(title = "设备资料", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增设备资料")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DeviceInfo deviceInfo) {
|
||||
try {
|
||||
return toAjax(deviceInfoService.insertDeviceInfo(deviceInfo));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备资料
|
||||
*/
|
||||
@ApiOperation(value = "修改设备资料")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("device:info:edit")
|
||||
@SysLog(title = "设备资料", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改设备资料")
|
||||
@PostMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody DeviceInfo deviceInfo) {
|
||||
try {
|
||||
return toAjax(deviceInfoService.updateDeviceInfo(deviceInfo));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备资料
|
||||
*/
|
||||
@ApiOperation(value = "删除设备资料")
|
||||
//@PreventRepeatSubmit
|
||||
//@RequiresPermissions("device:info:remove")
|
||||
@SysLog(title = "设备资料", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除设备资料")
|
||||
@PostMapping("/del/{deviceIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] deviceIds) {
|
||||
return toAjax(deviceInfoService.deleteDeviceInfoByDeviceIds(deviceIds));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package com.bonus.canteen.device.domain;
|
||||
|
||||
import com.bonus.common.core.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import com.bonus.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 设备绑定多档口子对象 device_bind
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-04-03
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class DeviceBind extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键自增 */
|
||||
private Long id;
|
||||
|
||||
/** 设备id */
|
||||
@Excel(name = "设备id ")
|
||||
@ApiModelProperty(value = "设备id ")
|
||||
private Long deviceId;
|
||||
|
||||
/** 食堂ID */
|
||||
@Excel(name = "食堂ID")
|
||||
@ApiModelProperty(value = "食堂ID")
|
||||
private Long canteenId;
|
||||
|
||||
/** 店铺档口id */
|
||||
@Excel(name = "店铺档口id")
|
||||
@ApiModelProperty(value = "店铺档口id")
|
||||
private Long stallId;
|
||||
|
||||
/** 包间id */
|
||||
@Excel(name = "包间id")
|
||||
@ApiModelProperty(value = "包间id")
|
||||
private Long roomId;
|
||||
|
||||
/** 是否启用打印 */
|
||||
@Excel(name = "是否启用打印")
|
||||
@ApiModelProperty(value = "是否启用打印")
|
||||
private Long ifUsePrint;
|
||||
|
||||
/** 餐线ID */
|
||||
@Excel(name = "餐线ID")
|
||||
@ApiModelProperty(value = "餐线ID")
|
||||
private Long mealLineId;
|
||||
|
||||
/** 区域id */
|
||||
@Excel(name = "区域id")
|
||||
@ApiModelProperty(value = "区域id")
|
||||
private Long areaId;
|
||||
|
||||
/** 乐观锁 */
|
||||
@Excel(name = "乐观锁")
|
||||
@ApiModelProperty(value = "乐观锁")
|
||||
private Long revision;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,315 @@
|
|||
package com.bonus.canteen.device.domain;
|
||||
|
||||
import com.bonus.common.core.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import com.bonus.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 设备资料对象 device_info
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-04-03
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class DeviceInfo extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 设备id */
|
||||
private Long deviceId;
|
||||
|
||||
/** 商家id */
|
||||
private Long tenantId;
|
||||
|
||||
/** 人员范围 */
|
||||
@Excel(name = "人员范围")
|
||||
@ApiModelProperty(value = "人员范围")
|
||||
private Long effId;
|
||||
|
||||
/** 设备在线状态1在线2离线 */
|
||||
@Excel(name = "设备在线状态1在线2离线")
|
||||
@ApiModelProperty(value = "设备在线状态1在线2离线")
|
||||
private Long onlineState;
|
||||
|
||||
/** 版本号 */
|
||||
@Excel(name = "版本号")
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Long versionCode;
|
||||
|
||||
/** 版本名称 */
|
||||
@Excel(name = "版本名称")
|
||||
@ApiModelProperty(value = "版本名称")
|
||||
private String versionName;
|
||||
|
||||
/** 消费模式(扣费模式) 1-手动 2-定额 3-类别 */
|
||||
@Excel(name = "消费模式(扣费模式) 1-手动 2-定额 3-类别")
|
||||
@ApiModelProperty(value = "消费模式(扣费模式) 1-手动 2-定额 3-类别")
|
||||
private Long consumMode;
|
||||
|
||||
/** 通讯模式 */
|
||||
@Excel(name = "通讯模式")
|
||||
@ApiModelProperty(value = "通讯模式")
|
||||
private Long commMode;
|
||||
|
||||
/** 设备ip */
|
||||
@Excel(name = "设备ip ")
|
||||
@ApiModelProperty(value = "设备ip ")
|
||||
private String deviceIp;
|
||||
|
||||
/** 子网掩码 */
|
||||
@Excel(name = "子网掩码 ")
|
||||
@ApiModelProperty(value = "子网掩码 ")
|
||||
private String deviceMask;
|
||||
|
||||
/** 设备mac */
|
||||
@Excel(name = "设备mac ")
|
||||
@ApiModelProperty(value = "设备mac ")
|
||||
private String deviceMac;
|
||||
|
||||
/** 网关 */
|
||||
@Excel(name = "网关 ")
|
||||
@ApiModelProperty(value = "网关 ")
|
||||
private String deviceGateway;
|
||||
|
||||
/** 首选dns */
|
||||
@Excel(name = "首选dns ")
|
||||
@ApiModelProperty(value = "首选dns ")
|
||||
private String firstDns;
|
||||
|
||||
/** 备选dns */
|
||||
@Excel(name = "备选dns ")
|
||||
@ApiModelProperty(value = "备选dns ")
|
||||
private String nextDns;
|
||||
|
||||
/** 设备sn码 */
|
||||
@Excel(name = "设备sn码")
|
||||
@ApiModelProperty(value = "设备sn码")
|
||||
private String deviceSn;
|
||||
|
||||
/** 设备名称 */
|
||||
@Excel(name = "设备名称 ")
|
||||
@ApiModelProperty(value = "设备名称 ")
|
||||
private String deviceName;
|
||||
|
||||
/** 设备编号 */
|
||||
@Excel(name = "设备编号 ")
|
||||
@ApiModelProperty(value = "设备编号 ")
|
||||
private String deviceNum;
|
||||
|
||||
/** 设备型号 */
|
||||
@Excel(name = "设备型号 ")
|
||||
@ApiModelProperty(value = "设备型号 ")
|
||||
private String deviceModel;
|
||||
|
||||
/** 设备类型 */
|
||||
@Excel(name = "设备类型 ")
|
||||
@ApiModelProperty(value = "设备类型 ")
|
||||
private Long deviceType;
|
||||
|
||||
/** 设备密码 */
|
||||
@Excel(name = "设备密码")
|
||||
@ApiModelProperty(value = "设备密码")
|
||||
private String devicePwd;
|
||||
|
||||
/** 设备安装地址 */
|
||||
@Excel(name = "设备安装地址")
|
||||
@ApiModelProperty(value = "设备安装地址")
|
||||
private String deviceAddr;
|
||||
|
||||
/** 设备key */
|
||||
@Excel(name = "设备key")
|
||||
@ApiModelProperty(value = "设备key")
|
||||
private String deviceKey;
|
||||
|
||||
/** 父类设备id */
|
||||
@Excel(name = "父类设备id")
|
||||
@ApiModelProperty(value = "父类设备id")
|
||||
private Long deviceParentId;
|
||||
|
||||
/** 父设备类型 */
|
||||
@Excel(name = "父设备类型")
|
||||
@ApiModelProperty(value = "父设备类型")
|
||||
private String deviceParentType;
|
||||
|
||||
/** 服务器ip/域名 */
|
||||
@Excel(name = "服务器ip/域名")
|
||||
@ApiModelProperty(value = "服务器ip/域名")
|
||||
private String deviceServiceIp;
|
||||
|
||||
/** 服务器端口 */
|
||||
@Excel(name = "服务器端口")
|
||||
@ApiModelProperty(value = "服务器端口")
|
||||
private String deviceServicePort;
|
||||
|
||||
/** 是否限额 */
|
||||
@Excel(name = "是否限额")
|
||||
@ApiModelProperty(value = "是否限额")
|
||||
private Long ifQuotaLimit;
|
||||
|
||||
/** 是否打折 */
|
||||
@Excel(name = "是否打折")
|
||||
@ApiModelProperty(value = "是否打折")
|
||||
private Long ifDiscount;
|
||||
|
||||
/** 是否限次 */
|
||||
@Excel(name = "是否限次")
|
||||
@ApiModelProperty(value = "是否限次")
|
||||
private Long ifTimeLimit;
|
||||
|
||||
/** 是否启用叫号 */
|
||||
@Excel(name = "是否启用叫号")
|
||||
@ApiModelProperty(value = "是否启用叫号")
|
||||
private Long ifUseCallNum;
|
||||
|
||||
/** 设备是否启用 1-是 2-否 */
|
||||
@Excel(name = "设备是否启用 1-是 2-否")
|
||||
@ApiModelProperty(value = "设备是否启用 1-是 2-否")
|
||||
private Long ifEnable;
|
||||
|
||||
/** 图片地址(当mch_type为40 时,该字段表示背景图) */
|
||||
@Excel(name = "图片地址", readConverterExp = "当=mch_type为40,时=,该字段表示背景图")
|
||||
private String imgUrl;
|
||||
|
||||
/** 账户余额不足多少提醒 */
|
||||
@Excel(name = "账户余额不足多少提醒")
|
||||
@ApiModelProperty(value = "账户余额不足多少提醒")
|
||||
private Long amountNotify;
|
||||
|
||||
/** 餐盘绑定有效时间 */
|
||||
@Excel(name = "餐盘绑定有效时间")
|
||||
@ApiModelProperty(value = "餐盘绑定有效时间")
|
||||
private Long bindingValidTime;
|
||||
|
||||
/** 订单自动结算时间 */
|
||||
@Excel(name = "订单自动结算时间")
|
||||
@ApiModelProperty(value = "订单自动结算时间")
|
||||
private Long ordAutomaticPay;
|
||||
|
||||
/** 是否允许离线消费 */
|
||||
@Excel(name = "是否允许离线消费")
|
||||
@ApiModelProperty(value = "是否允许离线消费")
|
||||
private Long ifOffLinePay;
|
||||
|
||||
/** 报警时长 */
|
||||
@Excel(name = "报警时长")
|
||||
@ApiModelProperty(value = "报警时长")
|
||||
private Long alarmTime;
|
||||
|
||||
/** 勺子重量 */
|
||||
@Excel(name = "勺子重量")
|
||||
@ApiModelProperty(value = "勺子重量")
|
||||
private Long spoonWeight;
|
||||
|
||||
/** 计量主机余量报警值 */
|
||||
@Excel(name = "计量主机余量报警值")
|
||||
@ApiModelProperty(value = "计量主机余量报警值")
|
||||
private Long weightRemAlarm;
|
||||
|
||||
/** 心跳包时间(电子菜排) */
|
||||
@Excel(name = "心跳包时间(电子菜排)")
|
||||
@ApiModelProperty(value = "心跳包时间(电子菜排)")
|
||||
private Long heartBeatTime;
|
||||
|
||||
/** 轮播播放时间(电子菜排) */
|
||||
@Excel(name = "轮播播放时间(电子菜排)")
|
||||
@ApiModelProperty(value = "轮播播放时间(电子菜排)")
|
||||
private Long carouselTime;
|
||||
|
||||
/** 字幕标语(电子菜排) */
|
||||
@Excel(name = "字幕标语(电子菜排)")
|
||||
@ApiModelProperty(value = "字幕标语(电子菜排)")
|
||||
private String titleSlogan;
|
||||
|
||||
/** 字体大小(电子菜排) */
|
||||
@Excel(name = "字体大小(电子菜排)")
|
||||
@ApiModelProperty(value = "字体大小(电子菜排)")
|
||||
private Long fontSize;
|
||||
|
||||
/** 信息发布屏图片 */
|
||||
@Excel(name = "信息发布屏图片")
|
||||
@ApiModelProperty(value = "信息发布屏图片")
|
||||
private String imageMap;
|
||||
|
||||
/** 信息发布屏样式 */
|
||||
@Excel(name = "信息发布屏样式")
|
||||
@ApiModelProperty(value = "信息发布屏样式")
|
||||
private Long guiStyle;
|
||||
|
||||
/** 字体颜色 */
|
||||
@Excel(name = "字体颜色")
|
||||
@ApiModelProperty(value = "字体颜色")
|
||||
private String fontColor;
|
||||
|
||||
/** 行数 */
|
||||
@Excel(name = "行数")
|
||||
@ApiModelProperty(value = "行数")
|
||||
private Long lineNum;
|
||||
|
||||
/** 刷脸设备单次扣款金额 */
|
||||
@Excel(name = "刷脸设备单次扣款金额")
|
||||
@ApiModelProperty(value = "刷脸设备单次扣款金额")
|
||||
private Long oncePayAmount;
|
||||
|
||||
/** 设备数据传输状态,1-传输完毕, 0-传输中 */
|
||||
@Excel(name = "设备数据传输状态,1-传输完毕, 0-传输中")
|
||||
@ApiModelProperty(value = "设备数据传输状态,1-传输完毕, 0-传输中")
|
||||
private Long dataStatus;
|
||||
|
||||
/** 单笔订单开门数量 */
|
||||
@Excel(name = "单笔订单开门数量")
|
||||
@ApiModelProperty(value = "单笔订单开门数量")
|
||||
private Long ordOpenLimit;
|
||||
|
||||
/** 单个柜门存单上限 */
|
||||
@Excel(name = " 单个柜门存单上限")
|
||||
@ApiModelProperty(value = " 单个柜门存单上限")
|
||||
private Long detailNumLimit;
|
||||
|
||||
/** 第三方终端sn */
|
||||
@Excel(name = "第三方终端sn")
|
||||
@ApiModelProperty(value = "第三方终端sn")
|
||||
private String terminalSn;
|
||||
|
||||
/** 第三方终端秘钥 */
|
||||
@Excel(name = "第三方终端秘钥")
|
||||
@ApiModelProperty(value = "第三方终端秘钥")
|
||||
private String terminalKey;
|
||||
|
||||
/** 打印机状态 1、离线。
|
||||
* 2、在线,工作状态正常。
|
||||
* 3、在线,工作状态不正常。 */
|
||||
@Excel(name = "打印机状态 1、离线。2、在线,工作状态正常。 3、在线,工作状态不正常。")
|
||||
@ApiModelProperty(value = "打印机状态 1、离线。 2、在线,工作状态正常。 3、在线,工作状态不正常。")
|
||||
private Long priStatus;
|
||||
|
||||
/** 打印机key */
|
||||
@Excel(name = "打印机key")
|
||||
@ApiModelProperty(value = "打印机key")
|
||||
private String priKey;
|
||||
|
||||
/** 闸机默认消费金额 */
|
||||
@Excel(name = "闸机默认消费金额")
|
||||
@ApiModelProperty(value = "闸机默认消费金额")
|
||||
private Long gateDefaultAmount;
|
||||
|
||||
/** 设备状态1正常 2异常 */
|
||||
@Excel(name = "设备状态1正常 2异常")
|
||||
@ApiModelProperty(value = "设备状态1正常 2异常")
|
||||
private Long deviceState;
|
||||
|
||||
/** 通信协议:1、http 2、mqtt */
|
||||
@Excel(name = "通信协议:1、http 2、mqtt")
|
||||
@ApiModelProperty(value = "通信协议:1、http 2、mqtt")
|
||||
private Long deviceAgreement;
|
||||
|
||||
/** 乐观锁 */
|
||||
@Excel(name = "乐观锁 ")
|
||||
@ApiModelProperty(value = "乐观锁 ")
|
||||
private Long revision;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
package com.bonus.canteen.device.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.canteen.device.domain.DeviceBind;
|
||||
|
||||
/**
|
||||
* 设备绑定多档口子Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-04-03
|
||||
*/
|
||||
public interface DeviceBindMapper {
|
||||
/**
|
||||
* 查询设备绑定多档口子
|
||||
*
|
||||
* @param id 设备绑定多档口子主键
|
||||
* @return 设备绑定多档口子
|
||||
*/
|
||||
public DeviceBind selectDeviceBindById(Long id);
|
||||
|
||||
/**
|
||||
* 查询设备绑定多档口子列表
|
||||
*
|
||||
* @param deviceBind 设备绑定多档口子
|
||||
* @return 设备绑定多档口子集合
|
||||
*/
|
||||
public List<DeviceBind> selectDeviceBindList(DeviceBind deviceBind);
|
||||
|
||||
/**
|
||||
* 新增设备绑定多档口子
|
||||
*
|
||||
* @param deviceBind 设备绑定多档口子
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceBind(DeviceBind deviceBind);
|
||||
|
||||
/**
|
||||
* 修改设备绑定多档口子
|
||||
*
|
||||
* @param deviceBind 设备绑定多档口子
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceBind(DeviceBind deviceBind);
|
||||
|
||||
/**
|
||||
* 删除设备绑定多档口子
|
||||
*
|
||||
* @param id 设备绑定多档口子主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceBindById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除设备绑定多档口子
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceBindByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
package com.bonus.canteen.device.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.canteen.device.domain.DeviceInfo;
|
||||
|
||||
/**
|
||||
* 设备资料Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-04-03
|
||||
*/
|
||||
public interface DeviceInfoMapper {
|
||||
/**
|
||||
* 查询设备资料
|
||||
*
|
||||
* @param deviceId 设备资料主键
|
||||
* @return 设备资料
|
||||
*/
|
||||
public DeviceInfo selectDeviceInfoByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 查询设备资料列表
|
||||
*
|
||||
* @param deviceInfo 设备资料
|
||||
* @return 设备资料集合
|
||||
*/
|
||||
public List<DeviceInfo> selectDeviceInfoList(DeviceInfo deviceInfo);
|
||||
|
||||
/**
|
||||
* 新增设备资料
|
||||
*
|
||||
* @param deviceInfo 设备资料
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceInfo(DeviceInfo deviceInfo);
|
||||
|
||||
/**
|
||||
* 修改设备资料
|
||||
*
|
||||
* @param deviceInfo 设备资料
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceInfo(DeviceInfo deviceInfo);
|
||||
|
||||
/**
|
||||
* 删除设备资料
|
||||
*
|
||||
* @param deviceId 设备资料主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceInfoByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 批量删除设备资料
|
||||
*
|
||||
* @param deviceIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceInfoByDeviceIds(Long[] deviceIds);
|
||||
}
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
package com.bonus.canteen.device.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.canteen.device.domain.DeviceBind;
|
||||
|
||||
/**
|
||||
* 设备绑定多档口子Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-04-03
|
||||
*/
|
||||
public interface IDeviceBindService {
|
||||
/**
|
||||
* 查询设备绑定多档口子
|
||||
*
|
||||
* @param id 设备绑定多档口子主键
|
||||
* @return 设备绑定多档口子
|
||||
*/
|
||||
public DeviceBind selectDeviceBindById(Long id);
|
||||
|
||||
/**
|
||||
* 查询设备绑定多档口子列表
|
||||
*
|
||||
* @param deviceBind 设备绑定多档口子
|
||||
* @return 设备绑定多档口子集合
|
||||
*/
|
||||
public List<DeviceBind> selectDeviceBindList(DeviceBind deviceBind);
|
||||
|
||||
/**
|
||||
* 新增设备绑定多档口子
|
||||
*
|
||||
* @param deviceBind 设备绑定多档口子
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceBind(DeviceBind deviceBind);
|
||||
|
||||
/**
|
||||
* 修改设备绑定多档口子
|
||||
*
|
||||
* @param deviceBind 设备绑定多档口子
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceBind(DeviceBind deviceBind);
|
||||
|
||||
/**
|
||||
* 批量删除设备绑定多档口子
|
||||
*
|
||||
* @param ids 需要删除的设备绑定多档口子主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceBindByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除设备绑定多档口子信息
|
||||
*
|
||||
* @param id 设备绑定多档口子主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceBindById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
package com.bonus.canteen.device.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.canteen.device.domain.DeviceInfo;
|
||||
|
||||
/**
|
||||
* 设备资料Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-04-03
|
||||
*/
|
||||
public interface IDeviceInfoService {
|
||||
/**
|
||||
* 查询设备资料
|
||||
*
|
||||
* @param deviceId 设备资料主键
|
||||
* @return 设备资料
|
||||
*/
|
||||
public DeviceInfo selectDeviceInfoByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 查询设备资料列表
|
||||
*
|
||||
* @param deviceInfo 设备资料
|
||||
* @return 设备资料集合
|
||||
*/
|
||||
public List<DeviceInfo> selectDeviceInfoList(DeviceInfo deviceInfo);
|
||||
|
||||
/**
|
||||
* 新增设备资料
|
||||
*
|
||||
* @param deviceInfo 设备资料
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceInfo(DeviceInfo deviceInfo);
|
||||
|
||||
/**
|
||||
* 修改设备资料
|
||||
*
|
||||
* @param deviceInfo 设备资料
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceInfo(DeviceInfo deviceInfo);
|
||||
|
||||
/**
|
||||
* 批量删除设备资料
|
||||
*
|
||||
* @param deviceIds 需要删除的设备资料主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceInfoByDeviceIds(Long[] deviceIds);
|
||||
|
||||
/**
|
||||
* 删除设备资料信息
|
||||
*
|
||||
* @param deviceId 设备资料主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceInfoByDeviceId(Long deviceId);
|
||||
}
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
package com.bonus.canteen.device.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.canteen.device.mapper.DeviceBindMapper;
|
||||
import com.bonus.canteen.device.domain.DeviceBind;
|
||||
import com.bonus.canteen.device.service.IDeviceBindService;
|
||||
|
||||
/**
|
||||
* 设备绑定多档口子Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-04-03
|
||||
*/
|
||||
@Service
|
||||
public class DeviceBindServiceImpl implements IDeviceBindService {
|
||||
@Autowired
|
||||
private DeviceBindMapper deviceBindMapper;
|
||||
|
||||
/**
|
||||
* 查询设备绑定多档口子
|
||||
*
|
||||
* @param id 设备绑定多档口子主键
|
||||
* @return 设备绑定多档口子
|
||||
*/
|
||||
@Override
|
||||
public DeviceBind selectDeviceBindById(Long id) {
|
||||
return deviceBindMapper.selectDeviceBindById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备绑定多档口子列表
|
||||
*
|
||||
* @param deviceBind 设备绑定多档口子
|
||||
* @return 设备绑定多档口子
|
||||
*/
|
||||
@Override
|
||||
public List<DeviceBind> selectDeviceBindList(DeviceBind deviceBind) {
|
||||
return deviceBindMapper.selectDeviceBindList(deviceBind);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备绑定多档口子
|
||||
*
|
||||
* @param deviceBind 设备绑定多档口子
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDeviceBind(DeviceBind deviceBind) {
|
||||
deviceBind.setCreateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return deviceBindMapper.insertDeviceBind(deviceBind);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备绑定多档口子
|
||||
*
|
||||
* @param deviceBind 设备绑定多档口子
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDeviceBind(DeviceBind deviceBind) {
|
||||
deviceBind.setUpdateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return deviceBindMapper.updateDeviceBind(deviceBind);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除设备绑定多档口子
|
||||
*
|
||||
* @param ids 需要删除的设备绑定多档口子主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceBindByIds(Long[] ids) {
|
||||
return deviceBindMapper.deleteDeviceBindByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备绑定多档口子信息
|
||||
*
|
||||
* @param id 设备绑定多档口子主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceBindById(Long id) {
|
||||
return deviceBindMapper.deleteDeviceBindById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
package com.bonus.canteen.device.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.common.core.exception.ServiceException;
|
||||
import com.bonus.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.canteen.device.mapper.DeviceInfoMapper;
|
||||
import com.bonus.canteen.device.domain.DeviceInfo;
|
||||
import com.bonus.canteen.device.service.IDeviceInfoService;
|
||||
|
||||
/**
|
||||
* 设备资料Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2025-04-03
|
||||
*/
|
||||
@Service
|
||||
public class DeviceInfoServiceImpl implements IDeviceInfoService {
|
||||
@Autowired
|
||||
private DeviceInfoMapper deviceInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询设备资料
|
||||
*
|
||||
* @param deviceId 设备资料主键
|
||||
* @return 设备资料
|
||||
*/
|
||||
@Override
|
||||
public DeviceInfo selectDeviceInfoByDeviceId(Long deviceId) {
|
||||
return deviceInfoMapper.selectDeviceInfoByDeviceId(deviceId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备资料列表
|
||||
*
|
||||
* @param deviceInfo 设备资料
|
||||
* @return 设备资料
|
||||
*/
|
||||
@Override
|
||||
public List<DeviceInfo> selectDeviceInfoList(DeviceInfo deviceInfo) {
|
||||
return deviceInfoMapper.selectDeviceInfoList(deviceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备资料
|
||||
*
|
||||
* @param deviceInfo 设备资料
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDeviceInfo(DeviceInfo deviceInfo) {
|
||||
deviceInfo.setCreateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return deviceInfoMapper.insertDeviceInfo(deviceInfo);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备资料
|
||||
*
|
||||
* @param deviceInfo 设备资料
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDeviceInfo(DeviceInfo deviceInfo) {
|
||||
deviceInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
try {
|
||||
return deviceInfoMapper.updateDeviceInfo(deviceInfo);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除设备资料
|
||||
*
|
||||
* @param deviceIds 需要删除的设备资料主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceInfoByDeviceIds(Long[] deviceIds) {
|
||||
return deviceInfoMapper.deleteDeviceInfoByDeviceIds(deviceIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备资料信息
|
||||
*
|
||||
* @param deviceId 设备资料主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceInfoByDeviceId(Long deviceId) {
|
||||
return deviceInfoMapper.deleteDeviceInfoByDeviceId(deviceId);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,110 @@
|
|||
<?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.bonus.canteen.device.mapper.DeviceBindMapper">
|
||||
<resultMap type="com.bonus.canteen.device.domain.DeviceBind" id="DeviceBindResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="deviceId" column="device_id" />
|
||||
<result property="canteenId" column="canteen_id" />
|
||||
<result property="stallId" column="stall_id" />
|
||||
<result property="roomId" column="room_id" />
|
||||
<result property="ifUsePrint" column="if_use_print" />
|
||||
<result property="mealLineId" column="meal_line_id" />
|
||||
<result property="areaId" column="area_id" />
|
||||
<result property="revision" column="revision" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDeviceBindVo">
|
||||
select id, device_id, canteen_id, stall_id, room_id, if_use_print, meal_line_id, area_id, revision, create_by, create_time, update_by, update_time, remark from device_bind
|
||||
</sql>
|
||||
|
||||
<select id="selectDeviceBindList" parameterType="com.bonus.canteen.device.domain.DeviceBind" resultMap="DeviceBindResult">
|
||||
<include refid="selectDeviceBindVo"/>
|
||||
<where>
|
||||
<if test="deviceId != null "> and device_id = #{deviceId}</if>
|
||||
<if test="canteenId != null "> and canteen_id = #{canteenId}</if>
|
||||
<if test="stallId != null "> and stall_id = #{stallId}</if>
|
||||
<if test="roomId != null "> and room_id = #{roomId}</if>
|
||||
<if test="ifUsePrint != null "> and if_use_print = #{ifUsePrint}</if>
|
||||
<if test="mealLineId != null "> and meal_line_id = #{mealLineId}</if>
|
||||
<if test="areaId != null "> and area_id = #{areaId}</if>
|
||||
<if test="revision != null "> and revision = #{revision}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDeviceBindById" parameterType="Long" resultMap="DeviceBindResult">
|
||||
<include refid="selectDeviceBindVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDeviceBind" parameterType="com.bonus.canteen.device.domain.DeviceBind" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into device_bind
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="deviceId != null">device_id,</if>
|
||||
<if test="canteenId != null">canteen_id,</if>
|
||||
<if test="stallId != null">stall_id,</if>
|
||||
<if test="roomId != null">room_id,</if>
|
||||
<if test="ifUsePrint != null">if_use_print,</if>
|
||||
<if test="mealLineId != null">meal_line_id,</if>
|
||||
<if test="areaId != null">area_id,</if>
|
||||
<if test="revision != null">revision,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="deviceId != null">#{deviceId},</if>
|
||||
<if test="canteenId != null">#{canteenId},</if>
|
||||
<if test="stallId != null">#{stallId},</if>
|
||||
<if test="roomId != null">#{roomId},</if>
|
||||
<if test="ifUsePrint != null">#{ifUsePrint},</if>
|
||||
<if test="mealLineId != null">#{mealLineId},</if>
|
||||
<if test="areaId != null">#{areaId},</if>
|
||||
<if test="revision != null">#{revision},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDeviceBind" parameterType="com.bonus.canteen.device.domain.DeviceBind">
|
||||
update device_bind
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="deviceId != null">device_id = #{deviceId},</if>
|
||||
<if test="canteenId != null">canteen_id = #{canteenId},</if>
|
||||
<if test="stallId != null">stall_id = #{stallId},</if>
|
||||
<if test="roomId != null">room_id = #{roomId},</if>
|
||||
<if test="ifUsePrint != null">if_use_print = #{ifUsePrint},</if>
|
||||
<if test="mealLineId != null">meal_line_id = #{mealLineId},</if>
|
||||
<if test="areaId != null">area_id = #{areaId},</if>
|
||||
<if test="revision != null">revision = #{revision},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDeviceBindById" parameterType="Long">
|
||||
delete from device_bind where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDeviceBindByIds" parameterType="String">
|
||||
delete from device_bind where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,361 @@
|
|||
<?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.bonus.canteen.device.mapper.DeviceInfoMapper">
|
||||
<resultMap type="com.bonus.canteen.device.domain.DeviceInfo" id="DeviceInfoResult">
|
||||
<result property="deviceId" column="device_id" />
|
||||
<result property="tenantId" column="tenant_id" />
|
||||
<result property="effId" column="eff_id" />
|
||||
<result property="onlineState" column="online_state" />
|
||||
<result property="versionCode" column="version_code" />
|
||||
<result property="versionName" column="version_name" />
|
||||
<result property="consumMode" column="consum_mode" />
|
||||
<result property="commMode" column="comm_mode" />
|
||||
<result property="deviceIp" column="device_ip" />
|
||||
<result property="deviceMask" column="device_mask" />
|
||||
<result property="deviceMac" column="device_mac" />
|
||||
<result property="deviceGateway" column="device_gateway" />
|
||||
<result property="firstDns" column="first_dns" />
|
||||
<result property="nextDns" column="next_dns" />
|
||||
<result property="deviceSn" column="device_sn" />
|
||||
<result property="deviceName" column="device_name" />
|
||||
<result property="deviceNum" column="device_num" />
|
||||
<result property="deviceModel" column="device_model" />
|
||||
<result property="deviceType" column="device_type" />
|
||||
<result property="devicePwd" column="device_pwd" />
|
||||
<result property="deviceAddr" column="device_addr" />
|
||||
<result property="deviceKey" column="device_key" />
|
||||
<result property="deviceParentId" column="device_parent_id" />
|
||||
<result property="deviceParentType" column="device_parent_type" />
|
||||
<result property="deviceServiceIp" column="device_service_ip" />
|
||||
<result property="deviceServicePort" column="device_service_port" />
|
||||
<result property="ifQuotaLimit" column="if_quota_limit" />
|
||||
<result property="ifDiscount" column="if_discount" />
|
||||
<result property="ifTimeLimit" column="if_time_limit" />
|
||||
<result property="ifUseCallNum" column="if_use_call_num" />
|
||||
<result property="ifEnable" column="if_enable" />
|
||||
<result property="imgUrl" column="img_url" />
|
||||
<result property="amountNotify" column="amount_notify" />
|
||||
<result property="bindingValidTime" column="binding_valid_time" />
|
||||
<result property="ordAutomaticPay" column="ord_automatic_pay" />
|
||||
<result property="ifOffLinePay" column="if_off_line_pay" />
|
||||
<result property="alarmTime" column="alarm_time" />
|
||||
<result property="spoonWeight" column="spoon_weight" />
|
||||
<result property="weightRemAlarm" column="weight_rem_alarm" />
|
||||
<result property="heartBeatTime" column="heart_beat_time" />
|
||||
<result property="carouselTime" column="carousel_time" />
|
||||
<result property="titleSlogan" column="title_slogan" />
|
||||
<result property="fontSize" column="font_size" />
|
||||
<result property="imageMap" column="image_map" />
|
||||
<result property="guiStyle" column="gui_style" />
|
||||
<result property="fontColor" column="font_color" />
|
||||
<result property="lineNum" column="line_num" />
|
||||
<result property="oncePayAmount" column="once_pay_amount" />
|
||||
<result property="dataStatus" column="data_status" />
|
||||
<result property="ordOpenLimit" column="ord_open_limit" />
|
||||
<result property="detailNumLimit" column="detail_num_limit" />
|
||||
<result property="terminalSn" column="terminal_sn" />
|
||||
<result property="terminalKey" column="terminal_key" />
|
||||
<result property="priStatus" column="pri_status" />
|
||||
<result property="priKey" column="pri_key" />
|
||||
<result property="gateDefaultAmount" column="gate_default_amount" />
|
||||
<result property="deviceState" column="device_state" />
|
||||
<result property="deviceAgreement" column="device_agreement" />
|
||||
<result property="revision" column="revision" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDeviceInfoVo">
|
||||
select device_id, tenant_id, eff_id, online_state, version_code, version_name, consum_mode, comm_mode, device_ip, device_mask, device_mac, device_gateway, first_dns, next_dns, device_sn, device_name, device_num, device_model, device_type, device_pwd, device_addr, device_key, device_parent_id, device_parent_type, device_service_ip, device_service_port, if_quota_limit, if_discount, if_time_limit, if_use_call_num, if_enable, img_url, amount_notify, binding_valid_time, ord_automatic_pay, if_off_line_pay, alarm_time, spoon_weight, weight_rem_alarm, heart_beat_time, carousel_time, title_slogan, font_size, image_map, gui_style, font_color, line_num, once_pay_amount, data_status, ord_open_limit, detail_num_limit, terminal_sn, terminal_key, pri_status, pri_key, gate_default_amount, device_state, device_agreement, revision, create_by, create_time, update_by, update_time, remark from device_info
|
||||
</sql>
|
||||
|
||||
<select id="selectDeviceInfoList" parameterType="com.bonus.canteen.device.domain.DeviceInfo" resultMap="DeviceInfoResult">
|
||||
<include refid="selectDeviceInfoVo"/>
|
||||
<where>
|
||||
<if test="effId != null "> and eff_id = #{effId}</if>
|
||||
<if test="onlineState != null "> and online_state = #{onlineState}</if>
|
||||
<if test="versionCode != null "> and version_code = #{versionCode}</if>
|
||||
<if test="versionName != null and versionName != ''"> and version_name like concat('%', #{versionName}, '%')</if>
|
||||
<if test="consumMode != null "> and consum_mode = #{consumMode}</if>
|
||||
<if test="commMode != null "> and comm_mode = #{commMode}</if>
|
||||
<if test="deviceIp != null and deviceIp != ''"> and device_ip = #{deviceIp}</if>
|
||||
<if test="deviceMask != null and deviceMask != ''"> and device_mask = #{deviceMask}</if>
|
||||
<if test="deviceMac != null and deviceMac != ''"> and device_mac = #{deviceMac}</if>
|
||||
<if test="deviceGateway != null and deviceGateway != ''"> and device_gateway = #{deviceGateway}</if>
|
||||
<if test="firstDns != null and firstDns != ''"> and first_dns = #{firstDns}</if>
|
||||
<if test="nextDns != null and nextDns != ''"> and next_dns = #{nextDns}</if>
|
||||
<if test="deviceSn != null and deviceSn != ''"> and device_sn = #{deviceSn}</if>
|
||||
<if test="deviceName != null and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
|
||||
<if test="deviceNum != null and deviceNum != ''"> and device_num = #{deviceNum}</if>
|
||||
<if test="deviceModel != null and deviceModel != ''"> and device_model = #{deviceModel}</if>
|
||||
<if test="deviceType != null "> and device_type = #{deviceType}</if>
|
||||
<if test="devicePwd != null and devicePwd != ''"> and device_pwd = #{devicePwd}</if>
|
||||
<if test="deviceAddr != null and deviceAddr != ''"> and device_addr = #{deviceAddr}</if>
|
||||
<if test="deviceKey != null and deviceKey != ''"> and device_key = #{deviceKey}</if>
|
||||
<if test="deviceParentId != null "> and device_parent_id = #{deviceParentId}</if>
|
||||
<if test="deviceParentType != null and deviceParentType != ''"> and device_parent_type = #{deviceParentType}</if>
|
||||
<if test="deviceServiceIp != null and deviceServiceIp != ''"> and device_service_ip = #{deviceServiceIp}</if>
|
||||
<if test="deviceServicePort != null and deviceServicePort != ''"> and device_service_port = #{deviceServicePort}</if>
|
||||
<if test="ifQuotaLimit != null "> and if_quota_limit = #{ifQuotaLimit}</if>
|
||||
<if test="ifDiscount != null "> and if_discount = #{ifDiscount}</if>
|
||||
<if test="ifTimeLimit != null "> and if_time_limit = #{ifTimeLimit}</if>
|
||||
<if test="ifUseCallNum != null "> and if_use_call_num = #{ifUseCallNum}</if>
|
||||
<if test="ifEnable != null "> and if_enable = #{ifEnable}</if>
|
||||
<if test="imgUrl != null and imgUrl != ''"> and img_url = #{imgUrl}</if>
|
||||
<if test="amountNotify != null "> and amount_notify = #{amountNotify}</if>
|
||||
<if test="bindingValidTime != null "> and binding_valid_time = #{bindingValidTime}</if>
|
||||
<if test="ordAutomaticPay != null "> and ord_automatic_pay = #{ordAutomaticPay}</if>
|
||||
<if test="ifOffLinePay != null "> and if_off_line_pay = #{ifOffLinePay}</if>
|
||||
<if test="alarmTime != null "> and alarm_time = #{alarmTime}</if>
|
||||
<if test="spoonWeight != null "> and spoon_weight = #{spoonWeight}</if>
|
||||
<if test="weightRemAlarm != null "> and weight_rem_alarm = #{weightRemAlarm}</if>
|
||||
<if test="heartBeatTime != null "> and heart_beat_time = #{heartBeatTime}</if>
|
||||
<if test="carouselTime != null "> and carousel_time = #{carouselTime}</if>
|
||||
<if test="titleSlogan != null and titleSlogan != ''"> and title_slogan = #{titleSlogan}</if>
|
||||
<if test="fontSize != null "> and font_size = #{fontSize}</if>
|
||||
<if test="imageMap != null and imageMap != ''"> and image_map = #{imageMap}</if>
|
||||
<if test="guiStyle != null "> and gui_style = #{guiStyle}</if>
|
||||
<if test="fontColor != null and fontColor != ''"> and font_color = #{fontColor}</if>
|
||||
<if test="lineNum != null "> and line_num = #{lineNum}</if>
|
||||
<if test="oncePayAmount != null "> and once_pay_amount = #{oncePayAmount}</if>
|
||||
<if test="dataStatus != null "> and data_status = #{dataStatus}</if>
|
||||
<if test="ordOpenLimit != null "> and ord_open_limit = #{ordOpenLimit}</if>
|
||||
<if test="detailNumLimit != null "> and detail_num_limit = #{detailNumLimit}</if>
|
||||
<if test="terminalSn != null and terminalSn != ''"> and terminal_sn = #{terminalSn}</if>
|
||||
<if test="terminalKey != null and terminalKey != ''"> and terminal_key = #{terminalKey}</if>
|
||||
<if test="priStatus != null "> and pri_status = #{priStatus}</if>
|
||||
<if test="priKey != null and priKey != ''"> and pri_key = #{priKey}</if>
|
||||
<if test="gateDefaultAmount != null "> and gate_default_amount = #{gateDefaultAmount}</if>
|
||||
<if test="deviceState != null "> and device_state = #{deviceState}</if>
|
||||
<if test="deviceAgreement != null "> and device_agreement = #{deviceAgreement}</if>
|
||||
<if test="revision != null "> and revision = #{revision}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDeviceInfoByDeviceId" parameterType="Long" resultMap="DeviceInfoResult">
|
||||
<include refid="selectDeviceInfoVo"/>
|
||||
where device_id = #{deviceId}
|
||||
</select>
|
||||
|
||||
<insert id="insertDeviceInfo" parameterType="com.bonus.canteen.device.domain.DeviceInfo">
|
||||
insert into device_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="deviceId != null">device_id,</if>
|
||||
<if test="tenantId != null">tenant_id,</if>
|
||||
<if test="effId != null">eff_id,</if>
|
||||
<if test="onlineState != null">online_state,</if>
|
||||
<if test="versionCode != null">version_code,</if>
|
||||
<if test="versionName != null">version_name,</if>
|
||||
<if test="consumMode != null">consum_mode,</if>
|
||||
<if test="commMode != null">comm_mode,</if>
|
||||
<if test="deviceIp != null and deviceIp != ''">device_ip,</if>
|
||||
<if test="deviceMask != null and deviceMask != ''">device_mask,</if>
|
||||
<if test="deviceMac != null and deviceMac != ''">device_mac,</if>
|
||||
<if test="deviceGateway != null and deviceGateway != ''">device_gateway,</if>
|
||||
<if test="firstDns != null and firstDns != ''">first_dns,</if>
|
||||
<if test="nextDns != null and nextDns != ''">next_dns,</if>
|
||||
<if test="deviceSn != null">device_sn,</if>
|
||||
<if test="deviceName != null and deviceName != ''">device_name,</if>
|
||||
<if test="deviceNum != null and deviceNum != ''">device_num,</if>
|
||||
<if test="deviceModel != null and deviceModel != ''">device_model,</if>
|
||||
<if test="deviceType != null">device_type,</if>
|
||||
<if test="devicePwd != null">device_pwd,</if>
|
||||
<if test="deviceAddr != null">device_addr,</if>
|
||||
<if test="deviceKey != null">device_key,</if>
|
||||
<if test="deviceParentId != null">device_parent_id,</if>
|
||||
<if test="deviceParentType != null">device_parent_type,</if>
|
||||
<if test="deviceServiceIp != null">device_service_ip,</if>
|
||||
<if test="deviceServicePort != null">device_service_port,</if>
|
||||
<if test="ifQuotaLimit != null">if_quota_limit,</if>
|
||||
<if test="ifDiscount != null">if_discount,</if>
|
||||
<if test="ifTimeLimit != null">if_time_limit,</if>
|
||||
<if test="ifUseCallNum != null">if_use_call_num,</if>
|
||||
<if test="ifEnable != null">if_enable,</if>
|
||||
<if test="imgUrl != null">img_url,</if>
|
||||
<if test="amountNotify != null">amount_notify,</if>
|
||||
<if test="bindingValidTime != null">binding_valid_time,</if>
|
||||
<if test="ordAutomaticPay != null">ord_automatic_pay,</if>
|
||||
<if test="ifOffLinePay != null">if_off_line_pay,</if>
|
||||
<if test="alarmTime != null">alarm_time,</if>
|
||||
<if test="spoonWeight != null">spoon_weight,</if>
|
||||
<if test="weightRemAlarm != null">weight_rem_alarm,</if>
|
||||
<if test="heartBeatTime != null">heart_beat_time,</if>
|
||||
<if test="carouselTime != null">carousel_time,</if>
|
||||
<if test="titleSlogan != null">title_slogan,</if>
|
||||
<if test="fontSize != null">font_size,</if>
|
||||
<if test="imageMap != null">image_map,</if>
|
||||
<if test="guiStyle != null">gui_style,</if>
|
||||
<if test="fontColor != null">font_color,</if>
|
||||
<if test="lineNum != null">line_num,</if>
|
||||
<if test="oncePayAmount != null">once_pay_amount,</if>
|
||||
<if test="dataStatus != null">data_status,</if>
|
||||
<if test="ordOpenLimit != null">ord_open_limit,</if>
|
||||
<if test="detailNumLimit != null">detail_num_limit,</if>
|
||||
<if test="terminalSn != null">terminal_sn,</if>
|
||||
<if test="terminalKey != null">terminal_key,</if>
|
||||
<if test="priStatus != null">pri_status,</if>
|
||||
<if test="priKey != null">pri_key,</if>
|
||||
<if test="gateDefaultAmount != null">gate_default_amount,</if>
|
||||
<if test="deviceState != null">device_state,</if>
|
||||
<if test="deviceAgreement != null">device_agreement,</if>
|
||||
<if test="revision != null">revision,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="deviceId != null">#{deviceId},</if>
|
||||
<if test="tenantId != null">#{tenantId},</if>
|
||||
<if test="effId != null">#{effId},</if>
|
||||
<if test="onlineState != null">#{onlineState},</if>
|
||||
<if test="versionCode != null">#{versionCode},</if>
|
||||
<if test="versionName != null">#{versionName},</if>
|
||||
<if test="consumMode != null">#{consumMode},</if>
|
||||
<if test="commMode != null">#{commMode},</if>
|
||||
<if test="deviceIp != null and deviceIp != ''">#{deviceIp},</if>
|
||||
<if test="deviceMask != null and deviceMask != ''">#{deviceMask},</if>
|
||||
<if test="deviceMac != null and deviceMac != ''">#{deviceMac},</if>
|
||||
<if test="deviceGateway != null and deviceGateway != ''">#{deviceGateway},</if>
|
||||
<if test="firstDns != null and firstDns != ''">#{firstDns},</if>
|
||||
<if test="nextDns != null and nextDns != ''">#{nextDns},</if>
|
||||
<if test="deviceSn != null">#{deviceSn},</if>
|
||||
<if test="deviceName != null and deviceName != ''">#{deviceName},</if>
|
||||
<if test="deviceNum != null and deviceNum != ''">#{deviceNum},</if>
|
||||
<if test="deviceModel != null and deviceModel != ''">#{deviceModel},</if>
|
||||
<if test="deviceType != null">#{deviceType},</if>
|
||||
<if test="devicePwd != null">#{devicePwd},</if>
|
||||
<if test="deviceAddr != null">#{deviceAddr},</if>
|
||||
<if test="deviceKey != null">#{deviceKey},</if>
|
||||
<if test="deviceParentId != null">#{deviceParentId},</if>
|
||||
<if test="deviceParentType != null">#{deviceParentType},</if>
|
||||
<if test="deviceServiceIp != null">#{deviceServiceIp},</if>
|
||||
<if test="deviceServicePort != null">#{deviceServicePort},</if>
|
||||
<if test="ifQuotaLimit != null">#{ifQuotaLimit},</if>
|
||||
<if test="ifDiscount != null">#{ifDiscount},</if>
|
||||
<if test="ifTimeLimit != null">#{ifTimeLimit},</if>
|
||||
<if test="ifUseCallNum != null">#{ifUseCallNum},</if>
|
||||
<if test="ifEnable != null">#{ifEnable},</if>
|
||||
<if test="imgUrl != null">#{imgUrl},</if>
|
||||
<if test="amountNotify != null">#{amountNotify},</if>
|
||||
<if test="bindingValidTime != null">#{bindingValidTime},</if>
|
||||
<if test="ordAutomaticPay != null">#{ordAutomaticPay},</if>
|
||||
<if test="ifOffLinePay != null">#{ifOffLinePay},</if>
|
||||
<if test="alarmTime != null">#{alarmTime},</if>
|
||||
<if test="spoonWeight != null">#{spoonWeight},</if>
|
||||
<if test="weightRemAlarm != null">#{weightRemAlarm},</if>
|
||||
<if test="heartBeatTime != null">#{heartBeatTime},</if>
|
||||
<if test="carouselTime != null">#{carouselTime},</if>
|
||||
<if test="titleSlogan != null">#{titleSlogan},</if>
|
||||
<if test="fontSize != null">#{fontSize},</if>
|
||||
<if test="imageMap != null">#{imageMap},</if>
|
||||
<if test="guiStyle != null">#{guiStyle},</if>
|
||||
<if test="fontColor != null">#{fontColor},</if>
|
||||
<if test="lineNum != null">#{lineNum},</if>
|
||||
<if test="oncePayAmount != null">#{oncePayAmount},</if>
|
||||
<if test="dataStatus != null">#{dataStatus},</if>
|
||||
<if test="ordOpenLimit != null">#{ordOpenLimit},</if>
|
||||
<if test="detailNumLimit != null">#{detailNumLimit},</if>
|
||||
<if test="terminalSn != null">#{terminalSn},</if>
|
||||
<if test="terminalKey != null">#{terminalKey},</if>
|
||||
<if test="priStatus != null">#{priStatus},</if>
|
||||
<if test="priKey != null">#{priKey},</if>
|
||||
<if test="gateDefaultAmount != null">#{gateDefaultAmount},</if>
|
||||
<if test="deviceState != null">#{deviceState},</if>
|
||||
<if test="deviceAgreement != null">#{deviceAgreement},</if>
|
||||
<if test="revision != null">#{revision},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDeviceInfo" parameterType="com.bonus.canteen.device.domain.DeviceInfo">
|
||||
update device_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="tenantId != null">tenant_id = #{tenantId},</if>
|
||||
<if test="effId != null">eff_id = #{effId},</if>
|
||||
<if test="onlineState != null">online_state = #{onlineState},</if>
|
||||
<if test="versionCode != null">version_code = #{versionCode},</if>
|
||||
<if test="versionName != null">version_name = #{versionName},</if>
|
||||
<if test="consumMode != null">consum_mode = #{consumMode},</if>
|
||||
<if test="commMode != null">comm_mode = #{commMode},</if>
|
||||
<if test="deviceIp != null and deviceIp != ''">device_ip = #{deviceIp},</if>
|
||||
<if test="deviceMask != null and deviceMask != ''">device_mask = #{deviceMask},</if>
|
||||
<if test="deviceMac != null and deviceMac != ''">device_mac = #{deviceMac},</if>
|
||||
<if test="deviceGateway != null and deviceGateway != ''">device_gateway = #{deviceGateway},</if>
|
||||
<if test="firstDns != null and firstDns != ''">first_dns = #{firstDns},</if>
|
||||
<if test="nextDns != null and nextDns != ''">next_dns = #{nextDns},</if>
|
||||
<if test="deviceSn != null">device_sn = #{deviceSn},</if>
|
||||
<if test="deviceName != null and deviceName != ''">device_name = #{deviceName},</if>
|
||||
<if test="deviceNum != null and deviceNum != ''">device_num = #{deviceNum},</if>
|
||||
<if test="deviceModel != null and deviceModel != ''">device_model = #{deviceModel},</if>
|
||||
<if test="deviceType != null">device_type = #{deviceType},</if>
|
||||
<if test="devicePwd != null">device_pwd = #{devicePwd},</if>
|
||||
<if test="deviceAddr != null">device_addr = #{deviceAddr},</if>
|
||||
<if test="deviceKey != null">device_key = #{deviceKey},</if>
|
||||
<if test="deviceParentId != null">device_parent_id = #{deviceParentId},</if>
|
||||
<if test="deviceParentType != null">device_parent_type = #{deviceParentType},</if>
|
||||
<if test="deviceServiceIp != null">device_service_ip = #{deviceServiceIp},</if>
|
||||
<if test="deviceServicePort != null">device_service_port = #{deviceServicePort},</if>
|
||||
<if test="ifQuotaLimit != null">if_quota_limit = #{ifQuotaLimit},</if>
|
||||
<if test="ifDiscount != null">if_discount = #{ifDiscount},</if>
|
||||
<if test="ifTimeLimit != null">if_time_limit = #{ifTimeLimit},</if>
|
||||
<if test="ifUseCallNum != null">if_use_call_num = #{ifUseCallNum},</if>
|
||||
<if test="ifEnable != null">if_enable = #{ifEnable},</if>
|
||||
<if test="imgUrl != null">img_url = #{imgUrl},</if>
|
||||
<if test="amountNotify != null">amount_notify = #{amountNotify},</if>
|
||||
<if test="bindingValidTime != null">binding_valid_time = #{bindingValidTime},</if>
|
||||
<if test="ordAutomaticPay != null">ord_automatic_pay = #{ordAutomaticPay},</if>
|
||||
<if test="ifOffLinePay != null">if_off_line_pay = #{ifOffLinePay},</if>
|
||||
<if test="alarmTime != null">alarm_time = #{alarmTime},</if>
|
||||
<if test="spoonWeight != null">spoon_weight = #{spoonWeight},</if>
|
||||
<if test="weightRemAlarm != null">weight_rem_alarm = #{weightRemAlarm},</if>
|
||||
<if test="heartBeatTime != null">heart_beat_time = #{heartBeatTime},</if>
|
||||
<if test="carouselTime != null">carousel_time = #{carouselTime},</if>
|
||||
<if test="titleSlogan != null">title_slogan = #{titleSlogan},</if>
|
||||
<if test="fontSize != null">font_size = #{fontSize},</if>
|
||||
<if test="imageMap != null">image_map = #{imageMap},</if>
|
||||
<if test="guiStyle != null">gui_style = #{guiStyle},</if>
|
||||
<if test="fontColor != null">font_color = #{fontColor},</if>
|
||||
<if test="lineNum != null">line_num = #{lineNum},</if>
|
||||
<if test="oncePayAmount != null">once_pay_amount = #{oncePayAmount},</if>
|
||||
<if test="dataStatus != null">data_status = #{dataStatus},</if>
|
||||
<if test="ordOpenLimit != null">ord_open_limit = #{ordOpenLimit},</if>
|
||||
<if test="detailNumLimit != null">detail_num_limit = #{detailNumLimit},</if>
|
||||
<if test="terminalSn != null">terminal_sn = #{terminalSn},</if>
|
||||
<if test="terminalKey != null">terminal_key = #{terminalKey},</if>
|
||||
<if test="priStatus != null">pri_status = #{priStatus},</if>
|
||||
<if test="priKey != null">pri_key = #{priKey},</if>
|
||||
<if test="gateDefaultAmount != null">gate_default_amount = #{gateDefaultAmount},</if>
|
||||
<if test="deviceState != null">device_state = #{deviceState},</if>
|
||||
<if test="deviceAgreement != null">device_agreement = #{deviceAgreement},</if>
|
||||
<if test="revision != null">revision = #{revision},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where device_id = #{deviceId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDeviceInfoByDeviceId" parameterType="Long">
|
||||
delete from device_info where device_id = #{deviceId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDeviceInfoByDeviceIds" parameterType="String">
|
||||
delete from device_info where device_id in
|
||||
<foreach item="deviceId" collection="array" open="(" separator="," close=")">
|
||||
#{deviceId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue