+"case when ba.nTag&1 = 1 then 1 when ba.nTag&2 = 0 then 2 when ba.nTag&2 = 2 then 3 else 0 end status, "
+"case when ba.nTag&1 = 1 then 1 when ba.nTag&2 = 0 then 2 when ba.nTag&2 = 2 then 3 else 0 end status, "
+"case when ba.nTag&1 = 1 then '已否决' when ba.nTag&2 = 0 then '未审核' when ba.nTag&2 = 3 then '已审核' else '审核中' end statusDesc "
+"case when ba.nTag&1 = 1 then '已否决' when ba.nTag&2 = 0 then '未审核' when ba.nTag&2 = 3 then '已审核' else '审核中' end statusDesc "
+" FROM tIPBrand a left join tIPBrandAuthorize ba on ba.sIPID = a.sIPID and ba.sCustNO = ? join tOrg o on a.sOrgNO = o.sOrgNO join tBrand b on a.sBrandID = b.sBrandID "
+" FROM tIPBrand a left join tIPBrandAuthorize ba on ba.sIPID = a.sIPID and ba.sCustNO = ? join tOrg o on a.sOrgNO = o.sOrgNO join tBrand b on a.sBrandID = b.sBrandID "
+" WHERE a.sIPID = ? and a.sOrgNO = ? and a.nTag=2 ";
+" WHERE a.sIPID = ? and a.sOrgNO = ? and a.nTag=2 ";