Browse Source

进出记录返回参数查询修改

wangchao 4 years ago
parent
commit
cc86f342c0

+ 10 - 0
security-protection-service/src/main/java/com/ai/bss/security/protection/service/impl/InAndOutRecordServiceImpl.java

@ -8,6 +8,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 10
import com.ai.bss.work.tool.service.api.ResourceToolQuery;
11
import com.alibaba.fastjson.JSON;
11 12
import org.apache.bcel.verifier.statics.LONG_Upper;
12 13
import org.springframework.beans.factory.annotation.Autowired;
13 14
import org.springframework.stereotype.Service;
@ -43,6 +44,15 @@ public class InAndOutRecordServiceImpl implements InAndOutRecordService {
43 44
44 45
        if(null!=inAndOutRecordList&&inAndOutRecordList.size()>0){
45 46
            inAndOutRecordList.forEach((inAndOutRecord)->{
47
                if(null!=inAndOutRecord.get("idenResult")){
48
                    String idenResult = (String) inAndOutRecord.get("idenResult");
49
                    if(idenResult.contains(":")){
50
                        Object parse = JSON.parse(idenResult);
51
                        inAndOutRecord.put("idenResult",parse);
52
                    }
53
                }
54
55
46 56
                if(null!=inAndOutRecord.get("relateEmployeeRoleId")){
47 57
                    long relateEmployeeRoleId = Long.parseLong((String) inAndOutRecord.get("relateEmployeeRoleId"));
48 58