| | |
| | | import com.fzzy.api.service.ApiRemoteService; |
| | | import com.fzzy.api.service.PushService11; |
| | | import com.fzzy.api.view.repository.ApiInfoDataRep; |
| | | import com.fzzy.whjl.WhjlConstant; |
| | | import com.fzzy.whjl.dto.WhjlApi1101; |
| | | import com.fzzy.whjl.dto.WhjlApi1204; |
| | | import com.fzzy.whjl.dto.WhjlApi1207; |
| | | import com.fzzy.whjl.dto.WhjlApi1214; |
| | | import com.fzzy.otherview.whhpjl.WhjlConstant; |
| | | import com.fzzy.otherview.whhpjl.dto.WhjlApi1204; |
| | | import com.fzzy.otherview.whhpjl.dto.WhjlApi1206; |
| | | import com.fzzy.otherview.whhpjl.dto.WhjlApi1212; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | } |
| | | param.setInteCategory(WhjlConstant.API_CATEGORY_12); |
| | | param.setInteId(WhjlConstant.API_CODE_1207); |
| | | List<WhjlApi1207> list = new ArrayList<>(); |
| | | WhjlApi1207 whjlApi1207; |
| | | List<WhjlApi1206> list = new ArrayList<>(); |
| | | WhjlApi1206 whjlApi1206; |
| | | for (ApiInfoData infoData : items) { |
| | | whjlApi1207 = JSONObject.parseObject(infoData.getData(), WhjlApi1207.class); |
| | | whjlApi1207.setKqdm(infoData.getKqdm()); |
| | | whjlApi1207.setCzbz(infoData.getCzbz()); |
| | | whjlApi1207.setUpdateTime(infoData.getUpdateTime()); |
| | | whjlApi1207.setBizId(infoData.getDataId()); |
| | | list.add(whjlApi1207); |
| | | whjlApi1206 = JSONObject.parseObject(infoData.getData(), WhjlApi1206.class); |
| | | whjlApi1206.setKqdm(infoData.getKqdm()); |
| | | whjlApi1206.setCzbz(infoData.getCzbz()); |
| | | whjlApi1206.setUpdateTime(infoData.getUpdateTime()); |
| | | whjlApi1206.setBizId(infoData.getDataId()); |
| | | list.add(whjlApi1206); |
| | | } |
| | | |
| | | //推送,数据为集合形式 |
| | |
| | | } |
| | | param.setInteCategory(WhjlConstant.API_CATEGORY_12); |
| | | param.setInteId(WhjlConstant.API_CODE_1214); |
| | | List<WhjlApi1214> list = new ArrayList<>(); |
| | | WhjlApi1214 whjlApi1214; |
| | | List<WhjlApi1212> list = new ArrayList<>(); |
| | | WhjlApi1212 whjlApi1212; |
| | | for (ApiInfoData infoData : items) { |
| | | whjlApi1214 = JSONObject.parseObject(infoData.getData(), WhjlApi1214.class); |
| | | whjlApi1214.setKqdm(infoData.getKqdm()); |
| | | whjlApi1214.setCzbz(infoData.getCzbz()); |
| | | whjlApi1214.setUpdateTime(infoData.getUpdateTime()); |
| | | whjlApi1214.setBizId(infoData.getDataId()); |
| | | list.add(whjlApi1214); |
| | | whjlApi1212 = JSONObject.parseObject(infoData.getData(), WhjlApi1212.class); |
| | | whjlApi1212.setKqdm(infoData.getKqdm()); |
| | | whjlApi1212.setCzbz(infoData.getCzbz()); |
| | | whjlApi1212.setUpdateTime(infoData.getUpdateTime()); |
| | | whjlApi1212.setBizId(infoData.getDataId()); |
| | | list.add(whjlApi1212); |
| | | } |
| | | |
| | | //推送,数据为集合形式 |