| | |
| | | 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.indices_dark, null); |
| | | @RequestParam(value = "stockCode", required = false)String stockCode, |
| | | @RequestParam(value = "userName", required = false)String userName |
| | | ) { |
| | | return stockDzService.getDzCheckList(pageNum, pageSize, state, stockCode, Constants.indices_dark, userName, null); |
| | | } |
| | | |
| | | @ApiOperation("大宗审核") |
| | |
| | | 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.indices, null); |
| | | @RequestParam(value = "stockCode", required = false)String stockCode, |
| | | @RequestParam(value = "userName", required = false)String userName) { |
| | | return stockDzService.getDzCheckList(pageNum, pageSize, state, stockCode, Constants.indices, userName, null); |
| | | } |
| | | |
| | | @ApiOperation("大宗审核") |
| | |
| | | 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_DARK, permissionFacade.getOwnerUserIds()); |
| | | @RequestParam(value = "stockCode", required = false)String stockCode, |
| | | @RequestParam(value = "userName", required = false)String userName |
| | | ) { |
| | | return stockDzService.getDzCheckList(pageNum, pageSize, state, stockCode, Constants.US_DARK, userName, permissionFacade.getOwnerUserIds()); |
| | | } |
| | | |
| | | @ApiOperation("大宗审核") |
| | |
| | | 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, null); |
| | | @RequestParam(value = "stockCode", required = false)String stockCode, |
| | | @RequestParam(value = "userName", required = false)String userName |
| | | ) { |
| | | return stockDzService.getDzCheckList(pageNum, pageSize, state, stockCode, Constants.US_STOCKS, userName,null); |
| | | } |
| | | |
| | | @ApiOperation("大宗审核") |
| | |
| | | @Param("state") String state, |
| | | @Param("stockCode") String stockCode, |
| | | @Param("stockType") String stockType, |
| | | @Param("userName") String userName, |
| | | @Param("checkedList") List<String> checkedList); |
| | | |
| | | } |
| | |
| | | |
| | | Result getDzOrderList(int pageNum, int pageSize, String state, String userId, String stockType); |
| | | |
| | | Result getDzCheckList(int pageNum, int pageSize, String state, String stockCode, String stockType, List<String> checkedList); |
| | | Result getDzCheckList(int pageNum, int pageSize, String state, String stockCode, String stockType,String userName, List<String> checkedList); |
| | | |
| | | Result buyDz(String dzId, String password, double num, String partyId, Boolean isAdmin); |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Result getDzCheckList(int pageNum, int pageSize, String state, String stockCode, String stockType, List<String> checkedList) { |
| | | public Result getDzCheckList(int pageNum, int pageSize, String state, String stockCode, String stockType, String userName, List<String> checkedList) { |
| | | try { |
| | | Page page = new Page(pageNum, pageSize); |
| | | |
| | | stockDzMapper.getDzCheckList(page ,state, stockCode, stockType, checkedList); |
| | | stockDzMapper.getDzCheckList(page ,state, stockCode, stockType, userName, checkedList); |
| | | return Result.succeed(page); |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage()); |
| | |
| | | BigDecimal buyAmt; |
| | | if (isETF) { |
| | | buyAmt = new BigDecimal(num); |
| | | nowPrice = buyAmt; |
| | | } else { |
| | | buyAmt = nowPrice.multiply(new BigDecimal(num)); |
| | | } |
| | |
| | | <if test="stockType != null and stockType != '' "> |
| | | AND s.stock_type = #{stockType} |
| | | </if> |
| | | <if test="userName != null and userName != '' "> |
| | | AND ( |
| | | u.user_name LIKE CONCAT('%', #{userName}, '%') |
| | | OR u.user_code LIKE CONCAT('%', #{userName}, '%') |
| | | ) |
| | | </if> |
| | | <if test="checkedList!=null"> |
| | | and u.user_id in |
| | | <foreach collection="checkedList" separator="," index="index" open="(" close=")" item="r"> |