From 4d2a6bd70db3fdf4646b23244563252e41a514db Mon Sep 17 00:00:00 2001
From: liuxm <liuxm@fescotech.com>
Date: 星期四, 16 五月 2024 09:42:58 +0800
Subject: [PATCH] 产品,生产线,添加查询所有方法
---
pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java b/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java
index ce9d298..6004a72 100644
--- a/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java
+++ b/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/role/RoleSv.java
@@ -49,6 +49,19 @@
return this.dao.deleteLogicById(id);
}
+ /**
+ * 绂佺敤鎴栧惎鐢ㄨ鑹蹭俊鎭�
+ * @param id
+ * @param disabled
+ * @return
+ */
+ public int disabled(Long id,Boolean disabled) {
+ BaRole role=new BaRole();
+ role.id=id;
+ role.disabled=disabled;
+ return dao.updateByPrimaryKeySelective(role);
+ }
+
@Transactional
public int update(BaRole role) {
int count = dao.updateByPrimaryKeySelective(role);
@@ -80,6 +93,10 @@
return dao.selectByPrimaryKey(Long.valueOf(roleId));
}
+ public List<BaRole> selectAll() {
+ return dao.selectAll();
+ }
+
/**
* 鑾峰彇瑙掕壊鍒楄〃
*/
--
Gitblit v1.8.0