支付方式修改接口完善

This commit is contained in:
张松
2025-03-04 17:26:27 +08:00
parent 430a3825f5
commit fcd9196558

View File

@@ -54,7 +54,7 @@ public class ShopPayTypeController {
r.eq(ShopPayType::getPayType, shopPayType.getPayType()).or(r1 -> { r.eq(ShopPayType::getPayType, shopPayType.getPayType()).or(r1 -> {
r1.eq(ShopPayType::getPayName, shopPayType.getPayName()); r1.eq(ShopPayType::getPayName, shopPayType.getPayName());
}); });
})); }).ne(ShopPayType::getId, shopPayTypeDTO.getId()));
if (count > 0) { if (count > 0) {
throw new ApiNotPrintException("支付方式或支付名称已存在"); throw new ApiNotPrintException("支付方式或支付名称已存在");
} }