Browse Source

业务相关接口处理

王苗苗 2 weeks ago
parent
commit
ce27336747
55 changed files with 4408 additions and 0 deletions
  1. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TAssayItemController.java
  2. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TAssayItemExtraController.java
  3. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TAssayWorkflowController.java
  4. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TAssayWorkflowItemController.java
  5. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TDeviceController.java
  6. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TMedicineController.java
  7. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TOrganizationController.java
  8. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TPositionController.java
  9. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TQualityConfController.java
  10. BIN
      ruoyi-generator/.DS_Store
  11. 44 0
      ruoyi-system/src/main/java/com/ruoyi/business/domain/TAssayItem.java
  12. 54 0
      ruoyi-system/src/main/java/com/ruoyi/business/domain/TAssayItemExtra.java
  13. 56 0
      ruoyi-system/src/main/java/com/ruoyi/business/domain/TAssayWorkflow.java
  14. 48 0
      ruoyi-system/src/main/java/com/ruoyi/business/domain/TAssayWorkflowItem.java
  15. 68 0
      ruoyi-system/src/main/java/com/ruoyi/business/domain/TDevice.java
  16. 44 0
      ruoyi-system/src/main/java/com/ruoyi/business/domain/TMedicine.java
  17. 96 0
      ruoyi-system/src/main/java/com/ruoyi/business/domain/TOrganization.java
  18. 52 0
      ruoyi-system/src/main/java/com/ruoyi/business/domain/TPosition.java
  19. 73 0
      ruoyi-system/src/main/java/com/ruoyi/business/domain/TQualityConf.java
  20. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/mapper/TAssayItemExtraMapper.java
  21. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/mapper/TAssayItemMapper.java
  22. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/mapper/TAssayWorkflowItemMapper.java
  23. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/mapper/TAssayWorkflowMapper.java
  24. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/mapper/TDeviceMapper.java
  25. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/mapper/TMedicineMapper.java
  26. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/mapper/TOrganizationMapper.java
  27. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/mapper/TPositionMapper.java
  28. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/mapper/TQualityConfMapper.java
  29. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/ITAssayItemExtraService.java
  30. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/ITAssayItemService.java
  31. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/ITAssayWorkflowItemService.java
  32. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/ITAssayWorkflowService.java
  33. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/ITDeviceService.java
  34. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/ITMedicineService.java
  35. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/ITOrganizationService.java
  36. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/ITPositionService.java
  37. 61 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/ITQualityConfService.java
  38. 96 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TAssayItemExtraServiceImpl.java
  39. 96 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TAssayItemServiceImpl.java
  40. 96 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TAssayWorkflowItemServiceImpl.java
  41. 96 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TAssayWorkflowServiceImpl.java
  42. 96 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TDeviceServiceImpl.java
  43. 96 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TMedicineServiceImpl.java
  44. 96 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TOrganizationServiceImpl.java
  45. 96 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TPositionServiceImpl.java
  46. 96 0
      ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TQualityConfServiceImpl.java
  47. 100 0
      ruoyi-system/src/main/resources/mapper/business/TAssayItemExtraMapper.xml
  48. 90 0
      ruoyi-system/src/main/resources/mapper/business/TAssayItemMapper.xml
  49. 95 0
      ruoyi-system/src/main/resources/mapper/business/TAssayWorkflowItemMapper.xml
  50. 105 0
      ruoyi-system/src/main/resources/mapper/business/TAssayWorkflowMapper.xml
  51. 120 0
      ruoyi-system/src/main/resources/mapper/business/TDeviceMapper.xml
  52. 90 0
      ruoyi-system/src/main/resources/mapper/business/TMedicineMapper.xml
  53. 155 0
      ruoyi-system/src/main/resources/mapper/business/TOrganizationMapper.xml
  54. 100 0
      ruoyi-system/src/main/resources/mapper/business/TPositionMapper.xml
  55. 120 0
      ruoyi-system/src/main/resources/mapper/business/TQualityConfMapper.xml

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TAssayItemController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.business;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.business.domain.TAssayItem;
+import com.ruoyi.business.service.ITAssayItemService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 化验项目Controller
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@RestController
+@RequestMapping("/business/item")
+public class TAssayItemController extends BaseController
+{
+    @Autowired
+    private ITAssayItemService tAssayItemService;
+
+    /**
+     * 查询化验项目列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:item:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TAssayItem tAssayItem)
+    {
+        startPage();
+        List<TAssayItem> list = tAssayItemService.selectTAssayItemList(tAssayItem);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出化验项目列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:item:export')")
+    @Log(title = "化验项目", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TAssayItem tAssayItem)
+    {
+        List<TAssayItem> list = tAssayItemService.selectTAssayItemList(tAssayItem);
+        ExcelUtil<TAssayItem> util = new ExcelUtil<TAssayItem>(TAssayItem.class);
+        util.exportExcel(response, list, "化验项目数据");
+    }
+
+    /**
+     * 获取化验项目详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:item:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tAssayItemService.selectTAssayItemById(id));
+    }
+
+    /**
+     * 新增化验项目
+     */
+    @PreAuthorize("@ss.hasPermi('business:item:add')")
+    @Log(title = "化验项目", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TAssayItem tAssayItem)
+    {
+        return toAjax(tAssayItemService.insertTAssayItem(tAssayItem));
+    }
+
+    /**
+     * 修改化验项目
+     */
+    @PreAuthorize("@ss.hasPermi('business:item:edit')")
+    @Log(title = "化验项目", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TAssayItem tAssayItem)
+    {
+        return toAjax(tAssayItemService.updateTAssayItem(tAssayItem));
+    }
+
+    /**
+     * 删除化验项目
+     */
+    @PreAuthorize("@ss.hasPermi('business:item:remove')")
+    @Log(title = "化验项目", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tAssayItemService.deleteTAssayItemByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TAssayItemExtraController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.business;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.business.domain.TAssayItemExtra;
+import com.ruoyi.business.service.ITAssayItemExtraService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 化验项目-废液药剂配置Controller
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@RestController
+@RequestMapping("/business/itemExtra")
+public class TAssayItemExtraController extends BaseController
+{
+    @Autowired
+    private ITAssayItemExtraService tAssayItemExtraService;
+
+    /**
+     * 查询化验项目-废液药剂配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:itemExtra:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TAssayItemExtra tAssayItemExtra)
+    {
+        startPage();
+        List<TAssayItemExtra> list = tAssayItemExtraService.selectTAssayItemExtraList(tAssayItemExtra);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出化验项目-废液药剂配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:itemExtra:export')")
+    @Log(title = "化验项目-废液药剂配置", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TAssayItemExtra tAssayItemExtra)
+    {
+        List<TAssayItemExtra> list = tAssayItemExtraService.selectTAssayItemExtraList(tAssayItemExtra);
+        ExcelUtil<TAssayItemExtra> util = new ExcelUtil<TAssayItemExtra>(TAssayItemExtra.class);
+        util.exportExcel(response, list, "化验项目-废液药剂配置数据");
+    }
+
+    /**
+     * 获取化验项目-废液药剂配置详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:itemExtra:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tAssayItemExtraService.selectTAssayItemExtraById(id));
+    }
+
+    /**
+     * 新增化验项目-废液药剂配置
+     */
+    @PreAuthorize("@ss.hasPermi('business:itemExtra:add')")
+    @Log(title = "化验项目-废液药剂配置", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TAssayItemExtra tAssayItemExtra)
+    {
+        return toAjax(tAssayItemExtraService.insertTAssayItemExtra(tAssayItemExtra));
+    }
+
+    /**
+     * 修改化验项目-废液药剂配置
+     */
+    @PreAuthorize("@ss.hasPermi('business:itemExtra:edit')")
+    @Log(title = "化验项目-废液药剂配置", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TAssayItemExtra tAssayItemExtra)
+    {
+        return toAjax(tAssayItemExtraService.updateTAssayItemExtra(tAssayItemExtra));
+    }
+
+    /**
+     * 删除化验项目-废液药剂配置
+     */
+    @PreAuthorize("@ss.hasPermi('business:itemExtra:remove')")
+    @Log(title = "化验项目-废液药剂配置", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tAssayItemExtraService.deleteTAssayItemExtraByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TAssayWorkflowController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.business;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.business.domain.TAssayWorkflow;
+import com.ruoyi.business.service.ITAssayWorkflowService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 化验流程Controller
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@RestController
+@RequestMapping("/business/workflow")
+public class TAssayWorkflowController extends BaseController
+{
+    @Autowired
+    private ITAssayWorkflowService tAssayWorkflowService;
+
+    /**
+     * 查询化验流程列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:workflow:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TAssayWorkflow tAssayWorkflow)
+    {
+        startPage();
+        List<TAssayWorkflow> list = tAssayWorkflowService.selectTAssayWorkflowList(tAssayWorkflow);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出化验流程列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:workflow:export')")
+    @Log(title = "化验流程", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TAssayWorkflow tAssayWorkflow)
+    {
+        List<TAssayWorkflow> list = tAssayWorkflowService.selectTAssayWorkflowList(tAssayWorkflow);
+        ExcelUtil<TAssayWorkflow> util = new ExcelUtil<TAssayWorkflow>(TAssayWorkflow.class);
+        util.exportExcel(response, list, "化验流程数据");
+    }
+
+    /**
+     * 获取化验流程详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:workflow:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tAssayWorkflowService.selectTAssayWorkflowById(id));
+    }
+
+    /**
+     * 新增化验流程
+     */
+    @PreAuthorize("@ss.hasPermi('business:workflow:add')")
+    @Log(title = "化验流程", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TAssayWorkflow tAssayWorkflow)
+    {
+        return toAjax(tAssayWorkflowService.insertTAssayWorkflow(tAssayWorkflow));
+    }
+
+    /**
+     * 修改化验流程
+     */
+    @PreAuthorize("@ss.hasPermi('business:workflow:edit')")
+    @Log(title = "化验流程", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TAssayWorkflow tAssayWorkflow)
+    {
+        return toAjax(tAssayWorkflowService.updateTAssayWorkflow(tAssayWorkflow));
+    }
+
+    /**
+     * 删除化验流程
+     */
+    @PreAuthorize("@ss.hasPermi('business:workflow:remove')")
+    @Log(title = "化验流程", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tAssayWorkflowService.deleteTAssayWorkflowByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TAssayWorkflowItemController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.business;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.business.domain.TAssayWorkflowItem;
+import com.ruoyi.business.service.ITAssayWorkflowItemService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 化验流程-化验内容明细Controller
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@RestController
+@RequestMapping("/business/workflowItem")
+public class TAssayWorkflowItemController extends BaseController
+{
+    @Autowired
+    private ITAssayWorkflowItemService tAssayWorkflowItemService;
+
+    /**
+     * 查询化验流程-化验内容明细列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:workflowItem:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TAssayWorkflowItem tAssayWorkflowItem)
+    {
+        startPage();
+        List<TAssayWorkflowItem> list = tAssayWorkflowItemService.selectTAssayWorkflowItemList(tAssayWorkflowItem);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出化验流程-化验内容明细列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:workflowItem:export')")
+    @Log(title = "化验流程-化验内容明细", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TAssayWorkflowItem tAssayWorkflowItem)
+    {
+        List<TAssayWorkflowItem> list = tAssayWorkflowItemService.selectTAssayWorkflowItemList(tAssayWorkflowItem);
+        ExcelUtil<TAssayWorkflowItem> util = new ExcelUtil<TAssayWorkflowItem>(TAssayWorkflowItem.class);
+        util.exportExcel(response, list, "化验流程-化验内容明细数据");
+    }
+
+    /**
+     * 获取化验流程-化验内容明细详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:workflowItem:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tAssayWorkflowItemService.selectTAssayWorkflowItemById(id));
+    }
+
+    /**
+     * 新增化验流程-化验内容明细
+     */
+    @PreAuthorize("@ss.hasPermi('business:workflowItem:add')")
+    @Log(title = "化验流程-化验内容明细", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TAssayWorkflowItem tAssayWorkflowItem)
+    {
+        return toAjax(tAssayWorkflowItemService.insertTAssayWorkflowItem(tAssayWorkflowItem));
+    }
+
+    /**
+     * 修改化验流程-化验内容明细
+     */
+    @PreAuthorize("@ss.hasPermi('business:workflowItem:edit')")
+    @Log(title = "化验流程-化验内容明细", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TAssayWorkflowItem tAssayWorkflowItem)
+    {
+        return toAjax(tAssayWorkflowItemService.updateTAssayWorkflowItem(tAssayWorkflowItem));
+    }
+
+    /**
+     * 删除化验流程-化验内容明细
+     */
+    @PreAuthorize("@ss.hasPermi('business:workflowItem:remove')")
+    @Log(title = "化验流程-化验内容明细", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tAssayWorkflowItemService.deleteTAssayWorkflowItemByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TDeviceController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.business;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.business.domain.TDevice;
+import com.ruoyi.business.service.ITDeviceService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 机构设备Controller
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@RestController
+@RequestMapping("/business/device")
+public class TDeviceController extends BaseController
+{
+    @Autowired
+    private ITDeviceService tDeviceService;
+
+    /**
+     * 查询机构设备列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:device:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TDevice tDevice)
+    {
+        startPage();
+        List<TDevice> list = tDeviceService.selectTDeviceList(tDevice);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出机构设备列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:device:export')")
+    @Log(title = "机构设备", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TDevice tDevice)
+    {
+        List<TDevice> list = tDeviceService.selectTDeviceList(tDevice);
+        ExcelUtil<TDevice> util = new ExcelUtil<TDevice>(TDevice.class);
+        util.exportExcel(response, list, "机构设备数据");
+    }
+
+    /**
+     * 获取机构设备详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:device:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tDeviceService.selectTDeviceById(id));
+    }
+
+    /**
+     * 新增机构设备
+     */
+    @PreAuthorize("@ss.hasPermi('business:device:add')")
+    @Log(title = "机构设备", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TDevice tDevice)
+    {
+        return toAjax(tDeviceService.insertTDevice(tDevice));
+    }
+
+    /**
+     * 修改机构设备
+     */
+    @PreAuthorize("@ss.hasPermi('business:device:edit')")
+    @Log(title = "机构设备", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TDevice tDevice)
+    {
+        return toAjax(tDeviceService.updateTDevice(tDevice));
+    }
+
+    /**
+     * 删除机构设备
+     */
+    @PreAuthorize("@ss.hasPermi('business:device:remove')")
+    @Log(title = "机构设备", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tDeviceService.deleteTDeviceByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TMedicineController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.business;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.business.domain.TMedicine;
+import com.ruoyi.business.service.ITMedicineService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 药剂管理Controller
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@RestController
+@RequestMapping("/business/medicine")
+public class TMedicineController extends BaseController
+{
+    @Autowired
+    private ITMedicineService tMedicineService;
+
+    /**
+     * 查询药剂管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:medicine:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TMedicine tMedicine)
+    {
+        startPage();
+        List<TMedicine> list = tMedicineService.selectTMedicineList(tMedicine);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出药剂管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:medicine:export')")
+    @Log(title = "药剂管理", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TMedicine tMedicine)
+    {
+        List<TMedicine> list = tMedicineService.selectTMedicineList(tMedicine);
+        ExcelUtil<TMedicine> util = new ExcelUtil<TMedicine>(TMedicine.class);
+        util.exportExcel(response, list, "药剂管理数据");
+    }
+
+    /**
+     * 获取药剂管理详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:medicine:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tMedicineService.selectTMedicineById(id));
+    }
+
+    /**
+     * 新增药剂管理
+     */
+    @PreAuthorize("@ss.hasPermi('business:medicine:add')")
+    @Log(title = "药剂管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TMedicine tMedicine)
+    {
+        return toAjax(tMedicineService.insertTMedicine(tMedicine));
+    }
+
+    /**
+     * 修改药剂管理
+     */
+    @PreAuthorize("@ss.hasPermi('business:medicine:edit')")
+    @Log(title = "药剂管理", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TMedicine tMedicine)
+    {
+        return toAjax(tMedicineService.updateTMedicine(tMedicine));
+    }
+
+    /**
+     * 删除药剂管理
+     */
+    @PreAuthorize("@ss.hasPermi('business:medicine:remove')")
+    @Log(title = "药剂管理", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tMedicineService.deleteTMedicineByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TOrganizationController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.business;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.business.domain.TOrganization;
+import com.ruoyi.business.service.ITOrganizationService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 机构管理Controller
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@RestController
+@RequestMapping("/business/organization")
+public class TOrganizationController extends BaseController
+{
+    @Autowired
+    private ITOrganizationService tOrganizationService;
+
+    /**
+     * 查询机构管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:organization:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TOrganization tOrganization)
+    {
+        startPage();
+        List<TOrganization> list = tOrganizationService.selectTOrganizationList(tOrganization);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出机构管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:organization:export')")
+    @Log(title = "机构管理", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TOrganization tOrganization)
+    {
+        List<TOrganization> list = tOrganizationService.selectTOrganizationList(tOrganization);
+        ExcelUtil<TOrganization> util = new ExcelUtil<TOrganization>(TOrganization.class);
+        util.exportExcel(response, list, "机构管理数据");
+    }
+
+    /**
+     * 获取机构管理详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:organization:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tOrganizationService.selectTOrganizationById(id));
+    }
+
+    /**
+     * 新增机构管理
+     */
+    @PreAuthorize("@ss.hasPermi('business:organization:add')")
+    @Log(title = "机构管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TOrganization tOrganization)
+    {
+        return toAjax(tOrganizationService.insertTOrganization(tOrganization));
+    }
+
+    /**
+     * 修改机构管理
+     */
+    @PreAuthorize("@ss.hasPermi('business:organization:edit')")
+    @Log(title = "机构管理", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TOrganization tOrganization)
+    {
+        return toAjax(tOrganizationService.updateTOrganization(tOrganization));
+    }
+
+    /**
+     * 删除机构管理
+     */
+    @PreAuthorize("@ss.hasPermi('business:organization:remove')")
+    @Log(title = "机构管理", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tOrganizationService.deleteTOrganizationByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TPositionController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.business;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.business.domain.TPosition;
+import com.ruoyi.business.service.ITPositionService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 取样点位Controller
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@RestController
+@RequestMapping("/business/position")
+public class TPositionController extends BaseController
+{
+    @Autowired
+    private ITPositionService tPositionService;
+
+    /**
+     * 查询取样点位列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:position:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TPosition tPosition)
+    {
+        startPage();
+        List<TPosition> list = tPositionService.selectTPositionList(tPosition);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出取样点位列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:position:export')")
+    @Log(title = "取样点位", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TPosition tPosition)
+    {
+        List<TPosition> list = tPositionService.selectTPositionList(tPosition);
+        ExcelUtil<TPosition> util = new ExcelUtil<TPosition>(TPosition.class);
+        util.exportExcel(response, list, "取样点位数据");
+    }
+
+    /**
+     * 获取取样点位详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:position:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tPositionService.selectTPositionById(id));
+    }
+
+    /**
+     * 新增取样点位
+     */
+    @PreAuthorize("@ss.hasPermi('business:position:add')")
+    @Log(title = "取样点位", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TPosition tPosition)
+    {
+        return toAjax(tPositionService.insertTPosition(tPosition));
+    }
+
+    /**
+     * 修改取样点位
+     */
+    @PreAuthorize("@ss.hasPermi('business:position:edit')")
+    @Log(title = "取样点位", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TPosition tPosition)
+    {
+        return toAjax(tPositionService.updateTPosition(tPosition));
+    }
+
+    /**
+     * 删除取样点位
+     */
+    @PreAuthorize("@ss.hasPermi('business:position:remove')")
+    @Log(title = "取样点位", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tPositionService.deleteTPositionByIds(ids));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/TQualityConfController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.business;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.business.domain.TQualityConf;
+import com.ruoyi.business.service.ITQualityConfService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 质控样配置Controller
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@RestController
+@RequestMapping("/business/qualityConf")
+public class TQualityConfController extends BaseController
+{
+    @Autowired
+    private ITQualityConfService tQualityConfService;
+
+    /**
+     * 查询质控样配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:qualityConf:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TQualityConf tQualityConf)
+    {
+        startPage();
+        List<TQualityConf> list = tQualityConfService.selectTQualityConfList(tQualityConf);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出质控样配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:qualityConf:export')")
+    @Log(title = "质控样配置", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, TQualityConf tQualityConf)
+    {
+        List<TQualityConf> list = tQualityConfService.selectTQualityConfList(tQualityConf);
+        ExcelUtil<TQualityConf> util = new ExcelUtil<TQualityConf>(TQualityConf.class);
+        util.exportExcel(response, list, "质控样配置数据");
+    }
+
+    /**
+     * 获取质控样配置详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:qualityConf:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(tQualityConfService.selectTQualityConfById(id));
+    }
+
+    /**
+     * 新增质控样配置
+     */
+    @PreAuthorize("@ss.hasPermi('business:qualityConf:add')")
+    @Log(title = "质控样配置", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TQualityConf tQualityConf)
+    {
+        return toAjax(tQualityConfService.insertTQualityConf(tQualityConf));
+    }
+
+    /**
+     * 修改质控样配置
+     */
+    @PreAuthorize("@ss.hasPermi('business:qualityConf:edit')")
+    @Log(title = "质控样配置", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TQualityConf tQualityConf)
+    {
+        return toAjax(tQualityConfService.updateTQualityConf(tQualityConf));
+    }
+
+    /**
+     * 删除质控样配置
+     */
+    @PreAuthorize("@ss.hasPermi('business:qualityConf:remove')")
+    @Log(title = "质控样配置", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tQualityConfService.deleteTQualityConfByIds(ids));
+    }
+}

BIN
ruoyi-generator/.DS_Store


+ 44 - 0
ruoyi-system/src/main/java/com/ruoyi/business/domain/TAssayItem.java

@@ -0,0 +1,44 @@
+package com.ruoyi.business.domain;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 化验项目对象 t_assay_item
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Builder
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class TAssayItem extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 化验项目编号 */
+    @Excel(name = "化验项目编号")
+    private String code;
+
+    /** 化验项目名称 */
+    @Excel(name = "化验项目名称")
+    private String name;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private Integer delFlag;
+
+    /** 乐观锁 */
+    @Excel(name = "乐观锁")
+    private Long revision;
+
+}

+ 54 - 0
ruoyi-system/src/main/java/com/ruoyi/business/domain/TAssayItemExtra.java

@@ -0,0 +1,54 @@
+package com.ruoyi.business.domain;
+
+import java.math.BigDecimal;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 化验项目-废液药剂配置对象 t_assay_item_extra
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Builder
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class TAssayItemExtra extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 化验项目ID */
+    @Excel(name = "化验项目ID")
+    private Long itemId;
+
+    /** 类型(0废液 1药剂) */
+    @Excel(name = "类型", readConverterExp = "0=废液,1=药剂")
+    private Integer type;
+
+    /** 药剂ID 或者是废液ID(0酸性 1碱性 2中性) */
+    @Excel(name = "药剂ID 或者是废液ID", readConverterExp = "0=酸性,1=碱性,2=中性")
+    private Long relativeId;
+
+    /** 产生量/消耗量 */
+    @Excel(name = "产生量/消耗量")
+    private BigDecimal amount;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private Integer delFlag;
+
+    /** 乐观锁 */
+    @Excel(name = "乐观锁")
+    private Long revision;
+
+}

+ 56 - 0
ruoyi-system/src/main/java/com/ruoyi/business/domain/TAssayWorkflow.java

@@ -0,0 +1,56 @@
+package com.ruoyi.business.domain;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 化验流程对象 t_assay_workflow
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Builder
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class TAssayWorkflow extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 化验流程名称 */
+    @Excel(name = "化验流程名称")
+    private String name;
+
+    /** 化验流程编号 */
+    @Excel(name = "化验流程编号")
+    private String code;
+
+    /** 所属水厂ID */
+    @Excel(name = "所属水厂ID")
+    private Long organizationId;
+
+    /** 所属设备ID */
+    @Excel(name = "所属设备ID")
+    private Long deviceId;
+
+    /** 化验总步数 */
+    @Excel(name = "化验总步数")
+    private Long totalSteps;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private Integer delFlag;
+
+    /** 乐观锁 */
+    @Excel(name = "乐观锁")
+    private Long revision;
+
+}

+ 48 - 0
ruoyi-system/src/main/java/com/ruoyi/business/domain/TAssayWorkflowItem.java

@@ -0,0 +1,48 @@
+package com.ruoyi.business.domain;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 化验流程-化验内容明细对象 t_assay_workflow_item
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Builder
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class TAssayWorkflowItem extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 化验流程ID */
+    @Excel(name = "化验流程ID")
+    private Long workflowId;
+
+    /** 取样点位ID */
+    @Excel(name = "取样点位ID")
+    private Long positionId;
+
+    /** 化验项目ID */
+    @Excel(name = "化验项目ID")
+    private Long itemId;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private Integer delFlag;
+
+    /** 乐观锁 */
+    @Excel(name = "乐观锁")
+    private Long revision;
+
+}

+ 68 - 0
ruoyi-system/src/main/java/com/ruoyi/business/domain/TDevice.java

@@ -0,0 +1,68 @@
+package com.ruoyi.business.domain;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 机构设备对象 t_device
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Builder
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class TDevice extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 设备名称 */
+    @Excel(name = "设备名称")
+    private String name;
+
+    /** 设备SN */
+    @Excel(name = "设备SN")
+    private String sn;
+
+    /** 设备型号 */
+    @Excel(name = "设备型号")
+    private String model;
+
+    /** 所属水厂ID */
+    @Excel(name = "所属水厂ID")
+    private Long organizationId;
+
+    /** 设备用途(1:化验室,2:连续检测) */
+    @Excel(name = "设备用途(1:化验室,2:连续检测)")
+    private Integer usage;
+
+    /** 使用状态(0:使用;1:停用) */
+    @Excel(name = "使用状态", readConverterExp = "0=:使用;1:停用")
+    private Integer status;
+
+    /** 维护人员 */
+    @Excel(name = "维护人员")
+    private String maintainer;
+
+    /** 维护人员电话 */
+    @Excel(name = "维护人员电话")
+    private String maintainerPhone;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private Integer delFlag;
+
+    /** 乐观锁 */
+    @Excel(name = "乐观锁")
+    private Long revision;
+
+}

+ 44 - 0
ruoyi-system/src/main/java/com/ruoyi/business/domain/TMedicine.java

@@ -0,0 +1,44 @@
+package com.ruoyi.business.domain;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 药剂管理对象 t_medicine
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Builder
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class TMedicine extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 药剂编号 */
+    @Excel(name = "药剂编号")
+    private String code;
+
+    /** 药剂名称 */
+    @Excel(name = "药剂名称")
+    private String name;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private Integer delFlag;
+
+    /** 乐观锁 */
+    @Excel(name = "乐观锁")
+    private Long revision;
+
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/business/domain/TOrganization.java

@@ -0,0 +1,96 @@
+package com.ruoyi.business.domain;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 机构管理对象 t_organization
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Builder
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class TOrganization extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 机构名称 */
+    @Excel(name = "机构名称")
+    private String name;
+
+    /** 机构编号 */
+    @Excel(name = "机构编号")
+    private String code;
+
+    /** 机构类型(0集团  1水厂) */
+    @Excel(name = "机构类型(0集团  1水厂)")
+    private Integer type;
+
+    /** 省的code */
+    @Excel(name = "省的code")
+    private String provinceCode;
+
+    /** 市的code */
+    @Excel(name = "市的code")
+    private String cityCode;
+
+    /** 区县的code */
+    @Excel(name = "区县的code")
+    private String countryCode;
+
+    /** 联系人 */
+    @Excel(name = "联系人")
+    private String concat;
+
+    /** 联系电话 */
+    @Excel(name = "联系电话")
+    private String phone;
+
+    /** 状态(0正常 1停用) */
+    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
+    private Integer status;
+
+    /** 父ID(如果没有,默认是0) */
+    @Excel(name = "父ID", readConverterExp = "如=果没有,默认是0")
+    private Long parentId;
+
+    /** 最上层ID(如果没有,默认是0) */
+    @Excel(name = "最上层ID", readConverterExp = "如=果没有,默认是0")
+    private Long topId;
+
+    /** 排序 */
+    @Excel(name = "排序")
+    private Long sort;
+
+    /** 详细地址 */
+    @Excel(name = "详细地址")
+    private String address;
+
+    /** 经度 */
+    @Excel(name = "经度")
+    private String longitude;
+
+    /** 纬度 */
+    @Excel(name = "纬度")
+    private String latitude;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private Integer delFlag;
+
+    /** 乐观锁 */
+    @Excel(name = "乐观锁")
+    private Long revision;
+
+}

+ 52 - 0
ruoyi-system/src/main/java/com/ruoyi/business/domain/TPosition.java

@@ -0,0 +1,52 @@
+package com.ruoyi.business.domain;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 取样点位对象 t_position
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Builder
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class TPosition extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 所属水厂ID */
+    @Excel(name = "所属水厂ID")
+    private Long organizationId;
+
+    /** 所属设备ID */
+    @Excel(name = "所属设备ID")
+    private Long deviceId;
+
+    /** 取样点位编号 */
+    @Excel(name = "取样点位编号")
+    private String code;
+
+    /** 取样点位名称 */
+    @Excel(name = "取样点位名称")
+    private String name;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private Integer delFlag;
+
+    /** 乐观锁 */
+    @Excel(name = "乐观锁")
+    private Long revision;
+
+}

+ 73 - 0
ruoyi-system/src/main/java/com/ruoyi/business/domain/TQualityConf.java

@@ -0,0 +1,73 @@
+package com.ruoyi.business.domain;
+
+import java.math.BigDecimal;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 质控样配置对象 t_quality_conf
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Builder
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class TQualityConf extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 主键 */
+    private Long id;
+
+    /** 所属水厂ID */
+    @Excel(name = "所属水厂ID")
+    private Long organizationId;
+
+    /** 化验项目ID */
+    @Excel(name = "化验项目ID")
+    private Long itemId;
+
+    /** 质控值 */
+    @Excel(name = "质控值")
+    private BigDecimal resultValue;
+
+    /** 浮动率 */
+    @Excel(name = "浮动率")
+    private BigDecimal floatRate;
+
+    /** 上限值 */
+    @Excel(name = "上限值")
+    private BigDecimal highValue;
+
+    /** 下限值 */
+    @Excel(name = "下限值")
+    private BigDecimal lowValue;
+
+    /** 有效期-开始时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "有效期-开始时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date beginTime;
+
+    /** 有效期-截止时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "有效期-截止时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date endTime;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private Integer delFlag;
+
+    /** 乐观锁 */
+    @Excel(name = "乐观锁")
+    private Long revision;
+
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/mapper/TAssayItemExtraMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.mapper;
+
+import java.util.List;
+import com.ruoyi.business.domain.TAssayItemExtra;
+
+/**
+ * 化验项目-废液药剂配置Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface TAssayItemExtraMapper 
+{
+    /**
+     * 查询化验项目-废液药剂配置
+     * 
+     * @param id 化验项目-废液药剂配置主键
+     * @return 化验项目-废液药剂配置
+     */
+    public TAssayItemExtra selectTAssayItemExtraById(Long id);
+
+    /**
+     * 查询化验项目-废液药剂配置列表
+     * 
+     * @param tAssayItemExtra 化验项目-废液药剂配置
+     * @return 化验项目-废液药剂配置集合
+     */
+    public List<TAssayItemExtra> selectTAssayItemExtraList(TAssayItemExtra tAssayItemExtra);
+
+    /**
+     * 新增化验项目-废液药剂配置
+     * 
+     * @param tAssayItemExtra 化验项目-废液药剂配置
+     * @return 结果
+     */
+    public int insertTAssayItemExtra(TAssayItemExtra tAssayItemExtra);
+
+    /**
+     * 修改化验项目-废液药剂配置
+     * 
+     * @param tAssayItemExtra 化验项目-废液药剂配置
+     * @return 结果
+     */
+    public int updateTAssayItemExtra(TAssayItemExtra tAssayItemExtra);
+
+    /**
+     * 删除化验项目-废液药剂配置
+     * 
+     * @param id 化验项目-废液药剂配置主键
+     * @return 结果
+     */
+    public int deleteTAssayItemExtraById(Long id);
+
+    /**
+     * 批量删除化验项目-废液药剂配置
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTAssayItemExtraByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/mapper/TAssayItemMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.mapper;
+
+import java.util.List;
+import com.ruoyi.business.domain.TAssayItem;
+
+/**
+ * 化验项目Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface TAssayItemMapper 
+{
+    /**
+     * 查询化验项目
+     * 
+     * @param id 化验项目主键
+     * @return 化验项目
+     */
+    public TAssayItem selectTAssayItemById(Long id);
+
+    /**
+     * 查询化验项目列表
+     * 
+     * @param tAssayItem 化验项目
+     * @return 化验项目集合
+     */
+    public List<TAssayItem> selectTAssayItemList(TAssayItem tAssayItem);
+
+    /**
+     * 新增化验项目
+     * 
+     * @param tAssayItem 化验项目
+     * @return 结果
+     */
+    public int insertTAssayItem(TAssayItem tAssayItem);
+
+    /**
+     * 修改化验项目
+     * 
+     * @param tAssayItem 化验项目
+     * @return 结果
+     */
+    public int updateTAssayItem(TAssayItem tAssayItem);
+
+    /**
+     * 删除化验项目
+     * 
+     * @param id 化验项目主键
+     * @return 结果
+     */
+    public int deleteTAssayItemById(Long id);
+
+    /**
+     * 批量删除化验项目
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTAssayItemByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/mapper/TAssayWorkflowItemMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.mapper;
+
+import java.util.List;
+import com.ruoyi.business.domain.TAssayWorkflowItem;
+
+/**
+ * 化验流程-化验内容明细Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface TAssayWorkflowItemMapper 
+{
+    /**
+     * 查询化验流程-化验内容明细
+     * 
+     * @param id 化验流程-化验内容明细主键
+     * @return 化验流程-化验内容明细
+     */
+    public TAssayWorkflowItem selectTAssayWorkflowItemById(Long id);
+
+    /**
+     * 查询化验流程-化验内容明细列表
+     * 
+     * @param tAssayWorkflowItem 化验流程-化验内容明细
+     * @return 化验流程-化验内容明细集合
+     */
+    public List<TAssayWorkflowItem> selectTAssayWorkflowItemList(TAssayWorkflowItem tAssayWorkflowItem);
+
+    /**
+     * 新增化验流程-化验内容明细
+     * 
+     * @param tAssayWorkflowItem 化验流程-化验内容明细
+     * @return 结果
+     */
+    public int insertTAssayWorkflowItem(TAssayWorkflowItem tAssayWorkflowItem);
+
+    /**
+     * 修改化验流程-化验内容明细
+     * 
+     * @param tAssayWorkflowItem 化验流程-化验内容明细
+     * @return 结果
+     */
+    public int updateTAssayWorkflowItem(TAssayWorkflowItem tAssayWorkflowItem);
+
+    /**
+     * 删除化验流程-化验内容明细
+     * 
+     * @param id 化验流程-化验内容明细主键
+     * @return 结果
+     */
+    public int deleteTAssayWorkflowItemById(Long id);
+
+    /**
+     * 批量删除化验流程-化验内容明细
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTAssayWorkflowItemByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/mapper/TAssayWorkflowMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.mapper;
+
+import java.util.List;
+import com.ruoyi.business.domain.TAssayWorkflow;
+
+/**
+ * 化验流程Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface TAssayWorkflowMapper 
+{
+    /**
+     * 查询化验流程
+     * 
+     * @param id 化验流程主键
+     * @return 化验流程
+     */
+    public TAssayWorkflow selectTAssayWorkflowById(Long id);
+
+    /**
+     * 查询化验流程列表
+     * 
+     * @param tAssayWorkflow 化验流程
+     * @return 化验流程集合
+     */
+    public List<TAssayWorkflow> selectTAssayWorkflowList(TAssayWorkflow tAssayWorkflow);
+
+    /**
+     * 新增化验流程
+     * 
+     * @param tAssayWorkflow 化验流程
+     * @return 结果
+     */
+    public int insertTAssayWorkflow(TAssayWorkflow tAssayWorkflow);
+
+    /**
+     * 修改化验流程
+     * 
+     * @param tAssayWorkflow 化验流程
+     * @return 结果
+     */
+    public int updateTAssayWorkflow(TAssayWorkflow tAssayWorkflow);
+
+    /**
+     * 删除化验流程
+     * 
+     * @param id 化验流程主键
+     * @return 结果
+     */
+    public int deleteTAssayWorkflowById(Long id);
+
+    /**
+     * 批量删除化验流程
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTAssayWorkflowByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/mapper/TDeviceMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.mapper;
+
+import java.util.List;
+import com.ruoyi.business.domain.TDevice;
+
+/**
+ * 机构设备Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface TDeviceMapper 
+{
+    /**
+     * 查询机构设备
+     * 
+     * @param id 机构设备主键
+     * @return 机构设备
+     */
+    public TDevice selectTDeviceById(Long id);
+
+    /**
+     * 查询机构设备列表
+     * 
+     * @param tDevice 机构设备
+     * @return 机构设备集合
+     */
+    public List<TDevice> selectTDeviceList(TDevice tDevice);
+
+    /**
+     * 新增机构设备
+     * 
+     * @param tDevice 机构设备
+     * @return 结果
+     */
+    public int insertTDevice(TDevice tDevice);
+
+    /**
+     * 修改机构设备
+     * 
+     * @param tDevice 机构设备
+     * @return 结果
+     */
+    public int updateTDevice(TDevice tDevice);
+
+    /**
+     * 删除机构设备
+     * 
+     * @param id 机构设备主键
+     * @return 结果
+     */
+    public int deleteTDeviceById(Long id);
+
+    /**
+     * 批量删除机构设备
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTDeviceByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/mapper/TMedicineMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.mapper;
+
+import java.util.List;
+import com.ruoyi.business.domain.TMedicine;
+
+/**
+ * 药剂管理Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface TMedicineMapper 
+{
+    /**
+     * 查询药剂管理
+     * 
+     * @param id 药剂管理主键
+     * @return 药剂管理
+     */
+    public TMedicine selectTMedicineById(Long id);
+
+    /**
+     * 查询药剂管理列表
+     * 
+     * @param tMedicine 药剂管理
+     * @return 药剂管理集合
+     */
+    public List<TMedicine> selectTMedicineList(TMedicine tMedicine);
+
+    /**
+     * 新增药剂管理
+     * 
+     * @param tMedicine 药剂管理
+     * @return 结果
+     */
+    public int insertTMedicine(TMedicine tMedicine);
+
+    /**
+     * 修改药剂管理
+     * 
+     * @param tMedicine 药剂管理
+     * @return 结果
+     */
+    public int updateTMedicine(TMedicine tMedicine);
+
+    /**
+     * 删除药剂管理
+     * 
+     * @param id 药剂管理主键
+     * @return 结果
+     */
+    public int deleteTMedicineById(Long id);
+
+    /**
+     * 批量删除药剂管理
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTMedicineByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/mapper/TOrganizationMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.mapper;
+
+import java.util.List;
+import com.ruoyi.business.domain.TOrganization;
+
+/**
+ * 机构管理Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface TOrganizationMapper 
+{
+    /**
+     * 查询机构管理
+     * 
+     * @param id 机构管理主键
+     * @return 机构管理
+     */
+    public TOrganization selectTOrganizationById(Long id);
+
+    /**
+     * 查询机构管理列表
+     * 
+     * @param tOrganization 机构管理
+     * @return 机构管理集合
+     */
+    public List<TOrganization> selectTOrganizationList(TOrganization tOrganization);
+
+    /**
+     * 新增机构管理
+     * 
+     * @param tOrganization 机构管理
+     * @return 结果
+     */
+    public int insertTOrganization(TOrganization tOrganization);
+
+    /**
+     * 修改机构管理
+     * 
+     * @param tOrganization 机构管理
+     * @return 结果
+     */
+    public int updateTOrganization(TOrganization tOrganization);
+
+    /**
+     * 删除机构管理
+     * 
+     * @param id 机构管理主键
+     * @return 结果
+     */
+    public int deleteTOrganizationById(Long id);
+
+    /**
+     * 批量删除机构管理
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTOrganizationByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/mapper/TPositionMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.mapper;
+
+import java.util.List;
+import com.ruoyi.business.domain.TPosition;
+
+/**
+ * 取样点位Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface TPositionMapper 
+{
+    /**
+     * 查询取样点位
+     * 
+     * @param id 取样点位主键
+     * @return 取样点位
+     */
+    public TPosition selectTPositionById(Long id);
+
+    /**
+     * 查询取样点位列表
+     * 
+     * @param tPosition 取样点位
+     * @return 取样点位集合
+     */
+    public List<TPosition> selectTPositionList(TPosition tPosition);
+
+    /**
+     * 新增取样点位
+     * 
+     * @param tPosition 取样点位
+     * @return 结果
+     */
+    public int insertTPosition(TPosition tPosition);
+
+    /**
+     * 修改取样点位
+     * 
+     * @param tPosition 取样点位
+     * @return 结果
+     */
+    public int updateTPosition(TPosition tPosition);
+
+    /**
+     * 删除取样点位
+     * 
+     * @param id 取样点位主键
+     * @return 结果
+     */
+    public int deleteTPositionById(Long id);
+
+    /**
+     * 批量删除取样点位
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTPositionByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/mapper/TQualityConfMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.mapper;
+
+import java.util.List;
+import com.ruoyi.business.domain.TQualityConf;
+
+/**
+ * 质控样配置Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface TQualityConfMapper 
+{
+    /**
+     * 查询质控样配置
+     * 
+     * @param id 质控样配置主键
+     * @return 质控样配置
+     */
+    public TQualityConf selectTQualityConfById(Long id);
+
+    /**
+     * 查询质控样配置列表
+     * 
+     * @param tQualityConf 质控样配置
+     * @return 质控样配置集合
+     */
+    public List<TQualityConf> selectTQualityConfList(TQualityConf tQualityConf);
+
+    /**
+     * 新增质控样配置
+     * 
+     * @param tQualityConf 质控样配置
+     * @return 结果
+     */
+    public int insertTQualityConf(TQualityConf tQualityConf);
+
+    /**
+     * 修改质控样配置
+     * 
+     * @param tQualityConf 质控样配置
+     * @return 结果
+     */
+    public int updateTQualityConf(TQualityConf tQualityConf);
+
+    /**
+     * 删除质控样配置
+     * 
+     * @param id 质控样配置主键
+     * @return 结果
+     */
+    public int deleteTQualityConfById(Long id);
+
+    /**
+     * 批量删除质控样配置
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteTQualityConfByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/ITAssayItemExtraService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.service;
+
+import java.util.List;
+import com.ruoyi.business.domain.TAssayItemExtra;
+
+/**
+ * 化验项目-废液药剂配置Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface ITAssayItemExtraService 
+{
+    /**
+     * 查询化验项目-废液药剂配置
+     * 
+     * @param id 化验项目-废液药剂配置主键
+     * @return 化验项目-废液药剂配置
+     */
+    public TAssayItemExtra selectTAssayItemExtraById(Long id);
+
+    /**
+     * 查询化验项目-废液药剂配置列表
+     * 
+     * @param tAssayItemExtra 化验项目-废液药剂配置
+     * @return 化验项目-废液药剂配置集合
+     */
+    public List<TAssayItemExtra> selectTAssayItemExtraList(TAssayItemExtra tAssayItemExtra);
+
+    /**
+     * 新增化验项目-废液药剂配置
+     * 
+     * @param tAssayItemExtra 化验项目-废液药剂配置
+     * @return 结果
+     */
+    public int insertTAssayItemExtra(TAssayItemExtra tAssayItemExtra);
+
+    /**
+     * 修改化验项目-废液药剂配置
+     * 
+     * @param tAssayItemExtra 化验项目-废液药剂配置
+     * @return 结果
+     */
+    public int updateTAssayItemExtra(TAssayItemExtra tAssayItemExtra);
+
+    /**
+     * 批量删除化验项目-废液药剂配置
+     * 
+     * @param ids 需要删除的化验项目-废液药剂配置主键集合
+     * @return 结果
+     */
+    public int deleteTAssayItemExtraByIds(Long[] ids);
+
+    /**
+     * 删除化验项目-废液药剂配置信息
+     * 
+     * @param id 化验项目-废液药剂配置主键
+     * @return 结果
+     */
+    public int deleteTAssayItemExtraById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/ITAssayItemService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.service;
+
+import java.util.List;
+import com.ruoyi.business.domain.TAssayItem;
+
+/**
+ * 化验项目Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface ITAssayItemService 
+{
+    /**
+     * 查询化验项目
+     * 
+     * @param id 化验项目主键
+     * @return 化验项目
+     */
+    public TAssayItem selectTAssayItemById(Long id);
+
+    /**
+     * 查询化验项目列表
+     * 
+     * @param tAssayItem 化验项目
+     * @return 化验项目集合
+     */
+    public List<TAssayItem> selectTAssayItemList(TAssayItem tAssayItem);
+
+    /**
+     * 新增化验项目
+     * 
+     * @param tAssayItem 化验项目
+     * @return 结果
+     */
+    public int insertTAssayItem(TAssayItem tAssayItem);
+
+    /**
+     * 修改化验项目
+     * 
+     * @param tAssayItem 化验项目
+     * @return 结果
+     */
+    public int updateTAssayItem(TAssayItem tAssayItem);
+
+    /**
+     * 批量删除化验项目
+     * 
+     * @param ids 需要删除的化验项目主键集合
+     * @return 结果
+     */
+    public int deleteTAssayItemByIds(Long[] ids);
+
+    /**
+     * 删除化验项目信息
+     * 
+     * @param id 化验项目主键
+     * @return 结果
+     */
+    public int deleteTAssayItemById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/ITAssayWorkflowItemService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.service;
+
+import java.util.List;
+import com.ruoyi.business.domain.TAssayWorkflowItem;
+
+/**
+ * 化验流程-化验内容明细Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface ITAssayWorkflowItemService 
+{
+    /**
+     * 查询化验流程-化验内容明细
+     * 
+     * @param id 化验流程-化验内容明细主键
+     * @return 化验流程-化验内容明细
+     */
+    public TAssayWorkflowItem selectTAssayWorkflowItemById(Long id);
+
+    /**
+     * 查询化验流程-化验内容明细列表
+     * 
+     * @param tAssayWorkflowItem 化验流程-化验内容明细
+     * @return 化验流程-化验内容明细集合
+     */
+    public List<TAssayWorkflowItem> selectTAssayWorkflowItemList(TAssayWorkflowItem tAssayWorkflowItem);
+
+    /**
+     * 新增化验流程-化验内容明细
+     * 
+     * @param tAssayWorkflowItem 化验流程-化验内容明细
+     * @return 结果
+     */
+    public int insertTAssayWorkflowItem(TAssayWorkflowItem tAssayWorkflowItem);
+
+    /**
+     * 修改化验流程-化验内容明细
+     * 
+     * @param tAssayWorkflowItem 化验流程-化验内容明细
+     * @return 结果
+     */
+    public int updateTAssayWorkflowItem(TAssayWorkflowItem tAssayWorkflowItem);
+
+    /**
+     * 批量删除化验流程-化验内容明细
+     * 
+     * @param ids 需要删除的化验流程-化验内容明细主键集合
+     * @return 结果
+     */
+    public int deleteTAssayWorkflowItemByIds(Long[] ids);
+
+    /**
+     * 删除化验流程-化验内容明细信息
+     * 
+     * @param id 化验流程-化验内容明细主键
+     * @return 结果
+     */
+    public int deleteTAssayWorkflowItemById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/ITAssayWorkflowService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.service;
+
+import java.util.List;
+import com.ruoyi.business.domain.TAssayWorkflow;
+
+/**
+ * 化验流程Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface ITAssayWorkflowService 
+{
+    /**
+     * 查询化验流程
+     * 
+     * @param id 化验流程主键
+     * @return 化验流程
+     */
+    public TAssayWorkflow selectTAssayWorkflowById(Long id);
+
+    /**
+     * 查询化验流程列表
+     * 
+     * @param tAssayWorkflow 化验流程
+     * @return 化验流程集合
+     */
+    public List<TAssayWorkflow> selectTAssayWorkflowList(TAssayWorkflow tAssayWorkflow);
+
+    /**
+     * 新增化验流程
+     * 
+     * @param tAssayWorkflow 化验流程
+     * @return 结果
+     */
+    public int insertTAssayWorkflow(TAssayWorkflow tAssayWorkflow);
+
+    /**
+     * 修改化验流程
+     * 
+     * @param tAssayWorkflow 化验流程
+     * @return 结果
+     */
+    public int updateTAssayWorkflow(TAssayWorkflow tAssayWorkflow);
+
+    /**
+     * 批量删除化验流程
+     * 
+     * @param ids 需要删除的化验流程主键集合
+     * @return 结果
+     */
+    public int deleteTAssayWorkflowByIds(Long[] ids);
+
+    /**
+     * 删除化验流程信息
+     * 
+     * @param id 化验流程主键
+     * @return 结果
+     */
+    public int deleteTAssayWorkflowById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/ITDeviceService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.service;
+
+import java.util.List;
+import com.ruoyi.business.domain.TDevice;
+
+/**
+ * 机构设备Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface ITDeviceService 
+{
+    /**
+     * 查询机构设备
+     * 
+     * @param id 机构设备主键
+     * @return 机构设备
+     */
+    public TDevice selectTDeviceById(Long id);
+
+    /**
+     * 查询机构设备列表
+     * 
+     * @param tDevice 机构设备
+     * @return 机构设备集合
+     */
+    public List<TDevice> selectTDeviceList(TDevice tDevice);
+
+    /**
+     * 新增机构设备
+     * 
+     * @param tDevice 机构设备
+     * @return 结果
+     */
+    public int insertTDevice(TDevice tDevice);
+
+    /**
+     * 修改机构设备
+     * 
+     * @param tDevice 机构设备
+     * @return 结果
+     */
+    public int updateTDevice(TDevice tDevice);
+
+    /**
+     * 批量删除机构设备
+     * 
+     * @param ids 需要删除的机构设备主键集合
+     * @return 结果
+     */
+    public int deleteTDeviceByIds(Long[] ids);
+
+    /**
+     * 删除机构设备信息
+     * 
+     * @param id 机构设备主键
+     * @return 结果
+     */
+    public int deleteTDeviceById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/ITMedicineService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.service;
+
+import java.util.List;
+import com.ruoyi.business.domain.TMedicine;
+
+/**
+ * 药剂管理Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface ITMedicineService 
+{
+    /**
+     * 查询药剂管理
+     * 
+     * @param id 药剂管理主键
+     * @return 药剂管理
+     */
+    public TMedicine selectTMedicineById(Long id);
+
+    /**
+     * 查询药剂管理列表
+     * 
+     * @param tMedicine 药剂管理
+     * @return 药剂管理集合
+     */
+    public List<TMedicine> selectTMedicineList(TMedicine tMedicine);
+
+    /**
+     * 新增药剂管理
+     * 
+     * @param tMedicine 药剂管理
+     * @return 结果
+     */
+    public int insertTMedicine(TMedicine tMedicine);
+
+    /**
+     * 修改药剂管理
+     * 
+     * @param tMedicine 药剂管理
+     * @return 结果
+     */
+    public int updateTMedicine(TMedicine tMedicine);
+
+    /**
+     * 批量删除药剂管理
+     * 
+     * @param ids 需要删除的药剂管理主键集合
+     * @return 结果
+     */
+    public int deleteTMedicineByIds(Long[] ids);
+
+    /**
+     * 删除药剂管理信息
+     * 
+     * @param id 药剂管理主键
+     * @return 结果
+     */
+    public int deleteTMedicineById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/ITOrganizationService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.service;
+
+import java.util.List;
+import com.ruoyi.business.domain.TOrganization;
+
+/**
+ * 机构管理Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface ITOrganizationService 
+{
+    /**
+     * 查询机构管理
+     * 
+     * @param id 机构管理主键
+     * @return 机构管理
+     */
+    public TOrganization selectTOrganizationById(Long id);
+
+    /**
+     * 查询机构管理列表
+     * 
+     * @param tOrganization 机构管理
+     * @return 机构管理集合
+     */
+    public List<TOrganization> selectTOrganizationList(TOrganization tOrganization);
+
+    /**
+     * 新增机构管理
+     * 
+     * @param tOrganization 机构管理
+     * @return 结果
+     */
+    public int insertTOrganization(TOrganization tOrganization);
+
+    /**
+     * 修改机构管理
+     * 
+     * @param tOrganization 机构管理
+     * @return 结果
+     */
+    public int updateTOrganization(TOrganization tOrganization);
+
+    /**
+     * 批量删除机构管理
+     * 
+     * @param ids 需要删除的机构管理主键集合
+     * @return 结果
+     */
+    public int deleteTOrganizationByIds(Long[] ids);
+
+    /**
+     * 删除机构管理信息
+     * 
+     * @param id 机构管理主键
+     * @return 结果
+     */
+    public int deleteTOrganizationById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/ITPositionService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.service;
+
+import java.util.List;
+import com.ruoyi.business.domain.TPosition;
+
+/**
+ * 取样点位Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface ITPositionService 
+{
+    /**
+     * 查询取样点位
+     * 
+     * @param id 取样点位主键
+     * @return 取样点位
+     */
+    public TPosition selectTPositionById(Long id);
+
+    /**
+     * 查询取样点位列表
+     * 
+     * @param tPosition 取样点位
+     * @return 取样点位集合
+     */
+    public List<TPosition> selectTPositionList(TPosition tPosition);
+
+    /**
+     * 新增取样点位
+     * 
+     * @param tPosition 取样点位
+     * @return 结果
+     */
+    public int insertTPosition(TPosition tPosition);
+
+    /**
+     * 修改取样点位
+     * 
+     * @param tPosition 取样点位
+     * @return 结果
+     */
+    public int updateTPosition(TPosition tPosition);
+
+    /**
+     * 批量删除取样点位
+     * 
+     * @param ids 需要删除的取样点位主键集合
+     * @return 结果
+     */
+    public int deleteTPositionByIds(Long[] ids);
+
+    /**
+     * 删除取样点位信息
+     * 
+     * @param id 取样点位主键
+     * @return 结果
+     */
+    public int deleteTPositionById(Long id);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/ITQualityConfService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.business.service;
+
+import java.util.List;
+import com.ruoyi.business.domain.TQualityConf;
+
+/**
+ * 质控样配置Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public interface ITQualityConfService 
+{
+    /**
+     * 查询质控样配置
+     * 
+     * @param id 质控样配置主键
+     * @return 质控样配置
+     */
+    public TQualityConf selectTQualityConfById(Long id);
+
+    /**
+     * 查询质控样配置列表
+     * 
+     * @param tQualityConf 质控样配置
+     * @return 质控样配置集合
+     */
+    public List<TQualityConf> selectTQualityConfList(TQualityConf tQualityConf);
+
+    /**
+     * 新增质控样配置
+     * 
+     * @param tQualityConf 质控样配置
+     * @return 结果
+     */
+    public int insertTQualityConf(TQualityConf tQualityConf);
+
+    /**
+     * 修改质控样配置
+     * 
+     * @param tQualityConf 质控样配置
+     * @return 结果
+     */
+    public int updateTQualityConf(TQualityConf tQualityConf);
+
+    /**
+     * 批量删除质控样配置
+     * 
+     * @param ids 需要删除的质控样配置主键集合
+     * @return 结果
+     */
+    public int deleteTQualityConfByIds(Long[] ids);
+
+    /**
+     * 删除质控样配置信息
+     * 
+     * @param id 质控样配置主键
+     * @return 结果
+     */
+    public int deleteTQualityConfById(Long id);
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TAssayItemExtraServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.business.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.business.mapper.TAssayItemExtraMapper;
+import com.ruoyi.business.domain.TAssayItemExtra;
+import com.ruoyi.business.service.ITAssayItemExtraService;
+
+/**
+ * 化验项目-废液药剂配置Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Service
+public class TAssayItemExtraServiceImpl implements ITAssayItemExtraService 
+{
+    @Autowired
+    private TAssayItemExtraMapper tAssayItemExtraMapper;
+
+    /**
+     * 查询化验项目-废液药剂配置
+     * 
+     * @param id 化验项目-废液药剂配置主键
+     * @return 化验项目-废液药剂配置
+     */
+    @Override
+    public TAssayItemExtra selectTAssayItemExtraById(Long id)
+    {
+        return tAssayItemExtraMapper.selectTAssayItemExtraById(id);
+    }
+
+    /**
+     * 查询化验项目-废液药剂配置列表
+     * 
+     * @param tAssayItemExtra 化验项目-废液药剂配置
+     * @return 化验项目-废液药剂配置
+     */
+    @Override
+    public List<TAssayItemExtra> selectTAssayItemExtraList(TAssayItemExtra tAssayItemExtra)
+    {
+        return tAssayItemExtraMapper.selectTAssayItemExtraList(tAssayItemExtra);
+    }
+
+    /**
+     * 新增化验项目-废液药剂配置
+     * 
+     * @param tAssayItemExtra 化验项目-废液药剂配置
+     * @return 结果
+     */
+    @Override
+    public int insertTAssayItemExtra(TAssayItemExtra tAssayItemExtra)
+    {
+        tAssayItemExtra.setCreateTime(DateUtils.getNowDate());
+        return tAssayItemExtraMapper.insertTAssayItemExtra(tAssayItemExtra);
+    }
+
+    /**
+     * 修改化验项目-废液药剂配置
+     * 
+     * @param tAssayItemExtra 化验项目-废液药剂配置
+     * @return 结果
+     */
+    @Override
+    public int updateTAssayItemExtra(TAssayItemExtra tAssayItemExtra)
+    {
+        tAssayItemExtra.setUpdateTime(DateUtils.getNowDate());
+        return tAssayItemExtraMapper.updateTAssayItemExtra(tAssayItemExtra);
+    }
+
+    /**
+     * 批量删除化验项目-废液药剂配置
+     * 
+     * @param ids 需要删除的化验项目-废液药剂配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTAssayItemExtraByIds(Long[] ids)
+    {
+        return tAssayItemExtraMapper.deleteTAssayItemExtraByIds(ids);
+    }
+
+    /**
+     * 删除化验项目-废液药剂配置信息
+     * 
+     * @param id 化验项目-废液药剂配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTAssayItemExtraById(Long id)
+    {
+        return tAssayItemExtraMapper.deleteTAssayItemExtraById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TAssayItemServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.business.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.business.mapper.TAssayItemMapper;
+import com.ruoyi.business.domain.TAssayItem;
+import com.ruoyi.business.service.ITAssayItemService;
+
+/**
+ * 化验项目Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Service
+public class TAssayItemServiceImpl implements ITAssayItemService 
+{
+    @Autowired
+    private TAssayItemMapper tAssayItemMapper;
+
+    /**
+     * 查询化验项目
+     * 
+     * @param id 化验项目主键
+     * @return 化验项目
+     */
+    @Override
+    public TAssayItem selectTAssayItemById(Long id)
+    {
+        return tAssayItemMapper.selectTAssayItemById(id);
+    }
+
+    /**
+     * 查询化验项目列表
+     * 
+     * @param tAssayItem 化验项目
+     * @return 化验项目
+     */
+    @Override
+    public List<TAssayItem> selectTAssayItemList(TAssayItem tAssayItem)
+    {
+        return tAssayItemMapper.selectTAssayItemList(tAssayItem);
+    }
+
+    /**
+     * 新增化验项目
+     * 
+     * @param tAssayItem 化验项目
+     * @return 结果
+     */
+    @Override
+    public int insertTAssayItem(TAssayItem tAssayItem)
+    {
+        tAssayItem.setCreateTime(DateUtils.getNowDate());
+        return tAssayItemMapper.insertTAssayItem(tAssayItem);
+    }
+
+    /**
+     * 修改化验项目
+     * 
+     * @param tAssayItem 化验项目
+     * @return 结果
+     */
+    @Override
+    public int updateTAssayItem(TAssayItem tAssayItem)
+    {
+        tAssayItem.setUpdateTime(DateUtils.getNowDate());
+        return tAssayItemMapper.updateTAssayItem(tAssayItem);
+    }
+
+    /**
+     * 批量删除化验项目
+     * 
+     * @param ids 需要删除的化验项目主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTAssayItemByIds(Long[] ids)
+    {
+        return tAssayItemMapper.deleteTAssayItemByIds(ids);
+    }
+
+    /**
+     * 删除化验项目信息
+     * 
+     * @param id 化验项目主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTAssayItemById(Long id)
+    {
+        return tAssayItemMapper.deleteTAssayItemById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TAssayWorkflowItemServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.business.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.business.mapper.TAssayWorkflowItemMapper;
+import com.ruoyi.business.domain.TAssayWorkflowItem;
+import com.ruoyi.business.service.ITAssayWorkflowItemService;
+
+/**
+ * 化验流程-化验内容明细Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Service
+public class TAssayWorkflowItemServiceImpl implements ITAssayWorkflowItemService 
+{
+    @Autowired
+    private TAssayWorkflowItemMapper tAssayWorkflowItemMapper;
+
+    /**
+     * 查询化验流程-化验内容明细
+     * 
+     * @param id 化验流程-化验内容明细主键
+     * @return 化验流程-化验内容明细
+     */
+    @Override
+    public TAssayWorkflowItem selectTAssayWorkflowItemById(Long id)
+    {
+        return tAssayWorkflowItemMapper.selectTAssayWorkflowItemById(id);
+    }
+
+    /**
+     * 查询化验流程-化验内容明细列表
+     * 
+     * @param tAssayWorkflowItem 化验流程-化验内容明细
+     * @return 化验流程-化验内容明细
+     */
+    @Override
+    public List<TAssayWorkflowItem> selectTAssayWorkflowItemList(TAssayWorkflowItem tAssayWorkflowItem)
+    {
+        return tAssayWorkflowItemMapper.selectTAssayWorkflowItemList(tAssayWorkflowItem);
+    }
+
+    /**
+     * 新增化验流程-化验内容明细
+     * 
+     * @param tAssayWorkflowItem 化验流程-化验内容明细
+     * @return 结果
+     */
+    @Override
+    public int insertTAssayWorkflowItem(TAssayWorkflowItem tAssayWorkflowItem)
+    {
+        tAssayWorkflowItem.setCreateTime(DateUtils.getNowDate());
+        return tAssayWorkflowItemMapper.insertTAssayWorkflowItem(tAssayWorkflowItem);
+    }
+
+    /**
+     * 修改化验流程-化验内容明细
+     * 
+     * @param tAssayWorkflowItem 化验流程-化验内容明细
+     * @return 结果
+     */
+    @Override
+    public int updateTAssayWorkflowItem(TAssayWorkflowItem tAssayWorkflowItem)
+    {
+        tAssayWorkflowItem.setUpdateTime(DateUtils.getNowDate());
+        return tAssayWorkflowItemMapper.updateTAssayWorkflowItem(tAssayWorkflowItem);
+    }
+
+    /**
+     * 批量删除化验流程-化验内容明细
+     * 
+     * @param ids 需要删除的化验流程-化验内容明细主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTAssayWorkflowItemByIds(Long[] ids)
+    {
+        return tAssayWorkflowItemMapper.deleteTAssayWorkflowItemByIds(ids);
+    }
+
+    /**
+     * 删除化验流程-化验内容明细信息
+     * 
+     * @param id 化验流程-化验内容明细主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTAssayWorkflowItemById(Long id)
+    {
+        return tAssayWorkflowItemMapper.deleteTAssayWorkflowItemById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TAssayWorkflowServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.business.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.business.mapper.TAssayWorkflowMapper;
+import com.ruoyi.business.domain.TAssayWorkflow;
+import com.ruoyi.business.service.ITAssayWorkflowService;
+
+/**
+ * 化验流程Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Service
+public class TAssayWorkflowServiceImpl implements ITAssayWorkflowService 
+{
+    @Autowired
+    private TAssayWorkflowMapper tAssayWorkflowMapper;
+
+    /**
+     * 查询化验流程
+     * 
+     * @param id 化验流程主键
+     * @return 化验流程
+     */
+    @Override
+    public TAssayWorkflow selectTAssayWorkflowById(Long id)
+    {
+        return tAssayWorkflowMapper.selectTAssayWorkflowById(id);
+    }
+
+    /**
+     * 查询化验流程列表
+     * 
+     * @param tAssayWorkflow 化验流程
+     * @return 化验流程
+     */
+    @Override
+    public List<TAssayWorkflow> selectTAssayWorkflowList(TAssayWorkflow tAssayWorkflow)
+    {
+        return tAssayWorkflowMapper.selectTAssayWorkflowList(tAssayWorkflow);
+    }
+
+    /**
+     * 新增化验流程
+     * 
+     * @param tAssayWorkflow 化验流程
+     * @return 结果
+     */
+    @Override
+    public int insertTAssayWorkflow(TAssayWorkflow tAssayWorkflow)
+    {
+        tAssayWorkflow.setCreateTime(DateUtils.getNowDate());
+        return tAssayWorkflowMapper.insertTAssayWorkflow(tAssayWorkflow);
+    }
+
+    /**
+     * 修改化验流程
+     * 
+     * @param tAssayWorkflow 化验流程
+     * @return 结果
+     */
+    @Override
+    public int updateTAssayWorkflow(TAssayWorkflow tAssayWorkflow)
+    {
+        tAssayWorkflow.setUpdateTime(DateUtils.getNowDate());
+        return tAssayWorkflowMapper.updateTAssayWorkflow(tAssayWorkflow);
+    }
+
+    /**
+     * 批量删除化验流程
+     * 
+     * @param ids 需要删除的化验流程主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTAssayWorkflowByIds(Long[] ids)
+    {
+        return tAssayWorkflowMapper.deleteTAssayWorkflowByIds(ids);
+    }
+
+    /**
+     * 删除化验流程信息
+     * 
+     * @param id 化验流程主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTAssayWorkflowById(Long id)
+    {
+        return tAssayWorkflowMapper.deleteTAssayWorkflowById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TDeviceServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.business.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.business.mapper.TDeviceMapper;
+import com.ruoyi.business.domain.TDevice;
+import com.ruoyi.business.service.ITDeviceService;
+
+/**
+ * 机构设备Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Service
+public class TDeviceServiceImpl implements ITDeviceService 
+{
+    @Autowired
+    private TDeviceMapper tDeviceMapper;
+
+    /**
+     * 查询机构设备
+     * 
+     * @param id 机构设备主键
+     * @return 机构设备
+     */
+    @Override
+    public TDevice selectTDeviceById(Long id)
+    {
+        return tDeviceMapper.selectTDeviceById(id);
+    }
+
+    /**
+     * 查询机构设备列表
+     * 
+     * @param tDevice 机构设备
+     * @return 机构设备
+     */
+    @Override
+    public List<TDevice> selectTDeviceList(TDevice tDevice)
+    {
+        return tDeviceMapper.selectTDeviceList(tDevice);
+    }
+
+    /**
+     * 新增机构设备
+     * 
+     * @param tDevice 机构设备
+     * @return 结果
+     */
+    @Override
+    public int insertTDevice(TDevice tDevice)
+    {
+        tDevice.setCreateTime(DateUtils.getNowDate());
+        return tDeviceMapper.insertTDevice(tDevice);
+    }
+
+    /**
+     * 修改机构设备
+     * 
+     * @param tDevice 机构设备
+     * @return 结果
+     */
+    @Override
+    public int updateTDevice(TDevice tDevice)
+    {
+        tDevice.setUpdateTime(DateUtils.getNowDate());
+        return tDeviceMapper.updateTDevice(tDevice);
+    }
+
+    /**
+     * 批量删除机构设备
+     * 
+     * @param ids 需要删除的机构设备主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTDeviceByIds(Long[] ids)
+    {
+        return tDeviceMapper.deleteTDeviceByIds(ids);
+    }
+
+    /**
+     * 删除机构设备信息
+     * 
+     * @param id 机构设备主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTDeviceById(Long id)
+    {
+        return tDeviceMapper.deleteTDeviceById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TMedicineServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.business.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.business.mapper.TMedicineMapper;
+import com.ruoyi.business.domain.TMedicine;
+import com.ruoyi.business.service.ITMedicineService;
+
+/**
+ * 药剂管理Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Service
+public class TMedicineServiceImpl implements ITMedicineService 
+{
+    @Autowired
+    private TMedicineMapper tMedicineMapper;
+
+    /**
+     * 查询药剂管理
+     * 
+     * @param id 药剂管理主键
+     * @return 药剂管理
+     */
+    @Override
+    public TMedicine selectTMedicineById(Long id)
+    {
+        return tMedicineMapper.selectTMedicineById(id);
+    }
+
+    /**
+     * 查询药剂管理列表
+     * 
+     * @param tMedicine 药剂管理
+     * @return 药剂管理
+     */
+    @Override
+    public List<TMedicine> selectTMedicineList(TMedicine tMedicine)
+    {
+        return tMedicineMapper.selectTMedicineList(tMedicine);
+    }
+
+    /**
+     * 新增药剂管理
+     * 
+     * @param tMedicine 药剂管理
+     * @return 结果
+     */
+    @Override
+    public int insertTMedicine(TMedicine tMedicine)
+    {
+        tMedicine.setCreateTime(DateUtils.getNowDate());
+        return tMedicineMapper.insertTMedicine(tMedicine);
+    }
+
+    /**
+     * 修改药剂管理
+     * 
+     * @param tMedicine 药剂管理
+     * @return 结果
+     */
+    @Override
+    public int updateTMedicine(TMedicine tMedicine)
+    {
+        tMedicine.setUpdateTime(DateUtils.getNowDate());
+        return tMedicineMapper.updateTMedicine(tMedicine);
+    }
+
+    /**
+     * 批量删除药剂管理
+     * 
+     * @param ids 需要删除的药剂管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTMedicineByIds(Long[] ids)
+    {
+        return tMedicineMapper.deleteTMedicineByIds(ids);
+    }
+
+    /**
+     * 删除药剂管理信息
+     * 
+     * @param id 药剂管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTMedicineById(Long id)
+    {
+        return tMedicineMapper.deleteTMedicineById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TOrganizationServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.business.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.business.mapper.TOrganizationMapper;
+import com.ruoyi.business.domain.TOrganization;
+import com.ruoyi.business.service.ITOrganizationService;
+
+/**
+ * 机构管理Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Service
+public class TOrganizationServiceImpl implements ITOrganizationService 
+{
+    @Autowired
+    private TOrganizationMapper tOrganizationMapper;
+
+    /**
+     * 查询机构管理
+     * 
+     * @param id 机构管理主键
+     * @return 机构管理
+     */
+    @Override
+    public TOrganization selectTOrganizationById(Long id)
+    {
+        return tOrganizationMapper.selectTOrganizationById(id);
+    }
+
+    /**
+     * 查询机构管理列表
+     * 
+     * @param tOrganization 机构管理
+     * @return 机构管理
+     */
+    @Override
+    public List<TOrganization> selectTOrganizationList(TOrganization tOrganization)
+    {
+        return tOrganizationMapper.selectTOrganizationList(tOrganization);
+    }
+
+    /**
+     * 新增机构管理
+     * 
+     * @param tOrganization 机构管理
+     * @return 结果
+     */
+    @Override
+    public int insertTOrganization(TOrganization tOrganization)
+    {
+        tOrganization.setCreateTime(DateUtils.getNowDate());
+        return tOrganizationMapper.insertTOrganization(tOrganization);
+    }
+
+    /**
+     * 修改机构管理
+     * 
+     * @param tOrganization 机构管理
+     * @return 结果
+     */
+    @Override
+    public int updateTOrganization(TOrganization tOrganization)
+    {
+        tOrganization.setUpdateTime(DateUtils.getNowDate());
+        return tOrganizationMapper.updateTOrganization(tOrganization);
+    }
+
+    /**
+     * 批量删除机构管理
+     * 
+     * @param ids 需要删除的机构管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTOrganizationByIds(Long[] ids)
+    {
+        return tOrganizationMapper.deleteTOrganizationByIds(ids);
+    }
+
+    /**
+     * 删除机构管理信息
+     * 
+     * @param id 机构管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTOrganizationById(Long id)
+    {
+        return tOrganizationMapper.deleteTOrganizationById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TPositionServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.business.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.business.mapper.TPositionMapper;
+import com.ruoyi.business.domain.TPosition;
+import com.ruoyi.business.service.ITPositionService;
+
+/**
+ * 取样点位Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Service
+public class TPositionServiceImpl implements ITPositionService 
+{
+    @Autowired
+    private TPositionMapper tPositionMapper;
+
+    /**
+     * 查询取样点位
+     * 
+     * @param id 取样点位主键
+     * @return 取样点位
+     */
+    @Override
+    public TPosition selectTPositionById(Long id)
+    {
+        return tPositionMapper.selectTPositionById(id);
+    }
+
+    /**
+     * 查询取样点位列表
+     * 
+     * @param tPosition 取样点位
+     * @return 取样点位
+     */
+    @Override
+    public List<TPosition> selectTPositionList(TPosition tPosition)
+    {
+        return tPositionMapper.selectTPositionList(tPosition);
+    }
+
+    /**
+     * 新增取样点位
+     * 
+     * @param tPosition 取样点位
+     * @return 结果
+     */
+    @Override
+    public int insertTPosition(TPosition tPosition)
+    {
+        tPosition.setCreateTime(DateUtils.getNowDate());
+        return tPositionMapper.insertTPosition(tPosition);
+    }
+
+    /**
+     * 修改取样点位
+     * 
+     * @param tPosition 取样点位
+     * @return 结果
+     */
+    @Override
+    public int updateTPosition(TPosition tPosition)
+    {
+        tPosition.setUpdateTime(DateUtils.getNowDate());
+        return tPositionMapper.updateTPosition(tPosition);
+    }
+
+    /**
+     * 批量删除取样点位
+     * 
+     * @param ids 需要删除的取样点位主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTPositionByIds(Long[] ids)
+    {
+        return tPositionMapper.deleteTPositionByIds(ids);
+    }
+
+    /**
+     * 删除取样点位信息
+     * 
+     * @param id 取样点位主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTPositionById(Long id)
+    {
+        return tPositionMapper.deleteTPositionById(id);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/business/service/impl/TQualityConfServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.business.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.business.mapper.TQualityConfMapper;
+import com.ruoyi.business.domain.TQualityConf;
+import com.ruoyi.business.service.ITQualityConfService;
+
+/**
+ * 质控样配置Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Service
+public class TQualityConfServiceImpl implements ITQualityConfService 
+{
+    @Autowired
+    private TQualityConfMapper tQualityConfMapper;
+
+    /**
+     * 查询质控样配置
+     * 
+     * @param id 质控样配置主键
+     * @return 质控样配置
+     */
+    @Override
+    public TQualityConf selectTQualityConfById(Long id)
+    {
+        return tQualityConfMapper.selectTQualityConfById(id);
+    }
+
+    /**
+     * 查询质控样配置列表
+     * 
+     * @param tQualityConf 质控样配置
+     * @return 质控样配置
+     */
+    @Override
+    public List<TQualityConf> selectTQualityConfList(TQualityConf tQualityConf)
+    {
+        return tQualityConfMapper.selectTQualityConfList(tQualityConf);
+    }
+
+    /**
+     * 新增质控样配置
+     * 
+     * @param tQualityConf 质控样配置
+     * @return 结果
+     */
+    @Override
+    public int insertTQualityConf(TQualityConf tQualityConf)
+    {
+        tQualityConf.setCreateTime(DateUtils.getNowDate());
+        return tQualityConfMapper.insertTQualityConf(tQualityConf);
+    }
+
+    /**
+     * 修改质控样配置
+     * 
+     * @param tQualityConf 质控样配置
+     * @return 结果
+     */
+    @Override
+    public int updateTQualityConf(TQualityConf tQualityConf)
+    {
+        tQualityConf.setUpdateTime(DateUtils.getNowDate());
+        return tQualityConfMapper.updateTQualityConf(tQualityConf);
+    }
+
+    /**
+     * 批量删除质控样配置
+     * 
+     * @param ids 需要删除的质控样配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTQualityConfByIds(Long[] ids)
+    {
+        return tQualityConfMapper.deleteTQualityConfByIds(ids);
+    }
+
+    /**
+     * 删除质控样配置信息
+     * 
+     * @param id 质控样配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteTQualityConfById(Long id)
+    {
+        return tQualityConfMapper.deleteTQualityConfById(id);
+    }
+}

+ 100 - 0
ruoyi-system/src/main/resources/mapper/business/TAssayItemExtraMapper.xml

@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.business.mapper.TAssayItemExtraMapper">
+    
+    <resultMap type="TAssayItemExtra" id="TAssayItemExtraResult">
+        <result property="id"    column="id"    />
+        <result property="itemId"    column="item_id"    />
+        <result property="type"    column="type"    />
+        <result property="relativeId"    column="relative_id"    />
+        <result property="amount"    column="amount"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="revision"    column="revision"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTAssayItemExtraVo">
+        select id, item_id, type, relative_id, amount, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_assay_item_extra
+    </sql>
+
+    <select id="selectTAssayItemExtraList" parameterType="TAssayItemExtra" resultMap="TAssayItemExtraResult">
+        <include refid="selectTAssayItemExtraVo"/>
+        <where>  
+            <if test="itemId != null "> and item_id = #{itemId}</if>
+            <if test="type != null "> and type = #{type}</if>
+            <if test="relativeId != null "> and relative_id = #{relativeId}</if>
+            <if test="amount != null "> and amount = #{amount}</if>
+            <if test="revision != null "> and revision = #{revision}</if>
+        </where>
+    </select>
+    
+    <select id="selectTAssayItemExtraById" parameterType="Long" resultMap="TAssayItemExtraResult">
+        <include refid="selectTAssayItemExtraVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTAssayItemExtra" parameterType="TAssayItemExtra" useGeneratedKeys="true" keyProperty="id">
+        insert into t_assay_item_extra
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="itemId != null">item_id,</if>
+            <if test="type != null">type,</if>
+            <if test="relativeId != null">relative_id,</if>
+            <if test="amount != null">amount,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="revision != null">revision,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="itemId != null">#{itemId},</if>
+            <if test="type != null">#{type},</if>
+            <if test="relativeId != null">#{relativeId},</if>
+            <if test="amount != null">#{amount},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="revision != null">#{revision},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTAssayItemExtra" parameterType="TAssayItemExtra">
+        update t_assay_item_extra
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="itemId != null">item_id = #{itemId},</if>
+            <if test="type != null">type = #{type},</if>
+            <if test="relativeId != null">relative_id = #{relativeId},</if>
+            <if test="amount != null">amount = #{amount},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="revision != null">revision = #{revision},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTAssayItemExtraById" parameterType="Long">
+        delete from t_assay_item_extra where id = #{id}
+    </delete>
+
+    <delete id="deleteTAssayItemExtraByIds" parameterType="String">
+        delete from t_assay_item_extra where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 90 - 0
ruoyi-system/src/main/resources/mapper/business/TAssayItemMapper.xml

@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.business.mapper.TAssayItemMapper">
+    
+    <resultMap type="TAssayItem" id="TAssayItemResult">
+        <result property="id"    column="id"    />
+        <result property="code"    column="code"    />
+        <result property="name"    column="name"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="revision"    column="revision"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTAssayItemVo">
+        select id, code, name, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_assay_item
+    </sql>
+
+    <select id="selectTAssayItemList" parameterType="TAssayItem" resultMap="TAssayItemResult">
+        <include refid="selectTAssayItemVo"/>
+        <where>  
+            <if test="code != null  and code != ''"> and code like concat('%', #{code}, '%')</if>
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="revision != null "> and revision = #{revision}</if>
+        </where>
+    </select>
+    
+    <select id="selectTAssayItemById" parameterType="Long" resultMap="TAssayItemResult">
+        <include refid="selectTAssayItemVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTAssayItem" parameterType="TAssayItem" useGeneratedKeys="true" keyProperty="id">
+        insert into t_assay_item
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="code != null">code,</if>
+            <if test="name != null">name,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="revision != null">revision,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="code != null">#{code},</if>
+            <if test="name != null">#{name},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="revision != null">#{revision},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTAssayItem" parameterType="TAssayItem">
+        update t_assay_item
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="code != null">code = #{code},</if>
+            <if test="name != null">name = #{name},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="revision != null">revision = #{revision},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTAssayItemById" parameterType="Long">
+        delete from t_assay_item where id = #{id}
+    </delete>
+
+    <delete id="deleteTAssayItemByIds" parameterType="String">
+        delete from t_assay_item where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 95 - 0
ruoyi-system/src/main/resources/mapper/business/TAssayWorkflowItemMapper.xml

@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.business.mapper.TAssayWorkflowItemMapper">
+    
+    <resultMap type="TAssayWorkflowItem" id="TAssayWorkflowItemResult">
+        <result property="id"    column="id"    />
+        <result property="workflowId"    column="workflow_id"    />
+        <result property="positionId"    column="position_id"    />
+        <result property="itemId"    column="item_id"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="revision"    column="revision"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTAssayWorkflowItemVo">
+        select id, workflow_id, position_id, item_id, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_assay_workflow_item
+    </sql>
+
+    <select id="selectTAssayWorkflowItemList" parameterType="TAssayWorkflowItem" resultMap="TAssayWorkflowItemResult">
+        <include refid="selectTAssayWorkflowItemVo"/>
+        <where>  
+            <if test="workflowId != null "> and workflow_id = #{workflowId}</if>
+            <if test="positionId != null "> and position_id = #{positionId}</if>
+            <if test="itemId != null "> and item_id = #{itemId}</if>
+            <if test="revision != null "> and revision = #{revision}</if>
+        </where>
+    </select>
+    
+    <select id="selectTAssayWorkflowItemById" parameterType="Long" resultMap="TAssayWorkflowItemResult">
+        <include refid="selectTAssayWorkflowItemVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTAssayWorkflowItem" parameterType="TAssayWorkflowItem" useGeneratedKeys="true" keyProperty="id">
+        insert into t_assay_workflow_item
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="workflowId != null">workflow_id,</if>
+            <if test="positionId != null">position_id,</if>
+            <if test="itemId != null">item_id,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="revision != null">revision,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="workflowId != null">#{workflowId},</if>
+            <if test="positionId != null">#{positionId},</if>
+            <if test="itemId != null">#{itemId},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="revision != null">#{revision},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTAssayWorkflowItem" parameterType="TAssayWorkflowItem">
+        update t_assay_workflow_item
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="workflowId != null">workflow_id = #{workflowId},</if>
+            <if test="positionId != null">position_id = #{positionId},</if>
+            <if test="itemId != null">item_id = #{itemId},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="revision != null">revision = #{revision},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTAssayWorkflowItemById" parameterType="Long">
+        delete from t_assay_workflow_item where id = #{id}
+    </delete>
+
+    <delete id="deleteTAssayWorkflowItemByIds" parameterType="String">
+        delete from t_assay_workflow_item where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 105 - 0
ruoyi-system/src/main/resources/mapper/business/TAssayWorkflowMapper.xml

@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.business.mapper.TAssayWorkflowMapper">
+    
+    <resultMap type="TAssayWorkflow" id="TAssayWorkflowResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="code"    column="code"    />
+        <result property="organizationId"    column="organization_id"    />
+        <result property="deviceId"    column="device_id"    />
+        <result property="totalSteps"    column="total_steps"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="revision"    column="revision"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTAssayWorkflowVo">
+        select id, name, code, organization_id, device_id, total_steps, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_assay_workflow
+    </sql>
+
+    <select id="selectTAssayWorkflowList" parameterType="TAssayWorkflow" resultMap="TAssayWorkflowResult">
+        <include refid="selectTAssayWorkflowVo"/>
+        <where>  
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="code != null  and code != ''"> and code like concat('%', #{code}, '%')</if>
+            <if test="organizationId != null "> and organization_id = #{organizationId}</if>
+            <if test="deviceId != null "> and device_id = #{deviceId}</if>
+            <if test="totalSteps != null "> and total_steps = #{totalSteps}</if>
+            <if test="revision != null "> and revision = #{revision}</if>
+        </where>
+    </select>
+    
+    <select id="selectTAssayWorkflowById" parameterType="Long" resultMap="TAssayWorkflowResult">
+        <include refid="selectTAssayWorkflowVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTAssayWorkflow" parameterType="TAssayWorkflow" useGeneratedKeys="true" keyProperty="id">
+        insert into t_assay_workflow
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="name != null">name,</if>
+            <if test="code != null">code,</if>
+            <if test="organizationId != null">organization_id,</if>
+            <if test="deviceId != null">device_id,</if>
+            <if test="totalSteps != null">total_steps,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="revision != null">revision,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="name != null">#{name},</if>
+            <if test="code != null">#{code},</if>
+            <if test="organizationId != null">#{organizationId},</if>
+            <if test="deviceId != null">#{deviceId},</if>
+            <if test="totalSteps != null">#{totalSteps},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="revision != null">#{revision},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTAssayWorkflow" parameterType="TAssayWorkflow">
+        update t_assay_workflow
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null">name = #{name},</if>
+            <if test="code != null">code = #{code},</if>
+            <if test="organizationId != null">organization_id = #{organizationId},</if>
+            <if test="deviceId != null">device_id = #{deviceId},</if>
+            <if test="totalSteps != null">total_steps = #{totalSteps},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="revision != null">revision = #{revision},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTAssayWorkflowById" parameterType="Long">
+        delete from t_assay_workflow where id = #{id}
+    </delete>
+
+    <delete id="deleteTAssayWorkflowByIds" parameterType="String">
+        delete from t_assay_workflow where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 120 - 0
ruoyi-system/src/main/resources/mapper/business/TDeviceMapper.xml

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.business.mapper.TDeviceMapper">
+    
+    <resultMap type="TDevice" id="TDeviceResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="sn"    column="sn"    />
+        <result property="model"    column="model"    />
+        <result property="organizationId"    column="organization_id"    />
+        <result property="usage"    column="usage"    />
+        <result property="status"    column="status"    />
+        <result property="maintainer"    column="maintainer"    />
+        <result property="maintainerPhone"    column="maintainer_phone"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="revision"    column="revision"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTDeviceVo">
+        select id, name, sn, model, organization_id, usage, status, maintainer, maintainer_phone, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_device
+    </sql>
+
+    <select id="selectTDeviceList" parameterType="TDevice" resultMap="TDeviceResult">
+        <include refid="selectTDeviceVo"/>
+        <where>  
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="sn != null  and sn != ''"> and sn like concat('%', #{sn}, '%')</if>
+            <if test="model != null  and model != ''"> and model = #{model}</if>
+            <if test="organizationId != null "> and organization_id = #{organizationId}</if>
+            <if test="usage != null "> and usage = #{usage}</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="maintainer != null  and maintainer != ''"> and maintainer = #{maintainer}</if>
+            <if test="maintainerPhone != null  and maintainerPhone != ''"> and maintainer_phone = #{maintainerPhone}</if>
+            <if test="revision != null "> and revision = #{revision}</if>
+        </where>
+    </select>
+    
+    <select id="selectTDeviceById" parameterType="Long" resultMap="TDeviceResult">
+        <include refid="selectTDeviceVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTDevice" parameterType="TDevice" useGeneratedKeys="true" keyProperty="id">
+        insert into t_device
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="name != null">name,</if>
+            <if test="sn != null">sn,</if>
+            <if test="model != null">model,</if>
+            <if test="organizationId != null">organization_id,</if>
+            <if test="usage != null">usage,</if>
+            <if test="status != null">status,</if>
+            <if test="maintainer != null">maintainer,</if>
+            <if test="maintainerPhone != null">maintainer_phone,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="revision != null">revision,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="name != null">#{name},</if>
+            <if test="sn != null">#{sn},</if>
+            <if test="model != null">#{model},</if>
+            <if test="organizationId != null">#{organizationId},</if>
+            <if test="usage != null">#{usage},</if>
+            <if test="status != null">#{status},</if>
+            <if test="maintainer != null">#{maintainer},</if>
+            <if test="maintainerPhone != null">#{maintainerPhone},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="revision != null">#{revision},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTDevice" parameterType="TDevice">
+        update t_device
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null">name = #{name},</if>
+            <if test="sn != null">sn = #{sn},</if>
+            <if test="model != null">model = #{model},</if>
+            <if test="organizationId != null">organization_id = #{organizationId},</if>
+            <if test="usage != null">usage = #{usage},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="maintainer != null">maintainer = #{maintainer},</if>
+            <if test="maintainerPhone != null">maintainer_phone = #{maintainerPhone},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="revision != null">revision = #{revision},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTDeviceById" parameterType="Long">
+        delete from t_device where id = #{id}
+    </delete>
+
+    <delete id="deleteTDeviceByIds" parameterType="String">
+        delete from t_device where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 90 - 0
ruoyi-system/src/main/resources/mapper/business/TMedicineMapper.xml

@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.business.mapper.TMedicineMapper">
+    
+    <resultMap type="TMedicine" id="TMedicineResult">
+        <result property="id"    column="id"    />
+        <result property="code"    column="code"    />
+        <result property="name"    column="name"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="revision"    column="revision"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTMedicineVo">
+        select id, code, name, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_medicine
+    </sql>
+
+    <select id="selectTMedicineList" parameterType="TMedicine" resultMap="TMedicineResult">
+        <include refid="selectTMedicineVo"/>
+        <where>  
+            <if test="code != null  and code != ''"> and code like concat('%', #{code}, '%')</if>
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="revision != null "> and revision = #{revision}</if>
+        </where>
+    </select>
+    
+    <select id="selectTMedicineById" parameterType="Long" resultMap="TMedicineResult">
+        <include refid="selectTMedicineVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTMedicine" parameterType="TMedicine" useGeneratedKeys="true" keyProperty="id">
+        insert into t_medicine
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="code != null">code,</if>
+            <if test="name != null">name,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="revision != null">revision,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="code != null">#{code},</if>
+            <if test="name != null">#{name},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="revision != null">#{revision},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTMedicine" parameterType="TMedicine">
+        update t_medicine
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="code != null">code = #{code},</if>
+            <if test="name != null">name = #{name},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="revision != null">revision = #{revision},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTMedicineById" parameterType="Long">
+        delete from t_medicine where id = #{id}
+    </delete>
+
+    <delete id="deleteTMedicineByIds" parameterType="String">
+        delete from t_medicine where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 155 - 0
ruoyi-system/src/main/resources/mapper/business/TOrganizationMapper.xml

@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.business.mapper.TOrganizationMapper">
+    
+    <resultMap type="TOrganization" id="TOrganizationResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="code"    column="code"    />
+        <result property="type"    column="type"    />
+        <result property="provinceCode"    column="province_code"    />
+        <result property="cityCode"    column="city_code"    />
+        <result property="countryCode"    column="country_code"    />
+        <result property="concat"    column="concat"    />
+        <result property="phone"    column="phone"    />
+        <result property="status"    column="status"    />
+        <result property="parentId"    column="parent_id"    />
+        <result property="topId"    column="top_id"    />
+        <result property="sort"    column="sort"    />
+        <result property="address"    column="address"    />
+        <result property="longitude"    column="longitude"    />
+        <result property="latitude"    column="latitude"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="revision"    column="revision"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTOrganizationVo">
+        select id, name, code, type, province_code, city_code, country_code, concat, phone, status, parent_id, top_id, sort, address, longitude, latitude, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_organization
+    </sql>
+
+    <select id="selectTOrganizationList" parameterType="TOrganization" resultMap="TOrganizationResult">
+        <include refid="selectTOrganizationVo"/>
+        <where>  
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="code != null  and code != ''"> and code like concat('%', #{code}, '%')</if>
+            <if test="type != null "> and type = #{type}</if>
+            <if test="provinceCode != null  and provinceCode != ''"> and province_code = #{provinceCode}</if>
+            <if test="cityCode != null  and cityCode != ''"> and city_code = #{cityCode}</if>
+            <if test="countryCode != null  and countryCode != ''"> and country_code = #{countryCode}</if>
+            <if test="concat != null  and concat != ''"> and concat = #{concat}</if>
+            <if test="phone != null  and phone != ''"> and phone = #{phone}</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="parentId != null "> and parent_id = #{parentId}</if>
+            <if test="topId != null "> and top_id = #{topId}</if>
+            <if test="sort != null "> and sort = #{sort}</if>
+            <if test="address != null  and address != ''"> and address = #{address}</if>
+            <if test="longitude != null  and longitude != ''"> and longitude = #{longitude}</if>
+            <if test="latitude != null  and latitude != ''"> and latitude = #{latitude}</if>
+            <if test="revision != null "> and revision = #{revision}</if>
+        </where>
+    </select>
+    
+    <select id="selectTOrganizationById" parameterType="Long" resultMap="TOrganizationResult">
+        <include refid="selectTOrganizationVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTOrganization" parameterType="TOrganization" useGeneratedKeys="true" keyProperty="id">
+        insert into t_organization
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="name != null">name,</if>
+            <if test="code != null">code,</if>
+            <if test="type != null">type,</if>
+            <if test="provinceCode != null">province_code,</if>
+            <if test="cityCode != null">city_code,</if>
+            <if test="countryCode != null">country_code,</if>
+            <if test="concat != null">concat,</if>
+            <if test="phone != null">phone,</if>
+            <if test="status != null">status,</if>
+            <if test="parentId != null">parent_id,</if>
+            <if test="topId != null">top_id,</if>
+            <if test="sort != null">sort,</if>
+            <if test="address != null">address,</if>
+            <if test="longitude != null">longitude,</if>
+            <if test="latitude != null">latitude,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="revision != null">revision,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="name != null">#{name},</if>
+            <if test="code != null">#{code},</if>
+            <if test="type != null">#{type},</if>
+            <if test="provinceCode != null">#{provinceCode},</if>
+            <if test="cityCode != null">#{cityCode},</if>
+            <if test="countryCode != null">#{countryCode},</if>
+            <if test="concat != null">#{concat},</if>
+            <if test="phone != null">#{phone},</if>
+            <if test="status != null">#{status},</if>
+            <if test="parentId != null">#{parentId},</if>
+            <if test="topId != null">#{topId},</if>
+            <if test="sort != null">#{sort},</if>
+            <if test="address != null">#{address},</if>
+            <if test="longitude != null">#{longitude},</if>
+            <if test="latitude != null">#{latitude},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="revision != null">#{revision},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTOrganization" parameterType="TOrganization">
+        update t_organization
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null">name = #{name},</if>
+            <if test="code != null">code = #{code},</if>
+            <if test="type != null">type = #{type},</if>
+            <if test="provinceCode != null">province_code = #{provinceCode},</if>
+            <if test="cityCode != null">city_code = #{cityCode},</if>
+            <if test="countryCode != null">country_code = #{countryCode},</if>
+            <if test="concat != null">concat = #{concat},</if>
+            <if test="phone != null">phone = #{phone},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="parentId != null">parent_id = #{parentId},</if>
+            <if test="topId != null">top_id = #{topId},</if>
+            <if test="sort != null">sort = #{sort},</if>
+            <if test="address != null">address = #{address},</if>
+            <if test="longitude != null">longitude = #{longitude},</if>
+            <if test="latitude != null">latitude = #{latitude},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="revision != null">revision = #{revision},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTOrganizationById" parameterType="Long">
+        delete from t_organization where id = #{id}
+    </delete>
+
+    <delete id="deleteTOrganizationByIds" parameterType="String">
+        delete from t_organization where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 100 - 0
ruoyi-system/src/main/resources/mapper/business/TPositionMapper.xml

@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.business.mapper.TPositionMapper">
+    
+    <resultMap type="TPosition" id="TPositionResult">
+        <result property="id"    column="id"    />
+        <result property="organizationId"    column="organization_id"    />
+        <result property="deviceId"    column="device_id"    />
+        <result property="code"    column="code"    />
+        <result property="name"    column="name"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="revision"    column="revision"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTPositionVo">
+        select id, organization_id, device_id, code, name, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_position
+    </sql>
+
+    <select id="selectTPositionList" parameterType="TPosition" resultMap="TPositionResult">
+        <include refid="selectTPositionVo"/>
+        <where>  
+            <if test="organizationId != null "> and organization_id = #{organizationId}</if>
+            <if test="deviceId != null "> and device_id = #{deviceId}</if>
+            <if test="code != null  and code != ''"> and code like concat('%', #{code}, '%')</if>
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="revision != null "> and revision = #{revision}</if>
+        </where>
+    </select>
+    
+    <select id="selectTPositionById" parameterType="Long" resultMap="TPositionResult">
+        <include refid="selectTPositionVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTPosition" parameterType="TPosition" useGeneratedKeys="true" keyProperty="id">
+        insert into t_position
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="organizationId != null">organization_id,</if>
+            <if test="deviceId != null">device_id,</if>
+            <if test="code != null">code,</if>
+            <if test="name != null">name,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="revision != null">revision,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="organizationId != null">#{organizationId},</if>
+            <if test="deviceId != null">#{deviceId},</if>
+            <if test="code != null">#{code},</if>
+            <if test="name != null">#{name},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="revision != null">#{revision},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTPosition" parameterType="TPosition">
+        update t_position
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="organizationId != null">organization_id = #{organizationId},</if>
+            <if test="deviceId != null">device_id = #{deviceId},</if>
+            <if test="code != null">code = #{code},</if>
+            <if test="name != null">name = #{name},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="revision != null">revision = #{revision},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTPositionById" parameterType="Long">
+        delete from t_position where id = #{id}
+    </delete>
+
+    <delete id="deleteTPositionByIds" parameterType="String">
+        delete from t_position where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 120 - 0
ruoyi-system/src/main/resources/mapper/business/TQualityConfMapper.xml

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.business.mapper.TQualityConfMapper">
+    
+    <resultMap type="TQualityConf" id="TQualityConfResult">
+        <result property="id"    column="id"    />
+        <result property="organizationId"    column="organization_id"    />
+        <result property="itemId"    column="item_id"    />
+        <result property="resultValue"    column="result_value"    />
+        <result property="floatRate"    column="float_rate"    />
+        <result property="highValue"    column="high_value"    />
+        <result property="lowValue"    column="low_value"    />
+        <result property="beginTime"    column="begin_time"    />
+        <result property="endTime"    column="end_time"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="revision"    column="revision"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectTQualityConfVo">
+        select id, organization_id, item_id, result_value, float_rate, high_value, low_value, begin_time, end_time, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_quality_conf
+    </sql>
+
+    <select id="selectTQualityConfList" parameterType="TQualityConf" resultMap="TQualityConfResult">
+        <include refid="selectTQualityConfVo"/>
+        <where>  
+            <if test="organizationId != null "> and organization_id = #{organizationId}</if>
+            <if test="itemId != null "> and item_id = #{itemId}</if>
+            <if test="resultValue != null "> and result_value = #{resultValue}</if>
+            <if test="floatRate != null "> and float_rate = #{floatRate}</if>
+            <if test="highValue != null "> and high_value = #{highValue}</if>
+            <if test="lowValue != null "> and low_value = #{lowValue}</if>
+            <if test="beginTime != null "> and begin_time = #{beginTime}</if>
+            <if test="endTime != null "> and end_time = #{endTime}</if>
+            <if test="revision != null "> and revision = #{revision}</if>
+        </where>
+    </select>
+    
+    <select id="selectTQualityConfById" parameterType="Long" resultMap="TQualityConfResult">
+        <include refid="selectTQualityConfVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertTQualityConf" parameterType="TQualityConf" useGeneratedKeys="true" keyProperty="id">
+        insert into t_quality_conf
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="organizationId != null">organization_id,</if>
+            <if test="itemId != null">item_id,</if>
+            <if test="resultValue != null">result_value,</if>
+            <if test="floatRate != null">float_rate,</if>
+            <if test="highValue != null">high_value,</if>
+            <if test="lowValue != null">low_value,</if>
+            <if test="beginTime != null">begin_time,</if>
+            <if test="endTime != null">end_time,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="revision != null">revision,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="organizationId != null">#{organizationId},</if>
+            <if test="itemId != null">#{itemId},</if>
+            <if test="resultValue != null">#{resultValue},</if>
+            <if test="floatRate != null">#{floatRate},</if>
+            <if test="highValue != null">#{highValue},</if>
+            <if test="lowValue != null">#{lowValue},</if>
+            <if test="beginTime != null">#{beginTime},</if>
+            <if test="endTime != null">#{endTime},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="revision != null">#{revision},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTQualityConf" parameterType="TQualityConf">
+        update t_quality_conf
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="organizationId != null">organization_id = #{organizationId},</if>
+            <if test="itemId != null">item_id = #{itemId},</if>
+            <if test="resultValue != null">result_value = #{resultValue},</if>
+            <if test="floatRate != null">float_rate = #{floatRate},</if>
+            <if test="highValue != null">high_value = #{highValue},</if>
+            <if test="lowValue != null">low_value = #{lowValue},</if>
+            <if test="beginTime != null">begin_time = #{beginTime},</if>
+            <if test="endTime != null">end_time = #{endTime},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="revision != null">revision = #{revision},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteTQualityConfById" parameterType="Long">
+        delete from t_quality_conf where id = #{id}
+    </delete>
+
+    <delete id="deleteTQualityConfByIds" parameterType="String">
+        delete from t_quality_conf where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>