1
zyy
2025-11-29 c6eddb4918edb92d78a04525d4e84867cc97f667
trading-order-admin/src/main/java/com/yami/trading/admin/controller/dz/AdminStockDarkPoolsController.java
@@ -1,5 +1,6 @@
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;
@@ -7,6 +8,7 @@
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;
@@ -20,6 +22,10 @@
    @Resource
    StockDzService stockDzService;
    @Autowired
    private PermissionFacade permissionFacade;
    /**
     * @Description: 获取大宗列表
@@ -79,7 +85,7 @@
                                  @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("大宗审核")
@@ -87,11 +93,12 @@
    @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);
    }
}