| | |
| | | <select id="selectPatMedOperationList" parameterType="com.smartor.domain.PatMedOperation" |
| | | resultMap="PatMedOperationResult"> |
| | | <include refid="selectPatMedOperationVo"/> |
| | | <where> |
| | | del_flag='0' |
| | | where 1=1 |
| | | and del_flag='0' |
| | | <if test="patid != null "> |
| | | and patid = #{patid} |
| | | </if> |
| | |
| | | <if test="opleveldesc != null and opleveldesc != ''"> |
| | | and opleveldesc = #{opleveldesc} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatMedOperationById" parameterType="Long" |
| | |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPatMedOperation" parameterType="com.smartor.domain.PatMedOperation"> |
| | | <insert id="insertPatMedOperation" parameterType="com.smartor.domain.PatMedOperation" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into pat_med_operation |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id, |
| | | </if> |
| | | <if test="patid != null">patid, |
| | | </if> |
| | | <if test="patcode != null">patcode, |
| | |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id}, |
| | | </if> |
| | | <if test="patid != null">#{patid}, |
| | | </if> |
| | | <if test="patcode != null">#{patcode}, |