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/proItems/ProItemsSv.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proItems/ProItemsSv.java b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proItems/ProItemsSv.java
index 58edb31..943077d 100644
--- a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proItems/ProItemsSv.java
+++ b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proItems/ProItemsSv.java
@@ -22,7 +22,7 @@
 
     @Transactional
     public int save(PltProductQualityInspectionItems item) {
-        int count = dao.insert(item);
+        int count = dao.insertSelective(item);
         return count;
     }
 
@@ -66,4 +66,11 @@
         rsVo.obj = this.dao.selectSome(params) ;
         return rsVo ;
     }
+
+    public int disabled(Long id, Boolean disabled) {
+        PltProductQualityInspectionItems item = new PltProductQualityInspectionItems();
+        item.setId(id);
+        item.setDisabled(disabled);
+        return dao.updateByPrimaryKeySelective(item);
+    }
 }

--
Gitblit v1.8.0