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

fix 1.版本接口完善 2.部分bug修改

classic_blue 1 неделя назад
Родитель
Сommit
f196a005a3

+ 2 - 8
fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendCurrencyController.java

@@ -3,7 +3,6 @@ package com.fuint.module.backendApi.controller;
 import com.fuint.common.dto.AccountInfo;
 import com.fuint.common.dto.ext.CurrencyDto;
 import com.fuint.common.param.PageParam;
-import com.fuint.common.util.I18nUtil;
 import com.fuint.common.util.TokenUtil;
 import com.fuint.common.vo.CurrencyVo;
 import com.fuint.framework.web.BaseController;
@@ -20,7 +19,6 @@ import com.fuint.utils.StringUtil;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.AllArgsConstructor;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 import javax.servlet.http.HttpServletRequest;
@@ -45,9 +43,6 @@ public class BackendCurrencyController extends BaseController {
      */
     private CurrencyService currencyService;
 
-    @Autowired
-    private HttpServletRequest request;
-
     /**
      * 货币表列表查询
      *
@@ -57,9 +52,8 @@ public class BackendCurrencyController extends BaseController {
     @RequestMapping(value = "/list", method = RequestMethod.GET)
     @CrossOrigin
     @PreAuthorize("@pms.hasPermission('currency:list')")
-    public ResponseObject list(@RequestParam(defaultValue = "") String name, PageParam pageParam) throws BusinessCheckException {
-        String message1 = I18nUtil.getMessage("A00001", request.getHeader("lang"));
-        return getSuccessResult(message1);
+    public PageResult<CurrencyVo> list(@RequestParam(defaultValue = "") String name, PageParam pageParam) throws BusinessCheckException {
+        return currencyService.getCurrencyById(name,pageParam);
     }
 
     /**