From c65c19ad434b82e45b3cc2ff6343d19ee2b3fc59 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 20 五月 2024 21:32:55 +0800
Subject: [PATCH] 优化自动值ID的插件
---
pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proUR/ProURSv.java | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proUR/ProURSv.java b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proUR/ProURSv.java
index b522f12..65db33c 100644
--- a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proUR/ProURSv.java
+++ b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proUR/ProURSv.java
@@ -25,7 +25,7 @@
@Transactional
public int save(PltProductUnqualifiedReason reason) {
- int count = dao.insert(reason);
+ int count = dao.insertSelective(reason);
return count;
}
@@ -70,5 +70,11 @@
return rsVo ;
}
+ public int disabled(Long id, Boolean disabled) {
+ PltProductUnqualifiedReason reason = new PltProductUnqualifiedReason();
+ reason.setId(id);
+ reason.setDisabled(disabled);
+ return dao.updateByPrimaryKeySelective(reason);
+ }
}
--
Gitblit v1.8.0