暂时提交
parent
6cd5788d15
commit
7498db935f
|
|
@ -0,0 +1,104 @@
|
|||
package com.agri.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.agri.common.annotation.Log;
|
||||
import com.agri.common.core.controller.BaseController;
|
||||
import com.agri.common.core.domain.AjaxResult;
|
||||
import com.agri.common.enums.BusinessType;
|
||||
import com.agri.system.domain.SysImeiAutoLog;
|
||||
import com.agri.system.service.ISysImeiAutoLogService;
|
||||
import com.agri.common.utils.poi.ExcelUtil;
|
||||
import com.agri.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 自动模式日志Controller
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-03-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/warn/autolog")
|
||||
public class SysImeiAutoLogController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISysImeiAutoLogService sysImeiAutoLogService;
|
||||
|
||||
/**
|
||||
* 查询自动模式日志列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('warn:autolog:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysImeiAutoLog sysImeiAutoLog)
|
||||
{
|
||||
startPage();
|
||||
List<SysImeiAutoLog> list = sysImeiAutoLogService.selectSysImeiAutoLogList(sysImeiAutoLog);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出自动模式日志列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('warn:autolog:export')")
|
||||
@Log(title = "自动模式日志", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SysImeiAutoLog sysImeiAutoLog)
|
||||
{
|
||||
List<SysImeiAutoLog> list = sysImeiAutoLogService.selectSysImeiAutoLogList(sysImeiAutoLog);
|
||||
ExcelUtil<SysImeiAutoLog> util = new ExcelUtil<SysImeiAutoLog>(SysImeiAutoLog.class);
|
||||
util.exportExcel(response, list, "自动模式日志数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取自动模式日志详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('warn:autolog:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(sysImeiAutoLogService.selectSysImeiAutoLogById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增自动模式日志
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('warn:autolog:add')")
|
||||
@Log(title = "自动模式日志", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SysImeiAutoLog sysImeiAutoLog)
|
||||
{
|
||||
return toAjax(sysImeiAutoLogService.insertSysImeiAutoLog(sysImeiAutoLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改自动模式日志
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('warn:autolog:edit')")
|
||||
@Log(title = "自动模式日志", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SysImeiAutoLog sysImeiAutoLog)
|
||||
{
|
||||
return toAjax(sysImeiAutoLogService.updateSysImeiAutoLog(sysImeiAutoLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除自动模式日志
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('warn:autolog:remove')")
|
||||
@Log(title = "自动模式日志", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(sysImeiAutoLogService.deleteSysImeiAutoLogByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
package com.agri.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.agri.common.annotation.Log;
|
||||
import com.agri.common.core.controller.BaseController;
|
||||
import com.agri.common.core.domain.AjaxResult;
|
||||
import com.agri.common.enums.BusinessType;
|
||||
import com.agri.system.domain.SysMessage;
|
||||
import com.agri.system.service.ISysMessageService;
|
||||
import com.agri.common.utils.poi.ExcelUtil;
|
||||
import com.agri.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 系统消息中心Controller
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-03-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/warn/message")
|
||||
public class SysMessageController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISysMessageService sysMessageService;
|
||||
|
||||
/**
|
||||
* 查询系统消息中心列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('warn:message:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysMessage sysMessage)
|
||||
{
|
||||
startPage();
|
||||
List<SysMessage> list = sysMessageService.selectSysMessageList(sysMessage);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出系统消息中心列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('warn:message:export')")
|
||||
@Log(title = "系统消息中心", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SysMessage sysMessage)
|
||||
{
|
||||
List<SysMessage> list = sysMessageService.selectSysMessageList(sysMessage);
|
||||
ExcelUtil<SysMessage> util = new ExcelUtil<SysMessage>(SysMessage.class);
|
||||
util.exportExcel(response, list, "系统消息中心数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取系统消息中心详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('warn:message:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(sysMessageService.selectSysMessageById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增系统消息中心
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('warn:message:add')")
|
||||
@Log(title = "系统消息中心", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SysMessage sysMessage)
|
||||
{
|
||||
return toAjax(sysMessageService.insertSysMessage(sysMessage));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改系统消息中心
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('warn:message:edit')")
|
||||
@Log(title = "系统消息中心", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SysMessage sysMessage)
|
||||
{
|
||||
return toAjax(sysMessageService.updateSysMessage(sysMessage));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除系统消息中心
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('warn:message:remove')")
|
||||
@Log(title = "系统消息中心", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(sysMessageService.deleteSysMessageByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,198 @@
|
|||
package com.agri.system.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.agri.common.annotation.Excel;
|
||||
import com.agri.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 自动模式日志对象 sys_imei_auto_log
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-03-29
|
||||
*/
|
||||
@TableName("sys_imei_auto_log")
|
||||
public class SysImeiAutoLog extends BaseEntity
|
||||
{
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 设备IMEI */
|
||||
@Excel(name = "设备IMEI")
|
||||
private String imei;
|
||||
|
||||
/** 卷膜 */
|
||||
@Excel(name = "卷膜")
|
||||
private String rollFilm;
|
||||
|
||||
/** 监控时间段 */
|
||||
@Excel(name = "监控时间段")
|
||||
private String monitorPeriod;
|
||||
|
||||
/** 当前温度 */
|
||||
@Excel(name = "当前温度")
|
||||
private BigDecimal currentTemp;
|
||||
|
||||
/** 参考温度 */
|
||||
@Excel(name = "参考温度")
|
||||
private BigDecimal refTemp;
|
||||
|
||||
/** 适宜温度 */
|
||||
@Excel(name = "适宜温度")
|
||||
private String suitableTemp;
|
||||
|
||||
/** 运行风口 */
|
||||
@Excel(name = "运行风口")
|
||||
private String fanStatus;
|
||||
|
||||
/** 是否最后一条 0否1是 */
|
||||
@Excel(name = "是否最后一条 0否1是")
|
||||
private Long isLast;
|
||||
|
||||
/** 执行指令 */
|
||||
@Excel(name = "执行指令")
|
||||
private String execCmd;
|
||||
|
||||
/** 操作日志ID */
|
||||
@Excel(name = "操作日志ID")
|
||||
private Long logId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setImei(String imei)
|
||||
{
|
||||
this.imei = imei;
|
||||
}
|
||||
|
||||
public String getImei()
|
||||
{
|
||||
return imei;
|
||||
}
|
||||
|
||||
public void setRollFilm(String rollFilm)
|
||||
{
|
||||
this.rollFilm = rollFilm;
|
||||
}
|
||||
|
||||
public String getRollFilm()
|
||||
{
|
||||
return rollFilm;
|
||||
}
|
||||
|
||||
public void setMonitorPeriod(String monitorPeriod)
|
||||
{
|
||||
this.monitorPeriod = monitorPeriod;
|
||||
}
|
||||
|
||||
public String getMonitorPeriod()
|
||||
{
|
||||
return monitorPeriod;
|
||||
}
|
||||
|
||||
public void setCurrentTemp(BigDecimal currentTemp)
|
||||
{
|
||||
this.currentTemp = currentTemp;
|
||||
}
|
||||
|
||||
public BigDecimal getCurrentTemp()
|
||||
{
|
||||
return currentTemp;
|
||||
}
|
||||
|
||||
public void setRefTemp(BigDecimal refTemp)
|
||||
{
|
||||
this.refTemp = refTemp;
|
||||
}
|
||||
|
||||
public BigDecimal getRefTemp()
|
||||
{
|
||||
return refTemp;
|
||||
}
|
||||
|
||||
public void setSuitableTemp(String suitableTemp)
|
||||
{
|
||||
this.suitableTemp = suitableTemp;
|
||||
}
|
||||
|
||||
public String getSuitableTemp()
|
||||
{
|
||||
return suitableTemp;
|
||||
}
|
||||
|
||||
public void setFanStatus(String fanStatus)
|
||||
{
|
||||
this.fanStatus = fanStatus;
|
||||
}
|
||||
|
||||
public String getFanStatus()
|
||||
{
|
||||
return fanStatus;
|
||||
}
|
||||
|
||||
public void setIsLast(Long isLast)
|
||||
{
|
||||
this.isLast = isLast;
|
||||
}
|
||||
|
||||
public Long getIsLast()
|
||||
{
|
||||
return isLast;
|
||||
}
|
||||
|
||||
public void setExecCmd(String execCmd)
|
||||
{
|
||||
this.execCmd = execCmd;
|
||||
}
|
||||
|
||||
public String getExecCmd()
|
||||
{
|
||||
return execCmd;
|
||||
}
|
||||
|
||||
public void setLogId(Long logId)
|
||||
{
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public Long getLogId()
|
||||
{
|
||||
return logId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("imei", getImei())
|
||||
.append("rollFilm", getRollFilm())
|
||||
.append("monitorPeriod", getMonitorPeriod())
|
||||
.append("currentTemp", getCurrentTemp())
|
||||
.append("refTemp", getRefTemp())
|
||||
.append("suitableTemp", getSuitableTemp())
|
||||
.append("fanStatus", getFanStatus())
|
||||
.append("isLast", getIsLast())
|
||||
.append("execCmd", getExecCmd())
|
||||
.append("logId", getLogId())
|
||||
.append("remark", getRemark())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,167 @@
|
|||
package com.agri.system.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.agri.common.annotation.Excel;
|
||||
import com.agri.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 系统消息中心对象 sys_message
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-03-26
|
||||
*/
|
||||
@TableName("sys_message")
|
||||
public class SysMessage extends BaseEntity
|
||||
{
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 消息主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 接收人:all=全体用户,其他=用户ID */
|
||||
@Excel(name = "接收人:all=全体用户,其他=用户ID")
|
||||
private String receiver;
|
||||
|
||||
/** 消息标题 */
|
||||
@Excel(name = "消息标题")
|
||||
private String title;
|
||||
|
||||
/** 消息类型:activity-活动 notice-通知 interact-互动消息 */
|
||||
@Excel(name = "消息类型:activity-活动 notice-通知 interact-互动消息")
|
||||
private String msgType;
|
||||
|
||||
/** 阅读状态:0-未读 1-已读 */
|
||||
@Excel(name = "阅读状态:0-未读 1-已读")
|
||||
private Long readStatus;
|
||||
|
||||
/** 消息内容(普通文本) */
|
||||
@Excel(name = "消息内容", readConverterExp = "普=通文本")
|
||||
private String content;
|
||||
|
||||
/** 富文本内容 */
|
||||
@Excel(name = "富文本内容")
|
||||
private String richContent;
|
||||
|
||||
/** 图片地址 */
|
||||
@Excel(name = "图片地址")
|
||||
private String imgUrl;
|
||||
|
||||
/** 跳转链接地址 */
|
||||
@Excel(name = "跳转链接地址")
|
||||
private String linkUrl;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setReceiver(String receiver)
|
||||
{
|
||||
this.receiver = receiver;
|
||||
}
|
||||
|
||||
public String getReceiver()
|
||||
{
|
||||
return receiver;
|
||||
}
|
||||
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setMsgType(String msgType)
|
||||
{
|
||||
this.msgType = msgType;
|
||||
}
|
||||
|
||||
public String getMsgType()
|
||||
{
|
||||
return msgType;
|
||||
}
|
||||
|
||||
public void setReadStatus(Long readStatus)
|
||||
{
|
||||
this.readStatus = readStatus;
|
||||
}
|
||||
|
||||
public Long getReadStatus()
|
||||
{
|
||||
return readStatus;
|
||||
}
|
||||
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setRichContent(String richContent)
|
||||
{
|
||||
this.richContent = richContent;
|
||||
}
|
||||
|
||||
public String getRichContent()
|
||||
{
|
||||
return richContent;
|
||||
}
|
||||
|
||||
public void setImgUrl(String imgUrl)
|
||||
{
|
||||
this.imgUrl = imgUrl;
|
||||
}
|
||||
|
||||
public String getImgUrl()
|
||||
{
|
||||
return imgUrl;
|
||||
}
|
||||
|
||||
public void setLinkUrl(String linkUrl)
|
||||
{
|
||||
this.linkUrl = linkUrl;
|
||||
}
|
||||
|
||||
public String getLinkUrl()
|
||||
{
|
||||
return linkUrl;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("receiver", getReceiver())
|
||||
.append("title", getTitle())
|
||||
.append("msgType", getMsgType())
|
||||
.append("readStatus", getReadStatus())
|
||||
.append("content", getContent())
|
||||
.append("richContent", getRichContent())
|
||||
.append("imgUrl", getImgUrl())
|
||||
.append("linkUrl", getLinkUrl())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.agri.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.agri.system.domain.SysImeiAutoLog;
|
||||
|
||||
/**
|
||||
* 自动模式日志Mapper接口
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-03-29
|
||||
*/
|
||||
public interface SysImeiAutoLogMapper extends BaseMapper<SysImeiAutoLog>
|
||||
{
|
||||
/**
|
||||
* 查询自动模式日志
|
||||
*
|
||||
* @param id 自动模式日志主键
|
||||
* @return 自动模式日志
|
||||
*/
|
||||
public SysImeiAutoLog selectSysImeiAutoLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询自动模式日志列表
|
||||
*
|
||||
* @param sysImeiAutoLog 自动模式日志
|
||||
* @return 自动模式日志集合
|
||||
*/
|
||||
public List<SysImeiAutoLog> selectSysImeiAutoLogList(SysImeiAutoLog sysImeiAutoLog);
|
||||
|
||||
/**
|
||||
* 新增自动模式日志
|
||||
*
|
||||
* @param sysImeiAutoLog 自动模式日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysImeiAutoLog(SysImeiAutoLog sysImeiAutoLog);
|
||||
|
||||
/**
|
||||
* 修改自动模式日志
|
||||
*
|
||||
* @param sysImeiAutoLog 自动模式日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysImeiAutoLog(SysImeiAutoLog sysImeiAutoLog);
|
||||
|
||||
/**
|
||||
* 删除自动模式日志
|
||||
*
|
||||
* @param id 自动模式日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysImeiAutoLogById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除自动模式日志
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysImeiAutoLogByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.agri.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.agri.system.domain.SysMessage;
|
||||
|
||||
/**
|
||||
* 系统消息中心Mapper接口
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-03-26
|
||||
*/
|
||||
public interface SysMessageMapper extends BaseMapper<SysMessage>
|
||||
{
|
||||
/**
|
||||
* 查询系统消息中心
|
||||
*
|
||||
* @param id 系统消息中心主键
|
||||
* @return 系统消息中心
|
||||
*/
|
||||
public SysMessage selectSysMessageById(Long id);
|
||||
|
||||
/**
|
||||
* 查询系统消息中心列表
|
||||
*
|
||||
* @param sysMessage 系统消息中心
|
||||
* @return 系统消息中心集合
|
||||
*/
|
||||
public List<SysMessage> selectSysMessageList(SysMessage sysMessage);
|
||||
|
||||
/**
|
||||
* 新增系统消息中心
|
||||
*
|
||||
* @param sysMessage 系统消息中心
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysMessage(SysMessage sysMessage);
|
||||
|
||||
/**
|
||||
* 修改系统消息中心
|
||||
*
|
||||
* @param sysMessage 系统消息中心
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysMessage(SysMessage sysMessage);
|
||||
|
||||
/**
|
||||
* 删除系统消息中心
|
||||
*
|
||||
* @param id 系统消息中心主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysMessageById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除系统消息中心
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysMessageByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.agri.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.agri.system.domain.SysImeiAutoLog;
|
||||
|
||||
/**
|
||||
* 自动模式日志Service接口
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-03-29
|
||||
*/
|
||||
public interface ISysImeiAutoLogService extends IService<SysImeiAutoLog> {
|
||||
/**
|
||||
* 查询自动模式日志
|
||||
*
|
||||
* @param id 自动模式日志主键
|
||||
* @return 自动模式日志
|
||||
*/
|
||||
public SysImeiAutoLog selectSysImeiAutoLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询自动模式日志列表
|
||||
*
|
||||
* @param sysImeiAutoLog 自动模式日志
|
||||
* @return 自动模式日志集合
|
||||
*/
|
||||
public List<SysImeiAutoLog> selectSysImeiAutoLogList(SysImeiAutoLog sysImeiAutoLog);
|
||||
|
||||
/**
|
||||
* 新增自动模式日志
|
||||
*
|
||||
* @param sysImeiAutoLog 自动模式日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysImeiAutoLog(SysImeiAutoLog sysImeiAutoLog);
|
||||
|
||||
/**
|
||||
* 修改自动模式日志
|
||||
*
|
||||
* @param sysImeiAutoLog 自动模式日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysImeiAutoLog(SysImeiAutoLog sysImeiAutoLog);
|
||||
|
||||
/**
|
||||
* 批量删除自动模式日志
|
||||
*
|
||||
* @param ids 需要删除的自动模式日志主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysImeiAutoLogByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除自动模式日志信息
|
||||
*
|
||||
* @param id 自动模式日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysImeiAutoLogById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.agri.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.agri.system.domain.SysMessage;
|
||||
|
||||
/**
|
||||
* 系统消息中心Service接口
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-03-26
|
||||
*/
|
||||
public interface ISysMessageService extends IService<SysMessage> {
|
||||
/**
|
||||
* 查询系统消息中心
|
||||
*
|
||||
* @param id 系统消息中心主键
|
||||
* @return 系统消息中心
|
||||
*/
|
||||
public SysMessage selectSysMessageById(Long id);
|
||||
|
||||
/**
|
||||
* 查询系统消息中心列表
|
||||
*
|
||||
* @param sysMessage 系统消息中心
|
||||
* @return 系统消息中心集合
|
||||
*/
|
||||
public List<SysMessage> selectSysMessageList(SysMessage sysMessage);
|
||||
|
||||
/**
|
||||
* 新增系统消息中心
|
||||
*
|
||||
* @param sysMessage 系统消息中心
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSysMessage(SysMessage sysMessage);
|
||||
|
||||
/**
|
||||
* 修改系统消息中心
|
||||
*
|
||||
* @param sysMessage 系统消息中心
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSysMessage(SysMessage sysMessage);
|
||||
|
||||
/**
|
||||
* 批量删除系统消息中心
|
||||
*
|
||||
* @param ids 需要删除的系统消息中心主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysMessageByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除系统消息中心信息
|
||||
*
|
||||
* @param id 系统消息中心主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSysMessageById(Long id);
|
||||
}
|
||||
|
|
@ -122,6 +122,7 @@ public class SysDevOperLogServiceImpl extends ServiceImpl<SysDevOperLogMapper, S
|
|||
.in("imei", imeiList) // 过滤固定IMEI列表(命中idx_imei_time/idx_func的imei前缀)
|
||||
.ge("create_time", todayStart) // 今日0点后(命中idx_imei_time的create_time)
|
||||
.lt("create_time", tomorrowStart) // 明日0点前(避免23:59:59.999漏查)
|
||||
.eq("op_type", 1)
|
||||
.notIn("func_code","jbk1","jbg1")
|
||||
.groupBy("imei", "func_code"); // 按IMEI+func_code分组(利用idx_func索引)
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,94 @@
|
|||
package com.agri.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.agri.common.utils.DateUtils;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.agri.system.mapper.SysImeiAutoLogMapper;
|
||||
import com.agri.system.domain.SysImeiAutoLog;
|
||||
import com.agri.system.service.ISysImeiAutoLogService;
|
||||
|
||||
/**
|
||||
* 自动模式日志Service业务层处理
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-03-29
|
||||
*/
|
||||
@Service
|
||||
public class SysImeiAutoLogServiceImpl extends ServiceImpl<SysImeiAutoLogMapper, SysImeiAutoLog> implements ISysImeiAutoLogService
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询自动模式日志
|
||||
*
|
||||
* @param id 自动模式日志主键
|
||||
* @return 自动模式日志
|
||||
*/
|
||||
@Override
|
||||
public SysImeiAutoLog selectSysImeiAutoLogById(Long id)
|
||||
{
|
||||
return baseMapper.selectSysImeiAutoLogById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询自动模式日志列表
|
||||
*
|
||||
* @param sysImeiAutoLog 自动模式日志
|
||||
* @return 自动模式日志
|
||||
*/
|
||||
@Override
|
||||
public List<SysImeiAutoLog> selectSysImeiAutoLogList(SysImeiAutoLog sysImeiAutoLog)
|
||||
{
|
||||
return baseMapper.selectSysImeiAutoLogList(sysImeiAutoLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增自动模式日志
|
||||
*
|
||||
* @param sysImeiAutoLog 自动模式日志
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSysImeiAutoLog(SysImeiAutoLog sysImeiAutoLog)
|
||||
{
|
||||
sysImeiAutoLog.setCreateTime(DateUtils.getNowDate());
|
||||
return baseMapper.insertSysImeiAutoLog(sysImeiAutoLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改自动模式日志
|
||||
*
|
||||
* @param sysImeiAutoLog 自动模式日志
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSysImeiAutoLog(SysImeiAutoLog sysImeiAutoLog)
|
||||
{
|
||||
sysImeiAutoLog.setUpdateTime(DateUtils.getNowDate());
|
||||
return baseMapper.updateSysImeiAutoLog(sysImeiAutoLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除自动模式日志
|
||||
*
|
||||
* @param ids 需要删除的自动模式日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysImeiAutoLogByIds(Long[] ids)
|
||||
{
|
||||
return baseMapper.deleteSysImeiAutoLogByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除自动模式日志信息
|
||||
*
|
||||
* @param id 自动模式日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysImeiAutoLogById(Long id)
|
||||
{
|
||||
return baseMapper.deleteSysImeiAutoLogById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
package com.agri.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.agri.common.utils.DateUtils;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.agri.system.mapper.SysMessageMapper;
|
||||
import com.agri.system.domain.SysMessage;
|
||||
import com.agri.system.service.ISysMessageService;
|
||||
|
||||
/**
|
||||
* 系统消息中心Service业务层处理
|
||||
*
|
||||
* @author lld
|
||||
* @date 2026-03-26
|
||||
*/
|
||||
@Service
|
||||
public class SysMessageServiceImpl extends ServiceImpl<SysMessageMapper, SysMessage> implements ISysMessageService
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询系统消息中心
|
||||
*
|
||||
* @param id 系统消息中心主键
|
||||
* @return 系统消息中心
|
||||
*/
|
||||
@Override
|
||||
public SysMessage selectSysMessageById(Long id)
|
||||
{
|
||||
return baseMapper.selectSysMessageById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询系统消息中心列表
|
||||
*
|
||||
* @param sysMessage 系统消息中心
|
||||
* @return 系统消息中心
|
||||
*/
|
||||
@Override
|
||||
public List<SysMessage> selectSysMessageList(SysMessage sysMessage)
|
||||
{
|
||||
return baseMapper.selectSysMessageList(sysMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增系统消息中心
|
||||
*
|
||||
* @param sysMessage 系统消息中心
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSysMessage(SysMessage sysMessage)
|
||||
{
|
||||
sysMessage.setCreateTime(DateUtils.getNowDate());
|
||||
return baseMapper.insertSysMessage(sysMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改系统消息中心
|
||||
*
|
||||
* @param sysMessage 系统消息中心
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSysMessage(SysMessage sysMessage)
|
||||
{
|
||||
sysMessage.setUpdateTime(DateUtils.getNowDate());
|
||||
return baseMapper.updateSysMessage(sysMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除系统消息中心
|
||||
*
|
||||
* @param ids 需要删除的系统消息中心主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysMessageByIds(Long[] ids)
|
||||
{
|
||||
return baseMapper.deleteSysMessageByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除系统消息中心信息
|
||||
*
|
||||
* @param id 系统消息中心主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSysMessageById(Long id)
|
||||
{
|
||||
return baseMapper.deleteSysMessageById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,113 @@
|
|||
<?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.agri.system.mapper.SysImeiAutoLogMapper">
|
||||
|
||||
<resultMap type="SysImeiAutoLog" id="SysImeiAutoLogResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="imei" column="imei" />
|
||||
<result property="rollFilm" column="roll_film" />
|
||||
<result property="monitorPeriod" column="monitor_period" />
|
||||
<result property="currentTemp" column="current_temp" />
|
||||
<result property="refTemp" column="ref_temp" />
|
||||
<result property="suitableTemp" column="suitable_temp" />
|
||||
<result property="fanStatus" column="fan_status" />
|
||||
<result property="isLast" column="is_last" />
|
||||
<result property="execCmd" column="exec_cmd" />
|
||||
<result property="logId" column="log_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysImeiAutoLogVo">
|
||||
select id, imei, roll_film, monitor_period, current_temp, ref_temp, suitable_temp, fan_status, is_last, exec_cmd, log_id, remark, create_time, create_by, update_time, update_by from sys_imei_auto_log
|
||||
</sql>
|
||||
|
||||
<select id="selectSysImeiAutoLogList" parameterType="SysImeiAutoLog" resultMap="SysImeiAutoLogResult">
|
||||
<include refid="selectSysImeiAutoLogVo"/>
|
||||
<where>
|
||||
<if test="imei != null and imei != ''"> and imei = #{imei}</if>
|
||||
<if test="rollFilm != null and rollFilm != ''"> and roll_film = #{rollFilm}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysImeiAutoLogById" parameterType="Long" resultMap="SysImeiAutoLogResult">
|
||||
<include refid="selectSysImeiAutoLogVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysImeiAutoLog" parameterType="SysImeiAutoLog" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into sys_imei_auto_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="imei != null and imei != ''">imei,</if>
|
||||
<if test="rollFilm != null and rollFilm != ''">roll_film,</if>
|
||||
<if test="monitorPeriod != null">monitor_period,</if>
|
||||
<if test="currentTemp != null">current_temp,</if>
|
||||
<if test="refTemp != null">ref_temp,</if>
|
||||
<if test="suitableTemp != null">suitable_temp,</if>
|
||||
<if test="fanStatus != null">fan_status,</if>
|
||||
<if test="isLast != null">is_last,</if>
|
||||
<if test="execCmd != null">exec_cmd,</if>
|
||||
<if test="logId != null">log_id,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
create_time,
|
||||
create_by,
|
||||
update_time,
|
||||
update_by,
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="imei != null and imei != ''">#{imei},</if>
|
||||
<if test="rollFilm != null and rollFilm != ''">#{rollFilm},</if>
|
||||
<if test="monitorPeriod != null">#{monitorPeriod},</if>
|
||||
<if test="currentTemp != null">#{currentTemp},</if>
|
||||
<if test="refTemp != null">#{refTemp},</if>
|
||||
<if test="suitableTemp != null">#{suitableTemp},</if>
|
||||
<if test="fanStatus != null">#{fanStatus},</if>
|
||||
<if test="isLast != null">#{isLast},</if>
|
||||
<if test="execCmd != null">#{execCmd},</if>
|
||||
<if test="logId != null">#{logId},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
#{createTime},
|
||||
#{createBy},
|
||||
#{updateTime},
|
||||
#{updateBy},
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysImeiAutoLog" parameterType="SysImeiAutoLog">
|
||||
update sys_imei_auto_log
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="imei != null and imei != ''">imei = #{imei},</if>
|
||||
<if test="rollFilm != null and rollFilm != ''">roll_film = #{rollFilm},</if>
|
||||
<if test="monitorPeriod != null">monitor_period = #{monitorPeriod},</if>
|
||||
<if test="currentTemp != null">current_temp = #{currentTemp},</if>
|
||||
<if test="refTemp != null">ref_temp = #{refTemp},</if>
|
||||
<if test="suitableTemp != null">suitable_temp = #{suitableTemp},</if>
|
||||
<if test="fanStatus != null">fan_status = #{fanStatus},</if>
|
||||
<if test="isLast != null">is_last = #{isLast},</if>
|
||||
<if test="execCmd != null">exec_cmd = #{execCmd},</if>
|
||||
<if test="logId != null">log_id = #{logId},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysImeiAutoLogById" parameterType="Long">
|
||||
delete from sys_imei_auto_log where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysImeiAutoLogByIds" parameterType="String">
|
||||
delete from sys_imei_auto_log where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
<?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.agri.system.mapper.SysMessageMapper">
|
||||
|
||||
<resultMap type="SysMessage" id="SysMessageResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="receiver" column="receiver" />
|
||||
<result property="title" column="title" />
|
||||
<result property="msgType" column="msg_type" />
|
||||
<result property="readStatus" column="read_status" />
|
||||
<result property="content" column="content" />
|
||||
<result property="richContent" column="rich_content" />
|
||||
<result property="imgUrl" column="img_url" />
|
||||
<result property="linkUrl" column="link_url" />
|
||||
<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="selectSysMessageVo">
|
||||
select id, receiver, title, msg_type, read_status, content, rich_content, img_url, link_url, create_by, create_time, update_by, update_time, remark from sys_message
|
||||
</sql>
|
||||
|
||||
<select id="selectSysMessageList" parameterType="SysMessage" resultMap="SysMessageResult">
|
||||
<include refid="selectSysMessageVo"/>
|
||||
<where>
|
||||
<if test="receiver != null and receiver != ''"> and receiver = #{receiver}</if>
|
||||
<if test="title != null and title != ''"> and title = #{title}</if>
|
||||
<if test="msgType != null and msgType != ''"> and msg_type = #{msgType}</if>
|
||||
<if test="readStatus != null "> and read_status = #{readStatus}</if>
|
||||
<if test="content != null and content != ''"> and content like concat('%', #{content}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysMessageById" parameterType="Long" resultMap="SysMessageResult">
|
||||
<include refid="selectSysMessageVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysMessage" parameterType="SysMessage" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into sys_message
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="receiver != null and receiver != ''">receiver,</if>
|
||||
<if test="title != null and title != ''">title,</if>
|
||||
<if test="msgType != null and msgType != ''">msg_type,</if>
|
||||
<if test="readStatus != null">read_status,</if>
|
||||
<if test="content != null">content,</if>
|
||||
<if test="richContent != null">rich_content,</if>
|
||||
<if test="imgUrl != null">img_url,</if>
|
||||
<if test="linkUrl != null">link_url,</if>
|
||||
create_by,
|
||||
create_time,
|
||||
update_by,
|
||||
update_time,
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="receiver != null and receiver != ''">#{receiver},</if>
|
||||
<if test="title != null and title != ''">#{title},</if>
|
||||
<if test="msgType != null and msgType != ''">#{msgType},</if>
|
||||
<if test="readStatus != null">#{readStatus},</if>
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="richContent != null">#{richContent},</if>
|
||||
<if test="imgUrl != null">#{imgUrl},</if>
|
||||
<if test="linkUrl != null">#{linkUrl},</if>
|
||||
#{createBy},
|
||||
#{createTime},
|
||||
#{updateBy},
|
||||
#{updateTime},
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysMessage" parameterType="SysMessage">
|
||||
update sys_message
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="receiver != null and receiver != ''">receiver = #{receiver},</if>
|
||||
<if test="title != null and title != ''">title = #{title},</if>
|
||||
<if test="msgType != null and msgType != ''">msg_type = #{msgType},</if>
|
||||
<if test="readStatus != null">read_status = #{readStatus},</if>
|
||||
<if test="content != null">content = #{content},</if>
|
||||
<if test="richContent != null">rich_content = #{richContent},</if>
|
||||
<if test="imgUrl != null">img_url = #{imgUrl},</if>
|
||||
<if test="linkUrl != null">link_url = #{linkUrl},</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="deleteSysMessageById" parameterType="Long">
|
||||
delete from sys_message where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysMessageByIds" parameterType="String">
|
||||
delete from sys_message where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue