|
|
@@ -45,7 +45,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
SqlRowList docMsg = baseDao.queryForRowSet(" select nvl(pr_sendwmsflag,0) pr_sendwmsflag,pr_id,pr_code,pr_detail,pr_spec,pr_brand,pr_xsl_user,pr_hsl_user,pr_psl_user " +
|
|
|
" from " + master + ".product where pr_id = " + id);
|
|
|
if (!docMsg.next()) {
|
|
|
- baseDao.execute("update " + master + ".product set pr_sendwmsstatus='同步失败',pr_sendwmserr='没有需要同步的商品。' where pr_id = " + id);
|
|
|
+// baseDao.execute("update " + master + ".product set pr_sendwmsstatus='同步失败',pr_sendwmserr='没有需要同步的商品。' where pr_id = " + id);
|
|
|
retMap.put("success", false);
|
|
|
retMap.put("message", "没有需要同步的商品。");
|
|
|
return retMap;
|
|
|
@@ -78,12 +78,12 @@ public class ERPServiceImpl implements ERPService {
|
|
|
logger.info("sendProd-End-F:master {} id {} message {}", master, id,errMsg.toString());
|
|
|
retMap.put("success", false);
|
|
|
retMap.put("message", errMsg.toString());
|
|
|
- baseDao.execute("update " + master + ".product set pr_sendwmsstatus='同步失败',pr_sendwmserr=('操作:" + actionTypeName + "</br>" + errMsg.toString().replaceAll("'", "''") + "') " +
|
|
|
- " where pr_id = " + id);
|
|
|
+// baseDao.execute("update " + master + ".product set pr_sendwmsstatus='同步失败',pr_sendwmserr=('操作:" + actionTypeName + "</br>" + errMsg.toString().replaceAll("'", "''") + "') " +
|
|
|
+// " where pr_id = " + id);
|
|
|
}else {
|
|
|
logger.info("sendProd-End-S:master {} id {}", master, id);
|
|
|
retMap.put("message", "同步成功。");
|
|
|
- baseDao.execute("update " + master + ".product set pr_sendwmsflag=-1,pr_sendwmsstatus='同步成功' ,pr_sendwmserr=null where pr_id = " + id);
|
|
|
+// baseDao.execute("update " + master + ".product set pr_sendwmsflag=-1,pr_sendwmsstatus='同步成功' ,pr_sendwmserr=null where pr_id = " + id);
|
|
|
}
|
|
|
return retMap;
|
|
|
}
|