d6b45175 by xiaojie

【数据资产】

1、下架主平台数据
1 parent 4ee13b49
......@@ -470,10 +470,26 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
@Override
public Boolean updateGroundingPick(DemandRQVO vo) {
MfDemand mfDemand = mfDemandService.getById(vo.getGuid());
if (ObjectUtils.isEmpty(mfDemand)) {
return Boolean.FALSE;
}
LambdaUpdateWrapper<MfDemand> updateWrapper = Wrappers.lambdaUpdate();
updateWrapper.eq(MfDemand::getGuid, vo.getGuid())
.set(MfDemand::getListingStatus, vo.getListingStatus());
return mfDemandService.update(updateWrapper);
mfDemandService.update(updateWrapper);
// 下架主平台数据
if (!zqConfig.getIsMain() && StringUtils.isNotEmpty(mfDemand.getCrossPlatformApproveState())) {
JSONObject jsonObject = new JSONObject();
jsonObject.put("zqSystemCode", SysFuncCode);
jsonObject.put("guid", vo.getGuid());
jsonObject.put("listingStatus", vo.getListingStatus());
invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getGroundingPickUrl());
}
return Boolean.TRUE;
}
/**
......
......@@ -21,6 +21,8 @@ public class ZQConfig {
private String zqDelUrl = "";
private String groundingPickUrl = "";
private Boolean isMain = false;
}
\ 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!