add:定时同步辅料库库存
This commit is contained in:
@@ -40,4 +40,9 @@ public class RegionConstant {
|
|||||||
*/
|
*/
|
||||||
public static final String SPRAYING_SEMI_MATERIAL_SIDE = "6.008";
|
public static final String SPRAYING_SEMI_MATERIAL_SIDE = "6.008";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 辅料库
|
||||||
|
*/
|
||||||
|
public static final String AUXILIARY_MATERIAL_STORE_CODE = "6.014";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
package org.nl.wms.sch_manage.service.core;
|
||||||
|
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.SneakyThrows;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.nl.wms.basedata_manage.service.IMdPbStoragevehicleextService;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
import static org.nl.common.domain.constant.RegionConstant.AUXILIARY_MATERIAL_STORE_CODE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 定时同步辅料库库存
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@Component
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class SyncAuxiliaryMatAutoTask {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private final IMdPbStoragevehicleextService iMdPbStoragevehicleextService;
|
||||||
|
|
||||||
|
@SneakyThrows
|
||||||
|
public void run() {
|
||||||
|
log.info("========>同步辅料库库存任务");
|
||||||
|
iMdPbStoragevehicleextService.syncStock(AUXILIARY_MATERIAL_STORE_CODE);
|
||||||
|
log.info("========>同步辅料库库存任务结束");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user