| | |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="pid" column="pid" /> |
| | | <result property="guid" column="guid" /> |
| | | <result property="lastflag" column="lastflag"/> |
| | | <result property="chimedflag" column="chimedflag"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIcd10Vo"> |
| | | select icdid, icdcode, icdname, icdpym, icdwbm, orgid, del_flag, create_by, create_time, update_by, update_time, pid, guid from icd10 |
| | | select icdid, |
| | | icdcode, |
| | | lastflag, |
| | | chimedflag, |
| | | icdname, |
| | | icdpym, |
| | | icdwbm, |
| | | orgid, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | pid, |
| | | guid |
| | | from icd10 |
| | | </sql> |
| | | |
| | | <select id="selectIcd10List" parameterType="com.smartor.domain.Icd10" resultMap="Icd10Result"> |
| | | <include refid="selectIcd10Vo"/> |
| | | <where> |
| | | <if test="icdcode != null and icdcode != ''"> and icdcode = #{icdcode}</if> |
| | | <if test="lastflag != null and lastflag != ''">and lastflag = #{lastflag}</if> |
| | | <if test="chimedflag != null and chimedflag != ''">and chimedflag = #{chimedflag}</if> |
| | | <if test="icdname != null and icdname != ''"> and icdname like concat('%', #{icdname}, '%')</if> |
| | | <if test="icdpym != null and icdpym != ''"> and icdpym = #{icdpym}</if> |
| | | <if test="icdwbm != null and icdwbm != ''"> and icdwbm = #{icdwbm}</if> |
| | |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="lastflag != null and lastflag != ''">lastflag,</if> |
| | | <if test="chimedflag != null and chimedflag != ''">chimedflag,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="icdcode != null">#{icdcode},</if> |
| | |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="lastflag != null and lastflag != ''">#{lastflag},</if> |
| | | <if test="chimedflag != null and chimedflag != ''">#{chimedflag},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="lastflag != null and lastflag != ''">lastflag = #{lastflag},</if> |
| | | <if test="chimedflag != null and chimedflag != ''">chimedflag = #{chimedflag},</if> |
| | | </trim> |
| | | where icdid = #{icdid} |
| | | </update> |
| | | |
| | | <delete id="deleteIcd10ByIcdid" parameterType="Long"> |
| | | delete from icd10 where icdid = #{icdid} |
| | | delete |
| | | from icd10 |
| | | where icdid = #{icdid} |
| | | </delete> |
| | | |
| | | <delete id="deleteIcd10ByIcdids" parameterType="String"> |