오늘 모자라다고 느낀 것(2021-09-01)

  1. 인텔이제이 데이터 그립 해보기
  2. 마이바티스 플러그인(새대가리)
  3. 트랜잭션
    https://www.slipp.net/questions/282
    https://interconnection.tistory.com/122
	@Transactional(value = "transactionManager") 
	public boolean updateVisitLnkData(VisitLnkDataBean dataBean) throws RuntimeException {
		boolean result = true;
		
		int cntGW =0;
		String appStatus = dataBean.getApprStatus();
	
	
		if("ING".equals(appStatus)) {
			cntGW = openApiCustomDao.updateIngVisitLnkData(dataBean);//GW update
			eappVisitorDao.updateIngCustomerVisitor(dataBean);//고객사 visitor update
		} else if("CAN".equals(appStatus)) {
			cntGW = openApiCustomDao.updateCanVisitLnkData(dataBean);//GW update
			eappVisitorDao.updateAprCustomerVisitor(dataBean);//고객사 visitor update
		} else if("APR".equals(appStatus)) {
			cntGW = openApiCustomDao.updateAprVisitLnkData(dataBean);//GW update
			eappVisitorDao.updateCanCustomerVisitor(dataBean);//고객사 visitor update
		}
		
		if( cntGW > 0) result = true;
		else result = false;
		
		return result;
		
	}
try {
				boolean result = openApiCustomService.updateVisitLnkData(dataBean);
				
				if( result ) {
					jsono.put("resultCode", "S");
				}else {
					jsono.put("resultCode", "E");
				}
			} catch(RuntimeException e) {
				jsono.put("resultCode", "E");
			}

좋은 웹페이지 즐겨찾기