Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
3316f1e66f
|
|
@ -67,11 +67,12 @@ public class KqCmdBean {
|
|||
private String phone;
|
||||
|
||||
private String createTime;
|
||||
private String isHand;
|
||||
|
||||
public KqCmdBean() {
|
||||
}
|
||||
|
||||
public KqCmdBean(String deviceCode, String subName, String teamName,Integer proId, Integer subId, Integer teamId) {
|
||||
public KqCmdBean(String deviceCode, String subName, String teamName, Integer proId, Integer subId, Integer teamId) {
|
||||
this.deviceCode = deviceCode;
|
||||
this.subName = subName;
|
||||
this.teamName = teamName;
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@
|
|||
|
||||
<select id="getUserByDeviceId" resultType="com.bonus.bmw.domain.vo.KqCmdBean">
|
||||
select
|
||||
user_id as worker_id,
|
||||
user_name as worker_name,
|
||||
user_phone as phone,
|
||||
dev_code as device_code
|
||||
from kq_user_list
|
||||
kul.user_id as worker_id,
|
||||
kul.user_name as worker_name,
|
||||
kul.user_phone as phone,
|
||||
kul.dev_code as device_code,
|
||||
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}
|
||||
</select>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue