From 8974a45c4b03a1afdbf0bd7ae049eea1f17a815b Mon Sep 17 00:00:00 2001 From: zhaodw <13693325155@163.com> Date: Sat, 12 Jul 2025 14:22:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/rysqlite3.db | Bin 223232 -> 232448 bytes .../item/controller/ItemController.java | 2 +- src/main/resources/application-druid.yml | 2 +- .../resources/mybatis/project/ItemMapper.xml | 2 +- .../resources/templates/project/case/add.html | 9 +++++---- .../templates/project/case/edit.html | 8 ++++---- .../resources/templates/project/item/add.html | 2 +- .../templates/project/item/edit.html | 2 +- 8 files changed, 14 insertions(+), 13 deletions(-) diff --git a/sql/rysqlite3.db b/sql/rysqlite3.db index 4e888e9f250f20b35ef41c3ea1dfc740075e105e..559fee06f6ab118789d6e7ba4f15853bdd8e7bf2 100644 GIT binary patch delta 1971 zcmb_dTWB0r7(V};%;GM&xNbKW(~xFC(wJ;I=gjQv?m(#V#Y>)4?fuVAmV15HV>sa8#c559>A;zQ7XX7*yz#HeH+ z{$Yo6zT1EPIWu3?&Ad}T+bZ86gsfcJwHIz&9r<0ZSsh6InH%=>`1mfS8JrnPWbu;c zk356g!KRk>w)T!zS*97LkEUNv^YB= z?}Jz!NKdy;J>x?vp!W#9M+=Mooo8t7&Emc;(n$xs{|4~d$8g+_5Hi&Wy-N!;NzYRa zfja2ZwA14wEe#C~UT=fS80VVCReUHs5>}#N=D1-|Ly3xHH|*}}l-Dn3_*=JJHF&&O z=mvfSvSRsd_)r2*@nR0LzdZH|%%c*rB5Kb`pFaT);4XX(ci;=S37^0s%!`NTq&qsU zcxcsNUA6%0kLEPiAI#HOzc;g3ADEL^zcVMWert|ny>Ff@uAG-T?l*dY68aGxq9Em^ z1Cj*ua1dzDzw>7)krfLI@Ir01M~SJwy=J*cs6qx>?x2a`Mdz-a4SNP^7q4YtW`0NG-O>(}<4~!J3za7%k5F@g3;WH9wNR%vg90Wl_tU0kEtKpDWsZ#=eKlkZ zhvLzg9*L@2JXT!xL$E}pA{&2{YI0kt8XZ?EGg#cFl3&95pA>rz(Y|{3c&diVEpASU zrA9g@X2MjiY@Z63mvBc0C65#7T^Pa#v7R+g2kb^wMTq{(@YZ?>eUi&*w7FQi5sBd5 z*ZM9zPzMD-fgq zv>d$!|4&^h$0$y!HDZxXa;%zk4v{0P=TW)u>R+1G0Z9M= delta 436 zcmZpe!PjtscY-u)Cj$e+t%(ZujGY@3zO%CYxV&!XE<*)Fb1P#*D^tVG6WM;Q zF=XNi6_=Ekl~GMl&qqa43%PaK)mUXT9{5x|Io$ACXt(;msyfuqz@F;PtHipOHU0h zNh~QXo?JLhm=&yX`{Pz7#an!=OyLa7tC_=?8JX5Fg#-QN%ET00GJV4rCco{=lb9n} E0psj_dH?_b 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 @@
- +