| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.fs.course.mapper.FsCoursePlaySourceConfigMapper">
- <select id="selectCoursePlaySourceConfigVOListByMap" resultType="com.fs.course.vo.FsCoursePlaySourceConfigVO">
- select
- fcpsc.*
- from fs_course_play_source_config fcpsc
- where fcpsc.is_del = 0 and fcpsc.status = 0
- <if test="params.name != null and params.name != ''">
- and fcpsc.name like concat('%', #{params.name}, '%')
- </if>
- <if test="params.appid != null and params.appid != ''">
- and fcpsc.appid like concat('%', #{params.appid}, '%')
- </if>
- <if test="params.companyId != null">
- and fcpsc.company_id = #{params.companyId}
- </if>
- <if test="params.userId != null">
- and fcpsc.create_user_id = #{params.userId}
- </if>
- <if test="params.deptId != null">
- and fcpsc.create_dept_id = #{params.deptId}
- </if>
- <if test="params.isMall != null">
- and fcpsc.is_mall = #{params.isMall}
- </if>
- order by fcpsc.id desc
- </select>
- <select id="selectCoursePlaySourceConfigByAppId" resultType="com.fs.course.domain.FsCoursePlaySourceConfig">
- select
- fcpsc.*
- from fs_course_play_source_config fcpsc
- where fcpsc.is_del = 0 and fcpsc.appid= #{appid}
- limit 1
- </select>
- <select id="selectCoursePlaySourceConfigByAppIdGoods" resultType="java.lang.String">
- SELECT integral_goods from fs_course_play_source_config where appid=#{appId}
- </select>
- </mapper>
|