diff --git a/sql/rysqlite3.db b/sql/rysqlite3.db index 4e888e9..559fee0 100644 Binary files a/sql/rysqlite3.db and b/sql/rysqlite3.db differ diff --git a/src/main/java/com/ruoyi/project/project/item/controller/ItemController.java b/src/main/java/com/ruoyi/project/project/item/controller/ItemController.java index d638a62..93158e9 100644 --- a/src/main/java/com/ruoyi/project/project/item/controller/ItemController.java +++ b/src/main/java/com/ruoyi/project/project/item/controller/ItemController.java @@ -75,7 +75,7 @@ public class ItemController extends BaseController public AjaxResult addSave(Item item) { int i = itemService.selectItemByItemNo(item); - if (i != 0){ + if (i > 0){ return error("物品编号重复,请检查!!!"); } return toAjax(itemService.insertItem(item)); diff --git a/src/main/resources/application-druid.yml b/src/main/resources/application-druid.yml index 7990f3f..66a6911 100644 --- a/src/main/resources/application-druid.yml +++ b/src/main/resources/application-druid.yml @@ -8,7 +8,7 @@ spring: # 主库数据源 root master: #url: jdbc:mysql://localhost:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 - url: jdbc:sqlite:D:\Java\test\ruo-yi-fast-sqlite-master\sql\rysqlite3.db?date_string_format=yyyy-MM-dd HH:mm:ss + url: jdbc:sqlite:D:\workSpace\shiwei\sql\rysqlite3.db?date_string_format=yyyy-MM-dd HH:mm:ss username: password: # 从库数据源 diff --git a/src/main/resources/mybatis/project/ItemMapper.xml b/src/main/resources/mybatis/project/ItemMapper.xml index 48130be..8dabc4d 100644 --- a/src/main/resources/mybatis/project/ItemMapper.xml +++ b/src/main/resources/mybatis/project/ItemMapper.xml @@ -91,6 +91,6 @@ \ No newline at end of file diff --git a/src/main/resources/templates/project/case/add.html b/src/main/resources/templates/project/case/add.html index 55a1f85..25dc666 100644 --- a/src/main/resources/templates/project/case/add.html +++ b/src/main/resources/templates/project/case/add.html @@ -47,17 +47,18 @@
- +
- +
- +
- +
+
diff --git a/src/main/resources/templates/project/case/edit.html b/src/main/resources/templates/project/case/edit.html index 05cbd77..4ef591a 100644 --- a/src/main/resources/templates/project/case/edit.html +++ b/src/main/resources/templates/project/case/edit.html @@ -48,15 +48,15 @@
- +
- +
- +
- +
diff --git a/src/main/resources/templates/project/item/add.html b/src/main/resources/templates/project/item/add.html index 45bc71a..50a4542 100644 --- a/src/main/resources/templates/project/item/add.html +++ b/src/main/resources/templates/project/item/add.html @@ -37,7 +37,7 @@
- +
diff --git a/src/main/resources/templates/project/item/edit.html b/src/main/resources/templates/project/item/edit.html index d484d61..24365ce 100644 --- a/src/main/resources/templates/project/item/edit.html +++ b/src/main/resources/templates/project/item/edit.html @@ -17,7 +17,7 @@
- +