删除验证

This commit is contained in:
SGK\17962 2025-09-18 17:29:00 +08:00
parent f49b4aef15
commit 4ca45e3b5f
2 changed files with 10 additions and 5 deletions

View File

@ -389,6 +389,10 @@ const {
if (!hasAuth('mps:market:edit')) {
return null;
}
// checkType'9'
if (row.checkFlag !== '9') {
return null;
}
return (
<ButtonIcon
@ -405,6 +409,10 @@ const {
if (!hasAuth('mps:market:remove')) {
return null;
}
// checkType'0'
if (row.checkFlag !== '0') {
return null;
}
return (
<ButtonIcon
text
@ -417,10 +425,7 @@ const {
);
};
// checkType'9'
if (row.checkFlag !== '9') {
return null;
}
return (
<div class="flex-center gap-8px">
{editBtn()}

View File

@ -610,7 +610,7 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
List<Long> trafficIds = new ArrayList<>();
for (MpsMarket market : marketList) {
if(!"9".equals(market.getCheckFlag())){//9-校验失败
if(!"0".equals(market.getCheckFlag())){//0-未校验
throw new ServiceException("校验状态异常,不允许删除!");
}
if (market.getMagneticCardId() != null) {