|
|
@@ -22,7 +22,6 @@ public class CustomizeService {
|
|
|
@Autowired
|
|
|
private CustomizeRepository customizeRepository;
|
|
|
|
|
|
- @Cacheable(value = "customizeConfig", key = "#name")
|
|
|
public List<Config> getConfig(String name) {
|
|
|
if (StringUtils.isEmpty(name)) {
|
|
|
return null;
|
|
|
@@ -31,7 +30,6 @@ public class CustomizeService {
|
|
|
return customizeRepository.findByNameAndCompanyId(name, companyId);
|
|
|
}
|
|
|
|
|
|
- @CacheEvict(value = "customizeConfig", key = "#config.name")
|
|
|
public void save(Config config) {
|
|
|
if (!StringUtils.isEmpty(config)) {
|
|
|
customizeRepository.deleteConfigByNameAndPositionAndCompanyId(config.getName(), config.getPosition(),
|
|
|
@@ -42,7 +40,6 @@ public class CustomizeService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @CacheEvict(value = "customizeConfig", key = "#name")
|
|
|
public void delete(String name) {
|
|
|
if (!StringUtils.isEmpty(name)) {
|
|
|
customizeRepository.deleteConfigByNameAndCompanyId(name, BaseContextHolder.getCompanyId());
|