Browse Source

调度记录加视频名称,大小

develop
王兴琳 4 months ago
parent
commit
1989acdbc9
  1. 135
      zc-business/src/main/java/com/zc/business/domain/DcEventProcess.java
  2. 8
      zc-business/src/main/resources/mapper/business/DcEventProcessMapper.xml

135
zc-business/src/main/java/com/zc/business/domain/DcEventProcess.java

@ -3,6 +3,9 @@ package com.zc.business.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
@ -19,6 +22,9 @@ import javax.validation.constraints.Size;
* @author ruoyi
* @date 2024-01-03
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DcEventProcess
{
private static final long serialVersionUID = 1L;
@ -83,131 +89,8 @@ public class DcEventProcess
@ApiModelProperty("内容类型")
@Excel(name = "${type}", readConverterExp = "$column.readConverterExp()")
private String type;
/*
@ApiModelProperty("上传文件")
private MultipartFile file;*/
@ApiModelProperty("其他")
@Excel(name = "${remark}", readConverterExp = "$column.readConverterExp()")
private String remark;
/* public MultipartFile getFile() {
return file;
}
public void setFile(MultipartFile file) {
this.file = file;
}*/
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setEventId(String eventId)
{
this.eventId = eventId;
}
public String getEventId()
{
return eventId;
}
public void setOperationTime(Date operationTime)
{
this.operationTime = operationTime;
}
public Date getOperationTime()
{
return operationTime;
}
public void setOperator(String operator)
{
this.operator = operator;
}
public String getOperator()
{
return operator;
}
public String getOperatorName() {
return operatorName;
}
public void setOperatorName(String operatorName) {
this.operatorName = operatorName;
}
public void setSource(Integer source)
{
this.source = source;
}
public Integer getSource()
{
return source;
}
public void setProcessType(Integer processType)
{
this.processType = processType;
}
public Integer getProcessType()
{
return processType;
}
public void setContext(String context)
{
this.context = context;
}
public String getContext()
{
return context;
}
public void setProcessId(Long processId)
{
this.processId = processId;
}
public Long getProcessId()
{
return processId;
}
public void setProcessName(String processName)
{
this.processName = processName;
}
public String getProcessName()
{
return processName;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("eventId", getEventId())
.append("operationTime", getOperationTime())
.append("operator", getOperator())
.append("source", getSource())
.append("processType", getProcessType())
.append("context", getContext())
.append("processId", getProcessId())
.append("processName", getProcessName())
.append("type", getType())
.toString();
}
}

8
zc-business/src/main/resources/mapper/business/DcEventProcessMapper.xml

@ -16,10 +16,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="processId" column="process_id" />
<result property="processName" column="process_name" />
<result property="type" column="type" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectDcEventProcessVo">
select id, event_id, operation_time, operator,operator_name, source, process_type, context, process_id, process_name, `type` from dc_event_process
select id, event_id, operation_time, operator,operator_name, source, process_type, context, process_id, process_name, `type` ,remark from dc_event_process
</sql>
<select id="selectDcEventProcessList" parameterType="DcEventProcess" resultMap="DcEventProcessResult">
@ -57,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="processId != null">process_id,</if>
<if test="processName != null">process_name,</if>
<if test="type != null">`type`,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@ -70,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="processId != null">#{processId},</if>
<if test="processName != null">#{processName},</if>
<if test="type != null">#{type},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
@ -88,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="item.processId != null">process_id,</if>
<if test="item.processName != null">process_name,</if>
<if test="item.type != null">`type`,</if>
<if test="item.remark != null">`remark`,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="item.id != null">#{item.id},</if>
@ -101,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="item.processId != null">#{item.processId},</if>
<if test="item.processName != null">#{item.processName},</if>
<if test="item.type != null">#{item.type},</if>
<if test="item.remark != null">#{item.remark},</if>
</trim>
</foreach>
</insert>
@ -118,6 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="type != null">`type` = #{type},</if>
<if test="processId != null">process_id = #{processId},</if>
<if test="processName != null">process_name = #{processName},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>

Loading…
Cancel
Save