| | |
| | | package com.ruoyi.shop.controller.console; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.constant.CacheConstants; |
| | |
| | | import com.ruoyi.system.api.model.QwUserDetailDto; |
| | | import com.ruoyi.system.api.service.RemoteUserService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | R updateShopByOneClinkSyncing(@RequestBody OneClinkSyncing oneClinkSyncing){ |
| | | return shopService.updateShopByOneClinkSyncing(oneClinkSyncing); |
| | | } |
| | | |
| | | /** |
| | | * 根据shopName模糊查询门店集合 |
| | | */ |
| | | @PostMapping("/getShopListByShopName") |
| | | List<Shop> getShopListByShopName(@RequestBody String content){ |
| | | return shopService.getBaseMapper().selectList(new LambdaQueryWrapper<Shop>().like(Shop::getShopName, content)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取有跟进任务的用户id |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | @PostMapping("/getMemberIngTotal") |
| | | public R<List<Integer>> getMemberIngTotal(@RequestParam("shopId") Long shopId){ |
| | | List<Integer> list = memberTaskService.getMemberIngTotal(shopId); |
| | | return R.ok(list); |
| | | } |
| | | } |