Quellcode durchsuchen

fixed 员工枚举类bug

fushengqian vor 3 Wochen
Ursprung
Commit
baa03e10cf

+ 1 - 1
fuint-application/src/main/java/com/fuint/common/enums/StaffCategoryEnum.java

@@ -84,7 +84,7 @@ public enum StaffCategoryEnum {
 
     public static List<ParamDto> getStaffCategoryList() {
         return Arrays.stream(StaffCategoryEnum.values())
-                .map(status -> new ParamDto(status.getKey(), status.getValue(), status.getValue()))
+                .map(status -> new ParamDto(status.getKey(), status.getName(), status.getValue()))
                 .collect(Collectors.toList());
     }
 }

+ 1 - 1
fuint-application/src/main/java/com/fuint/common/service/impl/StoreServiceImpl.java

@@ -373,7 +373,7 @@ public class StoreServiceImpl extends ServiceImpl<MtStoreMapper, MtStore> implem
      * @return
      * */
     @Override
-    public List<StoreInfo> queryByDistance(String merchantNo, String keyword, String latitude, String longitude) throws BusinessCheckException {
+    public List<StoreInfo> queryByDistance(String merchantNo, String keyword, String latitude, String longitude) {
         List<StoreInfo> dataList = new ArrayList<>();
 
         MtMerchant mtMerchant = merchantService.queryMerchantByNo(merchantNo);