|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.pj.api.client.async_server.AsyncServerInterface;
|
|
|
import com.pj.api.client.level_one_server.LevelOneServerInterface;
|
|
|
import com.pj.api.client.transport.TransportInterface;
|
|
|
+import com.pj.api.consts.FeignFactory;
|
|
|
import com.pj.api.dto.*;
|
|
|
import com.pj.common.core.exception.ServiceException;
|
|
|
import com.pj.dto.DataDto;
|
|
@@ -52,11 +53,7 @@ public class HtByteTask {
|
|
|
*/
|
|
|
@Autowired
|
|
|
private HtByteMapper htByteMapper;
|
|
|
- /**
|
|
|
- * 一级市场
|
|
|
- */
|
|
|
- @Autowired
|
|
|
- private LevelOneServerInterface levelOneServerInterface;
|
|
|
+
|
|
|
/**
|
|
|
* 交易结算信息
|
|
|
*/
|
|
@@ -132,7 +129,7 @@ public class HtByteTask {
|
|
|
//对象转换
|
|
|
PeopleDto peopleDto = JSONObject.parseObject(body, PeopleDto.class);
|
|
|
//根据其内的身份证,有则新增,无则修改???
|
|
|
- flag = levelOneServerInterface.peopleDto(peopleDto);
|
|
|
+ flag = FeignFactory.levelOneServerInterface.peopleDto(peopleDto);
|
|
|
methodHtByteTask.updateHtByteInfo(flag,item,dataDto);
|
|
|
if(!flag){
|
|
|
System.out.println("\n边民信息处理失败。 messageId = " + item.getMessageId() + "\n");
|
|
@@ -144,7 +141,7 @@ public class HtByteTask {
|
|
|
//商铺备案
|
|
|
ShopDto shopDto = JSONObject.parseObject(body, ShopDto.class);
|
|
|
//保存
|
|
|
- flag = levelOneServerInterface.shopDto(shopDto);
|
|
|
+ flag = FeignFactory.levelOneServerInterface.shopDto(shopDto);
|
|
|
methodHtByteTask.updateHtByteInfo(flag,item,dataDto);
|
|
|
if(!flag){
|
|
|
System.out.println("\n店铺信息处理失败。 messageId = " + item.getMessageId() + "\n");
|
|
@@ -156,7 +153,7 @@ public class HtByteTask {
|
|
|
//边民互助组备案
|
|
|
GroupDto groupDto = JSONObject.parseObject(body, GroupDto.class);
|
|
|
//保存
|
|
|
- flag = levelOneServerInterface.groupDto(groupDto);
|
|
|
+ flag = FeignFactory.levelOneServerInterface.groupDto(groupDto);
|
|
|
methodHtByteTask.updateHtByteInfo(flag,item,dataDto);
|
|
|
if(!flag){
|
|
|
System.out.println("\n互助组信息处理失败。 messageId = " + item.getMessageId() + "\n");
|
|
@@ -168,7 +165,7 @@ public class HtByteTask {
|
|
|
//边民合作社备案
|
|
|
CooperativeDto cooperativeDto = JSONObject.parseObject(body, CooperativeDto.class);
|
|
|
//保存
|
|
|
- flag = levelOneServerInterface.cooperativeDto(cooperativeDto);
|
|
|
+ flag = FeignFactory.levelOneServerInterface.cooperativeDto(cooperativeDto);
|
|
|
methodHtByteTask.updateHtByteInfo(flag,item,dataDto);
|
|
|
if(!flag){
|
|
|
System.out.println("\n边民合作社信息处理失败。 messageId = " + item.getMessageId() + "\n");
|
|
@@ -180,7 +177,7 @@ public class HtByteTask {
|
|
|
//商品基础信息
|
|
|
GoodsDto goodsDto = JSONObject.parseObject(body, GoodsDto.class);
|
|
|
//保存
|
|
|
- flag = levelOneServerInterface.goodsDto(goodsDto);
|
|
|
+ flag = FeignFactory.levelOneServerInterface.goodsDto(goodsDto);
|
|
|
methodHtByteTask.updateHtByteInfo(flag,item,dataDto);
|
|
|
if(!flag){
|
|
|
System.out.println("\n海关监管商品信息处理失败。 messageId = " + item.getMessageId() + "\n");
|