|
|
@@ -47,8 +47,9 @@ public class ERPServiceImpl implements ERPService {
|
|
|
" from "+master+".product left join "+master+".productbrand on pb_name = pr_brand where pr_id in ("+ids+") and pb_sendwms = -1 ");
|
|
|
logger.info("Query executed, datasource: {}", SpObserver.getSp());
|
|
|
if(!docMsg.hasNext()){
|
|
|
+ baseDao.execute("update "+master+".product set pr_sendwmsstatus='同步失败',pr_sendwmserr='没有需要同步的商品(品牌需设置对接MWS)。 where pr_id IN ("+ids+")");
|
|
|
retMap.put("success",false);
|
|
|
- retMap.put("message","没有需要同步的商品。");
|
|
|
+ retMap.put("message","没有需要同步的商品(品牌需设置对接MWS)。");
|
|
|
return retMap;
|
|
|
}
|
|
|
List<Map<String, Object>> docMsgResultList = docMsg.getResultList();
|
|
|
@@ -92,7 +93,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
Map<String, Object> retMap = new HashMap<>();
|
|
|
if(CollectionUtil.isEmpty(list)){
|
|
|
retMap.put("success",false);
|
|
|
- retMap.put("message","没有需要同步的商品。");
|
|
|
+ retMap.put("message","没有需要同步的商品(品牌需设置对接MWS)。");
|
|
|
return retMap;
|
|
|
}
|
|
|
for (Map<String, Object> map : list) {
|