Commit 25035d1f by huluobin

# 更新

parent a19de37c
......@@ -26,17 +26,6 @@ public class FeeJob {
}
}
//
// @Scheduled(cron = "0/10 * * * * ?")
// public void syncLogistics() {
// try {
// log.info("每分钟同步物流费用 开始");
// syncFeeService.syncLogistics();
// log.info("每分钟同步物流费用 结束");
// } catch (Exception ex) {
// log.error("每分钟同步物流费用 异常:", ex);
// }
// }
@Scheduled(cron = "0/10 * * * * ?")
public void syncManageCost() {
......
......@@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import javax.annotation.Resource;
......@@ -25,6 +26,7 @@ import java.util.stream.Collectors;
* @author robbendev
* @since 2020/12/1 3:27 下午
*/
@ActiveProfiles("test")
@SpringBootTest(classes = TestApp.class)
class SyncFeeServiceTest extends AbstractTestNGSpringContextTests {
......@@ -42,6 +44,7 @@ class SyncFeeServiceTest extends AbstractTestNGSpringContextTests {
@Test
void syncManageCost() {
syncFeeService.syncManageCost();
}
@Test
......
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