|
@@ -134,7 +134,7 @@ public class HtByteTask {
|
|
switch (dataDto.getDataType()){
|
|
switch (dataDto.getDataType()){
|
|
case "001":
|
|
case "001":
|
|
//对象转换
|
|
//对象转换
|
|
- PeopleDto peopleDto = JSONObject.parseObject(body, PeopleDto.class);
|
|
|
|
|
|
+ HtPeopleDto peopleDto = JSONObject.parseObject(body, HtPeopleDto.class);
|
|
//根据其内的身份证,有则新增,无则修改???
|
|
//根据其内的身份证,有则新增,无则修改???
|
|
flag = FeignFactory.levelOneServerInterface.peopleDto(peopleDto);
|
|
flag = FeignFactory.levelOneServerInterface.peopleDto(peopleDto);
|
|
methodHtByteTask.updateHtByteInfo(flag, item, dataDto);
|
|
methodHtByteTask.updateHtByteInfo(flag, item, dataDto);
|
|
@@ -209,61 +209,14 @@ public class HtByteTask {
|
|
List<BordersListDto> bordersLists = JSON.parseArray(importDeclarePeople.getBordersList(), BordersListDto.class);
|
|
List<BordersListDto> bordersLists = JSON.parseArray(importDeclarePeople.getBordersList(), BordersListDto.class);
|
|
//边民购买商品列表
|
|
//边民购买商品列表
|
|
List<BorderBuyGoodsListDto> buyGoodsList = JSON.parseArray(importDeclarePeople.getBorderBuyGoodsList(), BorderBuyGoodsListDto.class);
|
|
List<BorderBuyGoodsListDto> buyGoodsList = JSON.parseArray(importDeclarePeople.getBorderBuyGoodsList(), BorderBuyGoodsListDto.class);
|
|
- //商铺卖货物列表
|
|
|
|
- List<HtSellGoodsList> htSellGoodsList = JSON.parseArray(importDeclarePeople.getSellGoodsList(), HtSellGoodsList.class);
|
|
|
|
- //航通关联主键
|
|
|
|
- String platSeqNo = importDeclarePeople.getPlatSeqNo();
|
|
|
|
- //保存购买边民
|
|
|
|
- List<BordersListDto> bordersListDtoList = new ArrayList<>();
|
|
|
|
- if(bordersLists.size() > 0){
|
|
|
|
- bordersLists.forEach(t -> {
|
|
|
|
-// t.setCreateTime(new Date());
|
|
|
|
-// t.setFinishStatus(FinishStatus.FINISH_STATUS_ZERO.getCode());
|
|
|
|
-// htBordersListMapper.insert(t);
|
|
|
|
- BordersListDto bordersListDto = new BordersListDto();
|
|
|
|
- BeanUtils.copyProperties(t,bordersListDto);
|
|
|
|
- bordersListDtoList.add(bordersListDto);
|
|
|
|
- });
|
|
|
|
- /**
|
|
|
|
- * 接收订单推送消息,边民进行交易确认,支付申请,刷脸认证,系统发起进行交易
|
|
|
|
- */
|
|
|
|
- List<HtBordersList> htBordersLists = htBordersListMapper.selectList(new LambdaQueryWrapper<HtBordersList>().eq(HtBordersList::getPlatSeqNo, platSeqNo));
|
|
|
|
- methodHtByteTask.sendMessageToPeople(htBordersLists);
|
|
|
|
- }
|
|
|
|
- //保存边民购买商品
|
|
|
|
- List<BorderBuyGoodsListDto> borderBuyGoodsListDtoList = new ArrayList<>();
|
|
|
|
- if(buyGoodsList.size() > 0){
|
|
|
|
- buyGoodsList.forEach(t -> {
|
|
|
|
-// t.setCreateTime(new Date());
|
|
|
|
-// t.setFinishStatus(FinishStatus.FINISH_STATUS_ZERO.getCode());
|
|
|
|
-// htBorderBuyGoodsListMapper.insert(t);
|
|
|
|
- BorderBuyGoodsListDto borderBuyGoodsListDto = new BorderBuyGoodsListDto();
|
|
|
|
- BeanUtils.copyProperties(t,borderBuyGoodsListDto);
|
|
|
|
- borderBuyGoodsListDtoList.add(borderBuyGoodsListDto);
|
|
|
|
- });
|
|
|
|
- // ???
|
|
|
|
- }
|
|
|
|
- //保存商铺卖货物
|
|
|
|
- List<SellGoodsListDto> sellGoodsListDtoList = new ArrayList<>();
|
|
|
|
- if(htSellGoodsList.size() > 0){
|
|
|
|
- htSellGoodsList.forEach(t -> {
|
|
|
|
-// t.setCreateTime(new Date());
|
|
|
|
-// t.setFinishStatus(FinishStatus.FINISH_STATUS_ZERO.getCode());
|
|
|
|
-// htSellGoodsListMapper.insert(t);
|
|
|
|
- SellGoodsListDto sellGoodsListDto = new SellGoodsListDto();
|
|
|
|
- BeanUtils.copyProperties(t,sellGoodsListDto);
|
|
|
|
- sellGoodsListDtoList.add(sellGoodsListDto);
|
|
|
|
- });
|
|
|
|
- // ???
|
|
|
|
- }
|
|
|
|
//保存航通监听记录
|
|
//保存航通监听记录
|
|
methodHtByteTask.updateHtByteInfo(true,item,dataDto);
|
|
methodHtByteTask.updateHtByteInfo(true,item,dataDto);
|
|
TradeSettlementDto tradeSettlementDto = new TradeSettlementDto();
|
|
TradeSettlementDto tradeSettlementDto = new TradeSettlementDto();
|
|
BeanUtils.copyProperties(importDeclarePeople,tradeSettlementDto);
|
|
BeanUtils.copyProperties(importDeclarePeople,tradeSettlementDto);
|
|
tradeSettlementDto.setId(primarykey);
|
|
tradeSettlementDto.setId(primarykey);
|
|
- tradeSettlementDto.setBordersListDtoList(bordersListDtoList);
|
|
|
|
- tradeSettlementDto.setBorderBuyGoodsListDtoList(borderBuyGoodsListDtoList);
|
|
|
|
- boolean b = levelOneServerInterface.tradeSettlementDto(tradeSettlementDto);
|
|
|
|
|
|
+ tradeSettlementDto.setBordersListDtoList(bordersLists);
|
|
|
|
+ tradeSettlementDto.setBorderBuyGoodsListDtoList(buyGoodsList);
|
|
|
|
+ boolean b = FeignFactory.levelOneServerInterface.tradeSettlementDto(tradeSettlementDto);
|
|
if(!b)throw new ServiceException("添加错误;");
|
|
if(!b)throw new ServiceException("添加错误;");
|
|
System.out.println("\n交易结算信息处理成功。 messageId = " + item.getMessageId() + "\n");
|
|
System.out.println("\n交易结算信息处理成功。 messageId = " + item.getMessageId() + "\n");
|
|
break;
|
|
break;
|