|  |  |  | 
|---|
|  |  |  | * @param start  起始时间 | 
|---|
|  |  |  | * @param end    截止时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public void syncData(String deptId, Date start, Date end) { | 
|---|
|  |  |  | public void syncData(String kqdm, String deptId, Date start, Date end) { | 
|---|
|  |  |  | log.info("-------------1305接口数据开始同步------------------"); | 
|---|
|  |  |  | //同步数据,只记录失败的信息 | 
|---|
|  |  |  | ApiLog apiLog = new ApiLog(); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | BeanUtils.copyProperties(fzAreationData, api1305); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | api1305.setTfzydh(fzAreationData.getId()); | 
|---|
|  |  |  | api1305.setTfzydh(api1105.getHwdm() + fzAreationData.getId()); | 
|---|
|  |  |  | api1305.setTfrq(fzAreationData.getStartTime()); | 
|---|
|  |  |  | api1305.setCfdm(fzAreationData.getDeptId()); | 
|---|
|  |  |  | api1305.setCfdm(api1105.getHwdm().substring(0,25)); | 
|---|
|  |  |  | api1305.setTfmd(fzAreationData.getObjective()); | 
|---|
|  |  |  | api1305.setTflx(fzAreationData.getType()); | 
|---|
|  |  |  | api1305.setFdxs(fzAreationData.getWindNetType()); | 
|---|
|  |  |  | 
|---|
|  |  |  | api1305.setTfzyfzr(fzAreationData.getChargeUser()); | 
|---|
|  |  |  | api1305.setTfzyry(fzAreationData.getOperators()); | 
|---|
|  |  |  | api1305.setTfsc(fzAreationData.getLongTime()); | 
|---|
|  |  |  | api1305.setZhgxsj(fzAreationData.getUpdateTime()); | 
|---|
|  |  |  | api1305.setZhgxsj(new Date()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | api1305.setKqdm(kqdm); | 
|---|
|  |  |  | api1305.setHwdm(api1105.getHwdm()); | 
|---|
|  |  |  | api1305.setBizId(fzAreationData.getId()); | 
|---|
|  |  |  | api1305List = api1305Rep.getDataById(api1305.getTfzydh()); | 
|---|
|  |  |  | if(null == api1305List || api1305List.isEmpty()){ | 
|---|
|  |  |  | if (null == api1305List || api1305List.isEmpty()) { | 
|---|
|  |  |  | api1305.setCzbz(Constant.CZBZ_I); | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | api1305.setCzbz(api1305List.get(0).getCzbz()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | api1305Rep.save(api1305); | 
|---|