【数据资产】
1、下架主平台数据
Showing
2 changed files
with
19 additions
and
1 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment