| | |
| | | import com.ruoyi.account.api.model.AppUser; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.common.core.web.domain.AjaxResult; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.other.api.domain.Shop; |
| | | import com.ruoyi.other.api.domain.Technician; |
| | | import com.ruoyi.other.enums.ShopStatus; |
| | | import com.ruoyi.other.service.ShopService; |
| | | import com.ruoyi.other.service.TechnicianService; |
| | |
| | | // todo 待完善 pu |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据id获取门店信息 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/getShopById") |
| | | public R<Shop> getShopById(@RequestParam("id") Integer id){ |
| | | Shop shop = shopService.getById(id); |
| | | return R.ok(shop); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据店铺管理员电话获取门店数据 |
| | | * @param phone |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/getShopByPhone") |
| | | public R<Shop> getShopByPhone(@RequestParam("phone") String phone){ |
| | | Shop one = shopService.getOne(new LambdaQueryWrapper<Shop>().eq(Shop::getPhone, phone).eq(Shop::getDelFlag, 0).eq(Shop::getStatus, 1)); |
| | | return R.ok(one); |
| | | } |
| | | } |
| | | |