| | |
| | | <!-- <collection property="ardAppTaskDetailList" notNullColumn="sub1_id" javaType="java.util.List"--> |
| | | <!-- resultMap="ArdAppTaskDetailResult"/>--> |
| | | </resultMap> |
| | | |
| | | <resultMap id="ArdAppTaskSub1Result" type="ArdAppTask" extends="ArdAppTaskResult"> |
| | | <collection property="ardAppTaskPicList" notNullColumn="sub2_id" javaType="java.util.List" |
| | | resultMap="ArdAppTaskPicResult"/> |
| | | <collection property="ardAppTaskDetailList" notNullColumn="sub1_id" javaType="java.util.List" |
| | | resultMap="ArdAppTaskDetailResult"/> |
| | | </resultMap> |
| | | <resultMap type="ArdAppTaskDetail" id="ArdAppTaskDetailResult"> |
| | | <result property="id" column="sub1_id"/> |
| | | <result property="name" column="sub1_name"/> |
| | |
| | | c.view_time as sub1_view_time, |
| | | c.view_position as sub1_view_position, |
| | | c.clock_in_time as sub1_clock_in_time, |
| | | c.view_flag as sub1_view_flag |
| | | c.view_flag as sub1_view_flag, |
| | | c.task_id as sub1_task_id |
| | | from ard_app_task a |
| | | left join ard_app_task_pic b on b.task_id = a.id |
| | | left join ard_app_task_detail c on c.task_id = a.id |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectArdAppTaskById" parameterType="String" resultMap="ArdAppTaskSubResult"> |
| | | <select id="selectArdAppTaskById" parameterType="String" resultMap="ArdAppTaskSub1Result"> |
| | | <include refid="selectArdAppTaskDto"/> |
| | | where a.id = #{id} |
| | | </select> |
| | |
| | | <select id="selectArdAppTaskPicListById" resultType="ArdAppTaskPic"> |
| | | select * from ard_app_task_pic d where d.task_id = #{id} |
| | | </select> |
| | | <select id="selectArdAppTaskDetailUserIdsByTaskId" parameterType="String" resultType="java.lang.String"> |
| | | select DISTINCT(user_id) from ard_app_task_detail where task_id=#{taskId} |
| | | </select> |
| | | |
| | | |
| | | <insert id="insertArdAppTask" parameterType="ArdAppTask"> |
| | | insert into ard_app_task |