张延森 4 лет назад
Родитель
Сommit
3ab2ea4882

+ 1
- 1
src/main/java/com/yunzhi/niucai/controller/TaMatchController.java Просмотреть файл

@@ -69,7 +69,7 @@ public class TaMatchController extends BaseController {
69 69
     @ApiOperation(value="竞彩开奖结果列表", notes = "竞彩开奖结果列表", httpMethod = "GET", response = ResponseBean.class)
70 70
     public ResponseBean getResult(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
71 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 74
         IPage<TaMatch> page = new Page<>(pageNum, pageSize);
75 75
         IPage<TaMatch> result = iTaMatchService.getResult(page, lotteryId);

+ 2
- 2
src/main/java/com/yunzhi/niucai/entity/TaMatch.java Просмотреть файл

@@ -113,13 +113,13 @@ public class TaMatch implements Serializable {
113 113
      * 让分
114 114
      */
115 115
     @ApiModelProperty("让分")
116
-    private Integer spreadPoints;
116
+    private String spreadPoints;
117 117
 
118 118
     /**
119 119
      * 预设分
120 120
      */
121 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 Просмотреть файл

@@ -119,7 +119,7 @@ public class TaMatchServiceImpl extends ServiceImpl<TaMatchMapper, TaMatch> impl
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 Просмотреть файл

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

+ 2
- 1
src/main/resources/mapper/TaMatchOddsMapper.xml Просмотреть файл

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