Compare commits
No commits in common. "54b4e9557a7692fef73bc40f8fdd3930171cd0df" and "ced8513428628b49aeb4a342b59f251789f5219f" have entirely different histories.
54b4e9557a
...
ced8513428
|
|
@ -64,38 +64,26 @@ public class UserFaceHandle {
|
|||
bast64= jsonObject.getString("logPhoto");
|
||||
// fileService.uploadBast64(bast64,"bm_att_person","bm_att_person")
|
||||
}
|
||||
//考情机是否绑定工程
|
||||
//验证用户是否入场
|
||||
BmWorkerEinUserVo vo=service.getOnUserInfo(userId);
|
||||
String proId=service.getDevPorId(devCode);
|
||||
if(StringUtils.isNotEmpty(proId)){
|
||||
//验证用户是否入场
|
||||
BmWorkerEinUserVo vo=service.getOnUserInfo(userId);
|
||||
if(vo==null){
|
||||
vo=new BmWorkerEinUserVo();
|
||||
vo.setAttPhoto(bast64);
|
||||
vo.setAttTime(time);
|
||||
vo.setDevCode(devCode);
|
||||
vo.setDevName(deviceVo.getDeviceName());
|
||||
vo.setUserId(userId);
|
||||
service.addWrcUser(vo);
|
||||
}else {
|
||||
vo.setAttPhoto(bast64);
|
||||
vo.setAttTime(time);
|
||||
vo.setDevCode(devCode);
|
||||
vo.setDevName(deviceVo.getDeviceName());
|
||||
service.addAttendInfo(vo);
|
||||
//数据返回
|
||||
}
|
||||
}else{
|
||||
BmWorkerEinUserVo vo=new BmWorkerEinUserVo();
|
||||
if(vo==null && StringUtils.isNotEmpty(proId)){
|
||||
vo=new BmWorkerEinUserVo();
|
||||
vo.setAttPhoto(bast64);
|
||||
vo.setAttTime(time);
|
||||
vo.setDevCode(devCode);
|
||||
vo.setDevName(deviceVo.getDeviceName());
|
||||
vo.setUserId(userId);
|
||||
service.addWrcUser(vo);
|
||||
}else {
|
||||
assert vo != null;
|
||||
vo.setAttPhoto(bast64);
|
||||
vo.setAttTime(time);
|
||||
vo.setDevCode(devCode);
|
||||
vo.setDevName(deviceVo.getDeviceName());
|
||||
service.addAttendInfo(vo);
|
||||
//数据返回
|
||||
}
|
||||
|
||||
|
||||
resp.addHeader(Constant.DEVICE_HEADER_RESPONSE_CODE, Constant.OK);
|
||||
resp.getWriter().write("");
|
||||
}catch (Exception e){
|
||||
|
|
|
|||
Loading…
Reference in New Issue