ID,HOST_NAME, REMARK,CREATE_TIME,RES_TIMES,ACTIVE,GROUP_ID,ACCOUNT
#{resTimesGt} ]]>
= #{startTime} and CREATE_TIME <=#{endTime}]]>
= cast(#{startTime} as timestamp) and CREATE_TIME <= cast(#{endTime} as timestamp)]]>
= to_date(#{startTime},'yyyy-MM-dd hh24:mi:ss') and CREATE_TIME <= to_date(#{endTime},'yyyy-MM-dd hh24:mi:ss')]]>
#{item}
DELETE FROM DCE_INFO
WHERE ID = #{id}
DELETE FROM
DCE_INFO
WHERE ID IN
#{item}
INSERT INTO DCE_INFO
ID,HOST_NAME,REMARK,RES_TIMES,ACTIVE,GROUP_ID,ACCOUNT,CREATE_TIME#{id},#{hostname},#{remark},#{resTimes},#{active},#{groupId},#{account},#{createTime}
begin
INSERT INTO DCE_INFO (ID,HOST_NAME,REMARK,CREATE_TIME,RES_TIMES,ACTIVE,GROUP_ID,ACCOUNT) VALUES
(#{item.id},#{item.hostname},#{item.remark},#{item.createTime},#{item.resTimes},#{item.active},#{item.groupId},#{item.account});
end;
INSERT INTO DCE_INFO (ID,HOST_NAME,REMARK,CREATE_TIME,RES_TIMES,ACTIVE,GROUP_ID,ACCOUNT) VALUES
(#{item.id},#{item.hostname},#{item.remark},#{item.createTime},#{item.resTimes},#{item.active},#{item.groupId},#{item.account})
begin
UPDATE DCE_INFO
HOST_NAME = #{item.hostname},
REMARK= #{item.remark},
RES_TIMES= #{item.resTimes},
ACTIVE= #{item.active},
GROUP_ID= #{item.groupId},
ACCOUNT= #{item.account},
CREATE_TIME= #{item.createTime},
WHERE ID = #{item.id};
end;
UPDATE DCE_INFO
HOST_NAME = #{hostname},
REMARK = #{remark},
RES_TIMES = #{resTimes},
ACTIVE = #{active},
GROUP_ID = #{groupId},
ACCOUNT = #{account},
CREATE_TIME = #{createTime}
WHERE ID = #{id}