更新人

This commit is contained in:
苏竹红
2024-05-23 14:22:28 +08:00
parent 8b59143467
commit 88273f6725
2 changed files with 3 additions and 2 deletions

View File

@@ -99,8 +99,9 @@ public class CoolStoreStartFlowServiceImpl implements CoolStoreStartFlowService
String url = xfsgUrl + Constants.FIRST_ORDER + String url = xfsgUrl + Constants.FIRST_ORDER +
"?timestamp=" + requestMap.get("timestamp") + "&signature=" + requestMap.get("signature") + "?timestamp=" + requestMap.get("timestamp") + "&signature=" + requestMap.get("signature") +
"&storeCode=" + shopNum; "&storeCode=" + shopNum;
Long start = System.currentTimeMillis();
JSONObject jsonObject = httpRestTemplateService.getForObject(url, JSONObject.class, new HashMap<>()); JSONObject jsonObject = httpRestTemplateService.getForObject(url, JSONObject.class, new HashMap<>());
log.info("get url:{},jsonObject:{}", url, jsonObject); log.info("get url:{},jsonObject:{},耗时:{}", url, jsonObject,System.currentTimeMillis() - start);
Boolean flag = (Boolean) jsonObject.get("data"); Boolean flag = (Boolean) jsonObject.get("data");
return flag; return flag;
} catch (Exception e) { } catch (Exception e) {

View File

@@ -272,7 +272,7 @@ public class LineServiceImpl implements LineService {
if (lineInfo==null){ if (lineInfo==null){
throw new ServiceException(ErrorCodeEnum.LINE_ID_IS_NOT_EXIST); throw new ServiceException(ErrorCodeEnum.LINE_ID_IS_NOT_EXIST);
} }
lineInfo.setUpdateUserId(user.getUserId());
lineInfo.setUserPortrait(CollectionUtils.isNotEmpty(addTagsRequest.getTags())? lineInfo.setUserPortrait(CollectionUtils.isNotEmpty(addTagsRequest.getTags())?
addTagsRequest.getTags().stream().map(Object::toString).collect(Collectors.joining(CommonConstants.COMMA, CommonConstants.COMMA, CommonConstants.COMMA)):""); addTagsRequest.getTags().stream().map(Object::toString).collect(Collectors.joining(CommonConstants.COMMA, CommonConstants.COMMA, CommonConstants.COMMA)):"");
lineInfoDAO.updateLineInfo(lineInfo); lineInfoDAO.updateLineInfo(lineInfo);