d6b45175 by xiaojie

【数据资产】

1、下架主平台数据
1 parent 4ee13b49
...@@ -470,10 +470,26 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService ...@@ -470,10 +470,26 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
470 470
471 @Override 471 @Override
472 public Boolean updateGroundingPick(DemandRQVO vo) { 472 public Boolean updateGroundingPick(DemandRQVO vo) {
473
474 MfDemand mfDemand = mfDemandService.getById(vo.getGuid());
475 if (ObjectUtils.isEmpty(mfDemand)) {
476 return Boolean.FALSE;
477 }
478
473 LambdaUpdateWrapper<MfDemand> updateWrapper = Wrappers.lambdaUpdate(); 479 LambdaUpdateWrapper<MfDemand> updateWrapper = Wrappers.lambdaUpdate();
474 updateWrapper.eq(MfDemand::getGuid, vo.getGuid()) 480 updateWrapper.eq(MfDemand::getGuid, vo.getGuid())
475 .set(MfDemand::getListingStatus, vo.getListingStatus()); 481 .set(MfDemand::getListingStatus, vo.getListingStatus());
476 return mfDemandService.update(updateWrapper); 482 mfDemandService.update(updateWrapper);
483
484 // 下架主平台数据
485 if (!zqConfig.getIsMain() && StringUtils.isNotEmpty(mfDemand.getCrossPlatformApproveState())) {
486 JSONObject jsonObject = new JSONObject();
487 jsonObject.put("zqSystemCode", SysFuncCode);
488 jsonObject.put("guid", vo.getGuid());
489 jsonObject.put("listingStatus", vo.getListingStatus());
490 invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getGroundingPickUrl());
491 }
492 return Boolean.TRUE;
477 } 493 }
478 494
479 /** 495 /**
......
...@@ -21,6 +21,8 @@ public class ZQConfig { ...@@ -21,6 +21,8 @@ public class ZQConfig {
21 21
22 private String zqDelUrl = ""; 22 private String zqDelUrl = "";
23 23
24 private String groundingPickUrl = "";
25
24 private Boolean isMain = false; 26 private Boolean isMain = false;
25 27
26 } 28 }
...\ No newline at end of file ...\ No newline at end of file
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!