| | |
| | | <result property="questiontext" column="questiontext"/> |
| | | <result property="questionvoice" column="questionvoice"/> |
| | | <result property="categoryname" column="categoryname"/> |
| | | <result property="categoryid" column="categoryid"/> |
| | | <result property="targetoptions" column="targetoptions"/> |
| | | <result property="targetvalue" column="targetvalue"/> |
| | | <result property="matchedtext" column="matchedtext"/> |
| | |
| | | questiontext, |
| | | questionvoice, |
| | | categoryname, |
| | | categoryid, |
| | | targetoptions, |
| | | targetvalue, |
| | | matchedtext, |
| | |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatequestionnum != null ">and templatequestionnum = #{templatequestionnum}</if> |
| | | <if test="switchid != null ">and switchid = #{switchid}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="questiontext != null and questiontext != ''">and questiontext = #{questiontext}</if> |
| | | <if test="questionvoice != null and questionvoice != ''">and questionvoice = #{questionvoice}</if> |
| | | <if test="categoryname != null and categoryname != ''">and categoryname like concat('%', #{categoryname}, |
| | |
| | | <if test=" patid != null">patid,</if> |
| | | <if test=" extemplateText != null">extemplate_text,</if> |
| | | <if test=" guid != null">guid,</if> |
| | | <if test=" categoryid != null">categoryid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="patid != null">#{patid},</if> |
| | | <if test="extemplateText != null">#{extemplateText},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test=" patid != null">patid = #{patid},</if> |
| | | <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if> |
| | | <if test=" guid != null">guid = #{guid},</if> |
| | | <if test=" categoryid != null">categoryid = #{categoryid},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <if test=" patid != null">patid = #{patid},</if> |
| | | <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if> |
| | | <if test=" guid != null">guid = #{guid},</if> |
| | | <if test=" categoryid != null">categoryid = #{categoryid},</if> |
| | | </trim> |
| | | where patid = #{patid} and scriptid = #{scriptid} and sub_id = #{subId} |
| | | </update> |