设备控制完善日志

master
lld 2026-02-01 01:48:01 +08:00
parent f6bf679a77
commit 2756492d89
2 changed files with 52 additions and 40 deletions

View File

@ -41,11 +41,11 @@ public class SysDevOperLog extends BaseEntity
/** 操作类型 */ /** 操作类型 */
@Excel(name = "操作类型") @Excel(name = "操作类型")
private int opType; private Integer opType;
/** 操作来源 */ /** 操作来源 */
@Excel(name = "操作来源") @Excel(name = "操作来源")
private int opSource; private Integer opSource;
/** 指令 */ /** 指令 */
@Excel(name = "指令") @Excel(name = "指令")
@ -53,7 +53,7 @@ public class SysDevOperLog extends BaseEntity
/** 是否成功获取锁 */ /** 是否成功获取锁 */
@Excel(name = "是否成功获取锁") @Excel(name = "是否成功获取锁")
private int lockAcquired; private Integer lockAcquired;
/** 锁持有者 */ /** 锁持有者 */
@Excel(name = "锁持有者") @Excel(name = "锁持有者")
@ -65,22 +65,22 @@ public class SysDevOperLog extends BaseEntity
/** 是否收到设备回执 */ /** 是否收到设备回执 */
@Excel(name = "是否收到设备回执") @Excel(name = "是否收到设备回执")
private int ackReceived; private Integer ackReceived;
/** 设备控制是否成功 */ /** 设备控制是否成功 */
@Excel(name = "设备控制是否成功") @Excel(name = "设备控制是否成功")
private int ackSuc; private Integer ackSuc;
/** 设备控制锁是否释放成功 */ /** 设备控制锁是否释放成功 */
@Excel(name = "设备控制锁是否释放成功") @Excel(name = "设备控制锁是否释放成功")
private int isLockSuc; private Integer isLockSuc;
/** 是否触发定时任务 */ /** 是否触发定时任务 */
@Excel(name = "是否触发定时任务") @Excel(name = "是否触发定时任务")
private int isTask; private Integer isTask;
@Excel(name = "大棚运行时间限位") @Excel(name = "大棚运行时间限位")
private int runTime; private Integer runTime;
/** 未触发原因 */ /** 未触发原因 */
@Excel(name = "未触发原因") @Excel(name = "未触发原因")
@ -92,7 +92,7 @@ public class SysDevOperLog extends BaseEntity
/** 自动关任务最终执行结果 */ /** 自动关任务最终执行结果 */
@Excel(name = "自动关任务最终执行结果") @Excel(name = "自动关任务最终执行结果")
private int execResult; private Integer execResult;
/** 未执行原因锁占用、无最新状态、JSON异常 */ /** 未执行原因锁占用、无最新状态、JSON异常 */
@Excel(name = "未执行原因", readConverterExp = "如=锁占用、无最新状态、JSON异常") @Excel(name = "未执行原因", readConverterExp = "如=锁占用、无最新状态、JSON异常")
@ -138,19 +138,19 @@ public class SysDevOperLog extends BaseEntity
this.funcCode = funcCode; this.funcCode = funcCode;
} }
public int getOpType() { public Integer getOpType() {
return opType; return opType;
} }
public void setOpType(int opType) { public void setOpType(Integer opType) {
this.opType = opType; this.opType = opType;
} }
public int getOpSource() { public Integer getOpSource() {
return opSource; return opSource;
} }
public void setOpSource(int opSource) { public void setOpSource(Integer opSource) {
this.opSource = opSource; this.opSource = opSource;
} }
@ -162,11 +162,11 @@ public class SysDevOperLog extends BaseEntity
this.payload = payload; this.payload = payload;
} }
public int getLockAcquired() { public Integer getLockAcquired() {
return lockAcquired; return lockAcquired;
} }
public void setLockAcquired(int lockAcquired) { public void setLockAcquired(Integer lockAcquired) {
this.lockAcquired = lockAcquired; this.lockAcquired = lockAcquired;
} }
@ -186,35 +186,35 @@ public class SysDevOperLog extends BaseEntity
this.taskStatus = taskStatus; this.taskStatus = taskStatus;
} }
public int getAckReceived() { public Integer getAckReceived() {
return ackReceived; return ackReceived;
} }
public void setAckReceived(int ackReceived) { public void setAckReceived(Integer ackReceived) {
this.ackReceived = ackReceived; this.ackReceived = ackReceived;
} }
public int getAckSuc() { public Integer getAckSuc() {
return ackSuc; return ackSuc;
} }
public void setAckSuc(int ackSuc) { public void setAckSuc(Integer ackSuc) {
this.ackSuc = ackSuc; this.ackSuc = ackSuc;
} }
public int getIsLockSuc() { public Integer getIsLockSuc() {
return isLockSuc; return isLockSuc;
} }
public void setIsLockSuc(int isLockSuc) { public void setIsLockSuc(Integer isLockSuc) {
this.isLockSuc = isLockSuc; this.isLockSuc = isLockSuc;
} }
public int getIsTask() { public Integer getIsTask() {
return isTask; return isTask;
} }
public void setIsTask(int isTask) { public void setIsTask(Integer isTask) {
this.isTask = isTask; this.isTask = isTask;
} }
@ -234,11 +234,11 @@ public class SysDevOperLog extends BaseEntity
this.ack = ack; this.ack = ack;
} }
public int getExecResult() { public Integer getExecResult() {
return execResult; return execResult;
} }
public void setExecResult(int execResult) { public void setExecResult(Integer execResult) {
this.execResult = execResult; this.execResult = execResult;
} }
@ -267,11 +267,11 @@ public class SysDevOperLog extends BaseEntity
this.version = version; this.version = version;
} }
public int getRunTime() { public Integer getRunTime() {
return runTime; return runTime;
} }
public void setRunTime(int runTime) { public void setRunTime(Integer runTime) {
this.runTime = runTime; this.runTime = runTime;
} }

View File

@ -40,9 +40,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectSysDevOperLogList" parameterType="SysDevOperLog" resultMap="SysDevOperLogResult"> <select id="selectSysDevOperLogList" parameterType="SysDevOperLog" resultMap="SysDevOperLogResult">
<include refid="selectSysDevOperLogVo"/> <include refid="selectSysDevOperLogVo"/>
<where> <where>
<if test="agriName != null and agriName != ''"> and agri_name like concat('%', #{agriName}, '%')</if>
<if test="imei != null and imei != ''"> and imei like concat('%', #{imei}, '%')</if>
<if test="funcCode != null and funcCode != ''"> and func_code = #{funcCode}</if>
<if test="opType != null "> and op_type = #{opType}</if>
<if test="opSource != null "> and op_source = #{opSource}</if>
<if test="lockAcquired != null "> and lock_acquired = #{lockAcquired}</if>
<if test="ackReceived != null "> and ack_received = #{ackReceived}</if>
<if test="ackSuc != null "> and ack_suc = #{ackSuc}</if>
<if test="isLockSuc != null "> and is_lock_suc = #{isLockSuc}</if>
<if test="isTask != null "> and is_task = #{isTask}</if>
<if test="execResult != null "> and exec_result = #{execResult}</if>
</where> </where>
</select> </select>
<select id="selectSysDevOperLogById" parameterType="Long" resultMap="SysDevOperLogResult"> <select id="selectSysDevOperLogById" parameterType="Long" resultMap="SysDevOperLogResult">
<include refid="selectSysDevOperLogVo"/> <include refid="selectSysDevOperLogVo"/>
where id = #{id} where id = #{id}