| | |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyCategoryVo"> |
| | |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | pid, |
| | | guid, |
| | | upload_time |
| | | from svy_category |
| | | </sql> |
| | |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="categoryname != null">#{categoryname},</if> |
| | |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyCategoryById" parameterType="Long"> |
| | | delete |
| | | from svy_category |
| | | <update id="deleteSvyCategoryById" parameterType="Long"> |
| | | update svy_category |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = 1</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </delete> |
| | | </update> |
| | | |
| | | <delete id="deleteSvyCategoryByIds" parameterType="String"> |
| | | delete from svy_category where id in |