| | |
| | | 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}, |