mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-10-13 13:20:23 +00:00
fix(service): 修复码牌相关删除功能中的数据存在性检查
This commit is contained in:
@@ -78,7 +78,7 @@ public class CashierCodeConfigService {
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void delete(Long id) {
|
||||
if (cashierCodeConfigManager.existedById(id)){
|
||||
if (!cashierCodeConfigManager.existedById(id)){
|
||||
throw new DataNotExistException("收银码牌配置不存在");
|
||||
}
|
||||
// 删除类型配置
|
||||
|
@@ -91,7 +91,7 @@ public class CashierCodeTypeConfigService {
|
||||
* 删除
|
||||
*/
|
||||
public void delete(Long id) {
|
||||
if (codeTypeConfigManager.existedById(id)){
|
||||
if (!codeTypeConfigManager.existedById(id)){
|
||||
throw new DataNotExistException("该码牌类型配置不存在");
|
||||
}
|
||||
codeTypeConfigManager.deleteById(id);
|
||||
|
Reference in New Issue
Block a user