|
|
@ -677,17 +677,24 @@ public class PaCustomerServiceImpl extends BaseServiceImpl<PaCustomerDao, PaCust |
|
|
|
/** |
|
|
|
* @Description 公众号客户删除 |
|
|
|
* @NEI https://nei.netease.com/interface/detail/?pid=52285&id=323482
|
|
|
|
* @param token |
|
|
|
* @param param |
|
|
|
* @return |
|
|
|
* @author wangc |
|
|
|
* @date 2020.08.25 15:46 |
|
|
|
**/ |
|
|
|
@Override |
|
|
|
public void deletePublicCustomer(TokenDto token , CommonCustomerIdAndSrcFormDTO param) { |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void clearPublicCustomer(CommonCustomerIdAndSrcFormDTO param) { |
|
|
|
if(StringUtils.equals(ModuleConstant.SRC_PROD,param.getSource())){ |
|
|
|
logger.warn("有人试图删除用户生产数据,试图删除的客户Id:{},操作者Id:{}",param.getCustomerId(),token.getUserId()); |
|
|
|
logger.warn("有人试图删除用户的生产数据,试图删除的客户Id:{},操作者Id:{}",param.getCustomerId(),param.getUserId()); |
|
|
|
throw new RenException("禁止对生产环境数据进行删除操作!"); |
|
|
|
} |
|
|
|
String check = baseDao.selectSourceById(param.getCustomerId(),param.getSource()); |
|
|
|
if (!StringUtils.equals(check,param.getCustomerId())) { |
|
|
|
logger.warn("com.epmet.service.impl.PaCustomerServiceImpl.clearPublicCustomer,客户来源信息不匹配,客户Id:{},来源:{}",param.getCustomerId(),param.getSource()); |
|
|
|
return ; |
|
|
|
} |
|
|
|
baseDao.clearCustomerInfo(param.getCustomerId()); |
|
|
|
} |
|
|
|
|
|
|
|
} |