|
@@ -1,6 +1,7 @@
|
|
|
package cn.tr.module.sys.numStrategy.service.impl;
|
|
package cn.tr.module.sys.numStrategy.service.impl;
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.tr.core.exception.ServiceException;
|
|
import cn.tr.core.exception.ServiceException;
|
|
|
import cn.tr.core.exception.TRExcCode;
|
|
import cn.tr.core.exception.TRExcCode;
|
|
@@ -117,14 +118,12 @@ public class SysNumberingStrategyServiceImpl implements ISysNumberingStrategySer
|
|
|
* @author lf
|
|
* @author lf
|
|
|
* @date 2023/04/24 17:22
|
|
* @date 2023/04/24 17:22
|
|
|
*/
|
|
*/
|
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public boolean updateSysNumberingStrategyById(SysNumberingStrategyDTO source){
|
|
public boolean updateSysNumberingStrategyById(SysNumberingStrategyDTO source){
|
|
|
SysNumberingStrategyPO strategyPO = SysNumberingStrategyMapper.INSTANCE.convertPO(source);
|
|
SysNumberingStrategyPO strategyPO = SysNumberingStrategyMapper.INSTANCE.convertPO(source);
|
|
|
validateNumberingStrategySource(strategyPO);
|
|
validateNumberingStrategySource(strategyPO);
|
|
|
if(baseRepository.updateById(strategyPO)!=0){
|
|
if(baseRepository.updateById(strategyPO)!=0){
|
|
|
-// strategyClientFactory.createOrUpdateSmsClient(SysNumberingStrategyMapper.INSTANCE.convertProperty(source));
|
|
|
|
|
- eventBus.publishShare(STRATEGY_REFRESH_TOPIC,null);
|
|
|
|
|
|
|
+ eventBus.publishShare(STRATEGY_REFRESH_TOPIC, new Object());
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
return false;
|
|
return false;
|
|
@@ -137,7 +136,6 @@ public class SysNumberingStrategyServiceImpl implements ISysNumberingStrategySer
|
|
|
* @date 2023/04/24 17:22
|
|
* @date 2023/04/24 17:22
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public boolean insertSysNumberingStrategy(SysNumberingStrategyDTO source){
|
|
public boolean insertSysNumberingStrategy(SysNumberingStrategyDTO source){
|
|
|
SysNumberingStrategyPO strategyPO = SysNumberingStrategyMapper.INSTANCE.convertPO(source);
|
|
SysNumberingStrategyPO strategyPO = SysNumberingStrategyMapper.INSTANCE.convertPO(source);
|
|
|
validateNumberingStrategySource(strategyPO);
|
|
validateNumberingStrategySource(strategyPO);
|
|
@@ -155,7 +153,6 @@ public class SysNumberingStrategyServiceImpl implements ISysNumberingStrategySer
|
|
|
* @date 2023/04/24 17:22
|
|
* @date 2023/04/24 17:22
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public int removeSysNumberingStrategyByIds(Collection<String> ids){
|
|
public int removeSysNumberingStrategyByIds(Collection<String> ids){
|
|
|
if(CollectionUtil.isEmpty(ids)){
|
|
if(CollectionUtil.isEmpty(ids)){
|
|
|
throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"请选择要删除的数据");
|
|
throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"请选择要删除的数据");
|