Browse Source

修复查询条件不生效

dos 2 months ago
parent
commit
2996c11561

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

@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="classId != null "> and class_id = #{classId}</if>
             <if test="gameId != null "> and game_id = #{gameId}</if>
             <if test="gameDate != null  and gameDate != ''"> and game_date = #{gameDate}</if>
-            <if test="isLottery != null  and isLottery != ''"> and is_lottery = #{isLottery}</if>
+            <if test="isLottery != null"> and is_lottery = #{isLottery}</if>
             <if test="gameLotterySucc != null  and gameLotterySucc != ''"> and FIND_IN_SET(#{gameLotterySucc},game_lottery_succ) > 0</if>
             <if test="gameRecordDate != null "> and game_record_date = #{gameRecordDate}</if>
         </where>

+ 2 - 2
game-ui/src/views/business/lottery/index.vue

@@ -29,7 +29,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-<!--      <el-form-item label="是否开奖" prop="isLottery">
+      <el-form-item label="是否开奖" prop="isLottery">
         <el-select v-model="queryParams.isLottery" placeholder="请选择是否开奖" clearable>
           <el-option
             v-for="dict in dict.type.app_game_is_open"
@@ -38,7 +38,7 @@
             :value="dict.value"
           />
         </el-select>
-      </el-form-item>-->
+      </el-form-item>
 <!--      <el-form-item label="记录时间" prop="gameRecordDate">
         <el-date-picker clearable
                         v-model="queryParams.gameRecordDate"