ID,APP_NAME, HEATH_URL,HEATH_STATUS,CREATE_TIME,RES_TIMES,ACTIVE,RES_KEYWORD,RES_NO_KEYWORD,METHOD,POST_STR,HEADER_JSON,ACCOUNT
= #{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 HEATH_MONITOR
WHERE ID = #{id}
DELETE FROM
HEATH_MONITOR
WHERE ID IN
#{item}
INSERT INTO HEATH_MONITOR
ID,
APP_NAME,
HEATH_URL,
HEATH_STATUS,
RES_TIMES,
ACTIVE,
RES_KEYWORD,
RES_NO_KEYWORD,
METHOD,
POST_STR,
HEADER_JSON,
ACCOUNT,
CREATE_TIME
#{id},
#{appName},
#{heathUrl},
#{heathStatus},
#{resTimes},
#{active},
#{resKeyword},
#{resNoKeyword},
#{method},
#{postStr},
#{headerJson},
#{account},
#{createTime}
begin
INSERT INTO HEATH_MONITOR (ID,APP_NAME,HEATH_URL,HEATH_STATUS,CREATE_TIME,RES_TIMES,ACTIVE,RES_KEYWORD,RES_NO_KEYWORD,METHOD,POST_STR,HEADER_JSON,ACCOUNT) VALUES
(#{item.id},#{item.appName},#{item.heathUrl},#{item.heathStatus},#{item.createTime},#{item.resTimes},#{item.active},#{item.resKeyword},#{resNoKeyword},#{item.method},#{item.postStr},#{item.headerJson},#{item.account});
end;
INSERT INTO HEATH_MONITOR (ID,APP_NAME,HEATH_URL,HEATH_STATUS,CREATE_TIME,RES_TIMES,ACTIVE,RES_KEYWORD,RES_NO_KEYWORD,METHOD,POST_STR,HEADER_JSON,ACCOUNT) VALUES
(#{item.id},#{item.appName},#{item.heathUrl},#{item.heathStatus},#{item.createTime},#{item.resTimes},#{item.active},#{item.resKeyword},#{resNoKeyword},#{item.method},#{item.postStr},#{item.headerJson},#{item.account})
begin
UPDATE HEATH_MONITOR
APP_NAME = #{item.appName},
HEATH_URL= #{item.heathUrl},
HEATH_STATUS= #{item.heathStatus},
RES_TIMES= #{item.resTimes},
ACTIVE= #{item.active},
RES_KEYWORD= #{item.resKeyword},
RES_NO_KEYWORD= #{item.resNoKeyword},
METHOD= #{item.method},
POST_STR= #{item.postStr},
HEADER_JSON= #{item.headerJson},
CREATE_TIME= #{item.createTime},
WHERE ID = #{item.id};
end;
UPDATE HEATH_MONITOR
APP_NAME = #{appName},
HEATH_URL = #{heathUrl},
HEATH_STATUS = #{heathStatus},
RES_TIMES = #{resTimes},
ACTIVE = #{active},
RES_KEYWORD = #{resKeyword},
RES_NO_KEYWORD = #{resNoKeyword},
METHOD = #{method},
POST_STR = #{postStr},
HEADER_JSON = #{headerJson},
CREATE_TIME = #{createTime}
WHERE ID = #{id}