瀏覽代碼

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

wangchao 4 年之前
父節點
當前提交
cc86f342c0

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

8
import com.ai.bss.user.service.api.EmployeeService;
8
import com.ai.bss.user.service.api.EmployeeService;
9
import com.ai.bss.work.safety.service.api.AiTaskQuery;
9
import com.ai.bss.work.safety.service.api.AiTaskQuery;
10
import com.ai.bss.work.tool.service.api.ResourceToolQuery;
10
import com.ai.bss.work.tool.service.api.ResourceToolQuery;
11
import com.alibaba.fastjson.JSON;
11
import org.apache.bcel.verifier.statics.LONG_Upper;
12
import org.apache.bcel.verifier.statics.LONG_Upper;
12
import org.springframework.beans.factory.annotation.Autowired;
13
import org.springframework.beans.factory.annotation.Autowired;
13
import org.springframework.stereotype.Service;
14
import org.springframework.stereotype.Service;
43
44
44
        if(null!=inAndOutRecordList&&inAndOutRecordList.size()>0){
45
        if(null!=inAndOutRecordList&&inAndOutRecordList.size()>0){
45
            inAndOutRecordList.forEach((inAndOutRecord)->{
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
                if(null!=inAndOutRecord.get("relateEmployeeRoleId")){
56
                if(null!=inAndOutRecord.get("relateEmployeeRoleId")){
47
                    long relateEmployeeRoleId = Long.parseLong((String) inAndOutRecord.get("relateEmployeeRoleId"));
57
                    long relateEmployeeRoleId = Long.parseLong((String) inAndOutRecord.get("relateEmployeeRoleId"));
48
58