@Transactional(propagation = Propagation.REQUIRED) public Model updateApplications(@RequestBody ListWrap<T> param, Model model) { logger.debug("TX BEGIN add ServerApplication With {} ", param); for (T item : param.getList()) { if (!StringUtils.isEmpty(item.getServer_Id()) || !StringUtils.isEmpty(item.getGroup_Id()) || !StringUtils.isEmpty(item.getApp_Id())) { if (item.isRow_Flag() == false) { if (item.getApp_Ext_Opts() == null || item.getApp_Ext_Opts().isEmpty()) { } else { serverApplicationDao.insServerApplication(item); } } else { if (item.getApp_Ext_Opts() == null || item.getApp_Ext_Opts().isEmpty()) { serverApplicationDao.delServerApplication(item); } else { serverApplicationDao.uptServerApplication(item); } } } else { throw new RuntimeException("Has No Parent Application Config"); } } logger.debug("TX FINISH add ServerApplication With {} ", model); return model; }