|
@@ -1685,21 +1685,15 @@
|
|
|
${ex.orderBy}
|
|
|
</select>
|
|
|
<select id="workerSignConfirmCount" resultType="java.lang.Integer">
|
|
|
- FROM (
|
|
|
- SELECT
|
|
|
- IF(IFNULL(d.create_time, 1)=1, 1, 0) AS status
|
|
|
- FROM
|
|
|
- websit_user a
|
|
|
- LEFT JOIN admin_websit b ON a.websit_id = b.websit_id
|
|
|
- LEFT JOIN `user` c ON a.user_id = c.user_id
|
|
|
- LEFT JOIN worker_sign_confirm d ON b.belong_company_code = d.belong_company_code AND a.user_id = d.user_id
|
|
|
- WHERE
|
|
|
- a.examine_status IN ('OK', 'EXPIRED')
|
|
|
- AND b.attr = 'SELF'
|
|
|
- GROUP BY
|
|
|
- b.belong_company_code,
|
|
|
- a.user_id
|
|
|
- )a WHERE a.status = 1
|
|
|
+ SELECT
|
|
|
+ COUNT(DISTINCT CONCAT( b.belong_company_code, '-', a.user_id )) AS total
|
|
|
+ FROM
|
|
|
+ websit_user a
|
|
|
+ INNER JOIN admin_websit b ON a.websit_id = b.websit_id AND b.attr = 'SELF'
|
|
|
+ LEFT JOIN worker_sign_confirm d ON b.belong_company_code = d.belong_company_code AND a.user_id = d.user_id
|
|
|
+ WHERE
|
|
|
+ a.examine_status IN ( 'OK', 'EXPIRED' )
|
|
|
+ AND d.create_time IS NULL
|
|
|
</select>
|
|
|
<select id="workerSignConfirmManualPage"
|
|
|
resultType="com.gree.mall.manager.bean.worker.WorkerElecConfirmManualVO">
|