| | |
| | | sb.append("SELECT a.register_id,a.username,a.surveillance_photo,d.company_name,a.tel,a.identify_num,b.dept_name,")
|
| | | .append("d.company_id,e.post_name,a.mobile_phone,0 as type,f.`name` gender,g.`name` identity_type,")
|
| | | .append("a.birthday,h.`name` country_name,j.username visitee,k.`name` visit_reason,i.enter_time,i.exit_time,")
|
| | | .append("l.`name` current_status,a.id_card_photo").append(" FROM ").append(" visit i ")
|
| | | .append("l.`name` current_status,a.id_card_photo,a.company").append(" FROM ").append(" visit i ")
|
| | | .append(" LEFT JOIN register a on i.visitor_id=a.register_id ")
|
| | | .append(" LEFT JOIN company d on d.company_id=a.company_id ")
|
| | | .append(" LEFT JOIN department b on a.department_id = b.dept_id ")
|
| | | .append(" LEFT JOIN post e on e.post_id=a.post_id ")
|
| | | .append(" LEFT JOIN dictionary f on f.dict_id=a.gender_id ")
|
| | | .append(" LEFT JOIN dictionary g on g.dict_id=a.identity_type_id ")
|
| | | .append(" LEFT JOIN dictionary h on h.dict_id=a.country_id ")
|
| | | .append(" LEFT JOIN register j on j.register_id=a.register_id ")
|
| | | .append(" LEFT JOIN register j on j.register_id=i.visitee_id ")
|
| | | .append(" LEFT JOIN department b on j.department_id = b.dept_id ")
|
| | | .append(" LEFT JOIN dictionary k on k.dict_id=i.visit_reason_id ")
|
| | | .append(" LEFT JOIN dictionary l on l.dict_id=i.current_state_id ")
|
| | | .append(" WHERE ").append(" 1 = 1 AND a.register_id IS NOT NULL ");
|
| | |
| | | aqi.setExitTime(c.getString(c.getColumnIndex("exit_time")));
|
| | | aqi.setCurrentStatus(c.getString(c.getColumnIndex("current_status")));
|
| | | aqi.setIdCardPhoto(c.getString(c.getColumnIndex("id_card_photo")));
|
| | | String company = c.getString(c.getColumnIndex("company"));
|
| | | if (company != null && !"".equals(company)) {
|
| | | aqi.setCompanyName(company);
|
| | | }
|
| | | list.add(aqi);
|
| | | }
|
| | | Integer total = null;
|