|
@ -7,10 +7,12 @@ import com.ai.bss.security.protection.service.interfaces.InAndOutRecordService;
|
7
|
7
|
import com.ai.bss.user.dto.EmployeeDto;
|
8
|
8
|
import com.ai.bss.user.service.api.EmployeeService;
|
9
|
9
|
import com.ai.bss.work.safety.service.api.AiTaskQuery;
|
|
10
|
import com.ai.bss.work.tool.service.api.ResourceToolQuery;
|
10
|
11
|
import org.apache.bcel.verifier.statics.LONG_Upper;
|
11
|
12
|
import org.springframework.beans.factory.annotation.Autowired;
|
12
|
13
|
import org.springframework.stereotype.Service;
|
13
|
14
|
|
|
15
|
import java.util.HashMap;
|
14
|
16
|
import java.util.List;
|
15
|
17
|
import java.util.Map;
|
16
|
18
|
|
|
@ -28,6 +30,9 @@ public class InAndOutRecordServiceImpl implements InAndOutRecordService {
|
28
|
30
|
@Autowired
|
29
|
31
|
EmployeeService employeeService;
|
30
|
32
|
|
|
33
|
@Autowired
|
|
34
|
ResourceToolQuery resourceToolQuery;
|
|
35
|
|
31
|
36
|
|
32
|
37
|
@Override
|
33
|
38
|
public CommonResponse<PageBean<Map<String, Object>>> queryPageInAndOutRecord(Map<String, Object> params, int pageNumber, int pageSize) {
|
|
@ -55,6 +60,18 @@ public class InAndOutRecordServiceImpl implements InAndOutRecordService {
|
55
|
60
|
inAndOutRecord.put("organizeCode", employee.getOrganizeCode());
|
56
|
61
|
inAndOutRecord.put("code", employee.getCode());
|
57
|
62
|
}
|
|
63
|
|
|
64
|
}
|
|
65
|
if(null!=inAndOutRecord.get("resourceToolId")){
|
|
66
|
CommonRequest<HashMap<String, Object>> conditionMapRequest =new CommonRequest(new HashMap<String,Object>(),1,10);
|
|
67
|
conditionMapRequest.getData().put("resourceToolId", inAndOutRecord.get("resourceToolId"));
|
|
68
|
CommonResponse<PageBean<Map<String, Object>>> pageBeanCommonResponse = resourceToolQuery.queryWorkToolByConditions(conditionMapRequest);
|
|
69
|
List<Map<String, Object>> workToolList = pageBeanCommonResponse.getData().getData();
|
|
70
|
|
|
71
|
if(workToolList!=null||workToolList.size()>0){
|
|
72
|
inAndOutRecord.put("resourceToolCode", workToolList.get(0).get("resourceToolCode"));
|
|
73
|
inAndOutRecord.put("resourceToolName", workToolList.get(0).get("resourceToolName"));
|
|
74
|
}
|
58
|
75
|
}
|
59
|
76
|
});
|
60
|
77
|
}
|