Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
heziai committed May 30, 2018
1 parent 670c8af commit 3366087
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
import com.vip.saturn.job.console.mybatis.entity.SystemConfig;
import com.vip.saturn.job.console.mybatis.repository.SystemConfigRepository;
import com.vip.saturn.job.console.mybatis.service.SystemConfig4SqlService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @author xiaopeng.he
*/
Expand All @@ -17,18 +18,19 @@ public class SystemConfig4SqlServiceImpl implements SystemConfig4SqlService {
@Autowired
private SystemConfigRepository systemConfigRepository;

@Transactional
@Transactional(readOnly = true)
@Override
public List<SystemConfig> selectByPropertiesAndLastly(List<String> properties) {
return systemConfigRepository.selectByPropertiesAndLastly(properties);
}

@Transactional(readOnly = true)
@Override
public List<SystemConfig> selectByLastly() {
return systemConfigRepository.selectByLastly();
}

@Transactional
@Transactional(readOnly = true)
@Override
public List<SystemConfig> selectByPropertyPrefix(String prefix) {
return systemConfigRepository.selectByPropertyPrefix(prefix);
Expand Down

0 comments on commit 3366087

Please sign in to comment.