Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${dbinst.getUserName()} [in template "CODETEMPL_zh_CN" at line 28, column 24]
<![CDATA[select t1.* from (SELECT t1.`DEPTID`, t11.`DEPTNAME`, t1.`MEMBERID`, t21.`PERSONNAME`, t1.`USERID` FROM `IBZDEPTMEMBER` t1 LEFT JOIN IBZDEPT t11 ON t1.DEPTID = t11.DEPTID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID ) t1 where memberid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`DEPTID`, t11.`DEPTNAME`, t1.`DOMAINS`, t1.`MEMBERID`, t21.`PERSONNAME`, t1.`POSTID`, t31.`POSTNAME`, t1.`USERID` FROM `IBZDEPTMEMBER` t1 LEFT JOIN IBZDEPT t11 ON t1.DEPTID = t11.DEPTID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID LEFT JOIN IBZPOST t31 ON t1.POSTID = t31.POSTID ) t1 where memberid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.DEPTID, t11.DEPTNAME, t1.DOMAINS, t1.MEMBERID, t21.PERSONNAME, t1.POSTID, t31.POSTNAME, t1.USERID FROM IBZDEPTMEMBER t1 LEFT JOIN IBZDEPT t11 ON t1.DEPTID = t11.DEPTID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID LEFT JOIN IBZPOST t31 ON t1.POSTID = t31.POSTID ) t1 where memberid=#{id}]]>
...
...
@@ -63,7 +63,7 @@
<!--数据查询[Default]-->
<sqlid="Default"databaseId="mysql">
<![CDATA[ SELECT t1.`DEPTID`, t11.`DEPTNAME`, t1.`MEMBERID`, t21.`PERSONNAME`, t1.`USERID` FROM `IBZDEPTMEMBER` t1 LEFT JOIN IBZDEPT t11 ON t1.DEPTID = t11.DEPTID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID
<![CDATA[ SELECT t1.`DEPTID`, t11.`DEPTNAME`, t1.`DOMAINS`, t1.`MEMBERID`, t21.`PERSONNAME`, t1.`POSTID`, t31.`POSTNAME`, t1.`USERID` FROM `IBZDEPTMEMBER` t1 LEFT JOIN IBZDEPT t11 ON t1.DEPTID = t11.DEPTID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID LEFT JOIN IBZPOST t31 ON t1.POSTID = t31.POSTID
]]>
</sql>
<!--数据查询[Default]-->
...
...
@@ -78,7 +78,7 @@
</sql>
<!--数据查询[View]-->
<sqlid="View"databaseId="mysql">
<![CDATA[ SELECT t1.`DEPTID`, t11.`DEPTNAME`, t1.`MEMBERID`, t21.`PERSONNAME`, t1.`USERID` FROM `IBZDEPTMEMBER` t1 LEFT JOIN IBZDEPT t11 ON t1.DEPTID = t11.DEPTID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID
<![CDATA[ SELECT t1.`DEPTID`, t11.`DEPTNAME`, t1.`DOMAINS`, t1.`MEMBERID`, t21.`PERSONNAME`, t1.`POSTID`, t31.`POSTNAME`, t1.`USERID` FROM `IBZDEPTMEMBER` t1 LEFT JOIN IBZDEPT t11 ON t1.DEPTID = t11.DEPTID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID LEFT JOIN IBZPOST t31 ON t1.POSTID = t31.POSTID
<![CDATA[select t1.* from (SELECT t21.`PERSONNAME`, t1.`TEAMID`, t1.`TEAMMEMBERID`, t11.`TEAMNAME`, t1.`USERID` FROM `IBZTEAMMEMBER` t1 LEFT JOIN IBZTEAM t11 ON t1.TEAMID = t11.TEAMID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID ) t1 where teammemberid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`DOMAINS`, t21.`PERSONNAME`, t1.`POSTID`, t31.`POSTNAME`, t1.`TEAMID`, t1.`TEAMMEMBERID`, t11.`TEAMNAME`, t1.`USERID` FROM `IBZTEAMMEMBER` t1 LEFT JOIN IBZTEAM t11 ON t1.TEAMID = t11.TEAMID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID LEFT JOIN IBZPOST t31 ON t1.POSTID = t31.POSTID ) t1 where teammemberid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.DOMAINS, t21.PERSONNAME, t1.POSTID, t31.POSTNAME, t1.TEAMID, t1.TEAMMEMBERID, t11.TEAMNAME, t1.USERID FROM IBZTEAMMEMBER t1 LEFT JOIN IBZTEAM t11 ON t1.TEAMID = t11.TEAMID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID LEFT JOIN IBZPOST t31 ON t1.POSTID = t31.POSTID ) t1 where teammemberid=#{id}]]>
...
...
@@ -63,7 +63,7 @@
<!--数据查询[Default]-->
<sqlid="Default"databaseId="mysql">
<![CDATA[ SELECT t21.`PERSONNAME`, t1.`TEAMID`, t1.`TEAMMEMBERID`, t11.`TEAMNAME`, t1.`USERID` FROM `IBZTEAMMEMBER` t1 LEFT JOIN IBZTEAM t11 ON t1.TEAMID = t11.TEAMID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID
<![CDATA[ SELECT t1.`DOMAINS`, t21.`PERSONNAME`, t1.`POSTID`, t31.`POSTNAME`, t1.`TEAMID`, t1.`TEAMMEMBERID`, t11.`TEAMNAME`, t1.`USERID` FROM `IBZTEAMMEMBER` t1 LEFT JOIN IBZTEAM t11 ON t1.TEAMID = t11.TEAMID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID LEFT JOIN IBZPOST t31 ON t1.POSTID = t31.POSTID
]]>
</sql>
<!--数据查询[Default]-->
...
...
@@ -78,7 +78,7 @@
</sql>
<!--数据查询[View]-->
<sqlid="View"databaseId="mysql">
<![CDATA[ SELECT t21.`PERSONNAME`, t1.`TEAMID`, t1.`TEAMMEMBERID`, t11.`TEAMNAME`, t1.`USERID` FROM `IBZTEAMMEMBER` t1 LEFT JOIN IBZTEAM t11 ON t1.TEAMID = t11.TEAMID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID
<![CDATA[ SELECT t1.`DOMAINS`, t21.`PERSONNAME`, t1.`POSTID`, t31.`POSTNAME`, t1.`TEAMID`, t1.`TEAMMEMBERID`, t11.`TEAMNAME`, t1.`USERID` FROM `IBZTEAMMEMBER` t1 LEFT JOIN IBZTEAM t11 ON t1.TEAMID = t11.TEAMID LEFT JOIN IBZEMP t21 ON t1.USERID = t21.USERID LEFT JOIN IBZPOST t31 ON t1.POSTID = t31.POSTID