隨筆-71  評論-5  文章-0  trackbacks-0
          str.append(" left join (
          select customer_no,(case  when auth_type=1 then count(route) when auth_type=2 then count(route) when auth_type=3 then count(route) end) as auth_image from h_auth_info where audit_sign=1) h6
          ");




          select  auth_info.customer_no,
          (case when auth_info.auth_image=3 then 1 
                when auth_info.auth_image<3 then 0 
          end)
          as auth_result
          from(
          select customer_no,
          (case  when auth_type=1 then count(route) 
                 when auth_type=2 then count(route) 
                 when auth_type=3 then count(route) 
           end) 
          as auth_image 
          from h_auth_info 
          where audit_sign=1  and customer_no='18632116655'
          )  auth_info
          posted on 2014-12-26 09:14 藤本薔薇 閱讀(195) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 鸡西市| 蕲春县| 华容县| 湘阴县| 甘洛县| 湟中县| 陵水| 格尔木市| 赤峰市| 武邑县| 秦安县| 灵山县| 平潭县| 井陉县| 高雄县| 四川省| 湖南省| 乐昌市| 建湖县| 泽库县| 霍邱县| 桂平市| 宕昌县| 泰州市| 万荣县| 望城县| 辽阳市| 永安市| 德州市| 汉川市| 信宜市| 汉中市| 新疆| 内黄县| 祥云县| 白玉县| 普宁市| 常德市| 义乌市| 镇沅| 壤塘县|