|
|
@@ -82,11 +82,26 @@ public class RemoteConsumeServiceImpl implements RemoteConsumeService {
|
|
|
ConsumptionBo bo = RemoteConsumeBoConvert.INSTANCE.fromRemote(remoteBo);
|
|
|
bo.setUseType(SystemUseTypeEnum.CONSUME.code());
|
|
|
R<ErrorInfo> result = consumeBusiness.postOrder(bo, "", "");
|
|
|
- if(R.isSuccess(result)){
|
|
|
- if (ObjectUtil.equals(defaultConfig.getLocationFlag(), DefaultConstants.LOCAL_FLAG)) {
|
|
|
- ThreadUtil.execAsync(() -> baseBusiness.sendCloudConsume(bo));
|
|
|
- }
|
|
|
- }
|
|
|
+ //if(R.isSuccess(result)){
|
|
|
+ // if (ObjectUtil.equals(defaultConfig.getLocationFlag(), DefaultConstants.LOCAL_FLAG)) {
|
|
|
+ // ThreadUtil.execAsync(() -> baseBusiness.sendCloudConsume(bo));
|
|
|
+ // }
|
|
|
+ //}
|
|
|
+ RemoteConsumeBo updatedRemote = RemoteConsumeBoConvert.INSTANCE.toRemote(bo);
|
|
|
+
|
|
|
+ return new RemoteResultDto(result, updatedRemote);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public RemoteResultDto dealHikFullRecord(RemoteConsumeBo remoteBo) {
|
|
|
+ ConsumptionBo bo = RemoteConsumeBoConvert.INSTANCE.fromRemote(remoteBo);
|
|
|
+ bo.setUseType(SystemUseTypeEnum.CONSUME.code());
|
|
|
+ R<ErrorInfo> result = consumeBusiness.fullOrder(bo, "", "");
|
|
|
+ //if(R.isSuccess(result)){
|
|
|
+ // if (ObjectUtil.equals(defaultConfig.getLocationFlag(), DefaultConstants.LOCAL_FLAG)) {
|
|
|
+ // ThreadUtil.execAsync(() -> baseBusiness.sendCloudConsume(bo));
|
|
|
+ // }
|
|
|
+ //}
|
|
|
RemoteConsumeBo updatedRemote = RemoteConsumeBoConvert.INSTANCE.toRemote(bo);
|
|
|
|
|
|
return new RemoteResultDto(result, updatedRemote);
|