parent
34d7e9af73
commit
f001a397dd
|
@ -16,8 +16,6 @@ import java.io.Serializable;
|
|||
|
||||
/**
|
||||
* The type Task info.
|
||||
*
|
||||
* @author <huangxin@cmhi.chinamoblie.com>
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
|
@ -48,8 +46,8 @@ public class TaskInfo implements Serializable {
|
|||
*/
|
||||
private Long deviceId;
|
||||
/**
|
||||
* The Begin time.
|
||||
*/
|
||||
* The Begin time.
|
||||
*/
|
||||
private String beginTime;
|
||||
/**
|
||||
* The End time.
|
||||
|
@ -60,13 +58,21 @@ public class TaskInfo implements Serializable {
|
|||
*/
|
||||
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.
|
||||
*/
|
||||
|
|
|
@ -1,20 +1,22 @@
|
|||
<?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.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"/>
|
||||
<result column="taskId" property="taskId"/>
|
||||
<result column="deviceId" property="deviceId"/>
|
||||
<result column="beginTime" property="beginTime"/>
|
||||
<result column="endTime" property="endTime"/>
|
||||
<result column="taskAttackType" property="execAttackType"/>
|
||||
<result column="execAttackType" property="execAttackType"/>
|
||||
<result column="attackTypeStatus" property="attackTypeStatus"/>
|
||||
<result column="taskAttackType" property="taskAttackType"/>
|
||||
<result column="execAttackTypeIn" property="execAttackTypeIn"/>
|
||||
<result column="attackTypeStatusIn" property="attackTypeStatusIn"/>
|
||||
<result column="execAttackTypeOut" property="execAttackTypeOut"/>
|
||||
<result column="attackTypeStatusOut" property="attackTypeStatusOut"/>
|
||||
<result column="externId" property="externId"/>
|
||||
<result column="status" property="status"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectAll" resultMap="dispose_task">
|
||||
<select id="selectAll" resultMap="task_info">
|
||||
SELECT *
|
||||
FROM task_info
|
||||
</select>
|
||||
|
@ -34,7 +36,7 @@
|
|||
VALUES (#{taskId}, #{deviceId}, #{taskAttackType})
|
||||
</insert>
|
||||
|
||||
<select id="getTaskInfoByTaskId" resultMap="dispose_task">
|
||||
<select id="getTaskInfoByTaskId" resultMap="task_info">
|
||||
SELECT *
|
||||
FROM task_info
|
||||
WHERE taskId = #{taskId, jdbcType=INTEGER}
|
||||
|
|
Loading…
Reference in New Issue