| | |
| | | <result property="deptTypeCode" column="dept_type_code"/> |
| | | <result property="deptFcusTypeCode" column="dept_fcus_type_code"/> |
| | | <result property="modality" column="modality"/> |
| | | <result property="hisksid" column="hisksid"/> |
| | | <result property="hisksmc" column="hisksmc"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDeptVo"> |
| | |
| | | d.standard_dept_code, |
| | | d.dept_type_code, |
| | | d.dept_fcus_type_code, |
| | | d.modality |
| | | d.modality, |
| | | d.hisksid, |
| | | d.hisksmc |
| | | from sys_dept d |
| | | </sql> |
| | | |
| | |
| | | |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="modality != null and modality != ''">modality,</if> |
| | | <if test="hisksid != null and hisksid != ''">hisksid,</if> |
| | | <if test="hisksmc != null and hisksmc != ''">hisksmc,</if> |
| | | create_time |
| | | )values( |
| | | <if test="deptId != null and deptId != 0">#{deptId},</if> |
| | |
| | | |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="modality != null and modality != ''">#{modality},</if> |
| | | <if test="hisksid != null and hisksid != ''">#{hisksid},</if> |
| | | <if test="hisksmc != null and hisksmc != ''">#{hisksmc},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | |
| | | |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="modality != null and modality != ''">modality = #{modality},</if> |
| | | <if test="hisksid != null and hisksid != ''">hisksid = #{hisksid},</if> |
| | | <if test="hisksmc != null and hisksmc != ''">hisksmc = #{hisksmc},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where dept_id = #{deptId} |
| | |
| | | |
| | | <delete id="deleteDeptById" parameterType="Long"> |
| | | update sys_dept |
| | | set deleted = '2' |
| | | set deleted = '1' |
| | | where dept_id = #{deptId} |
| | | </delete> |
| | | |