Commit 40d518a0 authored by shiyu's avatar shiyu

查询商品不强制登录2

parent 1b3f8854
...@@ -46,7 +46,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer { ...@@ -46,7 +46,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
"/wx/distributionOrder/refund", "/wx/distributionOrder/refund",
"/wx/supplierItem/findItemsOfCurrentDistributor", "/wx/selfPage/updateSwitch", "/wx/supplierItem/findHomePage", "/wx/supplierItem/findItemsOfCurrentDistributor", "/wx/selfPage/updateSwitch", "/wx/supplierItem/findHomePage",
"/wx/specialPerformance/sendMsg", "/wx/specialPerformance/sendMsgTest", "/wx/groupPurchase/systemAddRecord","/wx/officialAccount/**", "/wx/specialPerformance/sendMsg", "/wx/specialPerformance/sendMsgTest", "/wx/groupPurchase/systemAddRecord","/wx/officialAccount/**",
"/wx/supplierItem/**" "/wx/supplierItem/**","/wx/specialPerformance/**","/wx/groupPurchase/**"
//下列路径上线注释 //下列路径上线注释
/* ,"/wx/specialPerformance/**" /* ,"/wx/specialPerformance/**"
, "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**", , "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**",
......
package com.wwdz.ch.wx.web.distribution; package com.wwdz.ch.wx.web.distribution;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.wwdz.ch.core.consts.CommConsts;
import com.wwdz.ch.core.consts.ResultCode; import com.wwdz.ch.core.consts.ResultCode;
import com.wwdz.ch.core.type.Result; import com.wwdz.ch.core.type.Result;
import com.wwdz.ch.db.dto.request.distribution.GroupPurchaseConfigRequestDto; import com.wwdz.ch.db.dto.request.distribution.GroupPurchaseConfigRequestDto;
...@@ -30,6 +31,9 @@ public class GroupPurchaseController { ...@@ -30,6 +31,9 @@ public class GroupPurchaseController {
@PostMapping("/findList") @PostMapping("/findList")
public Result findList(@RequestBody GroupPurchaseConfigRequestDto dto) { public Result findList(@RequestBody GroupPurchaseConfigRequestDto dto) {
logger.info("查询团购信息,请求参数:{}", JSON.toJSONString(dto)); logger.info("查询团购信息,请求参数:{}", JSON.toJSONString(dto));
if (dto.getUserId() == null) {
dto.setUserId(CommConsts.SYSTEM_ACCOUNT_FOR_UNLOGIN);
}
return groupPurchaseService.findList(dto); return groupPurchaseService.findList(dto);
} }
...@@ -38,6 +42,9 @@ public class GroupPurchaseController { ...@@ -38,6 +42,9 @@ public class GroupPurchaseController {
@PostMapping("/findItemDetail") @PostMapping("/findItemDetail")
public Result findItemDetail(@RequestBody SupplierItemRequestDto dto) { public Result findItemDetail(@RequestBody SupplierItemRequestDto dto) {
logger.info("查询团购商品详情,请求参数:{}", JSON.toJSONString(dto)); logger.info("查询团购商品详情,请求参数:{}", JSON.toJSONString(dto));
if (dto.getUserId() == null) {
dto.setUserId(CommConsts.SYSTEM_ACCOUNT_FOR_UNLOGIN);
}
return groupPurchaseService.findItemDetail(dto); return groupPurchaseService.findItemDetail(dto);
} }
...@@ -49,6 +56,9 @@ public class GroupPurchaseController { ...@@ -49,6 +56,9 @@ public class GroupPurchaseController {
if (!StringUtils.isAllNotEmpty(dto.getDistributionOrderId())) { if (!StringUtils.isAllNotEmpty(dto.getDistributionOrderId())) {
return Result.failed(ResultCode.PARAM_ERROR); return Result.failed(ResultCode.PARAM_ERROR);
} }
if (dto.getUserId() == null) {
dto.setUserId(CommConsts.SYSTEM_ACCOUNT_FOR_UNLOGIN);
}
return groupPurchaseService.cancelOrder(dto); return groupPurchaseService.cancelOrder(dto);
} }
...@@ -57,6 +67,9 @@ public class GroupPurchaseController { ...@@ -57,6 +67,9 @@ public class GroupPurchaseController {
@PostMapping("/systemAddRecord") @PostMapping("/systemAddRecord")
public Result systemAddRecord(@RequestBody GroupPurchaseRecordRequestDto dto) { public Result systemAddRecord(@RequestBody GroupPurchaseRecordRequestDto dto) {
logger.info("系统新增团购记录,请求参数:{}", JSON.toJSONString(dto)); logger.info("系统新增团购记录,请求参数:{}", JSON.toJSONString(dto));
if (dto.getUserId() == null) {
dto.setUserId(CommConsts.SYSTEM_ACCOUNT_FOR_UNLOGIN);
}
return groupPurchaseService.systemAddRecord(dto); return groupPurchaseService.systemAddRecord(dto);
} }
} }
package com.wwdz.ch.wx.web.distribution; package com.wwdz.ch.wx.web.distribution;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.wwdz.ch.core.consts.CommConsts;
import com.wwdz.ch.core.consts.ResultCode; import com.wwdz.ch.core.consts.ResultCode;
import com.wwdz.ch.core.type.Result; import com.wwdz.ch.core.type.Result;
import com.wwdz.ch.db.dto.request.distribution.DistributorShareRecordRequestDto; import com.wwdz.ch.db.dto.request.distribution.DistributorShareRecordRequestDto;
...@@ -36,6 +37,9 @@ public class SpecialPerformanceController { ...@@ -36,6 +37,9 @@ public class SpecialPerformanceController {
if (dto.getType() == null) { if (dto.getType() == null) {
return Result.failed(ResultCode.PARAM_ERROR); return Result.failed(ResultCode.PARAM_ERROR);
} }
if (dto.getUserId() == null) {
dto.setUserId(CommConsts.SYSTEM_ACCOUNT_FOR_UNLOGIN);
}
return specialPerformanceService.findInfo(dto); return specialPerformanceService.findInfo(dto);
} }
...@@ -47,6 +51,9 @@ public class SpecialPerformanceController { ...@@ -47,6 +51,9 @@ public class SpecialPerformanceController {
if (dto.getType() == null) { if (dto.getType() == null) {
return Result.failed(ResultCode.PARAM_ERROR); return Result.failed(ResultCode.PARAM_ERROR);
} }
if (dto.getUserId() == null) {
dto.setUserId(CommConsts.SYSTEM_ACCOUNT_FOR_UNLOGIN);
}
return specialPerformanceService.findInfos(dto); return specialPerformanceService.findInfos(dto);
} }
...@@ -58,6 +65,9 @@ public class SpecialPerformanceController { ...@@ -58,6 +65,9 @@ public class SpecialPerformanceController {
if (dto.getSpecialPerformanceId() == null) { if (dto.getSpecialPerformanceId() == null) {
return Result.failed(ResultCode.PARAM_ERROR); return Result.failed(ResultCode.PARAM_ERROR);
} }
if (dto.getUserId() == null) {
dto.setUserId(CommConsts.SYSTEM_ACCOUNT_FOR_UNLOGIN);
}
return specialPerformanceService.findItemList(dto); return specialPerformanceService.findItemList(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