提交 bf5ab9e3 作者: guofeng

调整定时任务

上级 6dfab0b2
...@@ -130,7 +130,7 @@ public class JobServiceImpl { ...@@ -130,7 +130,7 @@ public class JobServiceImpl {
selectAfkoNew(); selectAfkoNew();
selectAfpoNew(); selectAfpoNew();
selectAfvcNew(); selectAfvcNew();
selectBkpfNew();
selectAuspNew(); selectAuspNew();
selectAfruNew(); selectAfruNew();
selectTspatNew(); selectTspatNew();
...@@ -579,7 +579,7 @@ public class JobServiceImpl { ...@@ -579,7 +579,7 @@ public class JobServiceImpl {
} }
} }
private void selectBkpfNew() { public void selectBkpfNew() {
DefaultRedisScript<String> script = new DefaultRedisScript<String>(); DefaultRedisScript<String> script = new DefaultRedisScript<String>();
script.setResultType(String.class); script.setResultType(String.class);
script.setScriptSource(new ResourceScriptSource(new ClassPathResource("luascript/vbap4send.lua"))); script.setScriptSource(new ResourceScriptSource(new ClassPathResource("luascript/vbap4send.lua")));
......
...@@ -2,6 +2,7 @@ select count(1) from sapabap1.bkpf where aedat = '00000000' union all ...@@ -2,6 +2,7 @@ select count(1) from sapabap1.bkpf where aedat = '00000000' union all
select count(1) from sapabap1.bkpf where aedat != '00000000' union all select count(1) from sapabap1.bkpf where aedat != '00000000' union all
select count(1) from sapabap1.bkpf where aedat is null; select count(1) from sapabap1.bkpf where aedat is null;
select count(1) from sapabap1.bkpf where aedat = '20201121';
select top 20 "$rowid$" as rowids, select top 20 "$rowid$" as rowids,
...@@ -9,6 +10,5 @@ select top 20 "$rowid$" as rowids, ...@@ -9,6 +10,5 @@ select top 20 "$rowid$" as rowids,
case aedat when '00000000' then null else to_date(aedat) end as aedat, upddt, case aedat when '00000000' then null else to_date(aedat) end as aedat, upddt,
(to_date(cpudt)||' '||to_time(cputm)) as cpudt_cputm (to_date(cpudt)||' '||to_time(cputm)) as cpudt_cputm
from sapabap1.Bkpf from sapabap1.Bkpf
where mandt = '800' and bukrs = '1100' and belnr = '5100000028' and gjahr = '2020' where "$rowid$" > '4526721' and mandt = '800'
order by "$rowid$"
\ No newline at end of file
\ No newline at end of file
...@@ -435,8 +435,6 @@ ...@@ -435,8 +435,6 @@
<select id="selectAfkoById" parameterType="Afko" resultType="Afko"> <select id="selectAfkoById" parameterType="Afko" resultType="Afko">
select select
aufnr, mandt, gltrp, gamng, plnbez, gmein, plnnr, plnal, aufnr, mandt, gltrp, gamng, plnbez, gmein, plnnr, plnal,
......
...@@ -769,6 +769,18 @@ ...@@ -769,6 +769,18 @@
<property name="cronExpression" value="* * * * * ?" /> <property name="cronExpression" value="* * * * * ?" />
</bean> </bean>
<!-- 新增流程 -->
<bean class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail">
<bean parent="methodJobDetail">
<property name="targetObject" ref="jobServiceImpl" />
<property name="targetMethod" value="selectBkpfNew" />
</bean>
</property>
<property name="cronExpression" value="* * * * * ?" />
</bean>
<!-- 更新流程 --> <!-- 更新流程 -->
<bean class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"> <bean class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail"> <property name="jobDetail">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论