|  |  |  | 
|---|
|  |  |  | Api1108 data = new Api1108(); | 
|---|
|  |  |  | BeanUtils.copyProperties(entity, data); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | data.setId(data.getBizId().trim()); | 
|---|
|  |  |  | api1108Rep.save(data); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | ApiRemoteService apiRemoteService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); | 
|---|
|  |  |  | if (null == apiRemoteService) return "系统没有当前推送协议配置,执行失败"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (PushProtocol.SB_SH_2023.getCode().equals(apiConf.getPushProtocol())){ | 
|---|
|  |  |  | return pushDataList(items,apiRemoteService,apiConf); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return pushDataSingle(items,apiRemoteService,apiConf); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | result += responseDto.toString(); | 
|---|
|  |  |  | if (responseDto.getSuccess() == 0) { | 
|---|
|  |  |  | if (Constant.CZBZ_I.equals(d.getCzbz())) { | 
|---|
|  |  |  | api1108Rep.updateStatus(data.getKqdm(), Constant.CZBZ_U); | 
|---|
|  |  |  | api1108Rep.updateStatus(data.getId(), Constant.CZBZ_U); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | for (Api1108 data : items) { | 
|---|
|  |  |  | if (Constant.CZBZ_I.equals(data.getCzbz())) { | 
|---|
|  |  |  | //更新状态 | 
|---|
|  |  |  | api1108Rep.updateStatus(data.getKqdm(), Constant.CZBZ_U); | 
|---|
|  |  |  | api1108Rep.updateStatus(data.getId(), Constant.CZBZ_U); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|