1
0

2 Angajamente ef65d487b6 ... 18d17f3083

Autor SHA1 Permisiunea de a trimite mesaje. Dacă este dezactivată, utilizatorul nu va putea trimite nici un fel de mesaj Data
  kk 18d17f3083 Merge remote-tracking branch 'origin/master' 2 luni în urmă
  kk 0d7e412303 游戏选项排序 2 luni în urmă

+ 0 - 6
game-business/src/main/java/com/game/business/controller/AppGameItemController.java

@@ -225,9 +225,6 @@ public class AppGameItemController extends BaseController
             return R.fail("游戏赔率配置长度与选项长度不一致");
         }
 
-        // 升序排序
-        itemList.stream().sorted(Comparator.comparing(AppGameItem::getItemLocation));
-
         for (int i = 0; i < itemList.size(); i++) {
             AppGameItem gameItem = itemList.get(i);
             gameItem.setItemMultiple(Double.valueOf(configArry[i]));
@@ -270,9 +267,6 @@ public class AppGameItemController extends BaseController
             return R.fail("游戏未配置选项设置");
         }
 
-        // 升序排序
-        itemList.stream().sorted(Comparator.comparing(AppGameItem::getItemLocation));
-
         String config = "";
         for (int i = 0; i < itemList.size(); i++) {
             AppGameItem gameItem = itemList.get(i);

+ 0 - 3
game-business/src/main/java/com/game/business/task/AppGameBettingTask.java

@@ -155,9 +155,6 @@ public class AppGameBettingTask {
                     appGameItemMultipleService.save(appGameItemMultiple);
                 }
 
-                // 升序排序
-                itemList.stream().sorted(Comparator.comparing(AppGameItem::getItemLocation));
-
                 for (int j = 0; j < itemList.size(); j++) {
                     AppGameItem gameItem = itemList.get(j);
                     gameItem.setItemMultiple(items.getDouble(j));

+ 1 - 1
game-business/src/main/resources/mapper/business/AppGameItemMapper.xml

@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="lotteryCount != null "> and lottery_count = #{lotteryCount}</if>
             <if test="consecutive != null "> and consecutive = #{consecutive}</if>
         </where>
-        order by item_location asc
+        order by cast(item_location as UNSIGNED) asc
     </select>
     
     <select id="selectAppGameItemById" parameterType="Long" resultMap="AppGameItemResult">