From c3d68f210192e2ec5bd06e4d21ede0bd8305fd63 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期三, 19 六月 2024 17:31:03 +0800
Subject: [PATCH] change table name
---
pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proLine/ProLineSv.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proLine/ProLineSv.java b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proLine/ProLineSv.java
index 6398bc8..156892f 100644
--- a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proLine/ProLineSv.java
+++ b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proLine/ProLineSv.java
@@ -24,9 +24,9 @@
}
@Transactional
- public int save(PltProductionLine line) throws Exception {
+ public int save(PltProductionLine line) throws RuntimeException {
if(dao.selectByNameId(line.id,line.name)>0){
- throw new Exception("鐢熶骇绾垮悕绉板凡瀛樺湪");
+ throw new RuntimeException("鐢熶骇绾垮悕绉板凡瀛樺湪");
}
int count = dao.insertSelective(line);
return count;
@@ -45,9 +45,9 @@
@Transactional
- public int update(PltProductionLine line) throws Exception {
+ public int update(PltProductionLine line) throws RuntimeException {
if(dao.selectByNameId(line.id,line.name)>0){
- throw new Exception("鐢熶骇绾垮悕绉板凡瀛樺湪");
+ throw new RuntimeException("鐢熶骇绾垮悕绉板凡瀛樺湪");
}
int count = dao.updateByPrimaryKeySelective(line);
return count;
--
Gitblit v1.8.0