java110 vor 5 Jahren
Ursprung
Commit
4838af23f2

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

@@ -579,7 +579,7 @@
         select t.name storeName,t.address,su.user_id staffId , t.store_id storeId
         from s_store t
         inner join s_store_user su on t.store_id = su.store_id and su.status_cd = '0'
-        <if test="">
+        <if test="relCd != null and relCd != ''">
             and su.rel_cd = #{relCd}
         </if>
         where
@@ -597,7 +597,7 @@
         select count(1) count
         from s_store t
         inner join s_store_user su on t.store_id = su.store_id and su.status_cd = '0'
-        <if test="">
+        <if test="relCd != null and relCd != ''">
             and su.rel_cd = #{relCd}
         </if>
         where

+ 2 - 0
service-store/src/main/java/com/java110/store/api/StoreStaffApi.java

@@ -40,6 +40,8 @@ public class StoreStaffApi {
      *
      * @param
      * @return
+     * @serviceCode /storeStaff/getStoreStaffs
+     * @path /app/storeStaff/getStoreStaffs
      */
     @RequestMapping(value = "/getStoreStaffs", method = RequestMethod.GET)
     public ResponseEntity<String> getStoreStaffs(@RequestParam(value = "page") int page,