| | |
| | | <result column="contactscell" property="contactscell"/> |
| | | <result column="business_License" property="businessLicense"/> |
| | | <result column="licence" property="licence"/> |
| | | <result column="jurisdictionName" property="jurisdictionName"/> |
| | | <result column="znum" property="znum"/> |
| | | <result column="cnum" property="cnum"/> |
| | | <result column="pnum" property="pnum"/> |
| | |
| | | i.*, |
| | | IFNULL(A.znum ,0) as znum, |
| | | IFNULL(B.cnum ,0) as cnum, |
| | | IFNULL(C.pnum ,0) as pnum |
| | | IFNULL(C.pnum ,0) as pnum, |
| | | sj.dept_name jurisdictionName |
| | | FROM |
| | | sys_information i |
| | | left join |
| | | sys_jurisdiction sj |
| | | on |
| | | sj.id = i.jurisdiction |
| | | LEFT JOIN ( SELECT COUNT( * ) AS znum, dept_id FROM blade_user WHERE role_id = '1412226235153731586' AND |
| | | status=1 GROUP BY dept_id ) A ON A.dept_id = i.departmentid |
| | | LEFT JOIN ( SELECT COUNT( * ) AS cnum, dept_id FROM blade_user WHERE role_id = '1412226235153731586' AND |