فهرست منبع

新增同步数据需要的SqlServer相关的接口查询

王苗苗 3 هفته پیش
والد
کامیت
6219a77e83

+ 4 - 28
.idea/workspace.xml

@@ -5,32 +5,8 @@
   </component>
   <component name="ChangeListManager">
     <list default="true" id="494e7e12-0e43-41f1-b914-44d06666de04" name="Changes" comment="">
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/domain/BizWaterWork.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/domain/SysAssayItem.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/domain/ZAssay.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/domain/ZAssayResult.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/domain/ZDeviceSample.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/domain/ZQualityValue.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/mapper/BizWaterWorkMapper.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/mapper/SysAssayItemMapper.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/mapper/ZAssayMapper.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/mapper/ZAssayResultMapper.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/mapper/ZDeviceSampleMapper.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/mapper/ZQualityValueMapper.java" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/resources/mapper/BizWaterWorkMapper.xml" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/resources/mapper/SysAssayItemMapper.xml" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/resources/mapper/ZAssayMapper.xml" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/resources/mapper/ZAssayResultMapper.xml" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/resources/mapper/ZDeviceSampleMapper.xml" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/main/resources/mapper/ZQualityValueMapper.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/.idea/compiler.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/controller/DataController.java" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/domain/BizDevice.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/domain/BizDevice.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/mapper/BizDeviceMapper.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/mapper/BizDeviceMapper.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/src/main/resources/mapper/BizDeviceMapper.xml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/mapper/BizDeviceMapper.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/target/classes/com/robot/remote/smartrobotremote/domain/BizDevice$BizDeviceBuilder.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/target/classes/com/robot/remote/smartrobotremote/domain/BizDevice.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/robot/remote/smartrobotremote/domain/BizDevice.class" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/target/classes/mapper/BizDeviceMapper.xml" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/mapper/BizDeviceMapper.xml" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -66,7 +42,7 @@
     "Spring Boot.SmartRobotRemoteApplication.executor": "Debug",
     "git-widget-placeholder": "master",
     "kotlin-language-version-configured": "true",
-    "last_opened_file_path": "/Users/wangmiaomiao/IdeaProjects/smart-robot-remote/src/main/java/com/robot/remote/smartrobotremote/domain",
+    "last_opened_file_path": "/Users/wangmiaomiao/IdeaProjects/smart-robot-remote/src/main/resources/mapper",
     "node.js.detected.package.eslint": "true",
     "node.js.detected.package.tslint": "true",
     "node.js.selected.package.eslint": "(autodetect)",
@@ -80,9 +56,9 @@
 }]]></component>
   <component name="RecentsManager">
     <key name="CopyFile.RECENT_KEYS">
+      <recent name="$PROJECT_DIR$/src/main/resources/mapper" />
       <recent name="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/domain" />
       <recent name="$PROJECT_DIR$/src/main/java/com/robot/remote/smartrobotremote/mapper" />
-      <recent name="$PROJECT_DIR$/src/main/resources/mapper" />
       <recent name="$PROJECT_DIR$" />
     </key>
     <key name="CopyClassDialog.RECENTS_KEY">
@@ -131,7 +107,7 @@
       <workItem from="1736944947909" duration="5000" />
       <workItem from="1736989247063" duration="600000" />
       <workItem from="1739515108280" duration="1054000" />
-      <workItem from="1741251749291" duration="2376000" />
+      <workItem from="1741251749291" duration="13463000" />
     </task>
     <servers />
   </component>

+ 110 - 0
src/main/java/com/robot/remote/smartrobotremote/controller/DataController.java

@@ -0,0 +1,110 @@
+package com.robot.remote.smartrobotremote.controller;
+
+import com.robot.remote.smartrobotremote.domain.*;
+import com.robot.remote.smartrobotremote.mapper.*;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+@Slf4j
+@RestController
+public class DataController {
+
+
+    @Autowired
+    private BizDeviceMapper deviceMapper;
+
+    @Autowired
+    private BizWaterWorkMapper waterWorkMapper;
+
+    @Autowired
+    private SysAssayItemMapper assayItemMapper;
+
+    @Autowired
+    private ZDeviceSampleMapper deviceSampleMapper;
+
+    @Autowired
+    private ZQualityValueMapper qualityValueMapper;
+
+    @Autowired
+    private ZAssayMapper assayMapper;
+
+    @Autowired
+    private ZAssayResultMapper assayResultMapper;
+
+    /**
+     * 查询组织【设备信息】列表
+     */
+    @GetMapping("/bizDeviceList")
+    public List<BizDevice> bizDeviceList(BizDevice reqBean)
+    {
+        return this.deviceMapper.selectBizDeviceList(reqBean);
+    }
+
+
+    /**
+     * 查询组织【水厂信息】列表
+     */
+    @GetMapping("/bizWaterWorkList")
+    public List<BizWaterWork> bizWaterWorkList(BizWaterWork reqBean)
+    {
+        return this.waterWorkMapper.selectBizWaterWorkList(reqBean);
+    }
+
+    /**
+     * 查询【化验项目】列表
+     */
+    @GetMapping("/assayItemList")
+    public List<SysAssayItem> assayItemList(SysAssayItem reqBean)
+    {
+        return this.assayItemMapper.selectSysAssayItemList(reqBean);
+    }
+
+
+    /**
+     * 查询【取样点位】列表
+     */
+    @GetMapping("/deviceSampleList")
+    public List<ZDeviceSample> deviceSampleList(ZDeviceSample reqBean)
+    {
+        return this.deviceSampleMapper.selectZDeviceSampleList(reqBean);
+    }
+
+
+    /**
+     * 查询【质控样配置】列表
+     */
+    @GetMapping("/qualityValueList")
+    public List<ZQualityValue> qualityValueList(ZQualityValue reqBean)
+    {
+        return this.qualityValueMapper.selectZQualityValueList(reqBean);
+    }
+
+
+    //--------------------上面的数据需要同步一次即可,下面的需要多次同步--------------------
+
+
+    /**
+     * 查询【化验结果】列表
+     */
+    @GetMapping("/assayList")
+    public List<ZAssay> assayList(ZAssay reqBean)
+    {
+        return this.assayMapper.selectZAssayList(reqBean);
+    }
+
+
+    /**
+     * 查询【化验结果明细】列表
+     */
+    @GetMapping("/assayResultList")
+    public List<ZAssayResult> assayResultList(ZAssayResult reqBean)
+    {
+        return this.assayResultMapper.selectZAssayResultList(reqBean);
+    }
+
+
+}

BIN
target/classes/com/robot/remote/smartrobotremote/controller/DataController.class