| | |
| | | import com.nq.pojo.StockAIOrderPosition; |
| | | import com.nq.service.IStockAiService; |
| | | import com.nq.service.IStockService; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | if (id == null) { |
| | | return ServerResponse.createByErrorMsg("id is null"); |
| | | } |
| | | if (status.isEmpty()) { |
| | | if (StringUtils.isBlank(status)) { |
| | | return ServerResponse.createByErrorMsg("status is null"); |
| | | } |
| | | return stockAiService.orderOperation(id, status); |