|
|
@@ -20,8 +20,7 @@
|
|
|
a.create_by AS "createBy.id",
|
|
|
a.update_date AS "updateDate",
|
|
|
a.update_by AS "updateBy.id",
|
|
|
- wc.company_name as "wsCompany.companyName",
|
|
|
- (SELECT count(wp.id) FROM ws_punch_clock wp WHERE YEARWEEK(date_format(wp.start_punch_clock,'%Y-%m-%d'),1) = YEARWEEK(now(),1)-1 and wp.member_id=hm.id) as "punchClockNum"
|
|
|
+ wc.company_name as "wsCompany.companyName"
|
|
|
</sql>
|
|
|
|
|
|
<sql id="wsStaffJoins">
|
|
|
@@ -41,6 +40,7 @@
|
|
|
select t.* from (
|
|
|
SELECT
|
|
|
<include refid="wsStaffColumns"/>,
|
|
|
+ (SELECT count(wp.id) FROM ws_punch_clock wp WHERE YEARWEEK(date_format(wp.start_punch_clock,'%Y-%m-%d'),1) = YEARWEEK(now(),1)-1 and wp.member_id=hm.id) as "punchClockNum",
|
|
|
ifnull(hm.authentication_status,0) as "hpMember.authenticationStatus"
|
|
|
FROM ws_staff a
|
|
|
<include refid="wsStaffJoins"/>
|