1
zyy
2025-11-29 c6eddb4918edb92d78a04525d4e84867cc97f667
trading-order-admin/src/main/java/com/yami/trading/admin/controller/dz/AdminStockDzController.java
@@ -50,10 +50,10 @@
                                     @RequestParam(value = "startTime") String startTime,
                                     @RequestParam(value = "endTime") String endTime,
                                     @RequestParam(value = "discount", required = false) String discount,
                                     @RequestParam(value = "period") Integer period,
                                     @RequestParam(value = "period", required = false) Integer period,
                                     @RequestParam(value = "nowPrice") String nowPrice,
                                     @RequestParam(value = "switchType", defaultValue = "0") Integer switchType) {
        return stockDzService.addByAdmin(stockCode, stockNum, password, startTime, endTime, discount, period,nowPrice,switchType);
        return stockDzService.addByAdmin(stockCode, stockNum, password, startTime, endTime, discount, period,nowPrice,switchType, Constants.US_STOCKS);
    }
    /**
@@ -76,25 +76,25 @@
    @ApiOperation("大宗交易审核列表")
    @RequestMapping({"getDzCheckList.do"})
    @PostMapping({"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);
        return stockDzService.getDzCheckList(pageNum, pageSize, state, stockCode, Constants.US_STOCKS, null);
    }
    //大宗审核
    @RequestMapping({"dzCheck.do"})
    @ApiOperation("大宗审核")
    @PostMapping({"dzCheck.do"})
    @ResponseBody
    public Result check(@RequestParam(value = "id") String id,
                                @RequestParam(value = "checkType") Integer checkType,
                                @RequestParam(value = "orderNum") Double orderNum) {
                                @RequestParam(value = "orderNum", required = false) Double orderNum) {
        if(checkType != 2 && (id == null || checkType == null || orderNum == null)){
            return Result.failed("参数不能为空");
        }
        return stockDzService.dzCheck(id, checkType, orderNum);
        return stockDzService.dzCheck(id, checkType, orderNum, 0);
    }
}