考勤机添加是否手动添加字段
This commit is contained in:
parent
56f46c4570
commit
2ce74205d4
|
|
@ -67,6 +67,7 @@ public class KqCmdBean {
|
||||||
private String phone;
|
private String phone;
|
||||||
|
|
||||||
private String createTime;
|
private String createTime;
|
||||||
|
private String isHand;
|
||||||
|
|
||||||
public KqCmdBean() {
|
public KqCmdBean() {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,13 @@
|
||||||
|
|
||||||
<select id="getUserByDeviceId" resultType="com.bonus.bmw.domain.vo.KqCmdBean">
|
<select id="getUserByDeviceId" resultType="com.bonus.bmw.domain.vo.KqCmdBean">
|
||||||
select
|
select
|
||||||
user_id as worker_id,
|
kul.user_id as worker_id,
|
||||||
user_name as worker_name,
|
kul.user_name as worker_name,
|
||||||
user_phone as phone,
|
kul.user_phone as phone,
|
||||||
dev_code as device_code
|
kul.dev_code as device_code,
|
||||||
from kq_user_list
|
if(bwem.worker_id is null,1,0) as isHand
|
||||||
|
from kq_user_list kul
|
||||||
|
LEFT JOIN bm_worker_ein_msg bwem ON kul.user_id = bwem.worker_id and bwem.pro_id = #{proId}
|
||||||
where dev_code = #{deviceCode}
|
where dev_code = #{deviceCode}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue