| | |
| | | <result column="user_id" property="userId" /> |
| | | <result column="content" property="content" /> |
| | | <result column="status" property="status" /> |
| | | <result column="gmtCreate" property="gmtcreate" /> |
| | | <result column="gmtUpdate" property="gmtupdate" /> |
| | | <result column="gmt_create" property="gmtCreate" /> |
| | | <result column="gmt_update" property="gmtUpdate" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | TWSS.deleted = 0 |
| | | </select> |
| | | |
| | | <select id="groupByProjectAndDate" resultType="com.ycl.domain.vo.WorkStationScheduleVO"> |
| | | SELECT |
| | | TWSS.id, |
| | | TWSS.user_id, |
| | | TWSS.content, |
| | | TWSS.status, |
| | | TWSS.project_id, |
| | | TWSS.completed_time, |
| | | TPI.project_name |
| | | FROM t_work_station_schedule TWSS |
| | | LEFT JOIN t_project_info TPI on TWSS.project_id = TPI.id |
| | | WHERE TWSS.deleted = 0 |
| | | AND TWSS.user_id = #{userId} |
| | | AND TWSS.completed_time BETWEEN #{startTime} AND #{endTime} |
| | | <if test="projectId != null"> |
| | | AND TWSS.project_id = #{projectId} |
| | | </if>; |
| | | </select> |
| | | |
| | | |
| | | </mapper> |