高压IMS日志调整
This commit is contained in:
parent
05d5709ce8
commit
6c784436d8
|
|
@ -35,7 +35,7 @@ import java.util.*;
|
||||||
public class AfterApproveRuleHighpressureIms implements IRule<AggPickmVO> {
|
public class AfterApproveRuleHighpressureIms implements IRule<AggPickmVO> {
|
||||||
|
|
||||||
// 日志配置(固定)
|
// 日志配置(固定)
|
||||||
private static final String LOG_INFO_NAME = "gymeslog";
|
private static final String LOG_INFO_NAME = "gyimslog";
|
||||||
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
||||||
// 配置参数(同步目标组织等)
|
// 配置参数(同步目标组织等)
|
||||||
private Map<String, String> configParams;
|
private Map<String, String> configParams;
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ import java.util.*;
|
||||||
*/
|
*/
|
||||||
public class AfterApproveSyncImsRule implements IRule<PMOAggVO> {
|
public class AfterApproveSyncImsRule implements IRule<PMOAggVO> {
|
||||||
private String auditFlag;
|
private String auditFlag;
|
||||||
private static final String LOG_INFO_NAME = "gymeslog";
|
private static final String LOG_INFO_NAME = "gyimslog";
|
||||||
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
||||||
private Map<String, String> configParams;
|
private Map<String, String> configParams;
|
||||||
// BIP数据源
|
// BIP数据源
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ import nc.bs.framework.common.NCLocator;
|
||||||
import nc.bs.logging.Log;
|
import nc.bs.logging.Log;
|
||||||
import nc.bs.trade.business.HYPubBO;
|
import nc.bs.trade.business.HYPubBO;
|
||||||
import nc.bs.uapbd.util.MyHelper;
|
import nc.bs.uapbd.util.MyHelper;
|
||||||
import nc.impl.obm.pattern.data.bill.BillQuery;
|
|
||||||
import nc.impl.pubapp.pattern.rule.IRule;
|
import nc.impl.pubapp.pattern.rule.IRule;
|
||||||
import nc.jdbc.framework.JdbcSession;
|
import nc.jdbc.framework.JdbcSession;
|
||||||
import nc.jdbc.framework.PersistenceManager;
|
import nc.jdbc.framework.PersistenceManager;
|
||||||
|
|
@ -26,7 +25,6 @@ import nc.vo.pub.BusinessException;
|
||||||
import nc.vo.pub.lang.UFDate;
|
import nc.vo.pub.lang.UFDate;
|
||||||
import nc.vo.pub.lang.UFDateTime;
|
import nc.vo.pub.lang.UFDateTime;
|
||||||
import nc.vo.pubapp.pattern.exception.ExceptionUtils;
|
import nc.vo.pubapp.pattern.exception.ExceptionUtils;
|
||||||
import nc.vo.scmpub.util.ArrayUtil;
|
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
@ -41,7 +39,7 @@ import java.util.*;
|
||||||
public class PMOAfterApproveRuleHighpressureIms implements IRule<PMOAggVO> {
|
public class PMOAfterApproveRuleHighpressureIms implements IRule<PMOAggVO> {
|
||||||
|
|
||||||
// 日志配置(固定)
|
// 日志配置(固定)
|
||||||
private static final String LOG_INFO_NAME = "gymeslog";
|
private static final String LOG_INFO_NAME = "gyimslog";
|
||||||
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
||||||
// 配置参数(同步目标组织等)
|
// 配置参数(同步目标组织等)
|
||||||
private Map<String, String> configParams;
|
private Map<String, String> configParams;
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import nc.bs.dao.BaseDAO;
|
import nc.bs.dao.BaseDAO;
|
||||||
import nc.bs.framework.common.NCLocator;
|
import nc.bs.framework.common.NCLocator;
|
||||||
|
import nc.bs.logging.Log;
|
||||||
import nc.bs.logging.Logger;
|
import nc.bs.logging.Logger;
|
||||||
import nc.bs.pub.pa.PreAlertObject;
|
import nc.bs.pub.pa.PreAlertObject;
|
||||||
import nc.bs.pub.taskcenter.BgWorkingContext;
|
import nc.bs.pub.taskcenter.BgWorkingContext;
|
||||||
|
|
@ -28,6 +29,8 @@ import java.util.*;
|
||||||
* @date 2025/10/01
|
* @date 2025/10/01
|
||||||
*/
|
*/
|
||||||
public class ErpIaI2billFromGyImsPlugin implements IBackgroundWorkPlugin {
|
public class ErpIaI2billFromGyImsPlugin implements IBackgroundWorkPlugin {
|
||||||
|
private static final String LOG_INFO_NAME = "gyimslog";
|
||||||
|
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
||||||
private SimpleDateFormat DATE_FORMATTER = new SimpleDateFormat("yyyy-MM-dd");
|
private SimpleDateFormat DATE_FORMATTER = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
private SimpleDateFormat DATETIME_FORMATTER = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
private SimpleDateFormat DATETIME_FORMATTER = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||||
// IMSÊý¾ÝÔ´
|
// IMSÊý¾ÝÔ´
|
||||||
|
|
@ -158,14 +161,14 @@ public class ErpIaI2billFromGyImsPlugin implements IBackgroundWorkPlugin {
|
||||||
getImsDao().executeUpdate(updateSql);
|
getImsDao().executeUpdate(updateSql);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.error("ErpIaI2billFromGyImsPlugin Error: ", e);
|
logger.error("ErpIaI2billFromGyImsPlugin Error: ", e);
|
||||||
NCCForUAPLogger.debug("ErpIaI2billFromGyImsPlugin Error: " + e.getMessage());
|
// NCCForUAPLogger.debug("ErpIaI2billFromGyImsPlugin Error: " + e.getMessage());
|
||||||
String inSql = SqlUtils.getInStr("cgeneralhid", imsIdSet.toArray(new String[0]), Boolean.TRUE);
|
String inSql = SqlUtils.getInStr("cgeneralhid", imsIdSet.toArray(new String[0]), Boolean.TRUE);
|
||||||
String updateSql = "update BIPInputMainTab set err_msg = '[err_msg]' where " + inSql;
|
String updateSql = "update BIPInputMainTab set err_msg = '[err_msg]' where " + inSql;
|
||||||
updateSql = updateSql.replace("[err_msg]", e.getMessage());
|
updateSql = updateSql.replace("[err_msg]", e.getMessage());
|
||||||
NCCForUAPLogger.debug("ErpIaI2billFromGyImsPlugin-updateSql = " + updateSql);
|
// NCCForUAPLogger.debug("ErpIaI2billFromGyImsPlugin-updateSql = " + updateSql);
|
||||||
int rows = ImsDaoUtil.executeUpdate(updateSql, imsIdSet.toString());
|
int rows = ImsDaoUtil.executeUpdate(updateSql, imsIdSet.toString());
|
||||||
NCCForUAPLogger.debug("ErpIaI2billFromGyImsPlugin-rows = " + rows);
|
// NCCForUAPLogger.debug("ErpIaI2billFromGyImsPlugin-rows = " + rows);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ import java.util.*;
|
||||||
*/
|
*/
|
||||||
public class MaterialOutGyImsPlugin implements IBackgroundWorkPlugin {
|
public class MaterialOutGyImsPlugin implements IBackgroundWorkPlugin {
|
||||||
|
|
||||||
private static final String LOG_INFO_NAME = "gymeslog";
|
private static final String LOG_INFO_NAME = "gyimslog";
|
||||||
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
||||||
|
|
||||||
private SimpleDateFormat DATE_FORMATTER = new SimpleDateFormat("yyyy-MM-dd");
|
private SimpleDateFormat DATE_FORMATTER = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ import java.util.*;
|
||||||
*/
|
*/
|
||||||
public class PmoStatusFromGyImsPlugin implements IBackgroundWorkPlugin {
|
public class PmoStatusFromGyImsPlugin implements IBackgroundWorkPlugin {
|
||||||
|
|
||||||
private static final String LOG_INFO_NAME = "gymeslog";
|
private static final String LOG_INFO_NAME = "gyimslog";
|
||||||
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
||||||
|
|
||||||
// BIP数据源
|
// BIP数据源
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ import java.util.Map;
|
||||||
* @date 20250929
|
* @date 20250929
|
||||||
*/
|
*/
|
||||||
public class ProductReportGyImsPlugin implements IBackgroundWorkPlugin {
|
public class ProductReportGyImsPlugin implements IBackgroundWorkPlugin {
|
||||||
private static final String LOG_INFO_NAME = "gymeslog";
|
private static final String LOG_INFO_NAME = "gyimslog";
|
||||||
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
||||||
private SimpleDateFormat DATE_FORMATTER = new SimpleDateFormat("yyyy-MM-dd");
|
private SimpleDateFormat DATE_FORMATTER = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
private SimpleDateFormat DATETIME_FORMATTER = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
private SimpleDateFormat DATETIME_FORMATTER = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue