re.md 912 Bytes
Newer Older
zhangfeng committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
queryByCondition
===


    select 
    @pageTag(){
    *
    @}
    FROM core_user_role t LEFT JOIN core_user u on t.USER_ID=u.ID WHERE 
    1=1
    and t.ROLE_ID='203'
     @if(!isEmpty(userId)){
        and  t.USER_ID= #userId#
    @}
     @if(!isEmpty(name)){
        and  u.name= #name#
    @}
    @if(!isEmpty(userName)){
        and  u.code= #userName#
    @}
    @//数据权限,该sql语句功能点  
    and #function("re.query")#
    
queryByConditionORG
===


    select 
    @pageTag(){
    t.*
    @}
    from re_org t
    LEFT JOIN core_org o on t.ORG_ID=o.ID  
    where 1=1 
     @if(!isEmpty(userId)){
        and  t.USER_ID= #userId#
    @}
    @//数据权限,该sql语句功能点  
    and #function("re.query")#
    
        
    

batchDelReOrgByIds
===

* 批量逻辑删除

    DELETE  FROM re_org  where ID  in( #join(ids)#)