|
|
@@ -0,0 +1,59 @@
|
|
|
+package com.fs.app.controller;
|
|
|
+
|
|
|
+import com.fs.common.core.domain.R;
|
|
|
+import com.fs.common.utils.ParseUtils;
|
|
|
+import com.fs.his.domain.FsStore;
|
|
|
+import com.fs.his.service.IFsStoreService;
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 店铺相关接口
|
|
|
+ *
|
|
|
+ * @author fs
|
|
|
+ * @date 2023-06-15
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/app/store")
|
|
|
+public class StoreController extends AppBaseController
|
|
|
+{
|
|
|
+ @Autowired
|
|
|
+ private IFsStoreService fsStoreService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询店铺列表
|
|
|
+ */
|
|
|
+ @GetMapping("/list")
|
|
|
+ @ApiOperation(value = "查询店铺列表", notes = "查询店铺列表")
|
|
|
+ public R list(FsStore param)
|
|
|
+ {
|
|
|
+ startPage();
|
|
|
+ List<FsStore> list = fsStoreService.selectFsStoreList(param);
|
|
|
+ if (list != null && !list.isEmpty()){
|
|
|
+ for (FsStore store : list) {
|
|
|
+ store.setPhone(ParseUtils.parsePhone(store.getPhone()));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ PageInfo<FsStore> listPageInfo=new PageInfo<>(list);
|
|
|
+ return R.ok().put("data",listPageInfo);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取店铺管理详细信息
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/{storeId}")
|
|
|
+ public R getInfo(@PathVariable("storeId") Long storeId)
|
|
|
+ {
|
|
|
+ FsStore fsStore = fsStoreService.selectFsStoreByStoreId(storeId);
|
|
|
+ if(fsStore!=null){
|
|
|
+ fsStore.setPhone(ParseUtils.parsePhone(fsStore.getPhone()));
|
|
|
+ }
|
|
|
+ return R.ok().put("data",fsStore);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|