1 changed files with 33 additions and 0 deletions
@ -0,0 +1,33 @@ |
|||
package com.qs.serve.task; |
|||
|
|||
import com.qs.serve.modules.bir.mapper.BirReportAccountBookMapper; |
|||
import com.qs.serve.modules.bir.service.BirActivityCenterGoodsService; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
|||
import org.springframework.scheduling.annotation.Scheduled; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.time.LocalDate; |
|||
|
|||
/** |
|||
* @author YenHex |
|||
* @since 2023/7/14 |
|||
*/ |
|||
@Slf4j |
|||
@Component |
|||
@AllArgsConstructor |
|||
@ConditionalOnProperty(value = "project.task", havingValue = "true") |
|||
public class ErpDipatchTask { |
|||
|
|||
private final BirReportAccountBookMapper birReportAccountBookMapper; |
|||
|
|||
@Scheduled(cron="0 0 1 * * ?") |
|||
public void buildTempTable(){ |
|||
birReportAccountBookMapper.buildAllDispatch(); |
|||
birReportAccountBookMapper.buildRegionDispatch(); |
|||
birReportAccountBookMapper.buildBizRegionDispatch(); |
|||
birReportAccountBookMapper.buildCustomerDispatch(); |
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue