Skip to content

ExampleMapper.updateByExampleSetValues优化 #128

@mfeng-ya

Description

@mfeng-ya

private static final String EXAMPLE_SET_CLAUSE_INNER_WHEN =
"" +
" <foreach collection="example.setValues" item="setValue">\n" +
" \n" +
" <when test="setValue.noValue">\n" +
" ${setValue.condition},\n" +
" \n" +
" <when test="setValue.singleValue">\n" +
" ${setValue.condition} = ${setValue.variables('setValue.value')},\n" +
" \n" +
" \n" +
" \n" +
"";
现在业务有用到数组或容器类型字段使用json格式存储,自己实现了typeHandler,但这个方法不支持更新此类字段;
不知是出于什么原因考量,能否优化

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions