|
@@ -34,22 +34,25 @@ public interface DictDataMapper
|
|
|
|
|
|
int insert(DictData dictData);
|
|
|
|
|
|
- @Delete({"delete from `dict_data` where id = #{id}"})
|
|
|
+ @Delete({"delete from `dict_data` where dict_code = #{id}"})
|
|
|
int deleteById(@Param("id") Long id);
|
|
|
|
|
|
- @Select({"select * from `dict_data` where id = #{id}"})
|
|
|
+ @Select({"select * from `dict_data` where dict_code = #{id}"})
|
|
|
DictData getById(@Param("id") Long id);
|
|
|
|
|
|
@Update({
|
|
|
"update `dict_data`",
|
|
|
- "set `name` = #{name,jdbcType=VARCHAR},",
|
|
|
- "`description` = #{description,jdbcType=VARCHAR},",
|
|
|
- "`type` = #{type,jdbcType=VARCHAR},",
|
|
|
- "`project_id` = #{projectId,jdbcType=BIGINT},",
|
|
|
- "`config` = #{config,jdbcType=LONGVARCHAR},",
|
|
|
+ "set `dict_sort` = #{dictSort,jdbcType=BIGINT},",
|
|
|
+ "`dict_label` = #{dictLabel,jdbcType=VARCHAR},",
|
|
|
+ "`dict_value` = #{dictValue,jdbcType=VARCHAR},",
|
|
|
+ "`dict_type` = #{dictType,jdbcType=VARCHAR},",
|
|
|
+ "`css_class` = #{cssClass,jdbcType=VARCHAR},",
|
|
|
+ "`list_class` = #{listClass,jdbcType=VARCHAR},",
|
|
|
+ "`is_default` = #{isDefault,jdbcType=VARCHAR},",
|
|
|
+ "`status` = #{status,jdbcType=BIGINT},",
|
|
|
"`update_by` = #{updateBy,jdbcType=BIGINT},",
|
|
|
"`update_time` = #{updateTime,jdbcType=TIMESTAMP}",
|
|
|
- "where id = #{id,jdbcType=BIGINT}"
|
|
|
+ "where dict_code = #{dictCode,jdbcType=BIGINT}"
|
|
|
})
|
|
|
int update(DictData dictData);
|
|
|
|