zyy
2025-08-04 7f73eadee4c6b73f2c0608254bc9e9b82f023c3d
src/main/java/com/nq/controller/backend/AdminExchangeRateController.java
@@ -4,6 +4,7 @@
import com.nq.enums.EStockType;
import com.nq.pojo.ExchangeRate;
import com.nq.service.ExchangeRateService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
@@ -38,7 +39,7 @@
        if (model == null) {
            return ServerResponse.createByErrorMsg("editRate model is null");
        }
        if (model.getRata() == null || model.getCurrency().isEmpty() || model.getConversionCurrency().isEmpty()) {
        if (model.getRata() == null || StringUtils.isBlank(model.getCurrency()) || StringUtils.isBlank(model.getConversionCurrency())) {
            return ServerResponse.createByErrorMsg("请输入货币和汇率参数不能为空");
        }
        if (model.getCurrency().equals(model.getConversionCurrency())) {