mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2025-01-31 19:53:11 +08:00
Merge branch 'company_server' of https://gitee.com/doc_wei01/skyeye into company_server
This commit is contained in:
commit
37cbe773e5
2 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,8 @@ public class ShopTradeCartController {
|
|||
* @param outputObject 出参以及提示信息的返回值对象
|
||||
*/
|
||||
@ApiOperation(id = "queryShopTradeCartList", value = "获取购物车信息", method = "POST", allUse = "2")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(id = "selected", name = "selected", value = "选中状态,0:未选中,1:选中")})
|
||||
@RequestMapping("/post/ShopTradeCartController/queryShopTradeCartList")
|
||||
public void queryShopTradeCartList(InputObject inputObject, OutputObject outputObject) {
|
||||
shopTradeCartService.queryShopTradeCartList(inputObject, outputObject);
|
||||
|
|
|
@ -69,10 +69,12 @@ public class ShopTradeCartServiceImpl extends SkyeyeBusinessServiceImpl<ShopTrad
|
|||
|
||||
@Override
|
||||
public void queryShopTradeCartList(InputObject inputObject, OutputObject outputObject) {
|
||||
String selected = inputObject.getParams().get("selected").toString();
|
||||
String userId = InputObject.getLogParamsStatic().get("id").toString();
|
||||
// 查询用户购物车列表
|
||||
QueryWrapper<ShopTradeCart> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq(MybatisPlusUtil.toColumns(ShopTradeCart::getCreateId), userId);
|
||||
wrapper.eq(MybatisPlusUtil.toColumns(ShopTradeCart::getSelected), selected);
|
||||
wrapper.orderByDesc(MybatisPlusUtil.toColumns(ShopTradeCart::getCreateTime));
|
||||
List<ShopTradeCart> beans = list(wrapper);
|
||||
iMaterialNormsService.setDataMation(beans, ShopTradeCart::getNormsId);
|
||||
|
|
Loading…
Reference in a new issue