| | |
| | | <if test="status != null and status != ''"> |
| | | AND d.status = #{status} |
| | | </if> |
| | | order by d.order_num desc |
| | | order by d.dept_type desc, d.order_num desc |
| | | </select> |
| | | <resultMap type="com.gkhy.exam.system.domain.vo.DeptVo" id="DeptVoPageResult" extends="SysDeptResult"> |
| | | <collection property="caluseVO1List" ofType="com.gkhy.exam.system.domain.vo.CaluseVO1" column="deptId = dept_id" select="getReponseData"> |
| | |
| | | <if test="status != null and status != ''"> |
| | | AND d.status = #{status} |
| | | </if> |
| | | order by d.order_num desc |
| | | order by d.dept_type desc, d.order_num desc |
| | | </select> |
| | | |
| | | <select id="getReponseData" resultType="com.gkhy.exam.system.domain.vo.CaluseVO1"> |
| | |
| | | <if test="status != null">status,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="responsType != null and responsType != ''">respons_type,</if> |
| | | <if test="deptType != null and deptType != ''">dept_type,</if> |
| | | create_time |
| | | )values( |
| | | <if test="deptId != null and deptId != 0">#{deptId},</if> |
| | |
| | | <if test="status != null">#{status},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="responsType != null and responsType != ''">#{responsType},</if> |
| | | <if test="deptType != null and deptType != ''">#{deptType},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="responsType != null and responsType != ''">respons_type = #{responsType},</if> |
| | | <if test="deptType != null and deptType != ''">dept_type = #{deptType},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where dept_id = #{deptId} |