| | |
| | | <mapper namespace="com.sandu.ximon.dao.mapper.IpVolumeMissionMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.sandu.ximon.dao.domain.IpVolumeMission"> |
| | | <id property="id" column="id" jdbcType="BIGINT"/> |
| | | <id property="taskId" column="task_id" jdbcType="INTEGER"/> |
| | | <result property="userId" column="user_id" jdbcType="BIGINT"/> |
| | | <result property="userName" column="user_name" jdbcType="VARCHAR"/> |
| | | <result property="clientId" column="client_id" jdbcType="BIGINT"/> |
| | | <result property="missionName" column="mission_name" jdbcType="VARCHAR"/> |
| | | <result property="missionFileName" column="mission_file_name" jdbcType="VARCHAR"/> |
| | | <result property="missionFileId" column="mission_file_id" jdbcType="BIGINT"/> |
| | | <result property="missionFileUrl" column="mission_file_url" jdbcType="VARCHAR"/> |
| | | <result property="numberInPlay" column="number_in_play" jdbcType="INTEGER"/> |
| | | <result property="onLineState" column="on_line_state" jdbcType="INTEGER"/> |
| | | <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> |
| | | <result property="onDate" column="on_date" jdbcType="VARCHAR"/> |
| | | <result property="offDate" column="off_date" jdbcType="VARCHAR"/> |
| | | <result property="weeksRange" column="weeks_ range" |
| | | typeHandler="com.sandu.common.mybatis.JsonStringArrayTypeHandler"/> |
| | | <result property="onTime" column="on_time" jdbcType="VARCHAR"/> |
| | | <result property="offTime" column="off_time" jdbcType="VARCHAR"/> |
| | | <result property="missionVolume" column="mission_volume" jdbcType="VARCHAR"/> |
| | | <result property="onDate" column="on_date" jdbcType="BIGINT"/> |
| | | <result property="offDate" column="off_date" jdbcType="BIGINT"/> |
| | | <result property="week" column="week" jdbcType="INTEGER"/> |
| | | <result property="missionVolume" column="mission_volume" jdbcType="INTEGER"/> |
| | | <result property="fileName" column="file_name" jdbcType="VARCHAR"/> |
| | | |
| | | </resultMap> |
| | | |
| | | |
| | | <sql id="Base_Column_List"> |
| | | id |
| | | task_id |
| | | ,user_id,user_name, |
| | | mission_name,mission_file_name,mission_file_id, |
| | | number_in_play,on_line_state,create_time, |
| | | on_date,off_date,weeks_ range, |
| | | on_time,off_time,mission_volume |
| | | client_id,mission_name,mission_file_url, |
| | | number_in_play,create_time,on_date, |
| | | off_date,week,mission_volume |
| | | </sql> |
| | | <select id="listAllByClientId" resultType="com.sandu.ximon.dao.bo.IpVolumeMissionBo"> |
| | | SELECT |
| | | t1.task_id, |
| | | t1.mission_name, |
| | | t1.number_in_play, |
| | | t1.create_time, |
| | | t1.user_name |
| | | FROM |
| | | ip_volume_mission t1 |
| | | JOIN ip_volume_file t2 |
| | | JOIN broadcast_v2_task_file t3 ON t1.task_id = t3.task_id |
| | | AND t2.id = t3.file_id group by task_id |
| | | </select> |
| | | |
| | | |
| | | <!-- SELECT |
| | | t1.task_id, |
| | | t1.mission_name, |
| | | t1.number_in_play, |
| | | t1.create_time, |
| | | t1.user_name, |
| | | t2.file_name |
| | | FROM |
| | | ip_volume_mission t1 |
| | | JOIN ip_volume_file t2 |
| | | JOIN broadcast_v2_task_file t3 ON t1.task_id = t3.task_id |
| | | AND t2.id = t3.file_id--> |
| | | |
| | | </mapper> |