| | |
| | | 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; |
| | |
| | | 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())) { |