供应商管理数据同步, tms系统产品,服务渠道,产品渠道关系数据同步
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package com.bms.masterdata.task;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import com.bms.common.utils.StringUtils;
|
||||
import com.bms.masterdata.sync.ChannelMasterSyncService;
|
||||
|
||||
/**
|
||||
* 老系统渠道/产品 主数据每日同步任务。
|
||||
* sys_job.invoke_target = channelMasterSyncTask.syncFromOracle()
|
||||
*
|
||||
* @author bms
|
||||
* @date 2026-10-12
|
||||
*/
|
||||
@Component("channelMasterSyncTask")
|
||||
public class ChannelMasterSyncTask
|
||||
{
|
||||
@Autowired
|
||||
private ChannelMasterSyncService channelMasterSyncService;
|
||||
|
||||
/**
|
||||
* 全量同步 Oracle TAB_SERVICE_CHANNEL / TAB_LINE_PRODUCT / TAB_PRODUCT_CHANNEL
|
||||
*/
|
||||
public void syncFromOracle()
|
||||
{
|
||||
String summary = channelMasterSyncService.syncFromOracle();
|
||||
if (StringUtils.isEmpty(summary))
|
||||
{
|
||||
throw new RuntimeException("老系统渠道产品同步未返回结果");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user