change - 代码生成.xml

master
yinq 1 year ago
parent 27eb52ee43
commit 3becad2a3f

@ -51,7 +51,7 @@
#elseif($queryType == "LIKE") #elseif($queryType == "LIKE")
<if test="$javaField != null #if($javaType == 'String' ) and $javaField.trim() != ''#end"> and $columnName like concat(concat('%', #{$javaField}), '%')</if> <if test="$javaField != null #if($javaType == 'String' ) and $javaField.trim() != ''#end"> and $columnName like concat(concat('%', #{$javaField}), '%')</if>
#elseif($queryType == "BETWEEN") #elseif($queryType == "BETWEEN")
<if test="params.begin$AttrName != null and params.begin$AttrName != '' and params.end$AttrName != null and params.end$AttrName != ''"> and $columnName between #{params.begin$AttrName} and #{params.end$AttrName}</if> <if test="params.begin$AttrName != null and params.begin$AttrName != '' and params.end$AttrName != null and params.end$AttrName != ''"> and $columnName between to_date(#{params.begin$AttrName}, 'yyyy-mm-dd hh24:mi:ss') and to_date(#{params.end$AttrName}, 'yyyy-mm-dd hh24:mi:ss')</if>
#end #end
#end #end
#end #end

Loading…
Cancel
Save