张延森 4 years ago
parent
commit
3ab2ea4882

+ 1
- 1
src/main/java/com/yunzhi/niucai/controller/TaMatchController.java View File

69
     @ApiOperation(value="竞彩开奖结果列表", notes = "竞彩开奖结果列表", httpMethod = "GET", response = ResponseBean.class)
69
     @ApiOperation(value="竞彩开奖结果列表", notes = "竞彩开奖结果列表", httpMethod = "GET", response = ResponseBean.class)
70
     public ResponseBean getResult(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
70
     public ResponseBean getResult(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
71
                                   @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
71
                                   @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
72
-                                  @ApiParam("彩种类型: 可用类型, 请查阅彩种字典") @RequestParam(value ="lotteryId", required = false) String lotteryId) throws Exception {
72
+                                  @ApiParam("彩种类型: 可用类型, 请查阅彩种字典") @RequestParam(value ="lotteryId") String lotteryId) throws Exception {
73
 
73
 
74
         IPage<TaMatch> page = new Page<>(pageNum, pageSize);
74
         IPage<TaMatch> page = new Page<>(pageNum, pageSize);
75
         IPage<TaMatch> result = iTaMatchService.getResult(page, lotteryId);
75
         IPage<TaMatch> result = iTaMatchService.getResult(page, lotteryId);

+ 2
- 2
src/main/java/com/yunzhi/niucai/entity/TaMatch.java View File

113
      * 让分
113
      * 让分
114
      */
114
      */
115
     @ApiModelProperty("让分")
115
     @ApiModelProperty("让分")
116
-    private Integer spreadPoints;
116
+    private String spreadPoints;
117
 
117
 
118
     /**
118
     /**
119
      * 预设分
119
      * 预设分
120
      */
120
      */
121
     @ApiModelProperty("篮球:预设分")
121
     @ApiModelProperty("篮球:预设分")
122
-    private Integer presetPoints;
122
+    private String presetPoints;
123
 
123
 
124
     /**
124
     /**
125
      * 创建时间
125
      * 创建时间

+ 1
- 1
src/main/java/com/yunzhi/niucai/service/impl/TaMatchServiceImpl.java View File

119
             }
119
             }
120
         }
120
         }
121
 
121
 
122
-        return null;
122
+        return result;
123
     }
123
     }
124
 
124
 
125
     /**
125
     /**

+ 2
- 1
src/main/resources/mapper/TaMatchMapper.xml View File

46
         FROM
46
         FROM
47
             ta_match t
47
             ta_match t
48
         WHERE
48
         WHERE
49
-            t.`status` &gt; 1
49
+            t.lottery_id = #{lotteryId}
50
+            AND t.`status` &gt; 1
50
         ORDER BY
51
         ORDER BY
51
             t.match_id DESC
52
             t.match_id DESC
52
     </select>
53
     </select>

+ 2
- 1
src/main/resources/mapper/TaMatchOddsMapper.xml View File

7
             s.way_code AS wayCode,
7
             s.way_code AS wayCode,
8
             s.rule_code AS ruleCode,
8
             s.rule_code AS ruleCode,
9
             s.`name`,
9
             s.`name`,
10
-            t.odds
10
+            t.odds,
11
+            t.is_winning as isWinning
11
         FROM ( SELECT *
12
         FROM ( SELECT *
12
                 FROM ( SELECT * FROM ta_match_odds a
13
                 FROM ( SELECT * FROM ta_match_odds a
13
                         WHERE a.match_id = #{matchId}
14
                         WHERE a.match_id = #{matchId}