支付方式修改接口完善
This commit is contained in:
@@ -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("支付方式或支付名称已存在");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user