try {
Connection cnn = DBHandler.getConnection();
cnn.setAutoCommit(false);
//1.创建一个应用
String contentname="华为钱包";
Map resultMap= createOneApp(cnn,
companyId,contentname,thirdapptype, pricetag, priceExChange,
tempPicetagPath, settlementScale, i);
logger.debug("1.创建一个应用成功 contentid="+resultMap.get("contentId"));
//2.插入cm_plat_customization_pay_conf
Map parMap=new HashMap();
parMap.put("id", cc.getId());
parMap.put("contentid", resultMap.get("contentId"));
parMap.put("contentname", contentname);
parMap.put("settlementscale", settlementScale);
CommDAO.executeUpdate(cnn, "insertCm_plat_customization_pay_conf", parMap);
logger.debug("2.插入cm_plat_customization_pay_conf成功 ");
//3.更改计费点的paycode和servicecode
parMap.put("isnew", "1");
CommDAO.executeUpdate(cnn, "update_paycode_servicecode_apply", parMap);
CommDAO.executeUpdate(cnn, "update_paycode_servicecode", parMap);
logger.debug("3.更改计费点的paycode和servicecode成功");
cnn.commit();
resultMap = null;
parMap=null;
} catch (Exception e) {
DBHandler.rollback(cnn);
logger.error("PlatCustomizationProductJob 创建一个应用即相关数据 error: companyId="+companyId+",number:"+i);
}finally{
DBHandler.close(cnn);
}