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

+ 1 - 1
StoreService/src/main/java/com/java110/store/listener/resourceStore/AbstractResourceStoreBusinessServiceDataFlowListener.java

@@ -58,7 +58,7 @@ public abstract class AbstractResourceStoreBusinessServiceDataFlowListener exten
     protected void autoSaveDelBusinessResourceStore(Business business, JSONObject businessResourceStore) {
 //自动插入DEL
         Map info = new HashMap();
-        info.put("resourceResourceStoreId", businessResourceStore.getString("resourceResourceStoreId"));
+        info.put("resId", businessResourceStore.getString("resId"));
         info.put("statusCd", StatusConstant.STATUS_CD_VALID);
         List<Map> currentResourceStoreInfos = getResourceStoreServiceDaoImpl().getResourceStoreInfo(info);
         if (currentResourceStoreInfos == null || currentResourceStoreInfos.size() != 1) {

+ 5 - 5
StoreService/src/main/java/com/java110/store/listener/resourceStore/DeleteResourceStoreInfoListener.java

@@ -78,7 +78,7 @@ public class DeleteResourceStoreInfoListener extends AbstractResourceStoreBusine
                     JSONObject businessResourceStore = businessResourceStores.getJSONObject(_resourceResourceStoreIndex);
                     doBusinessResourceStore(business, businessResourceStore);
                     if (_obj instanceof JSONObject) {
-                        dataFlowContext.addParamOut("resourceResourceStoreId", businessResourceStore.getString("resourceResourceStoreId"));
+                        dataFlowContext.addParamOut("resId", businessResourceStore.getString("resId"));
                     }
                 }
             }
@@ -110,7 +110,7 @@ public class DeleteResourceStoreInfoListener extends AbstractResourceStoreBusine
                 Map businessResourceStoreInfo = businessResourceStoreInfos.get(_resourceResourceStoreIndex);
                 flushBusinessResourceStoreInfo(businessResourceStoreInfo, StatusConstant.STATUS_CD_INVALID);
                 resourceResourceStoreServiceDaoImpl.updateResourceStoreInfoInstance(businessResourceStoreInfo);
-                dataFlowContext.addParamOut("resourceResourceStoreId", businessResourceStoreInfo.get("resourceResourceStore_id"));
+                dataFlowContext.addParamOut("resId", businessResourceStoreInfo.get("res_id"));
             }
         }
 
@@ -161,10 +161,10 @@ public class DeleteResourceStoreInfoListener extends AbstractResourceStoreBusine
      */
     private void doBusinessResourceStore(Business business, JSONObject businessResourceStore) {
 
-        Assert.jsonObjectHaveKey(businessResourceStore, "resourceResourceStoreId", "businessResourceStore 节点下没有包含 resourceResourceStoreId 节点");
+        Assert.jsonObjectHaveKey(businessResourceStore, "resId", "businessResourceStore 节点下没有包含 resId 节点");
 
-        if (businessResourceStore.getString("resourceResourceStoreId").startsWith("-")) {
-            throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR, "resourceResourceStoreId 错误,不能自动生成(必须已经存在的resourceResourceStoreId)" + businessResourceStore);
+        if (businessResourceStore.getString("resId").startsWith("-")) {
+            throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR, "resId 错误,不能自动生成(必须已经存在的resId)" + businessResourceStore);
         }
         //自动插入DEL
         autoSaveDelBusinessResourceStore(business, businessResourceStore);

+ 5 - 5
StoreService/src/main/java/com/java110/store/listener/resourceStore/SaveResourceStoreInfoListener.java

@@ -68,7 +68,7 @@ public class SaveResourceStoreInfoListener extends AbstractResourceStoreBusiness
                 JSONObject businessResourceStore = businessResourceStores.getJSONObject(bResourceStoreIndex);
                 doBusinessResourceStore(business, businessResourceStore);
                 if (bObj instanceof JSONObject) {
-                    dataFlowContext.addParamOut("resourceResourceStoreId", businessResourceStore.getString("resourceResourceStoreId"));
+                    dataFlowContext.addParamOut("resId", businessResourceStore.getString("resId"));
                 }
             }
         }
@@ -94,7 +94,7 @@ public class SaveResourceStoreInfoListener extends AbstractResourceStoreBusiness
             reFreshShareColumn(info, businessResourceStoreInfo.get(0));
             resourceResourceStoreServiceDaoImpl.saveResourceStoreInfoInstance(info);
             if (businessResourceStoreInfo.size() == 1) {
-                dataFlowContext.addParamOut("resourceResourceStoreId", businessResourceStoreInfo.get(0).get("resourceResourceStore_id"));
+                dataFlowContext.addParamOut("resId", businessResourceStoreInfo.get(0).get("resId"));
             }
         }
     }
@@ -152,13 +152,13 @@ public class SaveResourceStoreInfoListener extends AbstractResourceStoreBusiness
      */
     private void doBusinessResourceStore(Business business, JSONObject businessResourceStore) {
 
-        Assert.jsonObjectHaveKey(businessResourceStore, "resourceResourceStoreId", "businessResourceStore 节点下没有包含 resourceResourceStoreId 节点");
+        Assert.jsonObjectHaveKey(businessResourceStore, "resId", "businessResourceStore 节点下没有包含 resId 节点");
 
-        if (businessResourceStore.getString("resourceResourceStoreId").startsWith("-")) {
+        if (businessResourceStore.getString("resId").startsWith("-")) {
             //刷新缓存
             //flushResourceStoreId(business.getDatas());
 
-            businessResourceStore.put("resourceResourceStoreId", GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_resourceResourceStoreId));
+            businessResourceStore.put("resId", GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_resId));
 
         }
 

+ 5 - 5
StoreService/src/main/java/com/java110/store/listener/resourceStore/UpdateResourceStoreInfoListener.java

@@ -79,7 +79,7 @@ public class UpdateResourceStoreInfoListener extends AbstractResourceStoreBusine
                     JSONObject businessResourceStore = businessResourceStores.getJSONObject(_resourceResourceStoreIndex);
                     doBusinessResourceStore(business, businessResourceStore);
                     if (_obj instanceof JSONObject) {
-                        dataFlowContext.addParamOut("resourceResourceStoreId", businessResourceStore.getString("resourceResourceStoreId"));
+                        dataFlowContext.addParamOut("resId", businessResourceStore.getString("resId"));
                     }
                 }
             }
@@ -110,7 +110,7 @@ public class UpdateResourceStoreInfoListener extends AbstractResourceStoreBusine
                 flushBusinessResourceStoreInfo(businessResourceStoreInfo, StatusConstant.STATUS_CD_VALID);
                 resourceResourceStoreServiceDaoImpl.updateResourceStoreInfoInstance(businessResourceStoreInfo);
                 if (businessResourceStoreInfo.size() == 1) {
-                    dataFlowContext.addParamOut("resourceResourceStoreId", businessResourceStoreInfo.get("resourceResourceStore_id"));
+                    dataFlowContext.addParamOut("resId", businessResourceStoreInfo.get("res_id"));
                 }
             }
         }
@@ -162,10 +162,10 @@ public class UpdateResourceStoreInfoListener extends AbstractResourceStoreBusine
      */
     private void doBusinessResourceStore(Business business, JSONObject businessResourceStore) {
 
-        Assert.jsonObjectHaveKey(businessResourceStore, "resourceResourceStoreId", "businessResourceStore 节点下没有包含 resourceResourceStoreId 节点");
+        Assert.jsonObjectHaveKey(businessResourceStore, "resId", "businessResourceStore 节点下没有包含 resId 节点");
 
-        if (businessResourceStore.getString("resourceResourceStoreId").startsWith("-")) {
-            throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR, "resourceResourceStoreId 错误,不能自动生成(必须已经存在的resourceResourceStoreId)" + businessResourceStore);
+        if (businessResourceStore.getString("resId").startsWith("-")) {
+            throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR, "resId 错误,不能自动生成(必须已经存在的resId)" + businessResourceStore);
         }
         //自动保存DEL
         autoSaveDelBusinessResourceStore(business, businessResourceStore);

+ 39 - 23
WebService/src/main/resources/components/resourceStorePackage/resourceStore-manage/resourceStoreManage.html

@@ -5,25 +5,36 @@
                 <div class="ibox-title">
                     <h5>查询条件</h5>
                     <div class="ibox-tools" style="top:10px;">
-                        
+
                     </div>
                 </div>
                 <div class="ibox-content">
                     <div class="row">
-<div class="col-sm-4" >
-<div class="form-group">
-                                <input type="text" placeholder="请输入物品ID" v-model="resourceStoreManageInfo.conditions.resId" class=" form-control">
-                            </div>                        </div><div class="col-sm-4" >
-<div class="form-group">
-                                <input type="text" placeholder="请输入物品名称" v-model="resourceStoreManageInfo.conditions.resName" class=" form-control">
-                            </div>                        </div><div class="col-sm-3" >
-<div class="form-group">
-                                <input type="text" placeholder="请输入物品编码" v-model="resourceStoreManageInfo.conditions.resCode" class=" form-control">
-                            </div>                        </div><div class="col-sm-1">
-                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryResourceStoreMethod()">
-                                    <i class="glyphicon glyphicon-search"></i> 查询
+                        <div class="col-sm-4">
+                            <div class="form-group">
+                                <input type="text" placeholder="请输入物品ID"
+                                       v-model="resourceStoreManageInfo.conditions.resId" class=" form-control">
+                            </div>
+                        </div>
+                        <div class="col-sm-4">
+                            <div class="form-group">
+                                <input type="text" placeholder="请输入物品名称"
+                                       v-model="resourceStoreManageInfo.conditions.resName" class=" form-control">
+                            </div>
+                        </div>
+                        <div class="col-sm-3">
+                            <div class="form-group">
+                                <input type="text" placeholder="请输入物品编码"
+                                       v-model="resourceStoreManageInfo.conditions.resCode" class=" form-control">
+                            </div>
+                        </div>
+                        <div class="col-sm-1">
+                            <button type="button" class="btn btn-primary btn-sm"
+                                    v-on:click="_queryResourceStoreMethod()">
+                                <i class="glyphicon glyphicon-search"></i> 查询
                             </button>
-                        </div></div>
+                        </div>
+                    </div>
 
 
                 </div>
@@ -34,11 +45,11 @@
         <div class="col-lg-12">
             <div class="ibox">
                 <div class="ibox-title">
-                    <h5>物品管理信息</h5>
+                    <h5>物品信息</h5>
                     <div class="ibox-tools" style="top:10px;">
                         <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddResourceStoreModal()">
                             <i class="glyphicon glyphicon-plus"></i>
-                            添加物品管理
+                            添加
                         </button>
                     </div>
                 </div>
@@ -49,7 +60,7 @@
                     >
                         <thead>
                         <tr>
-                                                        <th class="text-center">物品ID</th>
+                            <th class="text-center">物品ID</th>
                             <th class="text-center">物品名称</th>
                             <th class="text-center">物品编码</th>
                             <th class="text-center">物品价格</th>
@@ -61,17 +72,23 @@
                         </thead>
                         <tbody>
                         <tr v-for="resourceStore in resourceStoreManageInfo.resourceStores">
-                                                        <td class="text-center">{{resourceStore.resId}}</td>
+                            <td class="text-center">{{resourceStore.resId}}</td>
                             <td class="text-center">{{resourceStore.resName}}</td>
                             <td class="text-center">{{resourceStore.resCode}}</td>
                             <td class="text-center">{{resourceStore.price}}</td>
                             <td class="text-center">{{resourceStore.stock}}</td>
-                            <td class="text-center"><div class="btn-group">
-                                    <button class="btn-white btn btn-xs" v-on:click="_openEditResourceStoreModel(resourceStore)">修改</button>
+                            <td class="text-center">
+                                <div class="btn-group">
+                                    <button class="btn-white btn btn-xs"
+                                            v-on:click="_openEditResourceStoreModel(resourceStore)">修改
+                                    </button>
                                 </div>
                                 <div class="btn-group">
-                                    <button class="btn-white btn btn-xs" v-on:click="_openDeleteResourceStoreModel(resourceStore)">删除</button>
-                                </div></td>
+                                    <button class="btn-white btn btn-xs"
+                                            v-on:click="_openDeleteResourceStoreModel(resourceStore)">删除
+                                    </button>
+                                </div>
+                            </td>
 
                         </tr>
                         </tbody>
@@ -90,7 +107,6 @@
         </div>
     </div>
 
-    
 
     <vc:create name="addResourceStore"
                callBackListener=""

+ 1 - 1
java110-core/src/main/java/com/java110/core/factory/GenerateCodeFactory.java

@@ -96,7 +96,7 @@ public class GenerateCodeFactory {
     public static final String CODE_PREFIX_ruId = "83";
     public static final String CODE_PREFIX_orgId = "84";
     public static final String CODE_PREFIX_relId = "84";
-    public static final String CODE_PREFIX_resourceResourceStoreId = "85";
+    public static final String CODE_PREFIX_resId = "85";
 
 
 

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

@@ -5,197 +5,195 @@
 <mapper namespace="resourceResourceStoreServiceDaoImpl">
 
     <!-- 保存资源信息 add by wuxw 2018-07-03 -->
-       <insert id="saveBusinessResourceStoreInfo" parameterType="Map">
-           insert into business_resource_store(
-res_name,operate,price,res_code,description,store_id,stock,b_id,res_id
-) values (
-#{resName},#{operate},#{price},#{resCode},#{description},#{storeId},#{stock},#{bId},#{resId}
-)
-       </insert>
-
-
-       <!-- 查询资源信息(Business) add by wuxw 2018-07-03 -->
-       <select id="getBusinessResourceStoreInfo" parameterType="Map" resultType="Map">
-           select  t.res_name,t.res_name resName,t.operate,t.price,t.res_code,t.res_code resCode,t.description,t.store_id,t.store_id storeId,t.stock,t.b_id,t.b_id bId,t.res_id,t.res_id resId 
-from business_resource_store t 
-where 1 =1 
-<if test="resName !=null and resName != ''">
-   and t.res_name= #{resName}
-</if> 
-<if test="operate !=null and operate != ''">
-   and t.operate= #{operate}
-</if> 
-<if test="price !=null and price != ''">
-   and t.price= #{price}
-</if> 
-<if test="resCode !=null and resCode != ''">
-   and t.res_code= #{resCode}
-</if> 
-<if test="description !=null and description != ''">
-   and t.description= #{description}
-</if> 
-<if test="storeId !=null and storeId != ''">
-   and t.store_id= #{storeId}
-</if> 
-<if test="stock !=null and stock != ''">
-   and t.stock= #{stock}
-</if> 
-<if test="bId !=null and bId != ''">
-   and t.b_id= #{bId}
-</if> 
-<if test="resId !=null and resId != ''">
-   and t.res_id= #{resId}
-</if> 
-
-       </select>
+    <insert id="saveBusinessResourceStoreInfo" parameterType="Map">
+        insert into business_resource_store(
+        res_name,operate,price,res_code,description,store_id,stock,b_id,res_id
+        ) values (
+        #{resName},#{operate},#{price},#{resCode},#{description},#{storeId},#{stock},#{bId},#{resId}
+        )
+    </insert>
 
 
+    <!-- 查询资源信息(Business) add by wuxw 2018-07-03 -->
+    <select id="getBusinessResourceStoreInfo" parameterType="Map" resultType="Map">
+        select t.res_name,t.res_name resName,t.operate,t.price,t.res_code,t.res_code
+        resCode,t.description,t.store_id,t.store_id storeId,t.stock,t.b_id,t.b_id bId,t.res_id,t.res_id resId
+        from business_resource_store t
+        where 1 =1
+        <if test="resName !=null and resName != ''">
+            and t.res_name= #{resName}
+        </if>
+        <if test="operate !=null and operate != ''">
+            and t.operate= #{operate}
+        </if>
+        <if test="price !=null and price != ''">
+            and t.price= #{price}
+        </if>
+        <if test="resCode !=null and resCode != ''">
+            and t.res_code= #{resCode}
+        </if>
+        <if test="description !=null and description != ''">
+            and t.description= #{description}
+        </if>
+        <if test="storeId !=null and storeId != ''">
+            and t.store_id= #{storeId}
+        </if>
+        <if test="stock !=null and stock != ''">
+            and t.stock= #{stock}
+        </if>
+        <if test="bId !=null and bId != ''">
+            and t.b_id= #{bId}
+        </if>
+        <if test="resId !=null and resId != ''">
+            and t.res_id= #{resId}
+        </if>
 
+    </select>
 
 
     <!-- 保存资源信息至 instance表中 add by wuxw 2018-07-03 -->
     <insert id="saveResourceStoreInfoInstance" parameterType="Map">
         insert into resource_store(
-res_name,price,res_code,description,status_cd,store_id,stock,b_id,res_id
-) select t.res_name,t.price,t.res_code,t.description,'0',t.store_id,t.stock,t.b_id,t.res_id from business_resource_store t where 1=1
-<if test="resName !=null and resName != ''">
-   and t.res_name= #{resName}
-</if> 
-   and t.operate= 'ADD'
-<if test="price !=null and price != ''">
-   and t.price= #{price}
-</if> 
-<if test="resCode !=null and resCode != ''">
-   and t.res_code= #{resCode}
-</if> 
-<if test="description !=null and description != ''">
-   and t.description= #{description}
-</if> 
-<if test="storeId !=null and storeId != ''">
-   and t.store_id= #{storeId}
-</if> 
-<if test="stock !=null and stock != ''">
-   and t.stock= #{stock}
-</if> 
-<if test="bId !=null and bId != ''">
-   and t.b_id= #{bId}
-</if> 
-<if test="resId !=null and resId != ''">
-   and t.res_id= #{resId}
-</if> 
+        res_name,price,res_code,description,status_cd,store_id,stock,b_id,res_id
+        ) select t.res_name,t.price,t.res_code,t.description,'0',t.store_id,t.stock,t.b_id,t.res_id from
+        business_resource_store t where 1=1
+        <if test="resName !=null and resName != ''">
+            and t.res_name= #{resName}
+        </if>
+        and t.operate= 'ADD'
+        <if test="price !=null and price != ''">
+            and t.price= #{price}
+        </if>
+        <if test="resCode !=null and resCode != ''">
+            and t.res_code= #{resCode}
+        </if>
+        <if test="description !=null and description != ''">
+            and t.description= #{description}
+        </if>
+        <if test="storeId !=null and storeId != ''">
+            and t.store_id= #{storeId}
+        </if>
+        <if test="stock !=null and stock != ''">
+            and t.stock= #{stock}
+        </if>
+        <if test="bId !=null and bId != ''">
+            and t.b_id= #{bId}
+        </if>
+        <if test="resId !=null and resId != ''">
+            and t.res_id= #{resId}
+        </if>
 
     </insert>
 
 
-
     <!-- 查询资源信息 add by wuxw 2018-07-03 -->
     <select id="getResourceStoreInfo" parameterType="Map" resultType="Map">
-        select  t.res_name,t.res_name resName,t.price,t.res_code,t.res_code resCode,t.description,t.status_cd,t.status_cd statusCd,t.store_id,t.store_id storeId,t.stock,t.b_id,t.b_id bId,t.res_id,t.res_id resId 
-from resource_store t 
-where 1 =1 
-<if test="resName !=null and resName != ''">
-   and t.res_name= #{resName}
-</if> 
-<if test="price !=null and price != ''">
-   and t.price= #{price}
-</if> 
-<if test="resCode !=null and resCode != ''">
-   and t.res_code= #{resCode}
-</if> 
-<if test="description !=null and description != ''">
-   and t.description= #{description}
-</if> 
-<if test="statusCd !=null and statusCd != ''">
-   and t.status_cd= #{statusCd}
-</if> 
-<if test="storeId !=null and storeId != ''">
-   and t.store_id= #{storeId}
-</if> 
-<if test="stock !=null and stock != ''">
-   and t.stock= #{stock}
-</if> 
-<if test="bId !=null and bId != ''">
-   and t.b_id= #{bId}
-</if> 
-<if test="resId !=null and resId != ''">
-   and t.res_id= #{resId}
-</if> 
-<if test="page != -1 and page != null ">
-   limit #{page}, #{row}
-</if> 
+        select t.res_name,t.res_name resName,t.price,t.res_code,t.res_code resCode,t.description,t.status_cd,t.status_cd
+        statusCd,t.store_id,t.store_id storeId,t.stock,t.b_id,t.b_id bId,t.res_id,t.res_id resId
+        from resource_store t
+        where 1 =1
+        <if test="resName !=null and resName != ''">
+            and t.res_name= #{resName}
+        </if>
+        <if test="price !=null and price != ''">
+            and t.price= #{price}
+        </if>
+        <if test="resCode !=null and resCode != ''">
+            and t.res_code= #{resCode}
+        </if>
+        <if test="description !=null and description != ''">
+            and t.description= #{description}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="storeId !=null and storeId != ''">
+            and t.store_id= #{storeId}
+        </if>
+        <if test="stock !=null and stock != ''">
+            and t.stock= #{stock}
+        </if>
+        <if test="bId !=null and bId != ''">
+            and t.b_id= #{bId}
+        </if>
+        <if test="resId !=null and resId != ''">
+            and t.res_id= #{resId}
+        </if>
+        <if test="page != -1 and page != null ">
+            limit #{page}, #{row}
+        </if>
 
     </select>
 
 
-
-
     <!-- 修改资源信息 add by wuxw 2018-07-03 -->
     <update id="updateResourceStoreInfoInstance" parameterType="Map">
-        update  resource_store t set t.status_cd = #{statusCd}
-<if test="newBId != null and newBId != ''">
-,t.b_id = #{newBId}
-</if> 
-<if test="resName !=null and resName != ''">
-, t.res_name= #{resName}
-</if> 
-<if test="price !=null and price != ''">
-, t.price= #{price}
-</if> 
-<if test="resCode !=null and resCode != ''">
-, t.res_code= #{resCode}
-</if> 
-<if test="description !=null and description != ''">
-, t.description= #{description}
-</if> 
-<if test="storeId !=null and storeId != ''">
-, t.store_id= #{storeId}
-</if> 
-<if test="stock !=null and stock != ''">
-, t.stock= #{stock}
-</if> 
- where 1=1 <if test="bId !=null and bId != ''">
-and t.b_id= #{bId}
-</if> 
-<if test="resId !=null and resId != ''">
-and t.res_id= #{resId}
-</if> 
+        update resource_store t set t.status_cd = #{statusCd}
+        <if test="newBId != null and newBId != ''">
+            ,t.b_id = #{newBId}
+        </if>
+        <if test="resName !=null and resName != ''">
+            , t.res_name= #{resName}
+        </if>
+        <if test="price !=null and price != ''">
+            , t.price= #{price}
+        </if>
+        <if test="resCode !=null and resCode != ''">
+            , t.res_code= #{resCode}
+        </if>
+        <if test="description !=null and description != ''">
+            , t.description= #{description}
+        </if>
+        <if test="storeId !=null and storeId != ''">
+            , t.store_id= #{storeId}
+        </if>
+        <if test="stock !=null and stock != ''">
+            , t.stock= #{stock}
+        </if>
+        where 1=1
+        <if test="bId !=null and bId != ''">
+            and t.b_id= #{bId}
+        </if>
+        <if test="resId !=null and resId != ''">
+            and t.res_id= #{resId}
+        </if>
 
     </update>
 
     <!-- 查询资源数量 add by wuxw 2018-07-03 -->
-     <select id="queryResourceStoresCount" parameterType="Map" resultType="Map">
-        select  count(1) count 
-from resource_store t 
-where 1 =1 
-<if test="resName !=null and resName != ''">
-   and t.res_name= #{resName}
-</if> 
-<if test="price !=null and price != ''">
-   and t.price= #{price}
-</if> 
-<if test="resCode !=null and resCode != ''">
-   and t.res_code= #{resCode}
-</if> 
-<if test="description !=null and description != ''">
-   and t.description= #{description}
-</if> 
-<if test="statusCd !=null and statusCd != ''">
-   and t.status_cd= #{statusCd}
-</if> 
-<if test="storeId !=null and storeId != ''">
-   and t.store_id= #{storeId}
-</if> 
-<if test="stock !=null and stock != ''">
-   and t.stock= #{stock}
-</if> 
-<if test="bId !=null and bId != ''">
-   and t.b_id= #{bId}
-</if> 
-<if test="resId !=null and resId != ''">
-   and t.res_id= #{resId}
-</if> 
-
-
-     </select>
+    <select id="queryResourceStoresCount" parameterType="Map" resultType="Map">
+        select count(1) count
+        from resource_store t
+        where 1 =1
+        <if test="resName !=null and resName != ''">
+            and t.res_name= #{resName}
+        </if>
+        <if test="price !=null and price != ''">
+            and t.price= #{price}
+        </if>
+        <if test="resCode !=null and resCode != ''">
+            and t.res_code= #{resCode}
+        </if>
+        <if test="description !=null and description != ''">
+            and t.description= #{description}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="storeId !=null and storeId != ''">
+            and t.store_id= #{storeId}
+        </if>
+        <if test="stock !=null and stock != ''">
+            and t.stock= #{stock}
+        </if>
+        <if test="bId !=null and bId != ''">
+            and t.b_id= #{bId}
+        </if>
+        <if test="resId !=null and resId != ''">
+            and t.res_id= #{resId}
+        </if>
+
+
+    </select>
 
 </mapper>