| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springblade.common.param.CommonParamSet; |
| | | import org.springblade.common.utils.SpringUtils; |
| | |
| | | * @return 清理后的字符串 |
| | | */ |
| | | private static String cleanEscapes(String originalStr) { |
| | | if (StringUtils.isBlank(originalStr)) { |
| | | return ""; |
| | | } |
| | | // 替换多个反斜杠为单个反斜杠 |
| | | String replacedBackslashes = originalStr.replaceAll("\\\\+", "\\\\"); |
| | | // 替换转义的双引号为空 |
| | | String cleanedStr = replacedBackslashes.replaceAll("\\\\\"", "").replaceAll("\"",""); |
| | | String cleanedStr = replacedBackslashes.replaceAll("\\\\\"", "").replaceAll("\"", ""); |
| | | |
| | | return cleanedStr; |
| | | } |
| | |
| | | // 再删除对应的宣传对象信息 |
| | | if (flag){ |
| | | IBackblastPubPersonService backblastPubPersonService = SpringUtil.getBean(IBackblastPubPersonService.class); |
| | | for (Long id : toLongList) { |
| | | // 删除所有 |
| | | QueryWrapper<BackblastPubPersonEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("backblast_pub_record_id", id); |
| | | wrapper.in("backblast_pub_record_id", toLongList); |
| | | backblastPubPersonService.remove(wrapper); |
| | | } |
| | | // for (Long id : toLongList) { |
| | | // // 删除所有 |
| | | // QueryWrapper<BackblastPubPersonEntity> wrapper = new QueryWrapper<>(); |
| | | // wrapper.eq("backblast_pub_record_id", id); |
| | | // backblastPubPersonService.remove(wrapper); |
| | | // } |
| | | } |
| | | return flag; |
| | | } |