| | |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="sex" column="sex"/> |
| | | <result property="generatedTime" column="generated_time"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatBabyGrowthVo"> |
| | | select id, |
| | | pat_id, |
| | | height, |
| | | generated_time, |
| | | sex, |
| | | head_cir, |
| | | weight, |
| | |
| | | </if> |
| | | <if test="sex != null "> |
| | | and sex = #{sex} |
| | | </if> |
| | | <if test="generatedTime != null "> |
| | | and generated_time = #{generatedTime} |
| | | </if> |
| | | <if test="height != null and height != ''"> |
| | | and height = #{height} |
| | |
| | | </if> |
| | | <if test="sex != null">sex, |
| | | </if> |
| | | <if test="generatedTime != null "> |
| | | generated_time, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id}, |
| | |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="sex != null">#{sex}, |
| | | </if> |
| | | <if test="generatedTime != null "> |
| | | #{generatedTime}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="sex != null">sex = |
| | | #{sex}, |
| | | </if> |
| | | <if test="generatedTime != null "> |
| | | generated_time = #{generatedTime}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |