| | |
| | | |
| | | <resultMap id="gdFlyerVOResultMap" type="org.sxkj.gd.flyer.vo.GdFlyerVO"> |
| | | <result column="id" property="id"/> |
| | | <result column="flyer_id" property="flyerId"/> |
| | | <result column="flyer_name" property="flyerName"/> |
| | | <result column="flyer_phone" property="flyerPhone"/> |
| | | <result column="flight_hours" property="flightHours"/> |
| | |
| | | <result column="area_code" property="areaCode"/> |
| | | <result column="flyer_address" property="flyerAddress"/> |
| | | <result column="certification" property="certification" typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler"/> |
| | | <result column="area_match_flag" property="areaMatchFlag"/> |
| | | </resultMap> |
| | | |
| | | <select id="selectGdFlyerPage" resultMap="gdFlyerVOResultMap"> |
| | | select |
| | | * |
| | | *, |
| | | CASE |
| | | WHEN CAST(#{param2.skilledTaskType} AS VARCHAR) IS NOT NULL |
| | | AND CAST(#{param2.skilledTaskType} AS VARCHAR) != '' |
| | | AND skilled_task_type = #{param2.skilledTaskType} THEN 1 |
| | | ELSE 0 |
| | | END as area_match_flag |
| | | from |
| | | ja_gd_flyer |
| | | <where> |
| | |
| | | <!-- </foreach> --> |
| | | <!-- </if> --> |
| | | </where> |
| | | ORDER BY task_type_match_flag DESC, create_time DESC |
| | | </select> |
| | | |
| | | |