| | |
| | | import com.iailab.module.model.mcs.pre.service.DmModuleItemService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | |
| | | private DmModuleItemDao dmModuleItemDao; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void saveModuleItem(DmModuleItemEntity moduleItem) { |
| | | moduleItem.setId(UUID.randomUUID().toString()); |
| | | dmModuleItemDao.insert(moduleItem); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void update(DmModuleItemEntity moduleItem) { |
| | | dmModuleItemDao.updateById(moduleItem); |
| | | } |