From f1e6aadf01a2ac32bc1707ca43fc6a2d2587b9ac Mon Sep 17 00:00:00 2001 From: liuxm <liuxm@fescotech.com> Date: 星期四, 16 五月 2024 15:07:14 +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..0662956 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 Object disabled(Long id, Boolean disabled) { + PltProductQualityInspectionItems item = new PltProductQualityInspectionItems(); + item.setId(id); + item.setDisabled(disabled); + return dao.updateByPrimaryKeySelective(item); + } } -- Gitblit v1.8.0