|
@@ -22,34 +22,25 @@
|
|
|
-->
|
|
-->
|
|
|
<insert id="saveTaskRunLog"
|
|
<insert id="saveTaskRunLog"
|
|
|
>
|
|
>
|
|
|
- <selectKey keyProperty="logid" resultType="long">
|
|
|
|
|
- <![CDATA[
|
|
|
|
|
- SELECT seq_cep_ftptasklog.NEXTVAL AS logid from dual
|
|
|
|
|
- ]]>
|
|
|
|
|
- </selectKey>
|
|
|
|
|
|
|
+
|
|
|
insert into
|
|
insert into
|
|
|
- hc_ftp_tasklog(logid,taskid,u_or_d,create_date,state,serverfilename,localfilename,filelength)
|
|
|
|
|
- values(#logid#,#taskid#,#uord#,sysdate,#state#,#serverfilename#,#localfilename#,#filelength#)
|
|
|
|
|
|
|
+ hc_ftp_tasklog(logid,taskid,u_or_d,state,serverfilename,localfilename,filelength)
|
|
|
|
|
+ values(#{logid},#{taskid},#{uord},#{state},#{serverfilename},#{localfilename},#{filelength})
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
<update id="updateTaskRunLog"
|
|
<update id="updateTaskRunLog"
|
|
|
>
|
|
>
|
|
|
- update hc_ftp_tasklog set update_date=sysdate
|
|
|
|
|
|
|
+ update hc_ftp_tasklog set update_date=SYSDATE()
|
|
|
<if test="state !=null and state != ''">,state = #{state}
|
|
<if test="state !=null and state != ''">,state = #{state}
|
|
|
</if>
|
|
</if>
|
|
|
- where logid=#logid#
|
|
|
|
|
|
|
+ where logid=#{logid}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="saveTaskRunDetailLog">
|
|
<insert id="saveTaskRunDetailLog">
|
|
|
- <selectKey keyProperty="id" resultType="long">
|
|
|
|
|
- <![CDATA[
|
|
|
|
|
- SELECT seq_cep_ftptasklogdetail.NEXTVAL AS id from dual
|
|
|
|
|
- ]]>
|
|
|
|
|
- </selectKey>
|
|
|
|
|
insert into
|
|
insert into
|
|
|
- hc_ftp_tasklog_detail(id,logid,taskid,create_date,state,tnum,begin,end,data,havedown,remark,SERVERFILENAME,LOCALFILENAME)
|
|
|
|
|
- values(#id#,#logid#,#taskid#,sysdate,#state#,#tnum#,#begin#,#end#,#data#,#havedown#,#remark#,#serverfilename#,#localfilename#)
|
|
|
|
|
|
|
+ hc_ftp_tasklog_detail(id,logid,taskid,state,tnum,begin,end,data,havedown,remark,SERVERFILENAME,LOCALFILENAME)
|
|
|
|
|
+ values(#{id},#{logid},#{taskid},#{state},#{tnum},#{begin},#{end},#{data},#{havedown},#{remark},#{serverfilename},#{localfilename})
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -233,7 +224,7 @@
|
|
|
<update id="updateFtpItemRunState" parameterType="Map">
|
|
<update id="updateFtpItemRunState" parameterType="Map">
|
|
|
update
|
|
update
|
|
|
hc_ftp_task sft
|
|
hc_ftp_task sft
|
|
|
- set update_date = sysdate,sft.run_state= #{runState}
|
|
|
|
|
|
|
+ set update_date = SYSDATE(),sft.run_state= #{runState}
|
|
|
where sft.run_state = #{oldRunState}
|
|
where sft.run_state = #{oldRunState}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
@@ -329,5 +320,4 @@
|
|
|
<if test="itemSpecCd != null and itemSpecCd !='' "> and a.item_spec_cd = #{itemSpecCd}
|
|
<if test="itemSpecCd != null and itemSpecCd !='' "> and a.item_spec_cd = #{itemSpecCd}
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
-
|
|
|
|
|
</mapper>
|
|
</mapper>
|