| | |
| | | package com.gkhy.labRiskManage.commons.utils; |
| | | |
| | | import com.alibaba.fastjson.*; |
| | | import com.gkhy.labRiskManage.api.controller.basic.dto.respDto.*; |
| | | import com.gkhy.labRiskManage.api.controller.riskReport.dto.respDto.*; |
| | | import com.gkhy.labRiskManage.application.basic.dto.bo.BasicExperimentPersonAppQueryBO; |
| | |
| | | import com.gkhy.labRiskManage.domain.riskReport.model.dto.RiskAssessPlanQueryDTO; |
| | | import org.springframework.beans.BeanUtils; |
| | | |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | .collect(Collectors.toList()); |
| | | } |
| | | |
| | | |
| | | |
| | | public static <T> List<T> list2OtherList(List originList,Class<T> tClass){ |
| | | List<T> list = new ArrayList<>(); |
| | | for (Object info : originList) { |
| | | T t = JSON.parseObject(JSON.toJSONString(info),tClass); |
| | | list.add(t); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | |
| | | public static Object copyDeviceAppQueryList(Object data, Class<BasicExperimentDeviceAppQueryDTO> basicExperimentDeviceAppQueryDTOClass) { |
| | | return data; |
| | | } |