| | |
| | | package com.yami.trading.admin.controller.dz; |
| | | |
| | | import com.yami.trading.admin.facade.PermissionFacade; |
| | | import com.yami.trading.bean.dz.StockDz; |
| | | import com.yami.trading.common.constants.Constants; |
| | | import com.yami.trading.common.domain.Result; |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @Resource |
| | | StockDzService stockDzService; |
| | | |
| | | @Autowired |
| | | private PermissionFacade permissionFacade; |
| | | |
| | | |
| | | /** |
| | | * @Description: 获取大宗列表 |
| | |
| | | @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_DARK); |
| | | return stockDzService.getDzCheckList(pageNum, pageSize, state, stockCode, Constants.US_DARK, permissionFacade.getOwnerUserIds()); |
| | | } |
| | | |
| | | @ApiOperation("大宗审核") |
| | |
| | | @ResponseBody |
| | | public Result check(@RequestParam(value = "id") String id, |
| | | @RequestParam(value = "checkType") Integer checkType, |
| | | @RequestParam(value = "orderNum", required = false) Double orderNum) { |
| | | @RequestParam(value = "orderNum", required = false) Double orderNum, |
| | | @RequestParam(value = "price", required = false, defaultValue = "0") double price) { |
| | | if(checkType != 2 && (id == null || checkType == null || orderNum == null)){ |
| | | return Result.failed("参数不能为空"); |
| | | } |
| | | return stockDzService.dzCheck(id, checkType, orderNum); |
| | | return stockDzService.dzCheck(id, checkType, orderNum, price); |
| | | } |
| | | |
| | | } |