New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<if test="">位运算体验问题 #983
Labels
Comments
好建议 根据参数自动计算if test的值 |
|
学到了新姿势。 感谢回复! |
遇到两个小问题
<select id="sqlTest" resultType="java.lang.Integer">
select 1 from table
<where>
<if test="query.type == 1">
AND condition1 = 1
</if>
<if test="query.type == 2">
AND condition2 = #{query.type}
</if>
</where>
<if test="query.sort != null">
ORDER BY
<choose>
<when test="query.sort == 1">
create_time desc
</when>
<when test="query.sort == 2">
update_time desc
</when>
<otherwise>
</otherwise>
</choose>
</if>
</select> |
2024-05-16.18.55.05.mov录了个使用流程,是姿势不对吗 (转.gif发现文件更大了… 直接上传附件了) |
谢谢反馈 这种使用 . 号的支持还没弄,我优化一下 |
插件可以加个 去识别 if test 里面有哪些参数 然后通过值来控制 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
场景如下 判断flagBit最后1,2,3位是否为1
此时需要自己勾选true 而不是填写flagBit值 自动运算
希望未来版本可以优化这个场景
The text was updated successfully, but these errors were encountered: