| | |
| | | package com.yami.trading.admin.controller.dz; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yami.trading.bean.dz.StockDz; |
| | | import com.yami.trading.common.constants.Constants; |
| | | import com.yami.trading.common.domain.Result; |
| | | import com.yami.trading.service.dz.StockDzService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | @RestController |
| | | @CrossOrigin |
| | |
| | | public Result getDzListByAdmin(@RequestParam(value = "pageNum", defaultValue = "1") int pageNum, |
| | | @RequestParam(value = "pageSize", defaultValue = "5") int pageSize, |
| | | @RequestParam(value = "keywords", required = false)String keywords) { |
| | | return stockDzService.getDzListByAdmin(pageNum, pageSize, keywords); |
| | | return stockDzService.getDzListByAdmin(pageNum, pageSize, keywords, Constants.US_STOCKS); |
| | | } |
| | | |
| | | /** |
| | |
| | | return stockDzService.updByAdmin(model); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("大宗交易审核列表") |
| | | @RequestMapping({"getDzCheckList.do"}) |
| | | @ResponseBody |
| | | public Result getDzCheckList(@RequestParam(value = "pageNum", defaultValue = "1") int pageNum, |
| | | @RequestParam(value = "pageSize", defaultValue = "15") int pageSize, |
| | | @RequestParam(value = "state", required = false) String state, |
| | | @RequestParam(value = "stockCode", required = false)String stockCode) { |
| | | return stockDzService.getDzCheckList(pageNum, pageSize, state, stockCode, Constants.US_STOCKS); |
| | | } |
| | | |
| | | //大宗审核 |
| | | @RequestMapping({"dzCheck.do"}) |
| | | @ResponseBody |
| | | public Result check(@RequestParam(value = "id") String id, |
| | | @RequestParam(value = "checkType") Integer checkType, |
| | | @RequestParam(value = "orderNum") Double orderNum) { |
| | | if(checkType != 2 && (id == null || checkType == null || orderNum == null)){ |
| | | return Result.failed("参数不能为空"); |
| | | } |
| | | return stockDzService.dzCheck(id, checkType, orderNum); |
| | | } |
| | | |
| | | } |