回退代码-AfterPmoSyncJmQMSRule是精密的生产订单推送类,李昊把箱变要求增加标志字段的代码增加到此处,精密客户未提及此需求因此回退代码
This commit is contained in:
parent
c9f416977b
commit
138fdad30f
|
|
@ -6,7 +6,6 @@ import com.alibaba.fastjson.JSONArray;
|
|||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||
import nc.bs.dao.BaseDAO;
|
||||
import nc.bs.dao.DAOException;
|
||||
import nc.bs.logging.Log;
|
||||
import nc.bs.uapbd.util.MyHelper;
|
||||
import nc.bs.uapbd.util.ThirdPartyPostRequestUtil;
|
||||
|
|
@ -146,7 +145,6 @@ public class AfterPmoSyncJmQMSRule implements IRule<PMOAggVO> {
|
|||
|
||||
singleObj.put("Content", contentArray);
|
||||
pushData(singleObj);
|
||||
updatePmo(vo.getParentVO().getCpmohid());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -171,7 +169,7 @@ public class AfterPmoSyncJmQMSRule implements IRule<PMOAggVO> {
|
|||
|
||||
if (!"true".equals(resultObj.getString("success"))) {
|
||||
logger.error("QMS-PMO-JM-error,result[" + resultObj.toJSONString() + "]");
|
||||
throw new BusinessException("QMS-PMO-JM-error:" + resultObj.getString("message"));
|
||||
throw new BusinessException("启源错误信息:" + resultObj.getString("message"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -194,7 +192,7 @@ public class AfterPmoSyncJmQMSRule implements IRule<PMOAggVO> {
|
|||
}
|
||||
|
||||
private boolean checkIfOrg(String code, Map<String, String> configParams) throws BusinessException {
|
||||
String targetCode = configParams.get("xbOrg");
|
||||
String targetCode = configParams.get("jmOrg");
|
||||
if (targetCode == null || nc.vo.am.common.util.StringUtils.isEmpty(targetCode)) {
|
||||
throw new BusinessException("δÅäÖÃ×éÖ¯²ÎÊý");
|
||||
}
|
||||
|
|
@ -207,12 +205,4 @@ public class AfterPmoSyncJmQMSRule implements IRule<PMOAggVO> {
|
|||
return true;
|
||||
}
|
||||
|
||||
private void updatePmo(String cpmohid) throws DAOException {
|
||||
BaseDAO dao = new BaseDAO();
|
||||
String sql = "update mm_mo set vdef32='Y' where cpmohid='"
|
||||
+ cpmohid + "'";
|
||||
dao.executeUpdate(sql);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue