Commit 89ce4711 authored by shiyu's avatar shiyu

查询标签不校验登录2

parent aec7576c
......@@ -43,7 +43,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
"/imCallback/**", "/wx/category/**",
"/wx/consignSale/**", "/wx/item/**",
"/wx/returnOrder/**", "/wx/distributionOrder/confirmSigned", "/wx/distributionOrder/delivery", "/wx/distributionOrder/cancel",
"/wx/distributionOrder/refund", "/wx/collectionBook/findList",
"/wx/distributionOrder/refund", "/wx/collectionBook/findList","wx/collectionItemsRelation/findInfos",
"/wx/supplierItem/findItemsOfCurrentDistributor", "/wx/selfPage/updateSwitch","/wx/selfPage/checkIsMine",
"/wx/specialPerformance/sendMsg", "/wx/specialPerformance/sendMsgTest", "/wx/groupPurchase/systemAddRecord","/wx/officialAccount/**",
"/wx/supplierItem/**","/wx/specialPerformance/**","/wx/groupPurchase/**","/wx/disposableSubscribeRecord/**", "/wx/auctionRecord/findList"
......
package com.wwdz.ch.wx.web.distribution;
import com.alibaba.fastjson.JSON;
import com.wwdz.ch.core.consts.CommConsts;
import com.wwdz.ch.core.consts.ResultCode;
import com.wwdz.ch.core.type.Result;
import com.wwdz.ch.db.dto.request.distribution.CollectionBookRequestDto;
......@@ -49,6 +50,9 @@ public class CollectionBookController {
@PostMapping("/findList")
public Result findList(@RequestBody CollectionBookRequestDto dto) {
logger.info("查询藏品标签,请求参数:{}", JSON.toJSONString(dto));
if (dto.getUserId() == null) {
dto.setUserId(CommConsts.SYSTEM_ACCOUNT_FOR_UNLOGIN);
}
return collectionBookService.findList(dto);
}
......
package com.wwdz.ch.wx.web.distribution;
import com.alibaba.fastjson.JSON;
import com.wwdz.ch.core.consts.CommConsts;
import com.wwdz.ch.core.consts.ResultCode;
import com.wwdz.ch.core.type.Result;
import com.wwdz.ch.db.dto.request.distribution.CollectionBookRequestDto;
......@@ -31,7 +32,7 @@ public class CollectionItemsRelationController {
public Result findInfos(@RequestBody CollectionItemsRelationRequestDto dto) {
logger.info("查询标签下的藏品,请求参数:{}", JSON.toJSONString(dto));
if (dto.getUserId() == null) {
return Result.failed(ResultCode.PARAM_ERROR);
dto.setUserId(CommConsts.SYSTEM_ACCOUNT_FOR_UNLOGIN);
}
return collectionItemsRelationService.findInfos(dto);
}
......@@ -42,7 +43,7 @@ public class CollectionItemsRelationController {
public Result findList(@RequestBody CollectionItemsRelationRequestDto dto) {
logger.info("查询标签下的藏品,请求参数:{}", JSON.toJSONString(dto));
if (dto.getUserId() == null) {
return Result.failed(ResultCode.PARAM_ERROR);
dto.setUserId(CommConsts.SYSTEM_ACCOUNT_FOR_UNLOGIN);
}
return collectionItemsRelationService.findList(dto);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment