|
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
+import org.apache.ibatis.annotations.Select;
|
|
|
import org.jeecg.modules.app.dto.SearchDTO;
|
|
|
import org.jeecg.modules.app.vo.SearchVO;
|
|
|
import org.jeecg.modules.app.vo.game.FindByGameIdPriceVo;
|
|
@@ -37,4 +38,11 @@ public interface AppGameMapper extends BaseMapper<AppGame> {
|
|
|
FindByIdResponse findById(@Param("id") String id,@Param("longitude") double longitude,@Param("latitude") double latitude);
|
|
|
|
|
|
FindByGameIdPriceVo findByGameId(@Param("id") String id);
|
|
|
+
|
|
|
+
|
|
|
+ @Select(" select a.*,COALESCE(a.address, c.address) AS siteAddress from nm_game a " +
|
|
|
+ " left join nm_site c on a.site_id = c.id " +
|
|
|
+ " left join nm_game_price_rules b on a.id =b.game_id and b.del_flag =0 " +
|
|
|
+ " where b.id = #{priceRulesId}")
|
|
|
+ AppGame findByPriceRules(@Param("priceRulesId") String priceRulesId);
|
|
|
}
|