Commit e214e52b by gechengyang

提交国际支付springboot初版

parent f470a500
......@@ -118,6 +118,12 @@
<scope>system</scope>
<systemPath>${pom.basedir}/lib/be-esb-core-2.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.brilliance</groupId>
<artifactId>gjjs-bd-runtime</artifactId>
<version>0.0.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
......
......@@ -3,9 +3,11 @@ package com.brilliance.bd2poinnew;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication(scanBasePackages = {"com.brilliance.mda", "com.ceb.gjjs.mda"})
@SpringBootApplication(scanBasePackages = {"com.brilliance.scheduled","com.brilliance.mda", "com.ceb.gjjs.mda"})
@MapperScan({"com.ceb.gjjs.mda.dao"})
@EnableScheduling
public class Bd2poinnewApplication {
public static void main(String[] args) {
SpringApplication.run(Bd2poinnewApplication.class, args);
......
package com.brilliance.scheduled;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.time.LocalDateTime;
@Component
public class XxxtskSchedued {
@Scheduled(fixedRate = 5000) // 或者使用cron表达式
public void reportCurrentTime() {
System.out.println("The time is now " + LocalDateTime.now());
}
}
......@@ -396,6 +396,11 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
}
@Override
public <T extends IModule> int dbReadset(IModuleList<T> list, int maxSize, Argument... args) {
return 0;
}
@Override
public int dbCounter(String seqname) {
return this.counter.dbCounter(seqname);
}
......@@ -430,6 +435,11 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
}
@Override
public void dbReadset(IModuleList list, int maxSize) {
}
@Override
public String dbName() {
return sqlSessionTemplate.getConfiguration().getDatabaseId();
}
......
......@@ -25,6 +25,8 @@ public interface IDaoSession {
@SuppressWarnings("rawtypes")
<T extends IModule> int dbReadset(IModuleList<T> list, Argument... args);
<T extends IModule> int dbReadset(IModuleList<T> list, int maxSize,Argument... args);
<T extends IModule> int dbReadset(ModuleList<T> list, CacheOption cacheOption, Argument... args);
<T extends IModule> int dbReadset(IModuleList<T>[] list, CacheOption cacheOption,String whereSql, Object[] param);
......@@ -61,6 +63,8 @@ public interface IDaoSession {
void dbReadset(IModuleList list, int maxSize, String sql);
void dbReadset(IModuleList list, int maxSize);
String dbName();
List<String> dbColumnNames();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment