strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='2E5E6066-1C5D-4B04-BF8C-56637C20FC8C' and VALUE='true') then 1 else 0 end isUseSystem ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='31AC11C1-D005-46EC-A0EE-05BC211AE1B7' and VALUE='true') then 1 else 0 end isOperator ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='3C91140E-6FB6-4B5A-B5AB-30E59E3CBBED' and VALUE='true') then 1 else 0 end isSaleMan ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='3CF26819-B519-4595-89E3-9F46A205218E' and VALUE='true') then 1 else 0 end isDriver ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='4211AD22-FBF5-4A74-8A53-6AC05E598982' and VALUE='true') then 1 else 0 end isCustomsDeclarer ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='A879800D-1CDC-4248-8120-7854431F2BE3' and VALUE='true') then 1 else 0 end isDocument ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='D22315B2-3612-491A-B9E5-937E5E2CF310' and VALUE='true') then 1 else 0 end isFinancialStaff ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='D4BF2204-F0AC-4F12-B02C-6520D57BF800' and VALUE='true') then 1 else 0 end isDisable ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='D4BF2204-F0AC-4F12-B02C-6520D57BF806' and VALUE='true') then 1 else 0 end isCustomsService ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='DFF42726-A0BA-4264-BFDF-2500A35E89C7' and VALUE='true') then 1 else 0 end isVehiclesDispatcher ");
strSql.Append(" from [user] u left join user_baseinfo l on (u.gid=l.USERID) ");
strSql.Append(" left join user_company c on (u.gid=c.USERID) ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='2E5E6066-1C5D-4B04-BF8C-56637C20FC8C' and VALUE='true') then 1 else 0 end isUseSystem ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='31AC11C1-D005-46EC-A0EE-05BC211AE1B7' and VALUE='true') then 1 else 0 end isOperator ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='3C91140E-6FB6-4B5A-B5AB-30E59E3CBBED' and VALUE='true') then 1 else 0 end isSaleMan ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='3CF26819-B519-4595-89E3-9F46A205218E' and VALUE='true') then 1 else 0 end isDriver ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='4211AD22-FBF5-4A74-8A53-6AC05E598982' and VALUE='true') then 1 else 0 end isCustomsDeclarer ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='A879800D-1CDC-4248-8120-7854431F2BE3' and VALUE='true') then 1 else 0 end isDocument ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='D22315B2-3612-491A-B9E5-937E5E2CF310' and VALUE='true') then 1 else 0 end isFinancialStaff ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='D4BF2204-F0AC-4F12-B02C-6520D57BF800' and VALUE='true') then 1 else 0 end isDisable ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='D4BF2204-F0AC-4F12-B02C-6520D57BF806' and VALUE='true') then 1 else 0 end isCustomsService ");
strSql.Append(" ,case when exists(select 1 from user_userattribute where userid=u.gid and ATTRIBUTEID='DFF42726-A0BA-4264-BFDF-2500A35E89C7' and VALUE='true') then 1 else 0 end isVehiclesDispatcher ");
strSql.Append(" from [user] u left join user_baseinfo l on (u.gid=l.USERID) ");
strSql.Append(" left join user_company c on (u.gid=c.USERID) ");