删除验证

This commit is contained in:
SGK\17962 2025-09-18 17:17:19 +08:00
parent 847e67fb95
commit f49b4aef15
2 changed files with 7 additions and 3 deletions

View File

@ -418,9 +418,9 @@ const {
};
// checkType'9'
// if (row.checkFlag !== '9') {
// return null;
// }
if (row.checkFlag !== '9') {
return null;
}
return (
<div class="flex-center gap-8px">
{editBtn()}

View File

@ -5,6 +5,7 @@ import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.idev.excel.util.DateUtils;
import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.core.exception.ServiceException;
@ -609,6 +610,9 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
List<Long> trafficIds = new ArrayList<>();
for (MpsMarket market : marketList) {
if(!"9".equals(market.getCheckFlag())){//9-校验失败
throw new ServiceException("校验状态异常,不允许删除!");
}
if (market.getMagneticCardId() != null) {
magneticCardIds.add(market.getMagneticCardId());
}