Authored by caoyan

Merge branch 'dev_物权转移' into test6.8.6

... ... @@ -544,6 +544,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{
if(StringUtils.isBlank(ownerName)){
ownerName = blurUid(toUid);
}
//组装信息 同步至区块链写代理
Map<String, Object> infoMap = new HashMap<>();
infoMap.put("tagid", tagId);
... ... @@ -555,6 +556,10 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{
infoMap.put("transaction_time", DateUtil.getCurrentTimeSecond());
infoMap.put("owner", ownerName);
infoMap.put("auth_time", DateUtil.getCurrentTimeSecond());
ProductChain productChain = productChainMapper.selectByTagId(tagId);
if(null != productChain) {
infoMap.put("last_transaction_id", productChain.getTransactionId());
}
logger.info("req url is {}, params is {}", syncBlockChain_url, infoMap);
String result = serviceCaller.post("", syncBlockChain_url, infoMap, String.class, null).get(5);
logger.info(" result is {}", result);
... ...