|
|
|
@ -2,81 +2,81 @@ queryByCondition
|
|
|
|
|
===
|
|
|
|
|
* 根据不为空的参数进行分页查询
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
|
\ @pageTag(){
|
|
|
|
|
t.*
|
|
|
|
|
\ @}
|
|
|
|
|
from ${entity.tableName} t
|
|
|
|
|
where 1=1
|
|
|
|
|
\ @//数据权限,该sql语句功能点,如果不考虑数据权限,可以删除此行
|
|
|
|
|
and #function("${entity.code}.query")#
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(null != attr.status){
|
|
|
|
|
\ @if(isEmpty(${attr.name}) && isEmpty(${attr.name}Plural)){
|
|
|
|
|
and t.${attr.colName} != 2
|
|
|
|
|
\ @}else{
|
|
|
|
|
\ @if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\ @}else if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\ @}
|
|
|
|
|
\ @}
|
|
|
|
|
@}else{
|
|
|
|
|
\ @if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\ @}
|
|
|
|
|
@if(attr.isChoice || attr.isOtherId){
|
|
|
|
|
\ @if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\ @}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
select
|
|
|
|
|
\@pageTag(){
|
|
|
|
|
t.*
|
|
|
|
|
\@}
|
|
|
|
|
from ${entity.tableName} t
|
|
|
|
|
where 1=1
|
|
|
|
|
\@//数据权限,该sql语句功能点,如果不考虑数据权限,可以删除此行
|
|
|
|
|
and #function("${entity.code}.query")#
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(null != attr.status){
|
|
|
|
|
\@if(isEmpty(${attr.name}) && isEmpty(${attr.name}Plural)){
|
|
|
|
|
and t.${attr.colName} != 2
|
|
|
|
|
\@}else{
|
|
|
|
|
\@if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\@}else if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\@}
|
|
|
|
|
\@}
|
|
|
|
|
@}else{
|
|
|
|
|
\@if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\@}
|
|
|
|
|
@if(attr.isChoice || attr.isOtherId){
|
|
|
|
|
\@if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queryByConditionQuery
|
|
|
|
|
===
|
|
|
|
|
* 根据不为空的参数进行分页查询(无权限)
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
|
\ @pageTag(){
|
|
|
|
|
t.*
|
|
|
|
|
\ @}
|
|
|
|
|
from ${entity.tableName} t
|
|
|
|
|
where 1=1
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(null != attr.status){
|
|
|
|
|
\ @if(isEmpty(${attr.name}) && isEmpty(${attr.name}Plural)){
|
|
|
|
|
and t.${attr.colName} != 2
|
|
|
|
|
\ @}else{
|
|
|
|
|
\ @if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\ @}else if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\ @}
|
|
|
|
|
\ @}
|
|
|
|
|
@}else{
|
|
|
|
|
\ @if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\ @}
|
|
|
|
|
@if(attr.isChoice || attr.isOtherId){
|
|
|
|
|
\ @if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\ @}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(null != entity.status){
|
|
|
|
|
select
|
|
|
|
|
\@pageTag(){
|
|
|
|
|
t.*
|
|
|
|
|
\@}
|
|
|
|
|
from ${entity.tableName} t
|
|
|
|
|
where 1=1
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(null != attr.status){
|
|
|
|
|
\@if(isEmpty(${attr.name}) && isEmpty(${attr.name}Plural)){
|
|
|
|
|
and t.${attr.colName} != 2
|
|
|
|
|
\@}else{
|
|
|
|
|
\@if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\@}else if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\@}
|
|
|
|
|
\@}
|
|
|
|
|
@}else{
|
|
|
|
|
\@if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\@}
|
|
|
|
|
@if(attr.isChoice || attr.isOtherId){
|
|
|
|
|
\@if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(null != entity.status){
|
|
|
|
|
|
|
|
|
|
delete${entity.name}ByIds
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 批量删除(假删除)
|
|
|
|
|
|
|
|
|
|
update ${entity.tableName} set ${entity.status} = 2 where find_in_set(${entity.idAttribute.colName},#ids#)
|
|
|
|
|
update ${entity.tableName} set ${entity.status} = 2 where find_in_set(${entity.idAttribute.colName},#ids#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deleteByIds
|
|
|
|
@ -84,24 +84,24 @@ deleteByIds
|
|
|
|
|
|
|
|
|
|
* 批量删除(真删除)
|
|
|
|
|
|
|
|
|
|
delete from ${entity.tableName} where find_in_set(${entity.idAttribute.colName},#ids#)
|
|
|
|
|
delete from ${entity.tableName} where find_in_set(${entity.idAttribute.colName},#ids#)
|
|
|
|
|
|
|
|
|
|
@}else{
|
|
|
|
|
@}else{
|
|
|
|
|
|
|
|
|
|
delete${entity.name}ByIds
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 批量删除
|
|
|
|
|
|
|
|
|
|
delete from ${entity.tableName} where find_in_set(${entity.idAttribute.colName},#ids#)
|
|
|
|
|
delete from ${entity.tableName} where find_in_set(${entity.idAttribute.colName},#ids#)
|
|
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getByIds
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
select * from ${entity.tableName} where find_in_set(${entity.idAttribute.colName},#ids#)
|
|
|
|
|
select * from ${entity.tableName} where find_in_set(${entity.idAttribute.colName},#ids#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateGivenByIds
|
|
|
|
@ -109,25 +109,25 @@ updateGivenByIds
|
|
|
|
|
|
|
|
|
|
* 批量更新指定字段,无论此字段是否有值
|
|
|
|
|
|
|
|
|
|
update ${entity.tableName}
|
|
|
|
|
set
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(!attr.isId){
|
|
|
|
|
\ @if(contain("${attr.name}",_given)){
|
|
|
|
|
\ @if(isEmpty(${attr.name})){
|
|
|
|
|
${attr.colName} = null ,
|
|
|
|
|
\ @}else{
|
|
|
|
|
${attr.colName} = #${attr.name}# ,
|
|
|
|
|
\ @}
|
|
|
|
|
\ @}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(attr.isId){
|
|
|
|
|
${attr.colName} = ${attr.colName}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
where find_in_set(${entity.idAttribute.colName},#${entity.idAttribute.name}Plural#)
|
|
|
|
|
update ${entity.tableName}
|
|
|
|
|
set
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(!attr.isId){
|
|
|
|
|
\@if(contain("${attr.name}",_given)){
|
|
|
|
|
\@if(isEmpty(${attr.name})){
|
|
|
|
|
${attr.colName} = null ,
|
|
|
|
|
\@}else{
|
|
|
|
|
${attr.colName} = #${attr.name}# ,
|
|
|
|
|
\@}
|
|
|
|
|
\@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(attr.isId){
|
|
|
|
|
${attr.colName} = ${attr.colName}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
where find_in_set(${entity.idAttribute.colName},#${entity.idAttribute.name}Plural#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -136,22 +136,22 @@ get${entity.name}Values
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from ${entity.tableName} t
|
|
|
|
|
where 1=1
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(null != attr.status){
|
|
|
|
|
\ @if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\ @}else{
|
|
|
|
|
and t.${attr.colName} != 2
|
|
|
|
|
\ @}
|
|
|
|
|
@}else{
|
|
|
|
|
\ @if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\ @}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
select t.*
|
|
|
|
|
from ${entity.tableName} t
|
|
|
|
|
where 1=1
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(null != attr.status){
|
|
|
|
|
\@if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\@}else{
|
|
|
|
|
and t.${attr.colName} != 2
|
|
|
|
|
\@}
|
|
|
|
|
@}else{
|
|
|
|
|
\@if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getValuesByQuery
|
|
|
|
@ -159,115 +159,115 @@ getValuesByQuery
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from ${entity.tableName} t
|
|
|
|
|
where 1=1 and #function("${entity.code}.query")#
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(null != attr.status){
|
|
|
|
|
\ @if(isEmpty(${attr.name}) && isEmpty(${attr.name}Plural)){
|
|
|
|
|
and t.${attr.colName} != 2
|
|
|
|
|
\ @}else{
|
|
|
|
|
\ @if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\ @}else if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\ @}
|
|
|
|
|
\ @}
|
|
|
|
|
@}else{
|
|
|
|
|
\ @if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\ @}
|
|
|
|
|
@if(attr.isChoice || attr.isOtherId){
|
|
|
|
|
\ @if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\ @}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(entity.includeExcel){
|
|
|
|
|
select t.*
|
|
|
|
|
from ${entity.tableName} t
|
|
|
|
|
where 1=1 and #function("${entity.code}.query")#
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(null != attr.status){
|
|
|
|
|
\@if(isEmpty(${attr.name}) && isEmpty(${attr.name}Plural)){
|
|
|
|
|
and t.${attr.colName} != 2
|
|
|
|
|
\@}else{
|
|
|
|
|
\@if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\@}else if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\@}
|
|
|
|
|
\@}
|
|
|
|
|
@}else{
|
|
|
|
|
\@if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\@}
|
|
|
|
|
@if(attr.isChoice || attr.isOtherId){
|
|
|
|
|
\@if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(entity.includeExcel){
|
|
|
|
|
|
|
|
|
|
getExcelValues
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询导入需要的参数
|
|
|
|
|
|
|
|
|
|
SELECT * FROM (
|
|
|
|
|
(
|
|
|
|
|
select
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(!attr.isId && !attr.isAddTime && !attr.isOrgId && !attr.isUserId) {
|
|
|
|
|
@if(attrLP.last){
|
|
|
|
|
MAX(LENGTH(t.${attr.colName})) ${attr.colName}
|
|
|
|
|
@}else{
|
|
|
|
|
MAX(LENGTH(t.${attr.colName})) ${attr.colName},
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
from ${entity.tableName} t
|
|
|
|
|
where 1=1 and #function("${entity.code}.query")#
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(null != attr.status){
|
|
|
|
|
\ @if(isEmpty(${attr.name}) && isEmpty(${attr.name}Plural)){
|
|
|
|
|
and t.${attr.colName} != 2
|
|
|
|
|
\ @}else{
|
|
|
|
|
\ @if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\ @}else if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\ @}
|
|
|
|
|
\ @}
|
|
|
|
|
@}else{
|
|
|
|
|
\ @if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\ @}
|
|
|
|
|
@if(attr.isChoice || attr.isOtherId){
|
|
|
|
|
\ @if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\ @}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
)
|
|
|
|
|
UNION ALL
|
|
|
|
|
(
|
|
|
|
|
select
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(!attr.isId && !attr.isAddTime && !attr.isOrgId && !attr.isUserId) {
|
|
|
|
|
@if(attrLP.last){
|
|
|
|
|
t.${attr.colName}
|
|
|
|
|
@}else{
|
|
|
|
|
t.${attr.colName} ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
from ${entity.tableName} t
|
|
|
|
|
where 1=1 and #function("${entity.code}.query")#
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(null != attr.status){
|
|
|
|
|
\ @if(isEmpty(${attr.name}) && isEmpty(${attr.name}Plural)){
|
|
|
|
|
and t.${attr.colName} != 2
|
|
|
|
|
\ @}else{
|
|
|
|
|
\ @if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\ @}else if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\ @}
|
|
|
|
|
\ @}
|
|
|
|
|
@}else{
|
|
|
|
|
\ @if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\ @}
|
|
|
|
|
@if(attr.isChoice || attr.isOtherId){
|
|
|
|
|
\ @if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\ @}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
)
|
|
|
|
|
)t
|
|
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
SELECT * FROM (
|
|
|
|
|
(
|
|
|
|
|
select
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(!attr.isId && !attr.isAddTime && !attr.isOrgId && !attr.isUserId) {
|
|
|
|
|
@if(attrLP.last){
|
|
|
|
|
MAX(LENGTH(t.${attr.colName})) ${attr.colName}
|
|
|
|
|
@}else{
|
|
|
|
|
MAX(LENGTH(t.${attr.colName})) ${attr.colName},
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
from ${entity.tableName} t
|
|
|
|
|
where 1=1 and #function("${entity.code}.query")#
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(null != attr.status){
|
|
|
|
|
\@if(isEmpty(${attr.name}) && isEmpty(${attr.name}Plural)){
|
|
|
|
|
and t.${attr.colName} != 2
|
|
|
|
|
\@}else{
|
|
|
|
|
\@if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\@}else if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\@}
|
|
|
|
|
\@}
|
|
|
|
|
@}else{
|
|
|
|
|
\@if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\@}
|
|
|
|
|
@if(attr.isChoice || attr.isOtherId){
|
|
|
|
|
\@if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
)
|
|
|
|
|
UNION ALL
|
|
|
|
|
(
|
|
|
|
|
select
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(!attr.isId && !attr.isAddTime && !attr.isOrgId && !attr.isUserId) {
|
|
|
|
|
@if(attrLP.last){
|
|
|
|
|
t.${attr.colName}
|
|
|
|
|
@}else{
|
|
|
|
|
t.${attr.colName} ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
from ${entity.tableName} t
|
|
|
|
|
where 1=1 and #function("${entity.code}.query")#
|
|
|
|
|
@for(attr in attrs){
|
|
|
|
|
@if(null != attr.status){
|
|
|
|
|
\@if(isEmpty(${attr.name}) && isEmpty(${attr.name}Plural)){
|
|
|
|
|
and t.${attr.colName} != 2
|
|
|
|
|
\@}else{
|
|
|
|
|
\@if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\@}else if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\@}
|
|
|
|
|
\@}
|
|
|
|
|
@}else{
|
|
|
|
|
\@if(!isEmpty(${attr.name})){
|
|
|
|
|
and t.${attr.colName} =#${attr.name}#
|
|
|
|
|
\@}
|
|
|
|
|
@if(attr.isChoice || attr.isOtherId){
|
|
|
|
|
\@if(!isEmpty(${attr.name}Plural)){
|
|
|
|
|
and find_in_set(t.${attr.colName},#${attr.name}Plural#)
|
|
|
|
|
\@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
)
|
|
|
|
|
)t
|
|
|
|
|
|
|
|
|
|
@}
|
|
|
|
|