MyBatisCodeHelper-Pro icon indicating copy to clipboard operation
MyBatisCodeHelper-Pro copied to clipboard

string.split 取值误报

Open potoo0 opened this issue 3 years ago • 2 comments

string split 取值会误报。

<if test="itemId != null and itemId != ''">
    <bind name="check_name" value="itemId.split('~')[0]" />
    <bind name="check_host_name" value="itemId.split('~')[1]" />
    and check_name = #{check_name}
    and check_host_name = #{check_host_name}
</if>

image

potoo0 avatar Oct 21 '21 08:10 potoo0

嗯,还不支持 [] 我看看

gejun123456 avatar Oct 28 '21 04:10 gejun123456

image 新版本将支持数组,不过还不支持在方法后面调用数组 要多写一个bind。

gejun123456 avatar Dec 21 '21 03:12 gejun123456