|
@@ -60,6 +60,9 @@ public class SyncTescoSystemService {
|
|
|
@Resource
|
|
|
private MaterialCurrentStockMapperEx materialCurrentStockMapperEx;
|
|
|
|
|
|
+ @Value("${tesco.openSycn}")
|
|
|
+ private boolean openSycn;
|
|
|
+
|
|
|
@Value("${tesco.sycnErpMaterialStockUrl}")
|
|
|
private String sycnErpMaterialStockUrl;
|
|
|
|
|
@@ -195,6 +198,9 @@ public class SyncTescoSystemService {
|
|
|
}
|
|
|
|
|
|
public String sycnTescoStock(List<Long> mIdList) {
|
|
|
+ if (!openSycn) {
|
|
|
+ return "tesco系统同步未开启";
|
|
|
+ }
|
|
|
List<MaterialCurrentStock4SystemSku> stockList = materialCurrentStockMapperEx.getCurrentStockMapByMdIdList(mIdList);
|
|
|
if (!CollectionUtils.isEmpty(stockList)) {
|
|
|
try {
|
|
@@ -249,6 +255,9 @@ public class SyncTescoSystemService {
|
|
|
}
|
|
|
|
|
|
public String sycnTescoSalePrice(List<Long> mIdList) {
|
|
|
+ if (!openSycn) {
|
|
|
+ return "tesco系统同步未开启";
|
|
|
+ }
|
|
|
try {
|
|
|
List<MaterialCurrentStock4SystemSku> mList = materialService.getMaterialCurrentPriceByIdList(mIdList);
|
|
|
if (!CollectionUtils.isEmpty(mList)) {
|