Просмотр исходного кода

优化 资源 名称模糊问题

wuxw лет назад: 6
Родитель
Сommit
504ebeab45

+ 2 - 2
WebService/src/main/resources/components/resourceStorePackage/add-resourceStore/addResourceStore.html

@@ -30,14 +30,14 @@
                             <div class="form-group row">
                                 <label class="col-sm-2 col-form-label">物品编码</label>
                                 <div class="col-sm-10">
-                                    <input v-model="addResourceStoreInfo.resCode" type="text" placeholder="填,请填写物品编码"
+                                    <input v-model="addResourceStoreInfo.resCode" type="text" placeholder="填,请填写物品编码"
                                            class="form-control">
                                 </div>
                             </div>
                             <div class="form-group row">
                                 <label class="col-sm-2 col-form-label">物品价格</label>
                                 <div class="col-sm-10">
-                                    <input v-model="addResourceStoreInfo.price" type="text" placeholder="必填,请填写物品价格"
+                                    <input v-model="addResourceStoreInfo.price" type="text" placeholder="必填,请填写物品价格,如终端串码"
                                            class="form-control">
                                 </div>
                             </div>

+ 1 - 1
WebService/src/main/resources/components/resourceStorePackage/edit-resourceStore/editResourceStore.html

@@ -17,7 +17,7 @@
                             <div class="form-group row">
                                 <label class="col-sm-2 col-form-label">物品编码</label>
                                 <div class="col-sm-10">
-                                    <input v-model="editResourceStoreInfo.resCode" type="text" placeholder="必填,请填写物品编码"
+                                    <input v-model="editResourceStoreInfo.resCode" type="text" placeholder="选填,请填写物品编码,如终端串码"
                                            class="form-control">
                                 </div>
                             </div>

+ 2 - 2
java110-db/src/main/resources/mapper/store/ResourceStoreServiceDaoImplMapper.xml

@@ -93,7 +93,7 @@
         from resource_store t
         where 1 =1
         <if test="resName !=null and resName != ''">
-            and t.res_name= #{resName}
+            and t.res_name like concat('%',#{resName},'%')
         </if>
         <if test="price !=null and price != ''">
             and t.price= #{price}
@@ -166,7 +166,7 @@
         from resource_store t
         where 1 =1
         <if test="resName !=null and resName != ''">
-            and t.res_name= #{resName}
+            and t.res_name like concat('%',#{resName},'%')
         </if>
         <if test="price !=null and price != ''">
             and t.price= #{price}