|
|
@ -17,11 +17,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="createBy" column="create_by" /> |
|
|
|
<result property="createTime" column="create_time" /> |
|
|
|
<result property="updateBy" column="update_by" /> |
|
|
|
<result property="dataType" column="data_type" /> |
|
|
|
<result property="dataLength" column="data_length" /> |
|
|
|
<result property="isRequired" column="is_required" /> |
|
|
|
<result property="isSole" column="is_sole" /> |
|
|
|
<result property="updateTime" column="update_time" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectDictDataVo"> |
|
|
|
select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark |
|
|
|
select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark , |
|
|
|
data_type, data_length, is_required, is_sole |
|
|
|
from sys_dict_data |
|
|
|
</sql> |
|
|
|
|
|
|
@ -84,6 +89,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="status != null">status = #{status},</if> |
|
|
|
<if test="remark != null">remark = #{remark},</if> |
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
|
|
|
|
|
|
|
<if test="dataType != null and dataType != ''">data_type = #{dataType} ,</if> |
|
|
|
<if test="dataLength != null and dataLength != ''">data_length = #{dataLength} ,</if> |
|
|
|
<if test="isRequired != null">is_required = #{isRequired} ,</if> |
|
|
|
<if test="isSole != null">is_sole = #{isSole} ,</if> |
|
|
|
update_time = sysdate() |
|
|
|
</set> |
|
|
|
where dict_code = #{dictCode} |
|
|
@ -105,6 +115,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="status != null">status,</if> |
|
|
|
<if test="remark != null and remark != ''">remark,</if> |
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if> |
|
|
|
|
|
|
|
<if test="dataType != null and dataType != ''">data_type,</if> |
|
|
|
<if test="dataLength != null and dataLength != ''">data_length,</if> |
|
|
|
<if test="isRequired != null">is_required,</if> |
|
|
|
<if test="isSole != null">is_sole,</if> |
|
|
|
create_time |
|
|
|
)values( |
|
|
|
<if test="dictSort != null">#{dictSort},</if> |
|
|
@ -117,6 +132,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="status != null">#{status},</if> |
|
|
|
<if test="remark != null and remark != ''">#{remark},</if> |
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if> |
|
|
|
|
|
|
|
<if test="dataType != null and dataType != ''">#{dataType},</if> |
|
|
|
<if test="dataLength != null and dataLength != ''">#{dataLength},</if> |
|
|
|
<if test="isRequired != null">#{isRequired},</if> |
|
|
|
<if test="isSole != null">#{isSole},</if> |
|
|
|
sysdate() |
|
|
|
) |
|
|
|
</insert> |
|
|
|