Compare commits

..

No commits in common. "6e78a0b7433ccb334c08de72a9643f0225f66ab7" and "900748953c28d71733279ffdb4112dfe524242e2" have entirely different histories.

1 changed files with 3 additions and 15 deletions

View File

@ -33,19 +33,7 @@ public class AfterApproveSyncImsRule implements IRule<PMOAggVO> {
// BIPÊý¾ÝÔ´
public static final BaseDAO baseDAO = new BaseDAO();
// IMSÊý¾ÝÔ´
public BaseDAO imsDao;
/**
* 获取IMS数据源
*/
public BaseDAO getImsDao() {
if (imsDao == null) {
imsDao = new BaseDAO("gyims");
// 禁用时间戳ts
imsDao.setAddTimeStamp(false);
}
return imsDao;
}
public static final BaseDAO imsDao = new BaseDAO("gyims");
@Override
public void process(PMOAggVO[] pmoAggVOS) {
@ -343,13 +331,13 @@ public class AfterApproveSyncImsRule implements IRule<PMOAggVO> {
*/
private void pushData(String headSql, SQLParameter headParams, List<Map<String, SQLParameter>> bodyParameterList) throws BusinessException {
logger.error("gyIms-PMO-headSql = " + headSql);
int i = getImsDao().executeUpdate(headSql, headParams);
int i = imsDao.executeUpdate(headSql, headParams);
if (i != 1) {
NCCForUAPLogger.error("gyIms-PMO-headSql = " + headSql);
}
for (Map<String, SQLParameter> map : bodyParameterList) {
String bodySql = map.keySet().iterator().next();
int j = getImsDao().executeUpdate(bodySql, map.get(bodySql));
int j = imsDao.executeUpdate(bodySql, map.get(bodySql));
if (j != 1) {
NCCForUAPLogger.error("gyIms-PMO-bodySql = " + bodySql);
}