| | |
| | | </foreach> |
| | | </if> |
| | | order by t1.isFree desc , t1.sort desc |
| | | limit #{req.pageNum}, #{req.pageSize} |
| | | </select> |
| | | <select id="courseSearch1" resultType="com.stylefeng.guns.modular.system.vo.CourseList"> |
| | | select t1.id,t1.courseName,t1.allTime as `time`,t1.isFree,t1.difficulty,t1.coverImg,t1.introduce, |
| | | t2.amount as price,t2.appleAmount, |
| | | CONCAT(t3.name,'|',t2.name) as typeName |
| | | t2.amount as price,t2.appleAmount,t2.id as positionId, |
| | | CONCAT(t3.name,'|',t2.name,'|H', t1.difficulty) as typeName |
| | | from t_course t1 |
| | | left join t_fitness_position t2 on t1.positionId = t2.id |
| | | left join t_fitness_type t3 on t2.typeId = t3.id |