6 changed files with 108 additions and 1 deletions
@ -0,0 +1,26 @@ |
|||||
|
package com.win.module.wms.job; |
||||
|
|
||||
|
import com.win.framework.quartz.core.handler.JobHandler; |
||||
|
import com.win.framework.tenant.core.context.TenantContextHolder; |
||||
|
import com.win.module.wms.service.supplierinvoiceRequest.SupplierinvoiceRequestMainService; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
|
||||
|
@Component |
||||
|
@Slf4j |
||||
|
public class SupplierinvoiceSyncOneJob implements JobHandler { |
||||
|
|
||||
|
@Resource |
||||
|
private SupplierinvoiceRequestMainService supplierinvoiceRequestMainService; |
||||
|
|
||||
|
@Override |
||||
|
public String execute(String param) throws Exception { |
||||
|
log.info("【刷新发票回转数据】----开始"); |
||||
|
TenantContextHolder.setTenantId(1l); |
||||
|
supplierinvoiceRequestMainService.updateSupplierinvoineData(1l); |
||||
|
log.info("【刷新发票回转数据】----结束"); |
||||
|
return "刷新发票回转数据"; |
||||
|
} |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.win.module.wms.job; |
||||
|
|
||||
|
import com.win.framework.quartz.core.handler.JobHandler; |
||||
|
import com.win.framework.tenant.core.context.TenantContextHolder; |
||||
|
import com.win.module.wms.service.supplierinvoiceRequest.SupplierinvoiceRequestMainService; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
|
||||
|
@Component |
||||
|
@Slf4j |
||||
|
public class SupplierinvoiceSyncThreeJob implements JobHandler { |
||||
|
|
||||
|
@Resource |
||||
|
private SupplierinvoiceRequestMainService supplierinvoiceRequestMainService; |
||||
|
|
||||
|
@Override |
||||
|
public String execute(String param) throws Exception { |
||||
|
log.info("【刷新发票回转数据】----开始"); |
||||
|
TenantContextHolder.setTenantId(3l); |
||||
|
supplierinvoiceRequestMainService.updateSupplierinvoineData(3l); |
||||
|
log.info("【刷新发票回转数据】----结束"); |
||||
|
return "刷新发票回转数据"; |
||||
|
} |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.win.module.wms.job; |
||||
|
|
||||
|
import com.win.framework.quartz.core.handler.JobHandler; |
||||
|
import com.win.framework.tenant.core.context.TenantContextHolder; |
||||
|
import com.win.module.wms.service.supplierinvoiceRequest.SupplierinvoiceRequestMainService; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
|
||||
|
@Component |
||||
|
@Slf4j |
||||
|
public class SupplierinvoiceSyncTwoJob implements JobHandler { |
||||
|
|
||||
|
@Resource |
||||
|
private SupplierinvoiceRequestMainService supplierinvoiceRequestMainService; |
||||
|
|
||||
|
@Override |
||||
|
public String execute(String param) throws Exception { |
||||
|
log.info("【刷新发票回转数据】----开始"); |
||||
|
TenantContextHolder.setTenantId(2l); |
||||
|
supplierinvoiceRequestMainService.updateSupplierinvoineData(2l); |
||||
|
log.info("【刷新发票回转数据】----结束"); |
||||
|
return "刷新发票回转数据"; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue