删除验证
This commit is contained in:
parent
847e67fb95
commit
f49b4aef15
@ -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()}
|
||||
|
||||
@ -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());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user