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