|  |  |  | 
|---|
|  |  |  | import com.fzzy.push.gd2022.dto.Gd2022Api1023Way; | 
|---|
|  |  |  | import com.fzzy.push.gd2022.ApiCodeConstant; | 
|---|
|  |  |  | import lombok.extern.slf4j.Slf4j; | 
|---|
|  |  |  | import org.apache.commons.lang.StringUtils; | 
|---|
|  |  |  | import org.springframework.beans.BeanUtils; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.stereotype.Component; | 
|---|
|  |  |  | 
|---|
|  |  |  | apiLog.setType(ApiLog.TYPE_SYNC); | 
|---|
|  |  |  | apiLog.setKqdm(deptId); | 
|---|
|  |  |  | apiLog.setUploadTime(new Date()); | 
|---|
|  |  |  | apiLog.setInteId(ApiCodeConstant.API_1023); | 
|---|
|  |  |  | apiLog.setInteId(ApiCodeConstant.API_9201); | 
|---|
|  |  |  | apiLog.setStatus(99); | 
|---|
|  |  |  | apiLog.setId(ContextUtil.getUUID()); | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | List<Fz40DrugLogApply> list = fzzy40Sync1023Rep.listDrugLogApply(deptId); | 
|---|
|  |  |  | List<Fz40DrugLogApply> list = fzzy40Sync1023Rep.listDrugLogApply(deptId, start, end); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (null == list || list.isEmpty()) { | 
|---|
|  |  |  | log.info("-------------没有获取到熏蒸备案信息------------------"); | 
|---|
|  |  |  | 
|---|
|  |  |  | GD2022Api1023.setYjlx(data.getDrugType()); | 
|---|
|  |  |  | GD2022Api1023.setLqrq(data.getLqsj()); | 
|---|
|  |  |  | GD2022Api1023.setZhgxsj(data.getUpdateTime()); | 
|---|
|  |  |  | if(data.getLqr().contains("、")){ | 
|---|
|  |  |  | if (data.getLqr().contains("、")) { | 
|---|
|  |  |  | GD2022Api1023.setLqr(data.getLqr().replace('、', '|')); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | gd2022Api1023People = new Gd2022Api1023People(); | 
|---|
|  |  |  | BeanUtils.copyProperties(people, gd2022Api1023People); | 
|---|
|  |  |  | gd2022Api1023People.setXm(people.getMx()); | 
|---|
|  |  |  | if (StringUtils.isEmpty(people.getZyzg())) { | 
|---|
|  |  |  | gd2022Api1023People.setZyzg("中级"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | peopleList.add(gd2022Api1023People); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | GD2022Api1023.setPeoples(peopleList); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | infoData.setKqdm(kqdm); | 
|---|
|  |  |  | infoData.setInteType(Constant.API_CATEGORY_13); | 
|---|
|  |  |  | infoData.setInteId(ApiCodeConstant.API_1023); | 
|---|
|  |  |  | infoData.setBizType(PushProtocol.SB_GD_2022.getCode()); | 
|---|
|  |  |  | infoData.setInteId(ApiCodeConstant.API_9201); | 
|---|
|  |  |  | infoData.setBizType(PushProtocol.SB_GD_2023.getCode()); | 
|---|
|  |  |  | infoData.setUpdateTime(new Date()); | 
|---|
|  |  |  | infoData.setDataId(data.getXzbm()); | 
|---|
|  |  |  | apiInfoList = apiInfoDataRep.getDataByInteAndData(ApiCodeConstant.API_1023, data.getXzbm(), kqdm); | 
|---|
|  |  |  | apiInfoList = apiInfoDataRep.getDataByInteAndData(ApiCodeConstant.API_9201, data.getXzbm(), kqdm); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (null == apiInfoList || apiInfoList.isEmpty()) { | 
|---|
|  |  |  | GD2022Api1023.setCzbz(Constant.CZBZ_I); | 
|---|