| | |
| | | <resultMap type="SysDictType" id="SysDictTypeResult"> |
| | | <id property="dictId" column="dict_id" /> |
| | | <result property="dictName" column="dict_name" /> |
| | | <result property="dictNameI18n" column="dict_name_i18n"/> |
| | | <result property="dictType" column="dict_type" /> |
| | | <result property="status" column="status" /> |
| | | <result property="createBy" column="create_by" /> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectDictTypeVo"> |
| | | select dict_id, dict_name, dict_type, status, create_by, create_time, remark |
| | | select dict_id, dict_name,dict_name_i18n, dict_type, status, create_by, create_time, remark |
| | | from sys_dict_type |
| | | </sql> |
| | | |
| | |
| | | </select> |
| | | |
| | | <delete id="deleteDictTypeById" parameterType="Long"> |
| | | delete from sys_dict_type where dict_id = #{dictId} |
| | | delete |
| | | from sys_dict_type |
| | | where dict_id = #{dictId} |
| | | </delete> |
| | | |
| | | <delete id="deleteDictTypeByIds" parameterType="Long"> |
| | |
| | | update sys_dict_type |
| | | <set> |
| | | <if test="dictName != null and dictName != ''">dict_name = #{dictName},</if> |
| | | <if test="dictNameI18n != null and dictNameI18n != ''">dict_name_i18n = #{dictNameI18n},</if> |
| | | <if test="dictType != null and dictType != ''">dict_type = #{dictType},</if> |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | |
| | | <insert id="insertDictType" parameterType="SysDictType"> |
| | | insert into sys_dict_type( |
| | | <if test="dictName != null and dictName != ''">dict_name,</if> |
| | | <if test="dictNameI18n != null and dictNameI18n != ''">dict_name_i18n,</if> |
| | | <if test="dictType != null and dictType != ''">dict_type,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | |
| | | create_time |
| | | )values( |
| | | <if test="dictName != null and dictName != ''">#{dictName},</if> |
| | | <if test="dictNameI18n != null and dictNameI18n != ''">#{dictNameI18n},</if> |
| | | <if test="dictType != null and dictType != ''">#{dictType},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |