Explorar el Código

优化错误提示,增加店铺端器免接口

Guos hace 1 semana
padre
commit
613f1aea9c

+ 34 - 0
fs-store/src/main/java/com/fs/hisStore/controller/store/FsExemptSecondMedicalDeviceController.java

@@ -0,0 +1,34 @@
+package com.fs.hisStore.controller.store;
+
+import com.fs.common.core.domain.R;
+import com.fs.hisStore.domain.ExemptSecondMedicalDevice;
+import com.fs.hisStore.service.IExemptSecondMedicalDeviceService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+/**
+ * @description:
+ * @author: Guos
+ * @time: 2025/11/29 下午1:16
+ */
+@RestController
+@RequestMapping("/store/store/exemptSecondMedicalDevice")
+public class FsExemptSecondMedicalDeviceController {
+
+    @Autowired
+    private IExemptSecondMedicalDeviceService fsExemptSecondMedicalDeviceService;
+
+    /**
+     * 查询列表
+     */
+    @GetMapping("/getList")
+    public R list() {
+        List<ExemptSecondMedicalDevice> exemptSecondMedicalDevices = fsExemptSecondMedicalDeviceService.selectAll();
+        return R.ok().put("data", exemptSecondMedicalDevices);
+    }
+
+}

+ 2 - 1
fs-store/src/main/java/com/fs/hisStore/controller/store/FsStoreProductScrmController.java

@@ -83,7 +83,8 @@ public class FsStoreProductScrmController extends BaseController
     public R checkStoreDrugLicense(@RequestBody FsStoreProductAddEditParam fsStoreProduct) {
         StoreLoginUserScrm loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
         fsStoreProduct.setStoreId(loginUser.getFsStore().getStoreId());
-        return R.ok().put("data", fsStoreProductService.checkStoreDrugLicense(fsStoreProduct.getStoreId(), fsStoreProduct.getCateId()));
+        return R.ok().put("data", fsStoreProductService.checkStoreDrugLicense(fsStoreProduct.getStoreId(), fsStoreProduct.getCateId(),
+                org.apache.commons.lang3.StringUtils.isEmpty(fsStoreProduct.getMedicalDeviceCode())?null:fsStoreProduct.getMedicalDeviceCode()));
     }