REM:
1. taskinfo 表增加相关字段
This commit is contained in:
huangxin 2020-08-19 10:30:46 +08:00
parent 34d7e9af73
commit f001a397dd
2 changed files with 22 additions and 14 deletions

View File

@ -16,8 +16,6 @@ import java.io.Serializable;
/** /**
* The type Task info. * The type Task info.
*
* @author <huangxin@cmhi.chinamoblie.com>
*/ */
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@ -48,8 +46,8 @@ public class TaskInfo implements Serializable {
*/ */
private Long deviceId; private Long deviceId;
/** /**
* The Begin time. * The Begin time.
*/ */
private String beginTime; private String beginTime;
/** /**
* The End time. * The End time.
@ -60,13 +58,21 @@ public class TaskInfo implements Serializable {
*/ */
private Long taskAttackType; private Long taskAttackType;
/** /**
* The Exec attack type. * The Exec attack type in.
*/ */
private Long execAttackType; private Long execAttackTypeIn;
/** /**
* The Attack type status. * The Attack type status in.
*/ */
private Long attackTypeStatus; private Long attackTypeStatusIn;
/**
* The Exec attack type out.
*/
private Long execAttackTypeOut;
/**
* The Attack type status out.
*/
private Long attackTypeStatusOut;
/** /**
* The Extern id. * The Extern id.
*/ */

View File

@ -1,20 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dispose.mapper.TaskInfoMapper"> <mapper namespace="com.dispose.mapper.TaskInfoMapper">
<resultMap id="dispose_task" type="com.dispose.pojo.entity.TaskInfo"> <resultMap id="task_info" type="com.dispose.pojo.entity.TaskInfo">
<id column="id" property="id"/> <id column="id" property="id"/>
<result column="taskId" property="taskId"/> <result column="taskId" property="taskId"/>
<result column="deviceId" property="deviceId"/> <result column="deviceId" property="deviceId"/>
<result column="beginTime" property="beginTime"/> <result column="beginTime" property="beginTime"/>
<result column="endTime" property="endTime"/> <result column="endTime" property="endTime"/>
<result column="taskAttackType" property="execAttackType"/> <result column="taskAttackType" property="taskAttackType"/>
<result column="execAttackType" property="execAttackType"/> <result column="execAttackTypeIn" property="execAttackTypeIn"/>
<result column="attackTypeStatus" property="attackTypeStatus"/> <result column="attackTypeStatusIn" property="attackTypeStatusIn"/>
<result column="execAttackTypeOut" property="execAttackTypeOut"/>
<result column="attackTypeStatusOut" property="attackTypeStatusOut"/>
<result column="externId" property="externId"/> <result column="externId" property="externId"/>
<result column="status" property="status"/> <result column="status" property="status"/>
</resultMap> </resultMap>
<select id="selectAll" resultMap="dispose_task"> <select id="selectAll" resultMap="task_info">
SELECT * SELECT *
FROM task_info FROM task_info
</select> </select>
@ -34,7 +36,7 @@
VALUES (#{taskId}, #{deviceId}, #{taskAttackType}) VALUES (#{taskId}, #{deviceId}, #{taskAttackType})
</insert> </insert>
<select id="getTaskInfoByTaskId" resultMap="dispose_task"> <select id="getTaskInfoByTaskId" resultMap="task_info">
SELECT * SELECT *
FROM task_info FROM task_info
WHERE taskId = #{taskId, jdbcType=INTEGER} WHERE taskId = #{taskId, jdbcType=INTEGER}