Browse Source

新增SqlServer需要同步的数据表处理

王苗苗 2 months ago
parent
commit
204970fbc2
44 changed files with 4183 additions and 505 deletions
  1. 1 0
      .idea/compiler.xml
  2. 45 7
      .idea/workspace.xml
  3. 365 99
      src/main/java/com/robot/remote/smartrobotremote/domain/BizDevice.java
  4. 306 0
      src/main/java/com/robot/remote/smartrobotremote/domain/BizWaterWork.java
  5. 40 0
      src/main/java/com/robot/remote/smartrobotremote/domain/SysAssayItem.java
  6. 306 0
      src/main/java/com/robot/remote/smartrobotremote/domain/ZAssay.java
  7. 474 0
      src/main/java/com/robot/remote/smartrobotremote/domain/ZAssayResult.java
  8. 113 0
      src/main/java/com/robot/remote/smartrobotremote/domain/ZDeviceSample.java
  9. 162 0
      src/main/java/com/robot/remote/smartrobotremote/domain/ZQualityValue.java
  10. 17 21
      src/main/java/com/robot/remote/smartrobotremote/mapper/BizDeviceMapper.java
  11. 63 0
      src/main/java/com/robot/remote/smartrobotremote/mapper/BizWaterWorkMapper.java
  12. 63 0
      src/main/java/com/robot/remote/smartrobotremote/mapper/SysAssayItemMapper.java
  13. 63 0
      src/main/java/com/robot/remote/smartrobotremote/mapper/ZAssayMapper.java
  14. 63 0
      src/main/java/com/robot/remote/smartrobotremote/mapper/ZAssayResultMapper.java
  15. 63 0
      src/main/java/com/robot/remote/smartrobotremote/mapper/ZDeviceSampleMapper.java
  16. 63 0
      src/main/java/com/robot/remote/smartrobotremote/mapper/ZQualityValueMapper.java
  17. 188 189
      src/main/resources/mapper/BizDeviceMapper.xml
  18. 163 0
      src/main/resources/mapper/BizWaterWorkMapper.xml
  19. 59 0
      src/main/resources/mapper/SysAssayItemMapper.xml
  20. 164 0
      src/main/resources/mapper/ZAssayMapper.xml
  21. 234 0
      src/main/resources/mapper/ZAssayResultMapper.xml
  22. 84 0
      src/main/resources/mapper/ZDeviceSampleMapper.xml
  23. 96 0
      src/main/resources/mapper/ZQualityValueMapper.xml
  24. BIN
      target/classes/com/robot/remote/smartrobotremote/domain/BizDevice$BizDeviceBuilder.class
  25. BIN
      target/classes/com/robot/remote/smartrobotremote/domain/BizDevice.class
  26. BIN
      target/classes/com/robot/remote/smartrobotremote/domain/BizWaterWork.class
  27. BIN
      target/classes/com/robot/remote/smartrobotremote/domain/SysAssayItem.class
  28. BIN
      target/classes/com/robot/remote/smartrobotremote/domain/ZAssay.class
  29. BIN
      target/classes/com/robot/remote/smartrobotremote/domain/ZAssayResult.class
  30. BIN
      target/classes/com/robot/remote/smartrobotremote/domain/ZDeviceSample.class
  31. BIN
      target/classes/com/robot/remote/smartrobotremote/domain/ZQualityValue.class
  32. BIN
      target/classes/com/robot/remote/smartrobotremote/mapper/BizWaterWorkMapper.class
  33. BIN
      target/classes/com/robot/remote/smartrobotremote/mapper/SysAssayItemMapper.class
  34. BIN
      target/classes/com/robot/remote/smartrobotremote/mapper/ZAssayMapper.class
  35. BIN
      target/classes/com/robot/remote/smartrobotremote/mapper/ZAssayResultMapper.class
  36. BIN
      target/classes/com/robot/remote/smartrobotremote/mapper/ZDeviceSampleMapper.class
  37. BIN
      target/classes/com/robot/remote/smartrobotremote/mapper/ZQualityValueMapper.class
  38. 188 189
      target/classes/mapper/BizDeviceMapper.xml
  39. 163 0
      target/classes/mapper/BizWaterWorkMapper.xml
  40. 59 0
      target/classes/mapper/SysAssayItemMapper.xml
  41. 164 0
      target/classes/mapper/ZAssayMapper.xml
  42. 234 0
      target/classes/mapper/ZAssayResultMapper.xml
  43. 84 0
      target/classes/mapper/ZDeviceSampleMapper.xml
  44. 96 0
      target/classes/mapper/ZQualityValueMapper.xml

+ 1 - 0
.idea/compiler.xml

@@ -2,6 +2,7 @@
 <project version="4">
   <component name="CompilerConfiguration">
     <annotationProcessing>
+      <profile default="true" name="Default" enabled="true" />
       <profile name="Maven default annotation processors profile" enabled="true">
         <sourceOutputDir name="target/generated-sources/annotations" />
         <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />

+ 45 - 7
.idea/workspace.xml

@@ -4,7 +4,34 @@
     <option name="autoReloadType" value="SELECTIVE" />
   </component>
   <component name="ChangeListManager">
-    <list default="true" id="494e7e12-0e43-41f1-b914-44d06666de04" name="Changes" comment="" />
+    <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 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" />
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -17,9 +44,12 @@
       </list>
     </option>
   </component>
-  <component name="ProjectColorInfo"><![CDATA[{
-  "associatedIndex": 6
-}]]></component>
+  <component name="Git.Settings">
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
+  </component>
+  <component name="ProjectColorInfo">{
+  &quot;associatedIndex&quot;: 6
+}</component>
   <component name="ProjectId" id="2rZDms9Sm1X0MozaUkRiWMPw3Mu" />
   <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
   <component name="ProjectViewState">
@@ -34,14 +64,15 @@
     "RequestMappingsPanelWidth1": "75",
     "RunOnceActivity.ShowReadmeOnStart": "true",
     "Spring Boot.SmartRobotRemoteApplication.executor": "Debug",
+    "git-widget-placeholder": "master",
     "kotlin-language-version-configured": "true",
-    "last_opened_file_path": "/Users/wangmiaomiao/IdeaProjects/smart-robot-remote",
+    "last_opened_file_path": "/Users/wangmiaomiao/IdeaProjects/smart-robot-remote/src/main/java/com/robot/remote/smartrobotremote/domain",
     "node.js.detected.package.eslint": "true",
     "node.js.detected.package.tslint": "true",
     "node.js.selected.package.eslint": "(autodetect)",
     "node.js.selected.package.tslint": "(autodetect)",
     "nodejs_package_manager_path": "npm",
-    "project.structure.last.edited": "Project",
+    "project.structure.last.edited": "Modules",
     "project.structure.proportion": "0.15",
     "project.structure.side.proportion": "0.2",
     "vue.rearranger.settings.migration": "true"
@@ -49,8 +80,10 @@
 }]]></component>
   <component name="RecentsManager">
     <key name="CopyFile.RECENT_KEYS">
-      <recent name="$PROJECT_DIR$" />
+      <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">
       <recent name="com.robot.remote.smartrobotremote.domain" />
@@ -94,6 +127,11 @@
       <option name="presentableId" value="Default" />
       <updated>1736757867945</updated>
       <workItem from="1736757869096" duration="8039000" />
+      <workItem from="1736821427479" duration="12746000" />
+      <workItem from="1736944947909" duration="5000" />
+      <workItem from="1736989247063" duration="600000" />
+      <workItem from="1739515108280" duration="1054000" />
+      <workItem from="1741251749291" duration="2376000" />
     </task>
     <servers />
   </component>

+ 365 - 99
src/main/java/com/robot/remote/smartrobotremote/domain/BizDevice.java

@@ -1,99 +1,365 @@
-package com.robot.remote.smartrobotremote.domain;
-
-import lombok.AllArgsConstructor;
-import lombok.Builder;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-
-import java.util.Date;
-
-/**
- * 设备对象 biz_device
- * 
- * @author slibra
- * @date 2024-09-26
- */
-
-@Builder
-@Data
-@AllArgsConstructor
-@NoArgsConstructor
-public class BizDevice
-{
-    private static final long serialVersionUID = 1L;
-
-    /** $column.columnComment */
-    private Long deviceId;
-
-    /** $column.columnComment */
-    private String deviceNo;
-
-    /** $column.columnComment */
-    private String deviceName;
-
-    /** $column.columnComment */
-    private String deviceSn;
-
-    /** $column.columnComment */
-    private String deviceModel;
-
-    /** $column.columnComment */
-    private String deviceMaker;
-
-    /** $column.columnComment */
-    private Long deviceWorks;
-
-    /** $column.columnComment */
-    private String deviceMaintainer;
-
-    /** $column.columnComment */
-    private String deviceTel;
-
-    /** $column.columnComment */
-    private String deviceType;
-
-    /** $column.columnComment */
-    private String deviceStatus;
-
-    /** $column.columnComment */
-    private String assayStatus;
-
-    /** $column.columnComment */
-    private Date assayTime;
-
-    /** $column.columnComment */
-    private Date repairTime;
-
-    /** $column.columnComment */
-    private String repairBy;
-
-    /** 故障代码 */
-    private String faultCode;
-
-    /** 结果续传文件名 */
-    private String deviceXujieJieguo;
-
-    /** 报警续传文件名 */
-    private String deviceXujieBaojing;
-
-    /** $column.columnComment */
-    private String deviceProvince;
-
-    /** $column.columnComment */
-    private String deviceCity;
-
-    /** $column.columnComment */
-    private String deviceArea;
-
-    /** $column.columnComment */
-    private String deviceLongitude;
-
-    /** $column.columnComment */
-    private String deviceLatitude;
-
-    /** $column.columnComment */
-    private String deviceAddress;
-
-    /** 设备类型(1:化验室,2:连续检测) */
-    private String type;
-}
+package com.robot.remote.smartrobotremote.domain;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+import java.util.Date;
+
+/**
+ * 【请填写功能名称】对象 biz_device
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public class BizDevice
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long deviceId;
+
+    /** $column.columnComment */
+    private String deviceNo;
+
+    /** $column.columnComment */
+    private String deviceName;
+
+    /** $column.columnComment */
+    private String deviceSn;
+
+    /** $column.columnComment */
+    private String deviceModel;
+
+    /** $column.columnComment */
+    private String deviceMaker;
+
+    /** $column.columnComment */
+    private Long deviceWorks;
+
+    /** $column.columnComment */
+    private String deviceMaintainer;
+
+    /** $column.columnComment */
+    private String deviceTel;
+
+    /** $column.columnComment */
+    private String deviceType;
+
+    /** $column.columnComment */
+    private String deviceStatus;
+
+    /** $column.columnComment */
+    private String assayStatus;
+
+    /** $column.columnComment */
+    private Date assayTime;
+
+    /** $column.columnComment */
+    private Date repairTime;
+
+    /** $column.columnComment */
+    private String repairBy;
+
+    /** 故障代码 */
+    private String faultCode;
+
+    /** 结果续传文件名 */
+    private String deviceXujieJieguo;
+
+    /** 报警续传文件名 */
+    private String deviceXujieBaojing;
+
+    /** $column.columnComment */
+    private String deviceProvince;
+
+    /** $column.columnComment */
+    private String deviceCity;
+
+    /** $column.columnComment */
+    private String deviceArea;
+
+    /** $column.columnComment */
+    private String deviceLongitude;
+
+    /** $column.columnComment */
+    private String deviceLatitude;
+
+    /** $column.columnComment */
+    private String deviceAddress;
+
+    /** 设备类型 */
+    private String type;
+
+    /** 创建者 */
+    private String createBy;
+
+    /** 创建时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+
+    /** 更新者 */
+    private String updateBy;
+
+    /** 更新时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+
+    public String getCreateBy() {
+        return createBy;
+    }
+
+    public void setCreateBy(String createBy) {
+        this.createBy = createBy;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getUpdateBy() {
+        return updateBy;
+    }
+
+    public void setUpdateBy(String updateBy) {
+        this.updateBy = updateBy;
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public void setDeviceId(Long deviceId)
+    {
+        this.deviceId = deviceId;
+    }
+
+    public Long getDeviceId() 
+    {
+        return deviceId;
+    }
+    public void setDeviceNo(String deviceNo) 
+    {
+        this.deviceNo = deviceNo;
+    }
+
+    public String getDeviceNo() 
+    {
+        return deviceNo;
+    }
+    public void setDeviceName(String deviceName) 
+    {
+        this.deviceName = deviceName;
+    }
+
+    public String getDeviceName() 
+    {
+        return deviceName;
+    }
+    public void setDeviceSn(String deviceSn) 
+    {
+        this.deviceSn = deviceSn;
+    }
+
+    public String getDeviceSn() 
+    {
+        return deviceSn;
+    }
+    public void setDeviceModel(String deviceModel) 
+    {
+        this.deviceModel = deviceModel;
+    }
+
+    public String getDeviceModel() 
+    {
+        return deviceModel;
+    }
+    public void setDeviceMaker(String deviceMaker) 
+    {
+        this.deviceMaker = deviceMaker;
+    }
+
+    public String getDeviceMaker() 
+    {
+        return deviceMaker;
+    }
+    public void setDeviceWorks(Long deviceWorks) 
+    {
+        this.deviceWorks = deviceWorks;
+    }
+
+    public Long getDeviceWorks() 
+    {
+        return deviceWorks;
+    }
+    public void setDeviceMaintainer(String deviceMaintainer) 
+    {
+        this.deviceMaintainer = deviceMaintainer;
+    }
+
+    public String getDeviceMaintainer() 
+    {
+        return deviceMaintainer;
+    }
+    public void setDeviceTel(String deviceTel) 
+    {
+        this.deviceTel = deviceTel;
+    }
+
+    public String getDeviceTel() 
+    {
+        return deviceTel;
+    }
+    public void setDeviceType(String deviceType) 
+    {
+        this.deviceType = deviceType;
+    }
+
+    public String getDeviceType() 
+    {
+        return deviceType;
+    }
+    public void setDeviceStatus(String deviceStatus) 
+    {
+        this.deviceStatus = deviceStatus;
+    }
+
+    public String getDeviceStatus() 
+    {
+        return deviceStatus;
+    }
+    public void setAssayStatus(String assayStatus) 
+    {
+        this.assayStatus = assayStatus;
+    }
+
+    public String getAssayStatus() 
+    {
+        return assayStatus;
+    }
+    public void setAssayTime(Date assayTime) 
+    {
+        this.assayTime = assayTime;
+    }
+
+    public Date getAssayTime() 
+    {
+        return assayTime;
+    }
+    public void setRepairTime(Date repairTime) 
+    {
+        this.repairTime = repairTime;
+    }
+
+    public Date getRepairTime() 
+    {
+        return repairTime;
+    }
+    public void setRepairBy(String repairBy) 
+    {
+        this.repairBy = repairBy;
+    }
+
+    public String getRepairBy() 
+    {
+        return repairBy;
+    }
+    public void setFaultCode(String faultCode) 
+    {
+        this.faultCode = faultCode;
+    }
+
+    public String getFaultCode() 
+    {
+        return faultCode;
+    }
+    public void setDeviceXujieJieguo(String deviceXujieJieguo) 
+    {
+        this.deviceXujieJieguo = deviceXujieJieguo;
+    }
+
+    public String getDeviceXujieJieguo() 
+    {
+        return deviceXujieJieguo;
+    }
+    public void setDeviceXujieBaojing(String deviceXujieBaojing) 
+    {
+        this.deviceXujieBaojing = deviceXujieBaojing;
+    }
+
+    public String getDeviceXujieBaojing() 
+    {
+        return deviceXujieBaojing;
+    }
+    public void setDeviceProvince(String deviceProvince) 
+    {
+        this.deviceProvince = deviceProvince;
+    }
+
+    public String getDeviceProvince() 
+    {
+        return deviceProvince;
+    }
+    public void setDeviceCity(String deviceCity) 
+    {
+        this.deviceCity = deviceCity;
+    }
+
+    public String getDeviceCity() 
+    {
+        return deviceCity;
+    }
+    public void setDeviceArea(String deviceArea) 
+    {
+        this.deviceArea = deviceArea;
+    }
+
+    public String getDeviceArea() 
+    {
+        return deviceArea;
+    }
+    public void setDeviceLongitude(String deviceLongitude) 
+    {
+        this.deviceLongitude = deviceLongitude;
+    }
+
+    public String getDeviceLongitude() 
+    {
+        return deviceLongitude;
+    }
+    public void setDeviceLatitude(String deviceLatitude) 
+    {
+        this.deviceLatitude = deviceLatitude;
+    }
+
+    public String getDeviceLatitude() 
+    {
+        return deviceLatitude;
+    }
+    public void setDeviceAddress(String deviceAddress) 
+    {
+        this.deviceAddress = deviceAddress;
+    }
+
+    public String getDeviceAddress() 
+    {
+        return deviceAddress;
+    }
+    public void setType(String type) 
+    {
+        this.type = type;
+    }
+
+    public String getType() 
+    {
+        return type;
+    }
+
+
+}

+ 306 - 0
src/main/java/com/robot/remote/smartrobotremote/domain/BizWaterWork.java

@@ -0,0 +1,306 @@
+package com.robot.remote.smartrobotremote.domain;
+
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+import java.util.Date;
+
+/**
+ * 部门对象 biz_water_work
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public class BizWaterWork
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 水厂id */
+    private Long worksId;
+
+    /** 父部门id */
+    private Long parentId;
+
+    /** 祖级列表 */
+    private String ancestors;
+
+    /** 部门名称 */
+    private String worksName;
+
+    /** 显示顺序 */
+    private Long orderNum;
+
+    /** 水厂状态(0正常 1停用) */
+    private String worksStatus;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private String delFlag;
+
+    /** 水厂编号 */
+    private String worksNo;
+
+    /** $column.columnComment */
+    private String worksProvince;
+
+    /** $column.columnComment */
+    private String worksCity;
+
+    /** $column.columnComment */
+    private String worksArea;
+
+    /** 水厂经度 */
+    private String worksLongitude;
+
+    /** 水厂纬度 */
+    private String worksLatitude;
+
+    /** $column.columnComment */
+    private String worksAddress;
+
+    /** 设备数量 */
+    private Long worksCount;
+
+    /** 水厂类型(1:平台;2:集团;3:水厂 4:区域中心) */
+    private String worksType;
+
+    /** 是否为区域中心(0:是;1:否) */
+    private String worksCenter;
+
+    /** 水厂所属集团 */
+    private Long worksBelong;
+
+    /** 水厂联系人 */
+    private String worksMaintainer;
+
+    /** 联系电话 */
+    private String worksTel;
+
+    /** 创建者 */
+    private String createBy;
+
+    /** 创建时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+
+    /** 更新者 */
+    private String updateBy;
+
+    /** 更新时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+
+    public String getCreateBy() {
+        return createBy;
+    }
+
+    public void setCreateBy(String createBy) {
+        this.createBy = createBy;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getUpdateBy() {
+        return updateBy;
+    }
+
+    public void setUpdateBy(String updateBy) {
+        this.updateBy = updateBy;
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public void setWorksId(Long worksId)
+    {
+        this.worksId = worksId;
+    }
+
+    public Long getWorksId() 
+    {
+        return worksId;
+    }
+    public void setParentId(Long parentId) 
+    {
+        this.parentId = parentId;
+    }
+
+    public Long getParentId() 
+    {
+        return parentId;
+    }
+    public void setAncestors(String ancestors) 
+    {
+        this.ancestors = ancestors;
+    }
+
+    public String getAncestors() 
+    {
+        return ancestors;
+    }
+    public void setWorksName(String worksName) 
+    {
+        this.worksName = worksName;
+    }
+
+    public String getWorksName() 
+    {
+        return worksName;
+    }
+    public void setOrderNum(Long orderNum) 
+    {
+        this.orderNum = orderNum;
+    }
+
+    public Long getOrderNum() 
+    {
+        return orderNum;
+    }
+    public void setWorksStatus(String worksStatus) 
+    {
+        this.worksStatus = worksStatus;
+    }
+
+    public String getWorksStatus() 
+    {
+        return worksStatus;
+    }
+    public void setDelFlag(String delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag() 
+    {
+        return delFlag;
+    }
+    public void setWorksNo(String worksNo) 
+    {
+        this.worksNo = worksNo;
+    }
+
+    public String getWorksNo() 
+    {
+        return worksNo;
+    }
+    public void setWorksProvince(String worksProvince) 
+    {
+        this.worksProvince = worksProvince;
+    }
+
+    public String getWorksProvince() 
+    {
+        return worksProvince;
+    }
+    public void setWorksCity(String worksCity) 
+    {
+        this.worksCity = worksCity;
+    }
+
+    public String getWorksCity() 
+    {
+        return worksCity;
+    }
+    public void setWorksArea(String worksArea) 
+    {
+        this.worksArea = worksArea;
+    }
+
+    public String getWorksArea() 
+    {
+        return worksArea;
+    }
+    public void setWorksLongitude(String worksLongitude) 
+    {
+        this.worksLongitude = worksLongitude;
+    }
+
+    public String getWorksLongitude() 
+    {
+        return worksLongitude;
+    }
+    public void setWorksLatitude(String worksLatitude) 
+    {
+        this.worksLatitude = worksLatitude;
+    }
+
+    public String getWorksLatitude() 
+    {
+        return worksLatitude;
+    }
+    public void setWorksAddress(String worksAddress) 
+    {
+        this.worksAddress = worksAddress;
+    }
+
+    public String getWorksAddress() 
+    {
+        return worksAddress;
+    }
+    public void setWorksCount(Long worksCount) 
+    {
+        this.worksCount = worksCount;
+    }
+
+    public Long getWorksCount() 
+    {
+        return worksCount;
+    }
+    public void setWorksType(String worksType) 
+    {
+        this.worksType = worksType;
+    }
+
+    public String getWorksType() 
+    {
+        return worksType;
+    }
+    public void setWorksCenter(String worksCenter) 
+    {
+        this.worksCenter = worksCenter;
+    }
+
+    public String getWorksCenter() 
+    {
+        return worksCenter;
+    }
+    public void setWorksBelong(Long worksBelong) 
+    {
+        this.worksBelong = worksBelong;
+    }
+
+    public Long getWorksBelong() 
+    {
+        return worksBelong;
+    }
+    public void setWorksMaintainer(String worksMaintainer) 
+    {
+        this.worksMaintainer = worksMaintainer;
+    }
+
+    public String getWorksMaintainer() 
+    {
+        return worksMaintainer;
+    }
+    public void setWorksTel(String worksTel) 
+    {
+        this.worksTel = worksTel;
+    }
+
+    public String getWorksTel() 
+    {
+        return worksTel;
+    }
+
+
+}

+ 40 - 0
src/main/java/com/robot/remote/smartrobotremote/domain/SysAssayItem.java

@@ -0,0 +1,40 @@
+package com.robot.remote.smartrobotremote.domain;
+
+
+/**
+ * 化验项目编号名称对照对象 sys_assay_item
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public class SysAssayItem
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 化验项目编号 */
+    private Long assayItem;
+
+    /** 化验项目名称 */
+    private String itemName;
+
+    public void setAssayItem(Long assayItem) 
+    {
+        this.assayItem = assayItem;
+    }
+
+    public Long getAssayItem() 
+    {
+        return assayItem;
+    }
+    public void setItemName(String itemName) 
+    {
+        this.itemName = itemName;
+    }
+
+    public String getItemName() 
+    {
+        return itemName;
+    }
+
+
+}

+ 306 - 0
src/main/java/com/robot/remote/smartrobotremote/domain/ZAssay.java

@@ -0,0 +1,306 @@
+package com.robot.remote.smartrobotremote.domain;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+import java.util.Date;
+
+
+/**
+ * 化验项目信息对象 z_assay
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public class ZAssay
+{
+    private static final long serialVersionUID = 1L;
+
+    /** id */
+    private Long assayId;
+
+    /** 化验唯一编号 */
+    private String assayNo;
+
+    /** 设备编号 */
+    private String deviceNo;
+
+    /** 化验类型 */
+    private String assayType;
+
+    /** 化验实时大流程 */
+    private String assayBigprocess;
+
+    /** 化验实时小流程 */
+    private String assaySmallprocess;
+
+    /** 化验开始时间 */
+    private String beginTime;
+
+    /** 化验结束时间 */
+    private String endTime;
+
+    /** 化验日期 */
+    private String assayDate;
+
+    /** 化验人 */
+    private String assayBy;
+
+    /** 化验版本 */
+    private String version;
+
+    /** 流程名 */
+    private String stepName;
+
+    /** 总步进 */
+    private String stepTotal;
+
+    /** 当前步进 */
+    private String stepNow;
+
+    /** 步进信息1 */
+    private String stepInfo1;
+
+    /** 步进信息2 */
+    private String stepInfo2;
+
+    /** 步进信息3 */
+    private String stepInfo3;
+
+    /** 化验状态 */
+    private String assayStatus;
+
+    /** 化验方式(0-自动化验,1-手动化验) */
+    private String assayMethod;
+
+    /** $column.columnComment */
+    private Date cPangusyncsourcetimestamp;
+
+    /** 创建者 */
+    private String createBy;
+
+    /** 创建时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+
+    /** 更新者 */
+    private String updateBy;
+
+    /** 更新时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+
+    public String getCreateBy() {
+        return createBy;
+    }
+
+    public void setCreateBy(String createBy) {
+        this.createBy = createBy;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getUpdateBy() {
+        return updateBy;
+    }
+
+    public void setUpdateBy(String updateBy) {
+        this.updateBy = updateBy;
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public void setAssayId(Long assayId)
+    {
+        this.assayId = assayId;
+    }
+
+    public Long getAssayId() 
+    {
+        return assayId;
+    }
+    public void setAssayNo(String assayNo) 
+    {
+        this.assayNo = assayNo;
+    }
+
+    public String getAssayNo() 
+    {
+        return assayNo;
+    }
+    public void setDeviceNo(String deviceNo) 
+    {
+        this.deviceNo = deviceNo;
+    }
+
+    public String getDeviceNo() 
+    {
+        return deviceNo;
+    }
+    public void setAssayType(String assayType) 
+    {
+        this.assayType = assayType;
+    }
+
+    public String getAssayType() 
+    {
+        return assayType;
+    }
+    public void setAssayBigprocess(String assayBigprocess) 
+    {
+        this.assayBigprocess = assayBigprocess;
+    }
+
+    public String getAssayBigprocess() 
+    {
+        return assayBigprocess;
+    }
+    public void setAssaySmallprocess(String assaySmallprocess) 
+    {
+        this.assaySmallprocess = assaySmallprocess;
+    }
+
+    public String getAssaySmallprocess() 
+    {
+        return assaySmallprocess;
+    }
+    public void setBeginTime(String beginTime) 
+    {
+        this.beginTime = beginTime;
+    }
+
+    public String getBeginTime() 
+    {
+        return beginTime;
+    }
+    public void setEndTime(String endTime) 
+    {
+        this.endTime = endTime;
+    }
+
+    public String getEndTime() 
+    {
+        return endTime;
+    }
+    public void setAssayDate(String assayDate) 
+    {
+        this.assayDate = assayDate;
+    }
+
+    public String getAssayDate() 
+    {
+        return assayDate;
+    }
+    public void setAssayBy(String assayBy) 
+    {
+        this.assayBy = assayBy;
+    }
+
+    public String getAssayBy() 
+    {
+        return assayBy;
+    }
+    public void setVersion(String version) 
+    {
+        this.version = version;
+    }
+
+    public String getVersion() 
+    {
+        return version;
+    }
+    public void setStepName(String stepName) 
+    {
+        this.stepName = stepName;
+    }
+
+    public String getStepName() 
+    {
+        return stepName;
+    }
+    public void setStepTotal(String stepTotal) 
+    {
+        this.stepTotal = stepTotal;
+    }
+
+    public String getStepTotal() 
+    {
+        return stepTotal;
+    }
+    public void setStepNow(String stepNow) 
+    {
+        this.stepNow = stepNow;
+    }
+
+    public String getStepNow() 
+    {
+        return stepNow;
+    }
+    public void setStepInfo1(String stepInfo1) 
+    {
+        this.stepInfo1 = stepInfo1;
+    }
+
+    public String getStepInfo1() 
+    {
+        return stepInfo1;
+    }
+    public void setStepInfo2(String stepInfo2) 
+    {
+        this.stepInfo2 = stepInfo2;
+    }
+
+    public String getStepInfo2() 
+    {
+        return stepInfo2;
+    }
+    public void setStepInfo3(String stepInfo3) 
+    {
+        this.stepInfo3 = stepInfo3;
+    }
+
+    public String getStepInfo3() 
+    {
+        return stepInfo3;
+    }
+    public void setAssayStatus(String assayStatus) 
+    {
+        this.assayStatus = assayStatus;
+    }
+
+    public String getAssayStatus() 
+    {
+        return assayStatus;
+    }
+    public void setAssayMethod(String assayMethod) 
+    {
+        this.assayMethod = assayMethod;
+    }
+
+    public String getAssayMethod() 
+    {
+        return assayMethod;
+    }
+    public void setcPangusyncsourcetimestamp(Date cPangusyncsourcetimestamp) 
+    {
+        this.cPangusyncsourcetimestamp = cPangusyncsourcetimestamp;
+    }
+
+    public Date getcPangusyncsourcetimestamp() 
+    {
+        return cPangusyncsourcetimestamp;
+    }
+
+
+}

+ 474 - 0
src/main/java/com/robot/remote/smartrobotremote/domain/ZAssayResult.java

@@ -0,0 +1,474 @@
+package com.robot.remote.smartrobotremote.domain;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+import java.util.Date;
+
+
+/**
+ * 化验结果明细对象 z_assay_result
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public class ZAssayResult
+{
+    private static final long serialVersionUID = 1L;
+
+    /** id */
+    private Long resultId;
+
+    /** 化验唯一编号 */
+    private String assayNo;
+
+    /** 结果编号 */
+    private String resultNo;
+
+    /** 样品编号 */
+    private String sampleNo;
+
+    /** 样品体积 */
+    private Long sampleVolume;
+
+    /** 化验设备编号 */
+    private String deviceNo;
+
+    /** 化验项目 */
+    private String assayItem;
+
+    /** 化验浓度值 */
+    private Long resultConcentration;
+
+    /** 化验ABS值(吸光度) */
+    private Long resultAbs;
+
+    /** 结果日期 */
+    private String resultDate;
+
+    /** 结果时间 */
+    private String resultTime;
+
+    /** 曲线k0 */
+    private Long curveK0;
+
+    /** 曲线k1 */
+    private Long curveK1;
+
+    /** 曲线唯一id */
+    private Long curveId;
+
+    /** $column.columnComment */
+    private Long j1901S01;
+
+    /** $column.columnComment */
+    private Long j1901D01;
+
+    /** $column.columnComment */
+    private Long j1901R01;
+
+    /** $column.columnComment */
+    private Long j1901S1;
+
+    /** $column.columnComment */
+    private Long j1901D1;
+
+    /** $column.columnComment */
+    private Long j1901R1;
+
+    /** $column.columnComment */
+    private Long j1901S02;
+
+    /** $column.columnComment */
+    private Long j1901D02;
+
+    /** $column.columnComment */
+    private Long j1901R02;
+
+    /** $column.columnComment */
+    private Long j1901S2;
+
+    /** $column.columnComment */
+    private Long j1901D2;
+
+    /** $column.columnComment */
+    private Long j1901R2;
+
+    /** 化验分类 */
+    private String assayType;
+
+    /** 样品位 */
+    private Long samplePost;
+
+    /** 化验温度 */
+    private Long resultWendu;
+
+    /** 化验湿度 */
+    private Long resultShidu;
+
+    /** 原始浓度值 */
+    private Long originalConcentration;
+
+    /** 曲线编号 */
+    private String curveNo;
+
+    /** (0:未读,1:已读) */
+    private String readFlag;
+
+    /** $column.columnComment */
+    private Date cPangusyncsourcetimestamp;
+
+    /** 创建者 */
+    private String createBy;
+
+    /** 创建时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+
+    /** 更新者 */
+    private String updateBy;
+
+    /** 更新时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+
+    public String getCreateBy() {
+        return createBy;
+    }
+
+    public void setCreateBy(String createBy) {
+        this.createBy = createBy;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getUpdateBy() {
+        return updateBy;
+    }
+
+    public void setUpdateBy(String updateBy) {
+        this.updateBy = updateBy;
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public void setResultId(Long resultId)
+    {
+        this.resultId = resultId;
+    }
+
+    public Long getResultId() 
+    {
+        return resultId;
+    }
+    public void setAssayNo(String assayNo) 
+    {
+        this.assayNo = assayNo;
+    }
+
+    public String getAssayNo() 
+    {
+        return assayNo;
+    }
+    public void setResultNo(String resultNo) 
+    {
+        this.resultNo = resultNo;
+    }
+
+    public String getResultNo() 
+    {
+        return resultNo;
+    }
+    public void setSampleNo(String sampleNo) 
+    {
+        this.sampleNo = sampleNo;
+    }
+
+    public String getSampleNo() 
+    {
+        return sampleNo;
+    }
+    public void setSampleVolume(Long sampleVolume) 
+    {
+        this.sampleVolume = sampleVolume;
+    }
+
+    public Long getSampleVolume() 
+    {
+        return sampleVolume;
+    }
+    public void setDeviceNo(String deviceNo) 
+    {
+        this.deviceNo = deviceNo;
+    }
+
+    public String getDeviceNo() 
+    {
+        return deviceNo;
+    }
+    public void setAssayItem(String assayItem) 
+    {
+        this.assayItem = assayItem;
+    }
+
+    public String getAssayItem() 
+    {
+        return assayItem;
+    }
+    public void setResultConcentration(Long resultConcentration) 
+    {
+        this.resultConcentration = resultConcentration;
+    }
+
+    public Long getResultConcentration() 
+    {
+        return resultConcentration;
+    }
+    public void setResultAbs(Long resultAbs) 
+    {
+        this.resultAbs = resultAbs;
+    }
+
+    public Long getResultAbs() 
+    {
+        return resultAbs;
+    }
+    public void setResultDate(String resultDate) 
+    {
+        this.resultDate = resultDate;
+    }
+
+    public String getResultDate() 
+    {
+        return resultDate;
+    }
+    public void setResultTime(String resultTime) 
+    {
+        this.resultTime = resultTime;
+    }
+
+    public String getResultTime() 
+    {
+        return resultTime;
+    }
+    public void setCurveK0(Long curveK0) 
+    {
+        this.curveK0 = curveK0;
+    }
+
+    public Long getCurveK0() 
+    {
+        return curveK0;
+    }
+    public void setCurveK1(Long curveK1) 
+    {
+        this.curveK1 = curveK1;
+    }
+
+    public Long getCurveK1() 
+    {
+        return curveK1;
+    }
+    public void setCurveId(Long curveId) 
+    {
+        this.curveId = curveId;
+    }
+
+    public Long getCurveId() 
+    {
+        return curveId;
+    }
+    public void setJ1901S01(Long j1901S01) 
+    {
+        this.j1901S01 = j1901S01;
+    }
+
+    public Long getJ1901S01() 
+    {
+        return j1901S01;
+    }
+    public void setJ1901D01(Long j1901D01) 
+    {
+        this.j1901D01 = j1901D01;
+    }
+
+    public Long getJ1901D01() 
+    {
+        return j1901D01;
+    }
+    public void setJ1901R01(Long j1901R01) 
+    {
+        this.j1901R01 = j1901R01;
+    }
+
+    public Long getJ1901R01() 
+    {
+        return j1901R01;
+    }
+    public void setJ1901S1(Long j1901S1) 
+    {
+        this.j1901S1 = j1901S1;
+    }
+
+    public Long getJ1901S1() 
+    {
+        return j1901S1;
+    }
+    public void setJ1901D1(Long j1901D1) 
+    {
+        this.j1901D1 = j1901D1;
+    }
+
+    public Long getJ1901D1() 
+    {
+        return j1901D1;
+    }
+    public void setJ1901R1(Long j1901R1) 
+    {
+        this.j1901R1 = j1901R1;
+    }
+
+    public Long getJ1901R1() 
+    {
+        return j1901R1;
+    }
+    public void setJ1901S02(Long j1901S02) 
+    {
+        this.j1901S02 = j1901S02;
+    }
+
+    public Long getJ1901S02() 
+    {
+        return j1901S02;
+    }
+    public void setJ1901D02(Long j1901D02) 
+    {
+        this.j1901D02 = j1901D02;
+    }
+
+    public Long getJ1901D02() 
+    {
+        return j1901D02;
+    }
+    public void setJ1901R02(Long j1901R02) 
+    {
+        this.j1901R02 = j1901R02;
+    }
+
+    public Long getJ1901R02() 
+    {
+        return j1901R02;
+    }
+    public void setJ1901S2(Long j1901S2) 
+    {
+        this.j1901S2 = j1901S2;
+    }
+
+    public Long getJ1901S2() 
+    {
+        return j1901S2;
+    }
+    public void setJ1901D2(Long j1901D2) 
+    {
+        this.j1901D2 = j1901D2;
+    }
+
+    public Long getJ1901D2() 
+    {
+        return j1901D2;
+    }
+    public void setJ1901R2(Long j1901R2) 
+    {
+        this.j1901R2 = j1901R2;
+    }
+
+    public Long getJ1901R2() 
+    {
+        return j1901R2;
+    }
+    public void setAssayType(String assayType) 
+    {
+        this.assayType = assayType;
+    }
+
+    public String getAssayType() 
+    {
+        return assayType;
+    }
+    public void setSamplePost(Long samplePost) 
+    {
+        this.samplePost = samplePost;
+    }
+
+    public Long getSamplePost() 
+    {
+        return samplePost;
+    }
+    public void setResultWendu(Long resultWendu) 
+    {
+        this.resultWendu = resultWendu;
+    }
+
+    public Long getResultWendu() 
+    {
+        return resultWendu;
+    }
+    public void setResultShidu(Long resultShidu) 
+    {
+        this.resultShidu = resultShidu;
+    }
+
+    public Long getResultShidu() 
+    {
+        return resultShidu;
+    }
+    public void setOriginalConcentration(Long originalConcentration) 
+    {
+        this.originalConcentration = originalConcentration;
+    }
+
+    public Long getOriginalConcentration() 
+    {
+        return originalConcentration;
+    }
+    public void setCurveNo(String curveNo) 
+    {
+        this.curveNo = curveNo;
+    }
+
+    public String getCurveNo() 
+    {
+        return curveNo;
+    }
+    public void setReadFlag(String readFlag) 
+    {
+        this.readFlag = readFlag;
+    }
+
+    public String getReadFlag() 
+    {
+        return readFlag;
+    }
+    public void setcPangusyncsourcetimestamp(Date cPangusyncsourcetimestamp) 
+    {
+        this.cPangusyncsourcetimestamp = cPangusyncsourcetimestamp;
+    }
+
+    public Date getcPangusyncsourcetimestamp() 
+    {
+        return cPangusyncsourcetimestamp;
+    }
+
+
+}

+ 113 - 0
src/main/java/com/robot/remote/smartrobotremote/domain/ZDeviceSample.java

@@ -0,0 +1,113 @@
+package com.robot.remote.smartrobotremote.domain;
+
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+import java.util.Date;
+
+/**
+ * 【请填写功能名称】对象 z_device_sample
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public class ZDeviceSample
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 设备样品对应关系id */
+    private Long sampleId;
+
+    /** 设备no */
+    private String deviceNo;
+
+    /** 化验样品编号 */
+    private String assayType;
+
+    /** 化验样品名称 */
+    private String itemName;
+
+    /** 创建者 */
+    private String createBy;
+
+    /** 创建时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+
+    /** 更新者 */
+    private String updateBy;
+
+    /** 更新时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+
+    public String getCreateBy() {
+        return createBy;
+    }
+
+    public void setCreateBy(String createBy) {
+        this.createBy = createBy;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getUpdateBy() {
+        return updateBy;
+    }
+
+    public void setUpdateBy(String updateBy) {
+        this.updateBy = updateBy;
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public void setSampleId(Long sampleId)
+    {
+        this.sampleId = sampleId;
+    }
+
+    public Long getSampleId() 
+    {
+        return sampleId;
+    }
+    public void setDeviceNo(String deviceNo) 
+    {
+        this.deviceNo = deviceNo;
+    }
+
+    public String getDeviceNo() 
+    {
+        return deviceNo;
+    }
+    public void setAssayType(String assayType) 
+    {
+        this.assayType = assayType;
+    }
+
+    public String getAssayType() 
+    {
+        return assayType;
+    }
+    public void setItemName(String itemName) 
+    {
+        this.itemName = itemName;
+    }
+
+    public String getItemName() 
+    {
+        return itemName;
+    }
+
+}

+ 162 - 0
src/main/java/com/robot/remote/smartrobotremote/domain/ZQualityValue.java

@@ -0,0 +1,162 @@
+package com.robot.remote.smartrobotremote.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+
+/**
+ * 水厂质控值对象 z_quality_value
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+public class ZQualityValue
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 记录id */
+    private Long valueId;
+
+    /** $column.columnComment */
+    private Long deviceWorks;
+
+    /** 化验项目 */
+    private String assayItem;
+
+    /** 质控值 */
+    private Long resultValue;
+
+    /** 有效结束时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date endTime;
+
+    /** 下限值 */
+    private Long lowValue;
+
+    /** 上限值 */
+    private Long highValue;
+
+    /** 有效开始时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date beginTime;
+
+    /** 创建者 */
+    private String createBy;
+
+    /** 创建时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+
+    /** 更新者 */
+    private String updateBy;
+
+    /** 更新时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
+
+    public String getCreateBy() {
+        return createBy;
+    }
+
+    public void setCreateBy(String createBy) {
+        this.createBy = createBy;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getUpdateBy() {
+        return updateBy;
+    }
+
+    public void setUpdateBy(String updateBy) {
+        this.updateBy = updateBy;
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public void setValueId(Long valueId)
+    {
+        this.valueId = valueId;
+    }
+
+    public Long getValueId() 
+    {
+        return valueId;
+    }
+    public void setDeviceWorks(Long deviceWorks) 
+    {
+        this.deviceWorks = deviceWorks;
+    }
+
+    public Long getDeviceWorks() 
+    {
+        return deviceWorks;
+    }
+    public void setAssayItem(String assayItem) 
+    {
+        this.assayItem = assayItem;
+    }
+
+    public String getAssayItem() 
+    {
+        return assayItem;
+    }
+    public void setResultValue(Long resultValue) 
+    {
+        this.resultValue = resultValue;
+    }
+
+    public Long getResultValue() 
+    {
+        return resultValue;
+    }
+    public void setEndTime(Date endTime) 
+    {
+        this.endTime = endTime;
+    }
+
+    public Date getEndTime() 
+    {
+        return endTime;
+    }
+    public void setLowValue(Long lowValue) 
+    {
+        this.lowValue = lowValue;
+    }
+
+    public Long getLowValue() 
+    {
+        return lowValue;
+    }
+    public void setHighValue(Long highValue) 
+    {
+        this.highValue = highValue;
+    }
+
+    public Long getHighValue() 
+    {
+        return highValue;
+    }
+    public void setBeginTime(Date beginTime) 
+    {
+        this.beginTime = beginTime;
+    }
+
+    public Date getBeginTime() 
+    {
+        return beginTime;
+    }
+
+}

+ 17 - 21
src/main/java/com/robot/remote/smartrobotremote/mapper/BizDeviceMapper.java

@@ -1,67 +1,63 @@
 package com.robot.remote.smartrobotremote.mapper;
 
-
+import java.util.List;
 import com.robot.remote.smartrobotremote.domain.BizDevice;
 import org.apache.ibatis.annotations.Mapper;
 
-import java.util.List;
-
 /**
- * 设备Mapper接口
+ * 【请填写功能名称】Mapper接口
  * 
- * @author slibra
- * @date 2024-09-26
+ * @author ruoyi
+ * @date 2025-03-06
  */
 @Mapper
 public interface BizDeviceMapper 
 {
     /**
-     * 查询设备
+     * 查询【请填写功能名称】
      * 
-     * @param deviceId 设备主键
-     * @return 设备
+     * @param deviceId 【请填写功能名称】主键
+     * @return 【请填写功能名称】
      */
     public BizDevice selectBizDeviceByDeviceId(Long deviceId);
 
     /**
-     * 查询设备列表
+     * 查询【请填写功能名称】列表
      * 
-     * @param bizDevice 设备
-     * @return 设备集合
+     * @param bizDevice 【请填写功能名称】
+     * @return 【请填写功能名称】集合
      */
     public List<BizDevice> selectBizDeviceList(BizDevice bizDevice);
 
     /**
-     * 新增设备
+     * 新增【请填写功能名称】
      * 
-     * @param bizDevice 设备
+     * @param bizDevice 【请填写功能名称】
      * @return 结果
      */
     public int insertBizDevice(BizDevice bizDevice);
 
     /**
-     * 修改设备
+     * 修改【请填写功能名称】
      * 
-     * @param bizDevice 设备
+     * @param bizDevice 【请填写功能名称】
      * @return 结果
      */
     public int updateBizDevice(BizDevice bizDevice);
 
     /**
-     * 删除设备
+     * 删除【请填写功能名称】
      * 
-     * @param deviceId 设备主键
+     * @param deviceId 【请填写功能名称】主键
      * @return 结果
      */
     public int deleteBizDeviceByDeviceId(Long deviceId);
 
     /**
-     * 批量删除设备
+     * 批量删除【请填写功能名称】
      * 
      * @param deviceIds 需要删除的数据主键集合
      * @return 结果
      */
     public int deleteBizDeviceByDeviceIds(Long[] deviceIds);
-
-
 }

+ 63 - 0
src/main/java/com/robot/remote/smartrobotremote/mapper/BizWaterWorkMapper.java

@@ -0,0 +1,63 @@
+package com.robot.remote.smartrobotremote.mapper;
+
+import java.util.List;
+import com.robot.remote.smartrobotremote.domain.BizWaterWork;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 部门Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Mapper
+public interface BizWaterWorkMapper 
+{
+    /**
+     * 查询部门
+     * 
+     * @param worksId 部门主键
+     * @return 部门
+     */
+    public BizWaterWork selectBizWaterWorkByWorksId(Long worksId);
+
+    /**
+     * 查询部门列表
+     * 
+     * @param bizWaterWork 部门
+     * @return 部门集合
+     */
+    public List<BizWaterWork> selectBizWaterWorkList(BizWaterWork bizWaterWork);
+
+    /**
+     * 新增部门
+     * 
+     * @param bizWaterWork 部门
+     * @return 结果
+     */
+    public int insertBizWaterWork(BizWaterWork bizWaterWork);
+
+    /**
+     * 修改部门
+     * 
+     * @param bizWaterWork 部门
+     * @return 结果
+     */
+    public int updateBizWaterWork(BizWaterWork bizWaterWork);
+
+    /**
+     * 删除部门
+     * 
+     * @param worksId 部门主键
+     * @return 结果
+     */
+    public int deleteBizWaterWorkByWorksId(Long worksId);
+
+    /**
+     * 批量删除部门
+     * 
+     * @param worksIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteBizWaterWorkByWorksIds(Long[] worksIds);
+}

+ 63 - 0
src/main/java/com/robot/remote/smartrobotremote/mapper/SysAssayItemMapper.java

@@ -0,0 +1,63 @@
+package com.robot.remote.smartrobotremote.mapper;
+
+import java.util.List;
+import com.robot.remote.smartrobotremote.domain.SysAssayItem;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 化验项目编号名称对照Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Mapper
+public interface SysAssayItemMapper 
+{
+    /**
+     * 查询化验项目编号名称对照
+     * 
+     * @param assayItem 化验项目编号名称对照主键
+     * @return 化验项目编号名称对照
+     */
+    public SysAssayItem selectSysAssayItemByAssayItem(Long assayItem);
+
+    /**
+     * 查询化验项目编号名称对照列表
+     * 
+     * @param sysAssayItem 化验项目编号名称对照
+     * @return 化验项目编号名称对照集合
+     */
+    public List<SysAssayItem> selectSysAssayItemList(SysAssayItem sysAssayItem);
+
+    /**
+     * 新增化验项目编号名称对照
+     * 
+     * @param sysAssayItem 化验项目编号名称对照
+     * @return 结果
+     */
+    public int insertSysAssayItem(SysAssayItem sysAssayItem);
+
+    /**
+     * 修改化验项目编号名称对照
+     * 
+     * @param sysAssayItem 化验项目编号名称对照
+     * @return 结果
+     */
+    public int updateSysAssayItem(SysAssayItem sysAssayItem);
+
+    /**
+     * 删除化验项目编号名称对照
+     * 
+     * @param assayItem 化验项目编号名称对照主键
+     * @return 结果
+     */
+    public int deleteSysAssayItemByAssayItem(Long assayItem);
+
+    /**
+     * 批量删除化验项目编号名称对照
+     * 
+     * @param assayItems 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSysAssayItemByAssayItems(Long[] assayItems);
+}

+ 63 - 0
src/main/java/com/robot/remote/smartrobotremote/mapper/ZAssayMapper.java

@@ -0,0 +1,63 @@
+package com.robot.remote.smartrobotremote.mapper;
+
+import java.util.List;
+import com.robot.remote.smartrobotremote.domain.ZAssay;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 化验项目信息Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Mapper
+public interface ZAssayMapper 
+{
+    /**
+     * 查询化验项目信息
+     * 
+     * @param assayId 化验项目信息主键
+     * @return 化验项目信息
+     */
+    public ZAssay selectZAssayByAssayId(Long assayId);
+
+    /**
+     * 查询化验项目信息列表
+     * 
+     * @param zAssay 化验项目信息
+     * @return 化验项目信息集合
+     */
+    public List<ZAssay> selectZAssayList(ZAssay zAssay);
+
+    /**
+     * 新增化验项目信息
+     * 
+     * @param zAssay 化验项目信息
+     * @return 结果
+     */
+    public int insertZAssay(ZAssay zAssay);
+
+    /**
+     * 修改化验项目信息
+     * 
+     * @param zAssay 化验项目信息
+     * @return 结果
+     */
+    public int updateZAssay(ZAssay zAssay);
+
+    /**
+     * 删除化验项目信息
+     * 
+     * @param assayId 化验项目信息主键
+     * @return 结果
+     */
+    public int deleteZAssayByAssayId(Long assayId);
+
+    /**
+     * 批量删除化验项目信息
+     * 
+     * @param assayIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteZAssayByAssayIds(Long[] assayIds);
+}

+ 63 - 0
src/main/java/com/robot/remote/smartrobotremote/mapper/ZAssayResultMapper.java

@@ -0,0 +1,63 @@
+package com.robot.remote.smartrobotremote.mapper;
+
+import java.util.List;
+import com.robot.remote.smartrobotremote.domain.ZAssayResult;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 化验结果明细Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Mapper
+public interface ZAssayResultMapper 
+{
+    /**
+     * 查询化验结果明细
+     * 
+     * @param resultId 化验结果明细主键
+     * @return 化验结果明细
+     */
+    public ZAssayResult selectZAssayResultByResultId(Long resultId);
+
+    /**
+     * 查询化验结果明细列表
+     * 
+     * @param zAssayResult 化验结果明细
+     * @return 化验结果明细集合
+     */
+    public List<ZAssayResult> selectZAssayResultList(ZAssayResult zAssayResult);
+
+    /**
+     * 新增化验结果明细
+     * 
+     * @param zAssayResult 化验结果明细
+     * @return 结果
+     */
+    public int insertZAssayResult(ZAssayResult zAssayResult);
+
+    /**
+     * 修改化验结果明细
+     * 
+     * @param zAssayResult 化验结果明细
+     * @return 结果
+     */
+    public int updateZAssayResult(ZAssayResult zAssayResult);
+
+    /**
+     * 删除化验结果明细
+     * 
+     * @param resultId 化验结果明细主键
+     * @return 结果
+     */
+    public int deleteZAssayResultByResultId(Long resultId);
+
+    /**
+     * 批量删除化验结果明细
+     * 
+     * @param resultIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteZAssayResultByResultIds(Long[] resultIds);
+}

+ 63 - 0
src/main/java/com/robot/remote/smartrobotremote/mapper/ZDeviceSampleMapper.java

@@ -0,0 +1,63 @@
+package com.robot.remote.smartrobotremote.mapper;
+
+import java.util.List;
+import com.robot.remote.smartrobotremote.domain.ZDeviceSample;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 【请填写功能名称】Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Mapper
+public interface ZDeviceSampleMapper 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param sampleId 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public ZDeviceSample selectZDeviceSampleBySampleId(Long sampleId);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param zDeviceSample 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<ZDeviceSample> selectZDeviceSampleList(ZDeviceSample zDeviceSample);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param zDeviceSample 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertZDeviceSample(ZDeviceSample zDeviceSample);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param zDeviceSample 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateZDeviceSample(ZDeviceSample zDeviceSample);
+
+    /**
+     * 删除【请填写功能名称】
+     * 
+     * @param sampleId 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteZDeviceSampleBySampleId(Long sampleId);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param sampleIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteZDeviceSampleBySampleIds(Long[] sampleIds);
+}

+ 63 - 0
src/main/java/com/robot/remote/smartrobotremote/mapper/ZQualityValueMapper.java

@@ -0,0 +1,63 @@
+package com.robot.remote.smartrobotremote.mapper;
+
+import java.util.List;
+import com.robot.remote.smartrobotremote.domain.ZQualityValue;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 水厂质控值Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-03-06
+ */
+@Mapper
+public interface ZQualityValueMapper 
+{
+    /**
+     * 查询水厂质控值
+     * 
+     * @param valueId 水厂质控值主键
+     * @return 水厂质控值
+     */
+    public ZQualityValue selectZQualityValueByValueId(Long valueId);
+
+    /**
+     * 查询水厂质控值列表
+     * 
+     * @param zQualityValue 水厂质控值
+     * @return 水厂质控值集合
+     */
+    public List<ZQualityValue> selectZQualityValueList(ZQualityValue zQualityValue);
+
+    /**
+     * 新增水厂质控值
+     * 
+     * @param zQualityValue 水厂质控值
+     * @return 结果
+     */
+    public int insertZQualityValue(ZQualityValue zQualityValue);
+
+    /**
+     * 修改水厂质控值
+     * 
+     * @param zQualityValue 水厂质控值
+     * @return 结果
+     */
+    public int updateZQualityValue(ZQualityValue zQualityValue);
+
+    /**
+     * 删除水厂质控值
+     * 
+     * @param valueId 水厂质控值主键
+     * @return 结果
+     */
+    public int deleteZQualityValueByValueId(Long valueId);
+
+    /**
+     * 批量删除水厂质控值
+     * 
+     * @param valueIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteZQualityValueByValueIds(Long[] valueIds);
+}

+ 188 - 189
src/main/resources/mapper/BizDeviceMapper.xml

@@ -1,190 +1,189 @@
-<?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.robot.remote.smartrobotremote.mapper.BizDeviceMapper">
-    
-    <resultMap type="BizDevice" id="BizDeviceResult">
-        <result property="deviceId"    column="device_id"    />
-        <result property="deviceNo"    column="device_no"    />
-        <result property="deviceName"    column="device_name"    />
-        <result property="deviceSn"    column="device_sn"    />
-        <result property="deviceModel"    column="device_model"    />
-        <result property="deviceMaker"    column="device_maker"    />
-        <result property="deviceWorks"    column="device_works"    />
-        <result property="deviceMaintainer"    column="device_maintainer"    />
-        <result property="deviceTel"    column="device_tel"    />
-        <result property="deviceType"    column="device_type"    />
-        <result property="deviceStatus"    column="device_status"    />
-        <result property="assayStatus"    column="assay_status"    />
-        <result property="assayTime"    column="assay_time"    />
-        <result property="repairTime"    column="repair_time"    />
-        <result property="repairBy"    column="repair_by"    />
-        <result property="faultCode"    column="fault_code"    />
-        <result property="deviceXujieJieguo"    column="device_xujie_jieguo"    />
-        <result property="deviceXujieBaojing"    column="device_xujie_baojing"    />
-        <result property="deviceProvince"    column="device_province"    />
-        <result property="deviceCity"    column="device_city"    />
-        <result property="deviceArea"    column="device_area"    />
-        <result property="deviceLongitude"    column="device_longitude"    />
-        <result property="deviceLatitude"    column="device_latitude"    />
-        <result property="deviceAddress"    column="device_address"    />
-        <result property="type"    column="type"    />
-    </resultMap>
-
-    <sql id="selectBizDeviceVo">
-        select device_id, device_no, device_name, device_sn, device_model, device_maker, device_works, device_maintainer, device_tel, device_type, device_status, assay_status, assay_time, repair_time, repair_by, create_by, create_time, update_by, update_time, fault_code, device_xujie_jieguo, device_xujie_baojing, device_province, device_city, device_area, device_longitude, device_latitude, device_address, type from biz_device
-    </sql>
-
-    <select id="selectBizDeviceList" parameterType="BizDevice" resultMap="BizDeviceResult">
-        <include refid="selectBizDeviceVo"/>
-        <where>
-            1 = 1
-            <if test="deviceNo != null  and deviceNo != ''"> and device_no = #{deviceNo}</if>
-            <if test="deviceName != null  and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
-            <if test="deviceSn != null  and deviceSn != ''"> and device_sn = #{deviceSn}</if>
-            <if test="deviceModel != null  and deviceModel != ''"> and device_model = #{deviceModel}</if>
-            <if test="deviceMaker != null  and deviceMaker != ''"> and device_maker = #{deviceMaker}</if>
-            <if test="deviceWorks != null "> and device_works = #{deviceWorks}</if>
-            <if test="deviceMaintainer != null  and deviceMaintainer != ''"> and device_maintainer = #{deviceMaintainer}</if>
-            <if test="deviceTel != null  and deviceTel != ''"> and device_tel = #{deviceTel}</if>
-            <if test="deviceType != null  and deviceType != ''"> and device_type = #{deviceType}</if>
-            <if test="deviceStatus != null  and deviceStatus != ''"> and device_status = #{deviceStatus}</if>
-            <if test="assayStatus != null  and assayStatus != ''"> and assay_status = #{assayStatus}</if>
-            <if test="assayTime != null "> and assay_time = #{assayTime}</if>
-            <if test="repairTime != null "> and repair_time = #{repairTime}</if>
-            <if test="repairBy != null  and repairBy != ''"> and repair_by = #{repairBy}</if>
-            <if test="faultCode != null  and faultCode != ''"> and fault_code = #{faultCode}</if>
-            <if test="deviceXujieJieguo != null  and deviceXujieJieguo != ''"> and device_xujie_jieguo = #{deviceXujieJieguo}</if>
-            <if test="deviceXujieBaojing != null  and deviceXujieBaojing != ''"> and device_xujie_baojing = #{deviceXujieBaojing}</if>
-            <if test="deviceProvince != null  and deviceProvince != ''"> and device_province = #{deviceProvince}</if>
-            <if test="deviceCity != null  and deviceCity != ''"> and device_city = #{deviceCity}</if>
-            <if test="deviceArea != null  and deviceArea != ''"> and device_area = #{deviceArea}</if>
-            <if test="deviceLongitude != null  and deviceLongitude != ''"> and device_longitude = #{deviceLongitude}</if>
-            <if test="deviceLatitude != null  and deviceLatitude != ''"> and device_latitude = #{deviceLatitude}</if>
-            <if test="deviceAddress != null  and deviceAddress != ''"> and device_address = #{deviceAddress}</if>
-            <if test="type != null  and type != ''"> and type = #{type}</if>
-        </where>
-            order by device_id desc
-    </select>
-    
-    <select id="selectBizDeviceByDeviceId" parameterType="Long" resultMap="BizDeviceResult">
-        <include refid="selectBizDeviceVo"/>
-        where device_id = #{deviceId}
-    </select>
-        
-    <insert id="insertBizDevice" parameterType="BizDevice">
-        insert into biz_device
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="deviceId != null">device_id,</if>
-            <if test="deviceNo != null">device_no,</if>
-            <if test="deviceName != null">device_name,</if>
-            <if test="deviceSn != null">device_sn,</if>
-            <if test="deviceModel != null">device_model,</if>
-            <if test="deviceMaker != null">device_maker,</if>
-            <if test="deviceWorks != null">device_works,</if>
-            <if test="deviceMaintainer != null">device_maintainer,</if>
-            <if test="deviceTel != null">device_tel,</if>
-            <if test="deviceType != null">device_type,</if>
-            <if test="deviceStatus != null">device_status,</if>
-            <if test="assayStatus != null">assay_status,</if>
-            <if test="assayTime != null">assay_time,</if>
-            <if test="repairTime != null">repair_time,</if>
-            <if test="repairBy != null">repair_by,</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="faultCode != null">fault_code,</if>
-            <if test="deviceXujieJieguo != null">device_xujie_jieguo,</if>
-            <if test="deviceXujieBaojing != null">device_xujie_baojing,</if>
-            <if test="deviceProvince != null">device_province,</if>
-            <if test="deviceCity != null">device_city,</if>
-            <if test="deviceArea != null">device_area,</if>
-            <if test="deviceLongitude != null">device_longitude,</if>
-            <if test="deviceLatitude != null">device_latitude,</if>
-            <if test="deviceAddress != null">device_address,</if>
-            <if test="type != null">type,</if>
-         </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="deviceId != null">#{deviceId},</if>
-            <if test="deviceNo != null">#{deviceNo},</if>
-            <if test="deviceName != null">#{deviceName},</if>
-            <if test="deviceSn != null">#{deviceSn},</if>
-            <if test="deviceModel != null">#{deviceModel},</if>
-            <if test="deviceMaker != null">#{deviceMaker},</if>
-            <if test="deviceWorks != null">#{deviceWorks},</if>
-            <if test="deviceMaintainer != null">#{deviceMaintainer},</if>
-            <if test="deviceTel != null">#{deviceTel},</if>
-            <if test="deviceType != null">#{deviceType},</if>
-            <if test="deviceStatus != null">#{deviceStatus},</if>
-            <if test="assayStatus != null">#{assayStatus},</if>
-            <if test="assayTime != null">#{assayTime},</if>
-            <if test="repairTime != null">#{repairTime},</if>
-            <if test="repairBy != null">#{repairBy},</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="faultCode != null">#{faultCode},</if>
-            <if test="deviceXujieJieguo != null">#{deviceXujieJieguo},</if>
-            <if test="deviceXujieBaojing != null">#{deviceXujieBaojing},</if>
-            <if test="deviceProvince != null">#{deviceProvince},</if>
-            <if test="deviceCity != null">#{deviceCity},</if>
-            <if test="deviceArea != null">#{deviceArea},</if>
-            <if test="deviceLongitude != null">#{deviceLongitude},</if>
-            <if test="deviceLatitude != null">#{deviceLatitude},</if>
-            <if test="deviceAddress != null">#{deviceAddress},</if>
-            <if test="type != null">#{type},</if>
-         </trim>
-    </insert>
-
-    <update id="updateBizDevice" parameterType="BizDevice">
-        update biz_device
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="deviceNo != null">device_no = #{deviceNo},</if>
-            <if test="deviceName != null">device_name = #{deviceName},</if>
-            <if test="deviceSn != null">device_sn = #{deviceSn},</if>
-            <if test="deviceModel != null">device_model = #{deviceModel},</if>
-            <if test="deviceMaker != null">device_maker = #{deviceMaker},</if>
-            <if test="deviceWorks != null">device_works = #{deviceWorks},</if>
-            <if test="deviceMaintainer != null">device_maintainer = #{deviceMaintainer},</if>
-            <if test="deviceTel != null">device_tel = #{deviceTel},</if>
-            <if test="deviceType != null">device_type = #{deviceType},</if>
-            <if test="deviceStatus != null">device_status = #{deviceStatus},</if>
-            <if test="assayStatus != null">assay_status = #{assayStatus},</if>
-            <if test="assayTime != null">assay_time = #{assayTime},</if>
-            <if test="repairTime != null">repair_time = #{repairTime},</if>
-            <if test="repairBy != null">repair_by = #{repairBy},</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="faultCode != null">fault_code = #{faultCode},</if>
-            <if test="deviceXujieJieguo != null">device_xujie_jieguo = #{deviceXujieJieguo},</if>
-            <if test="deviceXujieBaojing != null">device_xujie_baojing = #{deviceXujieBaojing},</if>
-            <if test="deviceProvince != null">device_province = #{deviceProvince},</if>
-            <if test="deviceCity != null">device_city = #{deviceCity},</if>
-            <if test="deviceArea != null">device_area = #{deviceArea},</if>
-            <if test="deviceLongitude != null">device_longitude = #{deviceLongitude},</if>
-            <if test="deviceLatitude != null">device_latitude = #{deviceLatitude},</if>
-            <if test="deviceAddress != null">device_address = #{deviceAddress},</if>
-            <if test="type != null">type = #{type},</if>
-        </trim>
-        where device_id = #{deviceId}
-    </update>
-
-    
-
-    <delete id="deleteBizDeviceByDeviceId" parameterType="Long">
-        update biz_device set del_flag = 2,revision = revision + 1 where del_flag = 0 and device_id = #{deviceId}
-    </delete>
-
-    <delete id="deleteBizDeviceByDeviceIds" parameterType="String">
-        update biz_device set del_flag = 2,revision = revision + 1 where del_flag = 0 and device_id in
-        <foreach item="deviceId" collection="array" open="(" separator="," close=")">
-            #{deviceId}
-        </foreach>
-    </delete>
-
+<?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.robot.remote.smartrobotremote.mapper.BizDeviceMapper">
+    
+    <resultMap type="BizDevice" id="BizDeviceResult">
+        <result property="deviceId"    column="device_id"    />
+        <result property="deviceNo"    column="device_no"    />
+        <result property="deviceName"    column="device_name"    />
+        <result property="deviceSn"    column="device_sn"    />
+        <result property="deviceModel"    column="device_model"    />
+        <result property="deviceMaker"    column="device_maker"    />
+        <result property="deviceWorks"    column="device_works"    />
+        <result property="deviceMaintainer"    column="device_maintainer"    />
+        <result property="deviceTel"    column="device_tel"    />
+        <result property="deviceType"    column="device_type"    />
+        <result property="deviceStatus"    column="device_status"    />
+        <result property="assayStatus"    column="assay_status"    />
+        <result property="assayTime"    column="assay_time"    />
+        <result property="repairTime"    column="repair_time"    />
+        <result property="repairBy"    column="repair_by"    />
+        <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="faultCode"    column="fault_code"    />
+        <result property="deviceXujieJieguo"    column="device_xujie_jieguo"    />
+        <result property="deviceXujieBaojing"    column="device_xujie_baojing"    />
+        <result property="deviceProvince"    column="device_province"    />
+        <result property="deviceCity"    column="device_city"    />
+        <result property="deviceArea"    column="device_area"    />
+        <result property="deviceLongitude"    column="device_longitude"    />
+        <result property="deviceLatitude"    column="device_latitude"    />
+        <result property="deviceAddress"    column="device_address"    />
+        <result property="type"    column="type"    />
+    </resultMap>
+
+    <sql id="selectBizDeviceVo">
+        select device_id, device_no, device_name, device_sn, device_model, device_maker, device_works, device_maintainer, device_tel, device_type, device_status, assay_status, assay_time, repair_time, repair_by, create_by, create_time, update_by, update_time, fault_code, device_xujie_jieguo, device_xujie_baojing, device_province, device_city, device_area, device_longitude, device_latitude, device_address, type from biz_device
+    </sql>
+
+    <select id="selectBizDeviceList" parameterType="BizDevice" resultMap="BizDeviceResult">
+        <include refid="selectBizDeviceVo"/>
+        <where>  
+            <if test="deviceNo != null  and deviceNo != ''"> and device_no = #{deviceNo}</if>
+            <if test="deviceName != null  and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
+            <if test="deviceSn != null  and deviceSn != ''"> and device_sn = #{deviceSn}</if>
+            <if test="deviceModel != null  and deviceModel != ''"> and device_model = #{deviceModel}</if>
+            <if test="deviceMaker != null  and deviceMaker != ''"> and device_maker = #{deviceMaker}</if>
+            <if test="deviceWorks != null "> and device_works = #{deviceWorks}</if>
+            <if test="deviceMaintainer != null  and deviceMaintainer != ''"> and device_maintainer = #{deviceMaintainer}</if>
+            <if test="deviceTel != null  and deviceTel != ''"> and device_tel = #{deviceTel}</if>
+            <if test="deviceType != null  and deviceType != ''"> and device_type = #{deviceType}</if>
+            <if test="deviceStatus != null  and deviceStatus != ''"> and device_status = #{deviceStatus}</if>
+            <if test="assayStatus != null  and assayStatus != ''"> and assay_status = #{assayStatus}</if>
+            <if test="assayTime != null "> and assay_time = #{assayTime}</if>
+            <if test="repairTime != null "> and repair_time = #{repairTime}</if>
+            <if test="repairBy != null  and repairBy != ''"> and repair_by = #{repairBy}</if>
+            <if test="faultCode != null  and faultCode != ''"> and fault_code = #{faultCode}</if>
+            <if test="deviceXujieJieguo != null  and deviceXujieJieguo != ''"> and device_xujie_jieguo = #{deviceXujieJieguo}</if>
+            <if test="deviceXujieBaojing != null  and deviceXujieBaojing != ''"> and device_xujie_baojing = #{deviceXujieBaojing}</if>
+            <if test="deviceProvince != null  and deviceProvince != ''"> and device_province = #{deviceProvince}</if>
+            <if test="deviceCity != null  and deviceCity != ''"> and device_city = #{deviceCity}</if>
+            <if test="deviceArea != null  and deviceArea != ''"> and device_area = #{deviceArea}</if>
+            <if test="deviceLongitude != null  and deviceLongitude != ''"> and device_longitude = #{deviceLongitude}</if>
+            <if test="deviceLatitude != null  and deviceLatitude != ''"> and device_latitude = #{deviceLatitude}</if>
+            <if test="deviceAddress != null  and deviceAddress != ''"> and device_address = #{deviceAddress}</if>
+            <if test="type != null  and type != ''"> and type = #{type}</if>
+        </where>
+    </select>
+    
+    <select id="selectBizDeviceByDeviceId" parameterType="Long" resultMap="BizDeviceResult">
+        <include refid="selectBizDeviceVo"/>
+        where device_id = #{deviceId}
+    </select>
+
+    <insert id="insertBizDevice" parameterType="BizDevice">
+        insert into biz_device
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="deviceId != null">device_id,</if>
+            <if test="deviceNo != null">device_no,</if>
+            <if test="deviceName != null">device_name,</if>
+            <if test="deviceSn != null">device_sn,</if>
+            <if test="deviceModel != null">device_model,</if>
+            <if test="deviceMaker != null">device_maker,</if>
+            <if test="deviceWorks != null">device_works,</if>
+            <if test="deviceMaintainer != null">device_maintainer,</if>
+            <if test="deviceTel != null">device_tel,</if>
+            <if test="deviceType != null">device_type,</if>
+            <if test="deviceStatus != null">device_status,</if>
+            <if test="assayStatus != null">assay_status,</if>
+            <if test="assayTime != null">assay_time,</if>
+            <if test="repairTime != null">repair_time,</if>
+            <if test="repairBy != null">repair_by,</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="faultCode != null">fault_code,</if>
+            <if test="deviceXujieJieguo != null">device_xujie_jieguo,</if>
+            <if test="deviceXujieBaojing != null">device_xujie_baojing,</if>
+            <if test="deviceProvince != null">device_province,</if>
+            <if test="deviceCity != null">device_city,</if>
+            <if test="deviceArea != null">device_area,</if>
+            <if test="deviceLongitude != null">device_longitude,</if>
+            <if test="deviceLatitude != null">device_latitude,</if>
+            <if test="deviceAddress != null">device_address,</if>
+            <if test="type != null">type,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="deviceId != null">#{deviceId},</if>
+            <if test="deviceNo != null">#{deviceNo},</if>
+            <if test="deviceName != null">#{deviceName},</if>
+            <if test="deviceSn != null">#{deviceSn},</if>
+            <if test="deviceModel != null">#{deviceModel},</if>
+            <if test="deviceMaker != null">#{deviceMaker},</if>
+            <if test="deviceWorks != null">#{deviceWorks},</if>
+            <if test="deviceMaintainer != null">#{deviceMaintainer},</if>
+            <if test="deviceTel != null">#{deviceTel},</if>
+            <if test="deviceType != null">#{deviceType},</if>
+            <if test="deviceStatus != null">#{deviceStatus},</if>
+            <if test="assayStatus != null">#{assayStatus},</if>
+            <if test="assayTime != null">#{assayTime},</if>
+            <if test="repairTime != null">#{repairTime},</if>
+            <if test="repairBy != null">#{repairBy},</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="faultCode != null">#{faultCode},</if>
+            <if test="deviceXujieJieguo != null">#{deviceXujieJieguo},</if>
+            <if test="deviceXujieBaojing != null">#{deviceXujieBaojing},</if>
+            <if test="deviceProvince != null">#{deviceProvince},</if>
+            <if test="deviceCity != null">#{deviceCity},</if>
+            <if test="deviceArea != null">#{deviceArea},</if>
+            <if test="deviceLongitude != null">#{deviceLongitude},</if>
+            <if test="deviceLatitude != null">#{deviceLatitude},</if>
+            <if test="deviceAddress != null">#{deviceAddress},</if>
+            <if test="type != null">#{type},</if>
+         </trim>
+    </insert>
+
+    <update id="updateBizDevice" parameterType="BizDevice">
+        update biz_device
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="deviceNo != null">device_no = #{deviceNo},</if>
+            <if test="deviceName != null">device_name = #{deviceName},</if>
+            <if test="deviceSn != null">device_sn = #{deviceSn},</if>
+            <if test="deviceModel != null">device_model = #{deviceModel},</if>
+            <if test="deviceMaker != null">device_maker = #{deviceMaker},</if>
+            <if test="deviceWorks != null">device_works = #{deviceWorks},</if>
+            <if test="deviceMaintainer != null">device_maintainer = #{deviceMaintainer},</if>
+            <if test="deviceTel != null">device_tel = #{deviceTel},</if>
+            <if test="deviceType != null">device_type = #{deviceType},</if>
+            <if test="deviceStatus != null">device_status = #{deviceStatus},</if>
+            <if test="assayStatus != null">assay_status = #{assayStatus},</if>
+            <if test="assayTime != null">assay_time = #{assayTime},</if>
+            <if test="repairTime != null">repair_time = #{repairTime},</if>
+            <if test="repairBy != null">repair_by = #{repairBy},</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="faultCode != null">fault_code = #{faultCode},</if>
+            <if test="deviceXujieJieguo != null">device_xujie_jieguo = #{deviceXujieJieguo},</if>
+            <if test="deviceXujieBaojing != null">device_xujie_baojing = #{deviceXujieBaojing},</if>
+            <if test="deviceProvince != null">device_province = #{deviceProvince},</if>
+            <if test="deviceCity != null">device_city = #{deviceCity},</if>
+            <if test="deviceArea != null">device_area = #{deviceArea},</if>
+            <if test="deviceLongitude != null">device_longitude = #{deviceLongitude},</if>
+            <if test="deviceLatitude != null">device_latitude = #{deviceLatitude},</if>
+            <if test="deviceAddress != null">device_address = #{deviceAddress},</if>
+            <if test="type != null">type = #{type},</if>
+        </trim>
+        where device_id = #{deviceId}
+    </update>
+
+    <delete id="deleteBizDeviceByDeviceId" parameterType="Long">
+        delete from biz_device where device_id = #{deviceId}
+    </delete>
+
+    <delete id="deleteBizDeviceByDeviceIds" parameterType="String">
+        delete from biz_device where device_id in 
+        <foreach item="deviceId" collection="array" open="(" separator="," close=")">
+            #{deviceId}
+        </foreach>
+    </delete>
 </mapper>

+ 163 - 0
src/main/resources/mapper/BizWaterWorkMapper.xml

@@ -0,0 +1,163 @@
+<?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.robot.remote.smartrobotremote.mapper.BizWaterWorkMapper">
+    
+    <resultMap type="BizWaterWork" id="BizWaterWorkResult">
+        <result property="worksId"    column="works_id"    />
+        <result property="parentId"    column="parent_id"    />
+        <result property="ancestors"    column="ancestors"    />
+        <result property="worksName"    column="works_name"    />
+        <result property="orderNum"    column="order_num"    />
+        <result property="worksStatus"    column="works_status"    />
+        <result property="delFlag"    column="del_flag"    />
+        <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="worksNo"    column="works_no"    />
+        <result property="worksProvince"    column="works_province"    />
+        <result property="worksCity"    column="works_city"    />
+        <result property="worksArea"    column="works_area"    />
+        <result property="worksLongitude"    column="works_longitude"    />
+        <result property="worksLatitude"    column="works_latitude"    />
+        <result property="worksAddress"    column="works_address"    />
+        <result property="worksCount"    column="works_count"    />
+        <result property="worksType"    column="works_type"    />
+        <result property="worksCenter"    column="works_center"    />
+        <result property="worksBelong"    column="works_belong"    />
+        <result property="worksMaintainer"    column="works_maintainer"    />
+        <result property="worksTel"    column="works_tel"    />
+    </resultMap>
+
+    <sql id="selectBizWaterWorkVo">
+        select works_id, parent_id, ancestors, works_name, order_num, works_status, del_flag, create_by, create_time, update_by, update_time, works_no, works_province, works_city, works_area, works_longitude, works_latitude, works_address, works_count, works_type, works_center, works_belong, works_maintainer, works_tel from biz_water_work
+    </sql>
+
+    <select id="selectBizWaterWorkList" parameterType="BizWaterWork" resultMap="BizWaterWorkResult">
+        <include refid="selectBizWaterWorkVo"/>
+        <where>  
+            <if test="parentId != null "> and parent_id = #{parentId}</if>
+            <if test="ancestors != null  and ancestors != ''"> and ancestors = #{ancestors}</if>
+            <if test="worksName != null  and worksName != ''"> and works_name like concat('%', #{worksName}, '%')</if>
+            <if test="orderNum != null "> and order_num = #{orderNum}</if>
+            <if test="worksStatus != null  and worksStatus != ''"> and works_status = #{worksStatus}</if>
+            <if test="worksNo != null  and worksNo != ''"> and works_no = #{worksNo}</if>
+            <if test="worksProvince != null  and worksProvince != ''"> and works_province = #{worksProvince}</if>
+            <if test="worksCity != null  and worksCity != ''"> and works_city = #{worksCity}</if>
+            <if test="worksArea != null  and worksArea != ''"> and works_area = #{worksArea}</if>
+            <if test="worksLongitude != null  and worksLongitude != ''"> and works_longitude = #{worksLongitude}</if>
+            <if test="worksLatitude != null  and worksLatitude != ''"> and works_latitude = #{worksLatitude}</if>
+            <if test="worksAddress != null  and worksAddress != ''"> and works_address = #{worksAddress}</if>
+            <if test="worksCount != null "> and works_count = #{worksCount}</if>
+            <if test="worksType != null  and worksType != ''"> and works_type = #{worksType}</if>
+            <if test="worksCenter != null  and worksCenter != ''"> and works_center = #{worksCenter}</if>
+            <if test="worksBelong != null "> and works_belong = #{worksBelong}</if>
+            <if test="worksMaintainer != null  and worksMaintainer != ''"> and works_maintainer = #{worksMaintainer}</if>
+            <if test="worksTel != null  and worksTel != ''"> and works_tel = #{worksTel}</if>
+        </where>
+    </select>
+    
+    <select id="selectBizWaterWorkByWorksId" parameterType="Long" resultMap="BizWaterWorkResult">
+        <include refid="selectBizWaterWorkVo"/>
+        where works_id = #{worksId}
+    </select>
+
+    <insert id="insertBizWaterWork" parameterType="BizWaterWork">
+        insert into biz_water_work
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="worksId != null">works_id,</if>
+            <if test="parentId != null">parent_id,</if>
+            <if test="ancestors != null">ancestors,</if>
+            <if test="worksName != null">works_name,</if>
+            <if test="orderNum != null">order_num,</if>
+            <if test="worksStatus != null">works_status,</if>
+            <if test="delFlag != null">del_flag,</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="worksNo != null">works_no,</if>
+            <if test="worksProvince != null">works_province,</if>
+            <if test="worksCity != null">works_city,</if>
+            <if test="worksArea != null">works_area,</if>
+            <if test="worksLongitude != null">works_longitude,</if>
+            <if test="worksLatitude != null">works_latitude,</if>
+            <if test="worksAddress != null">works_address,</if>
+            <if test="worksCount != null">works_count,</if>
+            <if test="worksType != null">works_type,</if>
+            <if test="worksCenter != null">works_center,</if>
+            <if test="worksBelong != null">works_belong,</if>
+            <if test="worksMaintainer != null">works_maintainer,</if>
+            <if test="worksTel != null">works_tel,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="worksId != null">#{worksId},</if>
+            <if test="parentId != null">#{parentId},</if>
+            <if test="ancestors != null">#{ancestors},</if>
+            <if test="worksName != null">#{worksName},</if>
+            <if test="orderNum != null">#{orderNum},</if>
+            <if test="worksStatus != null">#{worksStatus},</if>
+            <if test="delFlag != null">#{delFlag},</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="worksNo != null">#{worksNo},</if>
+            <if test="worksProvince != null">#{worksProvince},</if>
+            <if test="worksCity != null">#{worksCity},</if>
+            <if test="worksArea != null">#{worksArea},</if>
+            <if test="worksLongitude != null">#{worksLongitude},</if>
+            <if test="worksLatitude != null">#{worksLatitude},</if>
+            <if test="worksAddress != null">#{worksAddress},</if>
+            <if test="worksCount != null">#{worksCount},</if>
+            <if test="worksType != null">#{worksType},</if>
+            <if test="worksCenter != null">#{worksCenter},</if>
+            <if test="worksBelong != null">#{worksBelong},</if>
+            <if test="worksMaintainer != null">#{worksMaintainer},</if>
+            <if test="worksTel != null">#{worksTel},</if>
+         </trim>
+    </insert>
+
+    <update id="updateBizWaterWork" parameterType="BizWaterWork">
+        update biz_water_work
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="parentId != null">parent_id = #{parentId},</if>
+            <if test="ancestors != null">ancestors = #{ancestors},</if>
+            <if test="worksName != null">works_name = #{worksName},</if>
+            <if test="orderNum != null">order_num = #{orderNum},</if>
+            <if test="worksStatus != null">works_status = #{worksStatus},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</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="worksNo != null">works_no = #{worksNo},</if>
+            <if test="worksProvince != null">works_province = #{worksProvince},</if>
+            <if test="worksCity != null">works_city = #{worksCity},</if>
+            <if test="worksArea != null">works_area = #{worksArea},</if>
+            <if test="worksLongitude != null">works_longitude = #{worksLongitude},</if>
+            <if test="worksLatitude != null">works_latitude = #{worksLatitude},</if>
+            <if test="worksAddress != null">works_address = #{worksAddress},</if>
+            <if test="worksCount != null">works_count = #{worksCount},</if>
+            <if test="worksType != null">works_type = #{worksType},</if>
+            <if test="worksCenter != null">works_center = #{worksCenter},</if>
+            <if test="worksBelong != null">works_belong = #{worksBelong},</if>
+            <if test="worksMaintainer != null">works_maintainer = #{worksMaintainer},</if>
+            <if test="worksTel != null">works_tel = #{worksTel},</if>
+        </trim>
+        where works_id = #{worksId}
+    </update>
+
+    <delete id="deleteBizWaterWorkByWorksId" parameterType="Long">
+        delete from biz_water_work where works_id = #{worksId}
+    </delete>
+
+    <delete id="deleteBizWaterWorkByWorksIds" parameterType="String">
+        delete from biz_water_work where works_id in 
+        <foreach item="worksId" collection="array" open="(" separator="," close=")">
+            #{worksId}
+        </foreach>
+    </delete>
+</mapper>

+ 59 - 0
src/main/resources/mapper/SysAssayItemMapper.xml

@@ -0,0 +1,59 @@
+<?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.robot.remote.smartrobotremote.mapper.SysAssayItemMapper">
+    
+    <resultMap type="SysAssayItem" id="SysAssayItemResult">
+        <result property="assayItem"    column="assay_item"    />
+        <result property="itemName"    column="item_name"    />
+    </resultMap>
+
+    <sql id="selectSysAssayItemVo">
+        select assay_item, item_name from sys_assay_item
+    </sql>
+
+    <select id="selectSysAssayItemList" parameterType="SysAssayItem" resultMap="SysAssayItemResult">
+        <include refid="selectSysAssayItemVo"/>
+        <where>  
+            <if test="assayItem != null "> and assay_item = #{assayItem}</if>
+            <if test="itemName != null  and itemName != ''"> and item_name like concat('%', #{itemName}, '%')</if>
+        </where>
+    </select>
+    
+    <select id="selectSysAssayItemByAssayItem" parameterType="Long" resultMap="SysAssayItemResult">
+        <include refid="selectSysAssayItemVo"/>
+        where assay_item = #{assayItem}
+    </select>
+
+    <insert id="insertSysAssayItem" parameterType="SysAssayItem">
+        insert into sys_assay_item
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="assayItem != null">assay_item,</if>
+            <if test="itemName != null and itemName != ''">item_name,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="assayItem != null">#{assayItem},</if>
+            <if test="itemName != null and itemName != ''">#{itemName},</if>
+         </trim>
+    </insert>
+
+    <update id="updateSysAssayItem" parameterType="SysAssayItem">
+        update sys_assay_item
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="itemName != null and itemName != ''">item_name = #{itemName},</if>
+        </trim>
+        where assay_item = #{assayItem}
+    </update>
+
+    <delete id="deleteSysAssayItemByAssayItem" parameterType="Long">
+        delete from sys_assay_item where assay_item = #{assayItem}
+    </delete>
+
+    <delete id="deleteSysAssayItemByAssayItems" parameterType="String">
+        delete from sys_assay_item where assay_item in 
+        <foreach item="assayItem" collection="array" open="(" separator="," close=")">
+            #{assayItem}
+        </foreach>
+    </delete>
+</mapper>

+ 164 - 0
src/main/resources/mapper/ZAssayMapper.xml

@@ -0,0 +1,164 @@
+<?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.robot.remote.smartrobotremote.mapper.ZAssayMapper">
+    
+    <resultMap type="ZAssay" id="ZAssayResult">
+        <result property="assayId"    column="assay_id"    />
+        <result property="assayNo"    column="assay_no"    />
+        <result property="deviceNo"    column="device_no"    />
+        <result property="assayType"    column="assay_type"    />
+        <result property="assayBigprocess"    column="assay_bigprocess"    />
+        <result property="assaySmallprocess"    column="assay_smallprocess"    />
+        <result property="beginTime"    column="begin_time"    />
+        <result property="endTime"    column="end_time"    />
+        <result property="assayDate"    column="assay_date"    />
+        <result property="assayBy"    column="assay_by"    />
+        <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="version"    column="version"    />
+        <result property="stepName"    column="step_name"    />
+        <result property="stepTotal"    column="step_total"    />
+        <result property="stepNow"    column="step_now"    />
+        <result property="stepInfo1"    column="step_info1"    />
+        <result property="stepInfo2"    column="step_info2"    />
+        <result property="stepInfo3"    column="step_info3"    />
+        <result property="assayStatus"    column="assay_status"    />
+        <result property="assayMethod"    column="assay_method"    />
+        <result property="cPangusyncsourcetimestamp"    column="C_PanguSyncSourceTimestamp"    />
+    </resultMap>
+
+    <sql id="selectZAssayVo">
+        select assay_id, assay_no, device_no, assay_type, assay_bigprocess, assay_smallprocess, begin_time, end_time, assay_date, assay_by, create_by, create_time, update_by, update_time, version, step_name, step_total, step_now, step_info1, step_info2, step_info3, assay_status, assay_method, C_PanguSyncSourceTimestamp from z_assay
+    </sql>
+
+    <select id="selectZAssayList" parameterType="ZAssay" resultMap="ZAssayResult">
+        <include refid="selectZAssayVo"/>
+        <where>  
+            <if test="assayNo != null  and assayNo != ''"> and assay_no = #{assayNo}</if>
+            <if test="deviceNo != null  and deviceNo != ''"> and device_no = #{deviceNo}</if>
+            <if test="assayType != null  and assayType != ''"> and assay_type = #{assayType}</if>
+            <if test="assayBigprocess != null  and assayBigprocess != ''"> and assay_bigprocess = #{assayBigprocess}</if>
+            <if test="assaySmallprocess != null  and assaySmallprocess != ''"> and assay_smallprocess = #{assaySmallprocess}</if>
+            <if test="beginTime != null  and beginTime != ''"> and begin_time = #{beginTime}</if>
+            <if test="endTime != null  and endTime != ''"> and end_time = #{endTime}</if>
+            <if test="assayDate != null  and assayDate != ''"> and assay_date = #{assayDate}</if>
+            <if test="assayBy != null  and assayBy != ''"> and assay_by = #{assayBy}</if>
+            <if test="version != null  and version != ''"> and version = #{version}</if>
+            <if test="stepName != null  and stepName != ''"> and step_name like concat('%', #{stepName}, '%')</if>
+            <if test="stepTotal != null  and stepTotal != ''"> and step_total = #{stepTotal}</if>
+            <if test="stepNow != null  and stepNow != ''"> and step_now = #{stepNow}</if>
+            <if test="stepInfo1 != null  and stepInfo1 != ''"> and step_info1 = #{stepInfo1}</if>
+            <if test="stepInfo2 != null  and stepInfo2 != ''"> and step_info2 = #{stepInfo2}</if>
+            <if test="stepInfo3 != null  and stepInfo3 != ''"> and step_info3 = #{stepInfo3}</if>
+            <if test="assayStatus != null  and assayStatus != ''"> and assay_status = #{assayStatus}</if>
+            <if test="assayMethod != null  and assayMethod != ''"> and assay_method = #{assayMethod}</if>
+            <if test="cPangusyncsourcetimestamp != null "> and C_PanguSyncSourceTimestamp = #{cPangusyncsourcetimestamp}</if>
+        </where>
+    </select>
+    
+    <select id="selectZAssayByAssayId" parameterType="Long" resultMap="ZAssayResult">
+        <include refid="selectZAssayVo"/>
+        where assay_id = #{assayId}
+    </select>
+
+    <insert id="insertZAssay" parameterType="ZAssay">
+        insert into z_assay
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="assayId != null">assay_id,</if>
+            <if test="assayNo != null">assay_no,</if>
+            <if test="deviceNo != null">device_no,</if>
+            <if test="assayType != null">assay_type,</if>
+            <if test="assayBigprocess != null">assay_bigprocess,</if>
+            <if test="assaySmallprocess != null">assay_smallprocess,</if>
+            <if test="beginTime != null">begin_time,</if>
+            <if test="endTime != null">end_time,</if>
+            <if test="assayDate != null">assay_date,</if>
+            <if test="assayBy != null">assay_by,</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="version != null">version,</if>
+            <if test="stepName != null">step_name,</if>
+            <if test="stepTotal != null">step_total,</if>
+            <if test="stepNow != null">step_now,</if>
+            <if test="stepInfo1 != null">step_info1,</if>
+            <if test="stepInfo2 != null">step_info2,</if>
+            <if test="stepInfo3 != null">step_info3,</if>
+            <if test="assayStatus != null">assay_status,</if>
+            <if test="assayMethod != null">assay_method,</if>
+            <if test="cPangusyncsourcetimestamp != null">C_PanguSyncSourceTimestamp,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="assayId != null">#{assayId},</if>
+            <if test="assayNo != null">#{assayNo},</if>
+            <if test="deviceNo != null">#{deviceNo},</if>
+            <if test="assayType != null">#{assayType},</if>
+            <if test="assayBigprocess != null">#{assayBigprocess},</if>
+            <if test="assaySmallprocess != null">#{assaySmallprocess},</if>
+            <if test="beginTime != null">#{beginTime},</if>
+            <if test="endTime != null">#{endTime},</if>
+            <if test="assayDate != null">#{assayDate},</if>
+            <if test="assayBy != null">#{assayBy},</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="version != null">#{version},</if>
+            <if test="stepName != null">#{stepName},</if>
+            <if test="stepTotal != null">#{stepTotal},</if>
+            <if test="stepNow != null">#{stepNow},</if>
+            <if test="stepInfo1 != null">#{stepInfo1},</if>
+            <if test="stepInfo2 != null">#{stepInfo2},</if>
+            <if test="stepInfo3 != null">#{stepInfo3},</if>
+            <if test="assayStatus != null">#{assayStatus},</if>
+            <if test="assayMethod != null">#{assayMethod},</if>
+            <if test="cPangusyncsourcetimestamp != null">#{cPangusyncsourcetimestamp},</if>
+         </trim>
+    </insert>
+
+    <update id="updateZAssay" parameterType="ZAssay">
+        update z_assay
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="assayNo != null">assay_no = #{assayNo},</if>
+            <if test="deviceNo != null">device_no = #{deviceNo},</if>
+            <if test="assayType != null">assay_type = #{assayType},</if>
+            <if test="assayBigprocess != null">assay_bigprocess = #{assayBigprocess},</if>
+            <if test="assaySmallprocess != null">assay_smallprocess = #{assaySmallprocess},</if>
+            <if test="beginTime != null">begin_time = #{beginTime},</if>
+            <if test="endTime != null">end_time = #{endTime},</if>
+            <if test="assayDate != null">assay_date = #{assayDate},</if>
+            <if test="assayBy != null">assay_by = #{assayBy},</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="version != null">version = #{version},</if>
+            <if test="stepName != null">step_name = #{stepName},</if>
+            <if test="stepTotal != null">step_total = #{stepTotal},</if>
+            <if test="stepNow != null">step_now = #{stepNow},</if>
+            <if test="stepInfo1 != null">step_info1 = #{stepInfo1},</if>
+            <if test="stepInfo2 != null">step_info2 = #{stepInfo2},</if>
+            <if test="stepInfo3 != null">step_info3 = #{stepInfo3},</if>
+            <if test="assayStatus != null">assay_status = #{assayStatus},</if>
+            <if test="assayMethod != null">assay_method = #{assayMethod},</if>
+            <if test="cPangusyncsourcetimestamp != null">C_PanguSyncSourceTimestamp = #{cPangusyncsourcetimestamp},</if>
+        </trim>
+        where assay_id = #{assayId}
+    </update>
+
+    <delete id="deleteZAssayByAssayId" parameterType="Long">
+        delete from z_assay where assay_id = #{assayId}
+    </delete>
+
+    <delete id="deleteZAssayByAssayIds" parameterType="String">
+        delete from z_assay where assay_id in 
+        <foreach item="assayId" collection="array" open="(" separator="," close=")">
+            #{assayId}
+        </foreach>
+    </delete>
+</mapper>

+ 234 - 0
src/main/resources/mapper/ZAssayResultMapper.xml

@@ -0,0 +1,234 @@
+<?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.robot.remote.smartrobotremote.mapper.ZAssayResultMapper">
+    
+    <resultMap type="ZAssayResult" id="ZAssayResultResult">
+        <result property="resultId"    column="result_id"    />
+        <result property="assayNo"    column="assay_no"    />
+        <result property="resultNo"    column="result_no"    />
+        <result property="sampleNo"    column="sample_no"    />
+        <result property="sampleVolume"    column="sample_volume"    />
+        <result property="deviceNo"    column="device_no"    />
+        <result property="assayItem"    column="assay_item"    />
+        <result property="resultConcentration"    column="result_concentration"    />
+        <result property="resultAbs"    column="result_abs"    />
+        <result property="resultDate"    column="result_date"    />
+        <result property="resultTime"    column="result_time"    />
+        <result property="curveK0"    column="curve_k0"    />
+        <result property="curveK1"    column="curve_k1"    />
+        <result property="curveId"    column="curve_id"    />
+        <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="j1901S01"    column="j_1901_s0_1"    />
+        <result property="j1901D01"    column="j_1901_d0_1"    />
+        <result property="j1901R01"    column="j_1901_R0_1"    />
+        <result property="j1901S1"    column="j_1901_s_1"    />
+        <result property="j1901D1"    column="j_1901_d_1"    />
+        <result property="j1901R1"    column="j_1901_r_1"    />
+        <result property="j1901S02"    column="j_1901_s0_2"    />
+        <result property="j1901D02"    column="j_1901_d0_2"    />
+        <result property="j1901R02"    column="j_1901_r0_2"    />
+        <result property="j1901S2"    column="j_1901_s_2"    />
+        <result property="j1901D2"    column="j_1901_d_2"    />
+        <result property="j1901R2"    column="j_1901_r_2"    />
+        <result property="assayType"    column="assay_type"    />
+        <result property="samplePost"    column="sample_post"    />
+        <result property="resultWendu"    column="result_wendu"    />
+        <result property="resultShidu"    column="result_shidu"    />
+        <result property="originalConcentration"    column="original_concentration"    />
+        <result property="curveNo"    column="curve_no"    />
+        <result property="readFlag"    column="read_flag"    />
+        <result property="cPangusyncsourcetimestamp"    column="C_PanguSyncSourceTimestamp"    />
+    </resultMap>
+
+    <sql id="selectZAssayResultVo">
+        select result_id, assay_no, result_no, sample_no, sample_volume, device_no, assay_item, result_concentration, result_abs, result_date, result_time, curve_k0, curve_k1, curve_id, create_by, create_time, update_by, update_time, j_1901_s0_1, j_1901_d0_1, j_1901_R0_1, j_1901_s_1, j_1901_d_1, j_1901_r_1, j_1901_s0_2, j_1901_d0_2, j_1901_r0_2, j_1901_s_2, j_1901_d_2, j_1901_r_2, assay_type, sample_post, result_wendu, result_shidu, original_concentration, curve_no, read_flag, C_PanguSyncSourceTimestamp from z_assay_result
+    </sql>
+
+    <select id="selectZAssayResultList" parameterType="ZAssayResult" resultMap="ZAssayResultResult">
+        <include refid="selectZAssayResultVo"/>
+        <where>  
+            <if test="assayNo != null  and assayNo != ''"> and assay_no = #{assayNo}</if>
+            <if test="resultNo != null  and resultNo != ''"> and result_no = #{resultNo}</if>
+            <if test="sampleNo != null  and sampleNo != ''"> and sample_no = #{sampleNo}</if>
+            <if test="sampleVolume != null "> and sample_volume = #{sampleVolume}</if>
+            <if test="deviceNo != null  and deviceNo != ''"> and device_no = #{deviceNo}</if>
+            <if test="assayItem != null  and assayItem != ''"> and assay_item = #{assayItem}</if>
+            <if test="resultConcentration != null "> and result_concentration = #{resultConcentration}</if>
+            <if test="resultAbs != null "> and result_abs = #{resultAbs}</if>
+            <if test="resultDate != null  and resultDate != ''"> and result_date = #{resultDate}</if>
+            <if test="resultTime != null  and resultTime != ''"> and result_time = #{resultTime}</if>
+            <if test="curveK0 != null "> and curve_k0 = #{curveK0}</if>
+            <if test="curveK1 != null "> and curve_k1 = #{curveK1}</if>
+            <if test="curveId != null "> and curve_id = #{curveId}</if>
+            <if test="j1901S01 != null "> and j_1901_s0_1 = #{j1901S01}</if>
+            <if test="j1901D01 != null "> and j_1901_d0_1 = #{j1901D01}</if>
+            <if test="j1901R01 != null "> and j_1901_R0_1 = #{j1901R01}</if>
+            <if test="j1901S1 != null "> and j_1901_s_1 = #{j1901S1}</if>
+            <if test="j1901D1 != null "> and j_1901_d_1 = #{j1901D1}</if>
+            <if test="j1901R1 != null "> and j_1901_r_1 = #{j1901R1}</if>
+            <if test="j1901S02 != null "> and j_1901_s0_2 = #{j1901S02}</if>
+            <if test="j1901D02 != null "> and j_1901_d0_2 = #{j1901D02}</if>
+            <if test="j1901R02 != null "> and j_1901_r0_2 = #{j1901R02}</if>
+            <if test="j1901S2 != null "> and j_1901_s_2 = #{j1901S2}</if>
+            <if test="j1901D2 != null "> and j_1901_d_2 = #{j1901D2}</if>
+            <if test="j1901R2 != null "> and j_1901_r_2 = #{j1901R2}</if>
+            <if test="assayType != null  and assayType != ''"> and assay_type = #{assayType}</if>
+            <if test="samplePost != null "> and sample_post = #{samplePost}</if>
+            <if test="resultWendu != null "> and result_wendu = #{resultWendu}</if>
+            <if test="resultShidu != null "> and result_shidu = #{resultShidu}</if>
+            <if test="originalConcentration != null "> and original_concentration = #{originalConcentration}</if>
+            <if test="curveNo != null  and curveNo != ''"> and curve_no = #{curveNo}</if>
+            <if test="readFlag != null  and readFlag != ''"> and read_flag = #{readFlag}</if>
+            <if test="cPangusyncsourcetimestamp != null "> and C_PanguSyncSourceTimestamp = #{cPangusyncsourcetimestamp}</if>
+        </where>
+    </select>
+    
+    <select id="selectZAssayResultByResultId" parameterType="Long" resultMap="ZAssayResultResult">
+        <include refid="selectZAssayResultVo"/>
+        where result_id = #{resultId}
+    </select>
+
+    <insert id="insertZAssayResult" parameterType="ZAssayResult">
+        insert into z_assay_result
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="resultId != null">result_id,</if>
+            <if test="assayNo != null">assay_no,</if>
+            <if test="resultNo != null">result_no,</if>
+            <if test="sampleNo != null">sample_no,</if>
+            <if test="sampleVolume != null">sample_volume,</if>
+            <if test="deviceNo != null">device_no,</if>
+            <if test="assayItem != null">assay_item,</if>
+            <if test="resultConcentration != null">result_concentration,</if>
+            <if test="resultAbs != null">result_abs,</if>
+            <if test="resultDate != null">result_date,</if>
+            <if test="resultTime != null">result_time,</if>
+            <if test="curveK0 != null">curve_k0,</if>
+            <if test="curveK1 != null">curve_k1,</if>
+            <if test="curveId != null">curve_id,</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="j1901S01 != null">j_1901_s0_1,</if>
+            <if test="j1901D01 != null">j_1901_d0_1,</if>
+            <if test="j1901R01 != null">j_1901_R0_1,</if>
+            <if test="j1901S1 != null">j_1901_s_1,</if>
+            <if test="j1901D1 != null">j_1901_d_1,</if>
+            <if test="j1901R1 != null">j_1901_r_1,</if>
+            <if test="j1901S02 != null">j_1901_s0_2,</if>
+            <if test="j1901D02 != null">j_1901_d0_2,</if>
+            <if test="j1901R02 != null">j_1901_r0_2,</if>
+            <if test="j1901S2 != null">j_1901_s_2,</if>
+            <if test="j1901D2 != null">j_1901_d_2,</if>
+            <if test="j1901R2 != null">j_1901_r_2,</if>
+            <if test="assayType != null">assay_type,</if>
+            <if test="samplePost != null">sample_post,</if>
+            <if test="resultWendu != null">result_wendu,</if>
+            <if test="resultShidu != null">result_shidu,</if>
+            <if test="originalConcentration != null">original_concentration,</if>
+            <if test="curveNo != null">curve_no,</if>
+            <if test="readFlag != null">read_flag,</if>
+            <if test="cPangusyncsourcetimestamp != null">C_PanguSyncSourceTimestamp,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="resultId != null">#{resultId},</if>
+            <if test="assayNo != null">#{assayNo},</if>
+            <if test="resultNo != null">#{resultNo},</if>
+            <if test="sampleNo != null">#{sampleNo},</if>
+            <if test="sampleVolume != null">#{sampleVolume},</if>
+            <if test="deviceNo != null">#{deviceNo},</if>
+            <if test="assayItem != null">#{assayItem},</if>
+            <if test="resultConcentration != null">#{resultConcentration},</if>
+            <if test="resultAbs != null">#{resultAbs},</if>
+            <if test="resultDate != null">#{resultDate},</if>
+            <if test="resultTime != null">#{resultTime},</if>
+            <if test="curveK0 != null">#{curveK0},</if>
+            <if test="curveK1 != null">#{curveK1},</if>
+            <if test="curveId != null">#{curveId},</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="j1901S01 != null">#{j1901S01},</if>
+            <if test="j1901D01 != null">#{j1901D01},</if>
+            <if test="j1901R01 != null">#{j1901R01},</if>
+            <if test="j1901S1 != null">#{j1901S1},</if>
+            <if test="j1901D1 != null">#{j1901D1},</if>
+            <if test="j1901R1 != null">#{j1901R1},</if>
+            <if test="j1901S02 != null">#{j1901S02},</if>
+            <if test="j1901D02 != null">#{j1901D02},</if>
+            <if test="j1901R02 != null">#{j1901R02},</if>
+            <if test="j1901S2 != null">#{j1901S2},</if>
+            <if test="j1901D2 != null">#{j1901D2},</if>
+            <if test="j1901R2 != null">#{j1901R2},</if>
+            <if test="assayType != null">#{assayType},</if>
+            <if test="samplePost != null">#{samplePost},</if>
+            <if test="resultWendu != null">#{resultWendu},</if>
+            <if test="resultShidu != null">#{resultShidu},</if>
+            <if test="originalConcentration != null">#{originalConcentration},</if>
+            <if test="curveNo != null">#{curveNo},</if>
+            <if test="readFlag != null">#{readFlag},</if>
+            <if test="cPangusyncsourcetimestamp != null">#{cPangusyncsourcetimestamp},</if>
+         </trim>
+    </insert>
+
+    <update id="updateZAssayResult" parameterType="ZAssayResult">
+        update z_assay_result
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="assayNo != null">assay_no = #{assayNo},</if>
+            <if test="resultNo != null">result_no = #{resultNo},</if>
+            <if test="sampleNo != null">sample_no = #{sampleNo},</if>
+            <if test="sampleVolume != null">sample_volume = #{sampleVolume},</if>
+            <if test="deviceNo != null">device_no = #{deviceNo},</if>
+            <if test="assayItem != null">assay_item = #{assayItem},</if>
+            <if test="resultConcentration != null">result_concentration = #{resultConcentration},</if>
+            <if test="resultAbs != null">result_abs = #{resultAbs},</if>
+            <if test="resultDate != null">result_date = #{resultDate},</if>
+            <if test="resultTime != null">result_time = #{resultTime},</if>
+            <if test="curveK0 != null">curve_k0 = #{curveK0},</if>
+            <if test="curveK1 != null">curve_k1 = #{curveK1},</if>
+            <if test="curveId != null">curve_id = #{curveId},</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="j1901S01 != null">j_1901_s0_1 = #{j1901S01},</if>
+            <if test="j1901D01 != null">j_1901_d0_1 = #{j1901D01},</if>
+            <if test="j1901R01 != null">j_1901_R0_1 = #{j1901R01},</if>
+            <if test="j1901S1 != null">j_1901_s_1 = #{j1901S1},</if>
+            <if test="j1901D1 != null">j_1901_d_1 = #{j1901D1},</if>
+            <if test="j1901R1 != null">j_1901_r_1 = #{j1901R1},</if>
+            <if test="j1901S02 != null">j_1901_s0_2 = #{j1901S02},</if>
+            <if test="j1901D02 != null">j_1901_d0_2 = #{j1901D02},</if>
+            <if test="j1901R02 != null">j_1901_r0_2 = #{j1901R02},</if>
+            <if test="j1901S2 != null">j_1901_s_2 = #{j1901S2},</if>
+            <if test="j1901D2 != null">j_1901_d_2 = #{j1901D2},</if>
+            <if test="j1901R2 != null">j_1901_r_2 = #{j1901R2},</if>
+            <if test="assayType != null">assay_type = #{assayType},</if>
+            <if test="samplePost != null">sample_post = #{samplePost},</if>
+            <if test="resultWendu != null">result_wendu = #{resultWendu},</if>
+            <if test="resultShidu != null">result_shidu = #{resultShidu},</if>
+            <if test="originalConcentration != null">original_concentration = #{originalConcentration},</if>
+            <if test="curveNo != null">curve_no = #{curveNo},</if>
+            <if test="readFlag != null">read_flag = #{readFlag},</if>
+            <if test="cPangusyncsourcetimestamp != null">C_PanguSyncSourceTimestamp = #{cPangusyncsourcetimestamp},</if>
+        </trim>
+        where result_id = #{resultId}
+    </update>
+
+    <delete id="deleteZAssayResultByResultId" parameterType="Long">
+        delete from z_assay_result where result_id = #{resultId}
+    </delete>
+
+    <delete id="deleteZAssayResultByResultIds" parameterType="String">
+        delete from z_assay_result where result_id in 
+        <foreach item="resultId" collection="array" open="(" separator="," close=")">
+            #{resultId}
+        </foreach>
+    </delete>
+</mapper>

+ 84 - 0
src/main/resources/mapper/ZDeviceSampleMapper.xml

@@ -0,0 +1,84 @@
+<?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.robot.remote.smartrobotremote.mapper.ZDeviceSampleMapper">
+    
+    <resultMap type="ZDeviceSample" id="ZDeviceSampleResult">
+        <result property="sampleId"    column="sample_id"    />
+        <result property="deviceNo"    column="device_no"    />
+        <result property="assayType"    column="assay_type"    />
+        <result property="itemName"    column="item_name"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectZDeviceSampleVo">
+        select sample_id, device_no, assay_type, item_name, create_by, create_time, update_by, update_time from z_device_sample
+    </sql>
+
+    <select id="selectZDeviceSampleList" parameterType="ZDeviceSample" resultMap="ZDeviceSampleResult">
+        <include refid="selectZDeviceSampleVo"/>
+        <where>  
+            <if test="deviceNo != null  and deviceNo != ''"> and device_no = #{deviceNo}</if>
+            <if test="assayType != null  and assayType != ''"> and assay_type = #{assayType}</if>
+            <if test="itemName != null  and itemName != ''"> and item_name like concat('%', #{itemName}, '%')</if>
+        </where>
+    </select>
+    
+    <select id="selectZDeviceSampleBySampleId" parameterType="Long" resultMap="ZDeviceSampleResult">
+        <include refid="selectZDeviceSampleVo"/>
+        where sample_id = #{sampleId}
+    </select>
+
+    <insert id="insertZDeviceSample" parameterType="ZDeviceSample">
+        insert into z_device_sample
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="sampleId != null">sample_id,</if>
+            <if test="deviceNo != null">device_no,</if>
+            <if test="assayType != null">assay_type,</if>
+            <if test="itemName != null">item_name,</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>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="sampleId != null">#{sampleId},</if>
+            <if test="deviceNo != null">#{deviceNo},</if>
+            <if test="assayType != null">#{assayType},</if>
+            <if test="itemName != null">#{itemName},</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>
+         </trim>
+    </insert>
+
+    <update id="updateZDeviceSample" parameterType="ZDeviceSample">
+        update z_device_sample
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="deviceNo != null">device_no = #{deviceNo},</if>
+            <if test="assayType != null">assay_type = #{assayType},</if>
+            <if test="itemName != null">item_name = #{itemName},</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>
+        </trim>
+        where sample_id = #{sampleId}
+    </update>
+
+    <delete id="deleteZDeviceSampleBySampleId" parameterType="Long">
+        delete from z_device_sample where sample_id = #{sampleId}
+    </delete>
+
+    <delete id="deleteZDeviceSampleBySampleIds" parameterType="String">
+        delete from z_device_sample where sample_id in 
+        <foreach item="sampleId" collection="array" open="(" separator="," close=")">
+            #{sampleId}
+        </foreach>
+    </delete>
+</mapper>

+ 96 - 0
src/main/resources/mapper/ZQualityValueMapper.xml

@@ -0,0 +1,96 @@
+<?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.robot.remote.smartrobotremote.mapper.ZQualityValueMapper">
+    
+    <resultMap type="ZQualityValue" id="ZQualityValueResult">
+        <result property="valueId"    column="value_id"    />
+        <result property="deviceWorks"    column="device_works"    />
+        <result property="assayItem"    column="assay_item"    />
+        <result property="resultValue"    column="result_value"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="endTime"    column="end_time"    />
+        <result property="lowValue"    column="low_value"    />
+        <result property="highValue"    column="high_value"    />
+        <result property="beginTime"    column="begin_time"    />
+    </resultMap>
+
+    <sql id="selectZQualityValueVo">
+        select value_id, device_works, assay_item, result_value, create_time, update_time, end_time, low_value, high_value, begin_time from z_quality_value
+    </sql>
+
+    <select id="selectZQualityValueList" parameterType="ZQualityValue" resultMap="ZQualityValueResult">
+        <include refid="selectZQualityValueVo"/>
+        <where>  
+            <if test="deviceWorks != null "> and device_works = #{deviceWorks}</if>
+            <if test="assayItem != null  and assayItem != ''"> and assay_item = #{assayItem}</if>
+            <if test="resultValue != null "> and result_value = #{resultValue}</if>
+            <if test="endTime != null "> and end_time = #{endTime}</if>
+            <if test="lowValue != null "> and low_value = #{lowValue}</if>
+            <if test="highValue != null "> and high_value = #{highValue}</if>
+            <if test="beginTime != null "> and begin_time = #{beginTime}</if>
+        </where>
+    </select>
+    
+    <select id="selectZQualityValueByValueId" parameterType="Long" resultMap="ZQualityValueResult">
+        <include refid="selectZQualityValueVo"/>
+        where value_id = #{valueId}
+    </select>
+
+    <insert id="insertZQualityValue" parameterType="ZQualityValue">
+        insert into z_quality_value
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="valueId != null">value_id,</if>
+            <if test="deviceWorks != null">device_works,</if>
+            <if test="assayItem != null">assay_item,</if>
+            <if test="resultValue != null">result_value,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="endTime != null">end_time,</if>
+            <if test="lowValue != null">low_value,</if>
+            <if test="highValue != null">high_value,</if>
+            <if test="beginTime != null">begin_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="valueId != null">#{valueId},</if>
+            <if test="deviceWorks != null">#{deviceWorks},</if>
+            <if test="assayItem != null">#{assayItem},</if>
+            <if test="resultValue != null">#{resultValue},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="endTime != null">#{endTime},</if>
+            <if test="lowValue != null">#{lowValue},</if>
+            <if test="highValue != null">#{highValue},</if>
+            <if test="beginTime != null">#{beginTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateZQualityValue" parameterType="ZQualityValue">
+        update z_quality_value
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="deviceWorks != null">device_works = #{deviceWorks},</if>
+            <if test="assayItem != null">assay_item = #{assayItem},</if>
+            <if test="resultValue != null">result_value = #{resultValue},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="endTime != null">end_time = #{endTime},</if>
+            <if test="lowValue != null">low_value = #{lowValue},</if>
+            <if test="highValue != null">high_value = #{highValue},</if>
+            <if test="beginTime != null">begin_time = #{beginTime},</if>
+        </trim>
+        where value_id = #{valueId}
+    </update>
+
+    <delete id="deleteZQualityValueByValueId" parameterType="Long">
+        delete from z_quality_value where value_id = #{valueId}
+    </delete>
+
+    <delete id="deleteZQualityValueByValueIds" parameterType="String">
+        delete from z_quality_value where value_id in 
+        <foreach item="valueId" collection="array" open="(" separator="," close=")">
+            #{valueId}
+        </foreach>
+    </delete>
+</mapper>

BIN
target/classes/com/robot/remote/smartrobotremote/domain/BizDevice$BizDeviceBuilder.class


BIN
target/classes/com/robot/remote/smartrobotremote/domain/BizDevice.class


BIN
target/classes/com/robot/remote/smartrobotremote/domain/BizWaterWork.class


BIN
target/classes/com/robot/remote/smartrobotremote/domain/SysAssayItem.class


BIN
target/classes/com/robot/remote/smartrobotremote/domain/ZAssay.class


BIN
target/classes/com/robot/remote/smartrobotremote/domain/ZAssayResult.class


BIN
target/classes/com/robot/remote/smartrobotremote/domain/ZDeviceSample.class


BIN
target/classes/com/robot/remote/smartrobotremote/domain/ZQualityValue.class


BIN
target/classes/com/robot/remote/smartrobotremote/mapper/BizWaterWorkMapper.class


BIN
target/classes/com/robot/remote/smartrobotremote/mapper/SysAssayItemMapper.class


BIN
target/classes/com/robot/remote/smartrobotremote/mapper/ZAssayMapper.class


BIN
target/classes/com/robot/remote/smartrobotremote/mapper/ZAssayResultMapper.class


BIN
target/classes/com/robot/remote/smartrobotremote/mapper/ZDeviceSampleMapper.class


BIN
target/classes/com/robot/remote/smartrobotremote/mapper/ZQualityValueMapper.class


+ 188 - 189
target/classes/mapper/BizDeviceMapper.xml

@@ -1,190 +1,189 @@
-<?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.robot.remote.smartrobotremote.mapper.BizDeviceMapper">
-    
-    <resultMap type="BizDevice" id="BizDeviceResult">
-        <result property="deviceId"    column="device_id"    />
-        <result property="deviceNo"    column="device_no"    />
-        <result property="deviceName"    column="device_name"    />
-        <result property="deviceSn"    column="device_sn"    />
-        <result property="deviceModel"    column="device_model"    />
-        <result property="deviceMaker"    column="device_maker"    />
-        <result property="deviceWorks"    column="device_works"    />
-        <result property="deviceMaintainer"    column="device_maintainer"    />
-        <result property="deviceTel"    column="device_tel"    />
-        <result property="deviceType"    column="device_type"    />
-        <result property="deviceStatus"    column="device_status"    />
-        <result property="assayStatus"    column="assay_status"    />
-        <result property="assayTime"    column="assay_time"    />
-        <result property="repairTime"    column="repair_time"    />
-        <result property="repairBy"    column="repair_by"    />
-        <result property="faultCode"    column="fault_code"    />
-        <result property="deviceXujieJieguo"    column="device_xujie_jieguo"    />
-        <result property="deviceXujieBaojing"    column="device_xujie_baojing"    />
-        <result property="deviceProvince"    column="device_province"    />
-        <result property="deviceCity"    column="device_city"    />
-        <result property="deviceArea"    column="device_area"    />
-        <result property="deviceLongitude"    column="device_longitude"    />
-        <result property="deviceLatitude"    column="device_latitude"    />
-        <result property="deviceAddress"    column="device_address"    />
-        <result property="type"    column="type"    />
-    </resultMap>
-
-    <sql id="selectBizDeviceVo">
-        select device_id, device_no, device_name, device_sn, device_model, device_maker, device_works, device_maintainer, device_tel, device_type, device_status, assay_status, assay_time, repair_time, repair_by, create_by, create_time, update_by, update_time, fault_code, device_xujie_jieguo, device_xujie_baojing, device_province, device_city, device_area, device_longitude, device_latitude, device_address, type from biz_device
-    </sql>
-
-    <select id="selectBizDeviceList" parameterType="BizDevice" resultMap="BizDeviceResult">
-        <include refid="selectBizDeviceVo"/>
-        <where>
-            1 = 1
-            <if test="deviceNo != null  and deviceNo != ''"> and device_no = #{deviceNo}</if>
-            <if test="deviceName != null  and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
-            <if test="deviceSn != null  and deviceSn != ''"> and device_sn = #{deviceSn}</if>
-            <if test="deviceModel != null  and deviceModel != ''"> and device_model = #{deviceModel}</if>
-            <if test="deviceMaker != null  and deviceMaker != ''"> and device_maker = #{deviceMaker}</if>
-            <if test="deviceWorks != null "> and device_works = #{deviceWorks}</if>
-            <if test="deviceMaintainer != null  and deviceMaintainer != ''"> and device_maintainer = #{deviceMaintainer}</if>
-            <if test="deviceTel != null  and deviceTel != ''"> and device_tel = #{deviceTel}</if>
-            <if test="deviceType != null  and deviceType != ''"> and device_type = #{deviceType}</if>
-            <if test="deviceStatus != null  and deviceStatus != ''"> and device_status = #{deviceStatus}</if>
-            <if test="assayStatus != null  and assayStatus != ''"> and assay_status = #{assayStatus}</if>
-            <if test="assayTime != null "> and assay_time = #{assayTime}</if>
-            <if test="repairTime != null "> and repair_time = #{repairTime}</if>
-            <if test="repairBy != null  and repairBy != ''"> and repair_by = #{repairBy}</if>
-            <if test="faultCode != null  and faultCode != ''"> and fault_code = #{faultCode}</if>
-            <if test="deviceXujieJieguo != null  and deviceXujieJieguo != ''"> and device_xujie_jieguo = #{deviceXujieJieguo}</if>
-            <if test="deviceXujieBaojing != null  and deviceXujieBaojing != ''"> and device_xujie_baojing = #{deviceXujieBaojing}</if>
-            <if test="deviceProvince != null  and deviceProvince != ''"> and device_province = #{deviceProvince}</if>
-            <if test="deviceCity != null  and deviceCity != ''"> and device_city = #{deviceCity}</if>
-            <if test="deviceArea != null  and deviceArea != ''"> and device_area = #{deviceArea}</if>
-            <if test="deviceLongitude != null  and deviceLongitude != ''"> and device_longitude = #{deviceLongitude}</if>
-            <if test="deviceLatitude != null  and deviceLatitude != ''"> and device_latitude = #{deviceLatitude}</if>
-            <if test="deviceAddress != null  and deviceAddress != ''"> and device_address = #{deviceAddress}</if>
-            <if test="type != null  and type != ''"> and type = #{type}</if>
-        </where>
-            order by device_id desc
-    </select>
-    
-    <select id="selectBizDeviceByDeviceId" parameterType="Long" resultMap="BizDeviceResult">
-        <include refid="selectBizDeviceVo"/>
-        where device_id = #{deviceId}
-    </select>
-        
-    <insert id="insertBizDevice" parameterType="BizDevice">
-        insert into biz_device
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="deviceId != null">device_id,</if>
-            <if test="deviceNo != null">device_no,</if>
-            <if test="deviceName != null">device_name,</if>
-            <if test="deviceSn != null">device_sn,</if>
-            <if test="deviceModel != null">device_model,</if>
-            <if test="deviceMaker != null">device_maker,</if>
-            <if test="deviceWorks != null">device_works,</if>
-            <if test="deviceMaintainer != null">device_maintainer,</if>
-            <if test="deviceTel != null">device_tel,</if>
-            <if test="deviceType != null">device_type,</if>
-            <if test="deviceStatus != null">device_status,</if>
-            <if test="assayStatus != null">assay_status,</if>
-            <if test="assayTime != null">assay_time,</if>
-            <if test="repairTime != null">repair_time,</if>
-            <if test="repairBy != null">repair_by,</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="faultCode != null">fault_code,</if>
-            <if test="deviceXujieJieguo != null">device_xujie_jieguo,</if>
-            <if test="deviceXujieBaojing != null">device_xujie_baojing,</if>
-            <if test="deviceProvince != null">device_province,</if>
-            <if test="deviceCity != null">device_city,</if>
-            <if test="deviceArea != null">device_area,</if>
-            <if test="deviceLongitude != null">device_longitude,</if>
-            <if test="deviceLatitude != null">device_latitude,</if>
-            <if test="deviceAddress != null">device_address,</if>
-            <if test="type != null">type,</if>
-         </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="deviceId != null">#{deviceId},</if>
-            <if test="deviceNo != null">#{deviceNo},</if>
-            <if test="deviceName != null">#{deviceName},</if>
-            <if test="deviceSn != null">#{deviceSn},</if>
-            <if test="deviceModel != null">#{deviceModel},</if>
-            <if test="deviceMaker != null">#{deviceMaker},</if>
-            <if test="deviceWorks != null">#{deviceWorks},</if>
-            <if test="deviceMaintainer != null">#{deviceMaintainer},</if>
-            <if test="deviceTel != null">#{deviceTel},</if>
-            <if test="deviceType != null">#{deviceType},</if>
-            <if test="deviceStatus != null">#{deviceStatus},</if>
-            <if test="assayStatus != null">#{assayStatus},</if>
-            <if test="assayTime != null">#{assayTime},</if>
-            <if test="repairTime != null">#{repairTime},</if>
-            <if test="repairBy != null">#{repairBy},</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="faultCode != null">#{faultCode},</if>
-            <if test="deviceXujieJieguo != null">#{deviceXujieJieguo},</if>
-            <if test="deviceXujieBaojing != null">#{deviceXujieBaojing},</if>
-            <if test="deviceProvince != null">#{deviceProvince},</if>
-            <if test="deviceCity != null">#{deviceCity},</if>
-            <if test="deviceArea != null">#{deviceArea},</if>
-            <if test="deviceLongitude != null">#{deviceLongitude},</if>
-            <if test="deviceLatitude != null">#{deviceLatitude},</if>
-            <if test="deviceAddress != null">#{deviceAddress},</if>
-            <if test="type != null">#{type},</if>
-         </trim>
-    </insert>
-
-    <update id="updateBizDevice" parameterType="BizDevice">
-        update biz_device
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="deviceNo != null">device_no = #{deviceNo},</if>
-            <if test="deviceName != null">device_name = #{deviceName},</if>
-            <if test="deviceSn != null">device_sn = #{deviceSn},</if>
-            <if test="deviceModel != null">device_model = #{deviceModel},</if>
-            <if test="deviceMaker != null">device_maker = #{deviceMaker},</if>
-            <if test="deviceWorks != null">device_works = #{deviceWorks},</if>
-            <if test="deviceMaintainer != null">device_maintainer = #{deviceMaintainer},</if>
-            <if test="deviceTel != null">device_tel = #{deviceTel},</if>
-            <if test="deviceType != null">device_type = #{deviceType},</if>
-            <if test="deviceStatus != null">device_status = #{deviceStatus},</if>
-            <if test="assayStatus != null">assay_status = #{assayStatus},</if>
-            <if test="assayTime != null">assay_time = #{assayTime},</if>
-            <if test="repairTime != null">repair_time = #{repairTime},</if>
-            <if test="repairBy != null">repair_by = #{repairBy},</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="faultCode != null">fault_code = #{faultCode},</if>
-            <if test="deviceXujieJieguo != null">device_xujie_jieguo = #{deviceXujieJieguo},</if>
-            <if test="deviceXujieBaojing != null">device_xujie_baojing = #{deviceXujieBaojing},</if>
-            <if test="deviceProvince != null">device_province = #{deviceProvince},</if>
-            <if test="deviceCity != null">device_city = #{deviceCity},</if>
-            <if test="deviceArea != null">device_area = #{deviceArea},</if>
-            <if test="deviceLongitude != null">device_longitude = #{deviceLongitude},</if>
-            <if test="deviceLatitude != null">device_latitude = #{deviceLatitude},</if>
-            <if test="deviceAddress != null">device_address = #{deviceAddress},</if>
-            <if test="type != null">type = #{type},</if>
-        </trim>
-        where device_id = #{deviceId}
-    </update>
-
-    
-
-    <delete id="deleteBizDeviceByDeviceId" parameterType="Long">
-        update biz_device set del_flag = 2,revision = revision + 1 where del_flag = 0 and device_id = #{deviceId}
-    </delete>
-
-    <delete id="deleteBizDeviceByDeviceIds" parameterType="String">
-        update biz_device set del_flag = 2,revision = revision + 1 where del_flag = 0 and device_id in
-        <foreach item="deviceId" collection="array" open="(" separator="," close=")">
-            #{deviceId}
-        </foreach>
-    </delete>
-
+<?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.robot.remote.smartrobotremote.mapper.BizDeviceMapper">
+    
+    <resultMap type="BizDevice" id="BizDeviceResult">
+        <result property="deviceId"    column="device_id"    />
+        <result property="deviceNo"    column="device_no"    />
+        <result property="deviceName"    column="device_name"    />
+        <result property="deviceSn"    column="device_sn"    />
+        <result property="deviceModel"    column="device_model"    />
+        <result property="deviceMaker"    column="device_maker"    />
+        <result property="deviceWorks"    column="device_works"    />
+        <result property="deviceMaintainer"    column="device_maintainer"    />
+        <result property="deviceTel"    column="device_tel"    />
+        <result property="deviceType"    column="device_type"    />
+        <result property="deviceStatus"    column="device_status"    />
+        <result property="assayStatus"    column="assay_status"    />
+        <result property="assayTime"    column="assay_time"    />
+        <result property="repairTime"    column="repair_time"    />
+        <result property="repairBy"    column="repair_by"    />
+        <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="faultCode"    column="fault_code"    />
+        <result property="deviceXujieJieguo"    column="device_xujie_jieguo"    />
+        <result property="deviceXujieBaojing"    column="device_xujie_baojing"    />
+        <result property="deviceProvince"    column="device_province"    />
+        <result property="deviceCity"    column="device_city"    />
+        <result property="deviceArea"    column="device_area"    />
+        <result property="deviceLongitude"    column="device_longitude"    />
+        <result property="deviceLatitude"    column="device_latitude"    />
+        <result property="deviceAddress"    column="device_address"    />
+        <result property="type"    column="type"    />
+    </resultMap>
+
+    <sql id="selectBizDeviceVo">
+        select device_id, device_no, device_name, device_sn, device_model, device_maker, device_works, device_maintainer, device_tel, device_type, device_status, assay_status, assay_time, repair_time, repair_by, create_by, create_time, update_by, update_time, fault_code, device_xujie_jieguo, device_xujie_baojing, device_province, device_city, device_area, device_longitude, device_latitude, device_address, type from biz_device
+    </sql>
+
+    <select id="selectBizDeviceList" parameterType="BizDevice" resultMap="BizDeviceResult">
+        <include refid="selectBizDeviceVo"/>
+        <where>  
+            <if test="deviceNo != null  and deviceNo != ''"> and device_no = #{deviceNo}</if>
+            <if test="deviceName != null  and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
+            <if test="deviceSn != null  and deviceSn != ''"> and device_sn = #{deviceSn}</if>
+            <if test="deviceModel != null  and deviceModel != ''"> and device_model = #{deviceModel}</if>
+            <if test="deviceMaker != null  and deviceMaker != ''"> and device_maker = #{deviceMaker}</if>
+            <if test="deviceWorks != null "> and device_works = #{deviceWorks}</if>
+            <if test="deviceMaintainer != null  and deviceMaintainer != ''"> and device_maintainer = #{deviceMaintainer}</if>
+            <if test="deviceTel != null  and deviceTel != ''"> and device_tel = #{deviceTel}</if>
+            <if test="deviceType != null  and deviceType != ''"> and device_type = #{deviceType}</if>
+            <if test="deviceStatus != null  and deviceStatus != ''"> and device_status = #{deviceStatus}</if>
+            <if test="assayStatus != null  and assayStatus != ''"> and assay_status = #{assayStatus}</if>
+            <if test="assayTime != null "> and assay_time = #{assayTime}</if>
+            <if test="repairTime != null "> and repair_time = #{repairTime}</if>
+            <if test="repairBy != null  and repairBy != ''"> and repair_by = #{repairBy}</if>
+            <if test="faultCode != null  and faultCode != ''"> and fault_code = #{faultCode}</if>
+            <if test="deviceXujieJieguo != null  and deviceXujieJieguo != ''"> and device_xujie_jieguo = #{deviceXujieJieguo}</if>
+            <if test="deviceXujieBaojing != null  and deviceXujieBaojing != ''"> and device_xujie_baojing = #{deviceXujieBaojing}</if>
+            <if test="deviceProvince != null  and deviceProvince != ''"> and device_province = #{deviceProvince}</if>
+            <if test="deviceCity != null  and deviceCity != ''"> and device_city = #{deviceCity}</if>
+            <if test="deviceArea != null  and deviceArea != ''"> and device_area = #{deviceArea}</if>
+            <if test="deviceLongitude != null  and deviceLongitude != ''"> and device_longitude = #{deviceLongitude}</if>
+            <if test="deviceLatitude != null  and deviceLatitude != ''"> and device_latitude = #{deviceLatitude}</if>
+            <if test="deviceAddress != null  and deviceAddress != ''"> and device_address = #{deviceAddress}</if>
+            <if test="type != null  and type != ''"> and type = #{type}</if>
+        </where>
+    </select>
+    
+    <select id="selectBizDeviceByDeviceId" parameterType="Long" resultMap="BizDeviceResult">
+        <include refid="selectBizDeviceVo"/>
+        where device_id = #{deviceId}
+    </select>
+
+    <insert id="insertBizDevice" parameterType="BizDevice">
+        insert into biz_device
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="deviceId != null">device_id,</if>
+            <if test="deviceNo != null">device_no,</if>
+            <if test="deviceName != null">device_name,</if>
+            <if test="deviceSn != null">device_sn,</if>
+            <if test="deviceModel != null">device_model,</if>
+            <if test="deviceMaker != null">device_maker,</if>
+            <if test="deviceWorks != null">device_works,</if>
+            <if test="deviceMaintainer != null">device_maintainer,</if>
+            <if test="deviceTel != null">device_tel,</if>
+            <if test="deviceType != null">device_type,</if>
+            <if test="deviceStatus != null">device_status,</if>
+            <if test="assayStatus != null">assay_status,</if>
+            <if test="assayTime != null">assay_time,</if>
+            <if test="repairTime != null">repair_time,</if>
+            <if test="repairBy != null">repair_by,</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="faultCode != null">fault_code,</if>
+            <if test="deviceXujieJieguo != null">device_xujie_jieguo,</if>
+            <if test="deviceXujieBaojing != null">device_xujie_baojing,</if>
+            <if test="deviceProvince != null">device_province,</if>
+            <if test="deviceCity != null">device_city,</if>
+            <if test="deviceArea != null">device_area,</if>
+            <if test="deviceLongitude != null">device_longitude,</if>
+            <if test="deviceLatitude != null">device_latitude,</if>
+            <if test="deviceAddress != null">device_address,</if>
+            <if test="type != null">type,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="deviceId != null">#{deviceId},</if>
+            <if test="deviceNo != null">#{deviceNo},</if>
+            <if test="deviceName != null">#{deviceName},</if>
+            <if test="deviceSn != null">#{deviceSn},</if>
+            <if test="deviceModel != null">#{deviceModel},</if>
+            <if test="deviceMaker != null">#{deviceMaker},</if>
+            <if test="deviceWorks != null">#{deviceWorks},</if>
+            <if test="deviceMaintainer != null">#{deviceMaintainer},</if>
+            <if test="deviceTel != null">#{deviceTel},</if>
+            <if test="deviceType != null">#{deviceType},</if>
+            <if test="deviceStatus != null">#{deviceStatus},</if>
+            <if test="assayStatus != null">#{assayStatus},</if>
+            <if test="assayTime != null">#{assayTime},</if>
+            <if test="repairTime != null">#{repairTime},</if>
+            <if test="repairBy != null">#{repairBy},</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="faultCode != null">#{faultCode},</if>
+            <if test="deviceXujieJieguo != null">#{deviceXujieJieguo},</if>
+            <if test="deviceXujieBaojing != null">#{deviceXujieBaojing},</if>
+            <if test="deviceProvince != null">#{deviceProvince},</if>
+            <if test="deviceCity != null">#{deviceCity},</if>
+            <if test="deviceArea != null">#{deviceArea},</if>
+            <if test="deviceLongitude != null">#{deviceLongitude},</if>
+            <if test="deviceLatitude != null">#{deviceLatitude},</if>
+            <if test="deviceAddress != null">#{deviceAddress},</if>
+            <if test="type != null">#{type},</if>
+         </trim>
+    </insert>
+
+    <update id="updateBizDevice" parameterType="BizDevice">
+        update biz_device
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="deviceNo != null">device_no = #{deviceNo},</if>
+            <if test="deviceName != null">device_name = #{deviceName},</if>
+            <if test="deviceSn != null">device_sn = #{deviceSn},</if>
+            <if test="deviceModel != null">device_model = #{deviceModel},</if>
+            <if test="deviceMaker != null">device_maker = #{deviceMaker},</if>
+            <if test="deviceWorks != null">device_works = #{deviceWorks},</if>
+            <if test="deviceMaintainer != null">device_maintainer = #{deviceMaintainer},</if>
+            <if test="deviceTel != null">device_tel = #{deviceTel},</if>
+            <if test="deviceType != null">device_type = #{deviceType},</if>
+            <if test="deviceStatus != null">device_status = #{deviceStatus},</if>
+            <if test="assayStatus != null">assay_status = #{assayStatus},</if>
+            <if test="assayTime != null">assay_time = #{assayTime},</if>
+            <if test="repairTime != null">repair_time = #{repairTime},</if>
+            <if test="repairBy != null">repair_by = #{repairBy},</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="faultCode != null">fault_code = #{faultCode},</if>
+            <if test="deviceXujieJieguo != null">device_xujie_jieguo = #{deviceXujieJieguo},</if>
+            <if test="deviceXujieBaojing != null">device_xujie_baojing = #{deviceXujieBaojing},</if>
+            <if test="deviceProvince != null">device_province = #{deviceProvince},</if>
+            <if test="deviceCity != null">device_city = #{deviceCity},</if>
+            <if test="deviceArea != null">device_area = #{deviceArea},</if>
+            <if test="deviceLongitude != null">device_longitude = #{deviceLongitude},</if>
+            <if test="deviceLatitude != null">device_latitude = #{deviceLatitude},</if>
+            <if test="deviceAddress != null">device_address = #{deviceAddress},</if>
+            <if test="type != null">type = #{type},</if>
+        </trim>
+        where device_id = #{deviceId}
+    </update>
+
+    <delete id="deleteBizDeviceByDeviceId" parameterType="Long">
+        delete from biz_device where device_id = #{deviceId}
+    </delete>
+
+    <delete id="deleteBizDeviceByDeviceIds" parameterType="String">
+        delete from biz_device where device_id in 
+        <foreach item="deviceId" collection="array" open="(" separator="," close=")">
+            #{deviceId}
+        </foreach>
+    </delete>
 </mapper>

+ 163 - 0
target/classes/mapper/BizWaterWorkMapper.xml

@@ -0,0 +1,163 @@
+<?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.robot.remote.smartrobotremote.mapper.BizWaterWorkMapper">
+    
+    <resultMap type="BizWaterWork" id="BizWaterWorkResult">
+        <result property="worksId"    column="works_id"    />
+        <result property="parentId"    column="parent_id"    />
+        <result property="ancestors"    column="ancestors"    />
+        <result property="worksName"    column="works_name"    />
+        <result property="orderNum"    column="order_num"    />
+        <result property="worksStatus"    column="works_status"    />
+        <result property="delFlag"    column="del_flag"    />
+        <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="worksNo"    column="works_no"    />
+        <result property="worksProvince"    column="works_province"    />
+        <result property="worksCity"    column="works_city"    />
+        <result property="worksArea"    column="works_area"    />
+        <result property="worksLongitude"    column="works_longitude"    />
+        <result property="worksLatitude"    column="works_latitude"    />
+        <result property="worksAddress"    column="works_address"    />
+        <result property="worksCount"    column="works_count"    />
+        <result property="worksType"    column="works_type"    />
+        <result property="worksCenter"    column="works_center"    />
+        <result property="worksBelong"    column="works_belong"    />
+        <result property="worksMaintainer"    column="works_maintainer"    />
+        <result property="worksTel"    column="works_tel"    />
+    </resultMap>
+
+    <sql id="selectBizWaterWorkVo">
+        select works_id, parent_id, ancestors, works_name, order_num, works_status, del_flag, create_by, create_time, update_by, update_time, works_no, works_province, works_city, works_area, works_longitude, works_latitude, works_address, works_count, works_type, works_center, works_belong, works_maintainer, works_tel from biz_water_work
+    </sql>
+
+    <select id="selectBizWaterWorkList" parameterType="BizWaterWork" resultMap="BizWaterWorkResult">
+        <include refid="selectBizWaterWorkVo"/>
+        <where>  
+            <if test="parentId != null "> and parent_id = #{parentId}</if>
+            <if test="ancestors != null  and ancestors != ''"> and ancestors = #{ancestors}</if>
+            <if test="worksName != null  and worksName != ''"> and works_name like concat('%', #{worksName}, '%')</if>
+            <if test="orderNum != null "> and order_num = #{orderNum}</if>
+            <if test="worksStatus != null  and worksStatus != ''"> and works_status = #{worksStatus}</if>
+            <if test="worksNo != null  and worksNo != ''"> and works_no = #{worksNo}</if>
+            <if test="worksProvince != null  and worksProvince != ''"> and works_province = #{worksProvince}</if>
+            <if test="worksCity != null  and worksCity != ''"> and works_city = #{worksCity}</if>
+            <if test="worksArea != null  and worksArea != ''"> and works_area = #{worksArea}</if>
+            <if test="worksLongitude != null  and worksLongitude != ''"> and works_longitude = #{worksLongitude}</if>
+            <if test="worksLatitude != null  and worksLatitude != ''"> and works_latitude = #{worksLatitude}</if>
+            <if test="worksAddress != null  and worksAddress != ''"> and works_address = #{worksAddress}</if>
+            <if test="worksCount != null "> and works_count = #{worksCount}</if>
+            <if test="worksType != null  and worksType != ''"> and works_type = #{worksType}</if>
+            <if test="worksCenter != null  and worksCenter != ''"> and works_center = #{worksCenter}</if>
+            <if test="worksBelong != null "> and works_belong = #{worksBelong}</if>
+            <if test="worksMaintainer != null  and worksMaintainer != ''"> and works_maintainer = #{worksMaintainer}</if>
+            <if test="worksTel != null  and worksTel != ''"> and works_tel = #{worksTel}</if>
+        </where>
+    </select>
+    
+    <select id="selectBizWaterWorkByWorksId" parameterType="Long" resultMap="BizWaterWorkResult">
+        <include refid="selectBizWaterWorkVo"/>
+        where works_id = #{worksId}
+    </select>
+
+    <insert id="insertBizWaterWork" parameterType="BizWaterWork">
+        insert into biz_water_work
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="worksId != null">works_id,</if>
+            <if test="parentId != null">parent_id,</if>
+            <if test="ancestors != null">ancestors,</if>
+            <if test="worksName != null">works_name,</if>
+            <if test="orderNum != null">order_num,</if>
+            <if test="worksStatus != null">works_status,</if>
+            <if test="delFlag != null">del_flag,</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="worksNo != null">works_no,</if>
+            <if test="worksProvince != null">works_province,</if>
+            <if test="worksCity != null">works_city,</if>
+            <if test="worksArea != null">works_area,</if>
+            <if test="worksLongitude != null">works_longitude,</if>
+            <if test="worksLatitude != null">works_latitude,</if>
+            <if test="worksAddress != null">works_address,</if>
+            <if test="worksCount != null">works_count,</if>
+            <if test="worksType != null">works_type,</if>
+            <if test="worksCenter != null">works_center,</if>
+            <if test="worksBelong != null">works_belong,</if>
+            <if test="worksMaintainer != null">works_maintainer,</if>
+            <if test="worksTel != null">works_tel,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="worksId != null">#{worksId},</if>
+            <if test="parentId != null">#{parentId},</if>
+            <if test="ancestors != null">#{ancestors},</if>
+            <if test="worksName != null">#{worksName},</if>
+            <if test="orderNum != null">#{orderNum},</if>
+            <if test="worksStatus != null">#{worksStatus},</if>
+            <if test="delFlag != null">#{delFlag},</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="worksNo != null">#{worksNo},</if>
+            <if test="worksProvince != null">#{worksProvince},</if>
+            <if test="worksCity != null">#{worksCity},</if>
+            <if test="worksArea != null">#{worksArea},</if>
+            <if test="worksLongitude != null">#{worksLongitude},</if>
+            <if test="worksLatitude != null">#{worksLatitude},</if>
+            <if test="worksAddress != null">#{worksAddress},</if>
+            <if test="worksCount != null">#{worksCount},</if>
+            <if test="worksType != null">#{worksType},</if>
+            <if test="worksCenter != null">#{worksCenter},</if>
+            <if test="worksBelong != null">#{worksBelong},</if>
+            <if test="worksMaintainer != null">#{worksMaintainer},</if>
+            <if test="worksTel != null">#{worksTel},</if>
+         </trim>
+    </insert>
+
+    <update id="updateBizWaterWork" parameterType="BizWaterWork">
+        update biz_water_work
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="parentId != null">parent_id = #{parentId},</if>
+            <if test="ancestors != null">ancestors = #{ancestors},</if>
+            <if test="worksName != null">works_name = #{worksName},</if>
+            <if test="orderNum != null">order_num = #{orderNum},</if>
+            <if test="worksStatus != null">works_status = #{worksStatus},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</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="worksNo != null">works_no = #{worksNo},</if>
+            <if test="worksProvince != null">works_province = #{worksProvince},</if>
+            <if test="worksCity != null">works_city = #{worksCity},</if>
+            <if test="worksArea != null">works_area = #{worksArea},</if>
+            <if test="worksLongitude != null">works_longitude = #{worksLongitude},</if>
+            <if test="worksLatitude != null">works_latitude = #{worksLatitude},</if>
+            <if test="worksAddress != null">works_address = #{worksAddress},</if>
+            <if test="worksCount != null">works_count = #{worksCount},</if>
+            <if test="worksType != null">works_type = #{worksType},</if>
+            <if test="worksCenter != null">works_center = #{worksCenter},</if>
+            <if test="worksBelong != null">works_belong = #{worksBelong},</if>
+            <if test="worksMaintainer != null">works_maintainer = #{worksMaintainer},</if>
+            <if test="worksTel != null">works_tel = #{worksTel},</if>
+        </trim>
+        where works_id = #{worksId}
+    </update>
+
+    <delete id="deleteBizWaterWorkByWorksId" parameterType="Long">
+        delete from biz_water_work where works_id = #{worksId}
+    </delete>
+
+    <delete id="deleteBizWaterWorkByWorksIds" parameterType="String">
+        delete from biz_water_work where works_id in 
+        <foreach item="worksId" collection="array" open="(" separator="," close=")">
+            #{worksId}
+        </foreach>
+    </delete>
+</mapper>

+ 59 - 0
target/classes/mapper/SysAssayItemMapper.xml

@@ -0,0 +1,59 @@
+<?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.robot.remote.smartrobotremote.mapper.SysAssayItemMapper">
+    
+    <resultMap type="SysAssayItem" id="SysAssayItemResult">
+        <result property="assayItem"    column="assay_item"    />
+        <result property="itemName"    column="item_name"    />
+    </resultMap>
+
+    <sql id="selectSysAssayItemVo">
+        select assay_item, item_name from sys_assay_item
+    </sql>
+
+    <select id="selectSysAssayItemList" parameterType="SysAssayItem" resultMap="SysAssayItemResult">
+        <include refid="selectSysAssayItemVo"/>
+        <where>  
+            <if test="assayItem != null "> and assay_item = #{assayItem}</if>
+            <if test="itemName != null  and itemName != ''"> and item_name like concat('%', #{itemName}, '%')</if>
+        </where>
+    </select>
+    
+    <select id="selectSysAssayItemByAssayItem" parameterType="Long" resultMap="SysAssayItemResult">
+        <include refid="selectSysAssayItemVo"/>
+        where assay_item = #{assayItem}
+    </select>
+
+    <insert id="insertSysAssayItem" parameterType="SysAssayItem">
+        insert into sys_assay_item
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="assayItem != null">assay_item,</if>
+            <if test="itemName != null and itemName != ''">item_name,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="assayItem != null">#{assayItem},</if>
+            <if test="itemName != null and itemName != ''">#{itemName},</if>
+         </trim>
+    </insert>
+
+    <update id="updateSysAssayItem" parameterType="SysAssayItem">
+        update sys_assay_item
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="itemName != null and itemName != ''">item_name = #{itemName},</if>
+        </trim>
+        where assay_item = #{assayItem}
+    </update>
+
+    <delete id="deleteSysAssayItemByAssayItem" parameterType="Long">
+        delete from sys_assay_item where assay_item = #{assayItem}
+    </delete>
+
+    <delete id="deleteSysAssayItemByAssayItems" parameterType="String">
+        delete from sys_assay_item where assay_item in 
+        <foreach item="assayItem" collection="array" open="(" separator="," close=")">
+            #{assayItem}
+        </foreach>
+    </delete>
+</mapper>

+ 164 - 0
target/classes/mapper/ZAssayMapper.xml

@@ -0,0 +1,164 @@
+<?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.robot.remote.smartrobotremote.mapper.ZAssayMapper">
+    
+    <resultMap type="ZAssay" id="ZAssayResult">
+        <result property="assayId"    column="assay_id"    />
+        <result property="assayNo"    column="assay_no"    />
+        <result property="deviceNo"    column="device_no"    />
+        <result property="assayType"    column="assay_type"    />
+        <result property="assayBigprocess"    column="assay_bigprocess"    />
+        <result property="assaySmallprocess"    column="assay_smallprocess"    />
+        <result property="beginTime"    column="begin_time"    />
+        <result property="endTime"    column="end_time"    />
+        <result property="assayDate"    column="assay_date"    />
+        <result property="assayBy"    column="assay_by"    />
+        <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="version"    column="version"    />
+        <result property="stepName"    column="step_name"    />
+        <result property="stepTotal"    column="step_total"    />
+        <result property="stepNow"    column="step_now"    />
+        <result property="stepInfo1"    column="step_info1"    />
+        <result property="stepInfo2"    column="step_info2"    />
+        <result property="stepInfo3"    column="step_info3"    />
+        <result property="assayStatus"    column="assay_status"    />
+        <result property="assayMethod"    column="assay_method"    />
+        <result property="cPangusyncsourcetimestamp"    column="C_PanguSyncSourceTimestamp"    />
+    </resultMap>
+
+    <sql id="selectZAssayVo">
+        select assay_id, assay_no, device_no, assay_type, assay_bigprocess, assay_smallprocess, begin_time, end_time, assay_date, assay_by, create_by, create_time, update_by, update_time, version, step_name, step_total, step_now, step_info1, step_info2, step_info3, assay_status, assay_method, C_PanguSyncSourceTimestamp from z_assay
+    </sql>
+
+    <select id="selectZAssayList" parameterType="ZAssay" resultMap="ZAssayResult">
+        <include refid="selectZAssayVo"/>
+        <where>  
+            <if test="assayNo != null  and assayNo != ''"> and assay_no = #{assayNo}</if>
+            <if test="deviceNo != null  and deviceNo != ''"> and device_no = #{deviceNo}</if>
+            <if test="assayType != null  and assayType != ''"> and assay_type = #{assayType}</if>
+            <if test="assayBigprocess != null  and assayBigprocess != ''"> and assay_bigprocess = #{assayBigprocess}</if>
+            <if test="assaySmallprocess != null  and assaySmallprocess != ''"> and assay_smallprocess = #{assaySmallprocess}</if>
+            <if test="beginTime != null  and beginTime != ''"> and begin_time = #{beginTime}</if>
+            <if test="endTime != null  and endTime != ''"> and end_time = #{endTime}</if>
+            <if test="assayDate != null  and assayDate != ''"> and assay_date = #{assayDate}</if>
+            <if test="assayBy != null  and assayBy != ''"> and assay_by = #{assayBy}</if>
+            <if test="version != null  and version != ''"> and version = #{version}</if>
+            <if test="stepName != null  and stepName != ''"> and step_name like concat('%', #{stepName}, '%')</if>
+            <if test="stepTotal != null  and stepTotal != ''"> and step_total = #{stepTotal}</if>
+            <if test="stepNow != null  and stepNow != ''"> and step_now = #{stepNow}</if>
+            <if test="stepInfo1 != null  and stepInfo1 != ''"> and step_info1 = #{stepInfo1}</if>
+            <if test="stepInfo2 != null  and stepInfo2 != ''"> and step_info2 = #{stepInfo2}</if>
+            <if test="stepInfo3 != null  and stepInfo3 != ''"> and step_info3 = #{stepInfo3}</if>
+            <if test="assayStatus != null  and assayStatus != ''"> and assay_status = #{assayStatus}</if>
+            <if test="assayMethod != null  and assayMethod != ''"> and assay_method = #{assayMethod}</if>
+            <if test="cPangusyncsourcetimestamp != null "> and C_PanguSyncSourceTimestamp = #{cPangusyncsourcetimestamp}</if>
+        </where>
+    </select>
+    
+    <select id="selectZAssayByAssayId" parameterType="Long" resultMap="ZAssayResult">
+        <include refid="selectZAssayVo"/>
+        where assay_id = #{assayId}
+    </select>
+
+    <insert id="insertZAssay" parameterType="ZAssay">
+        insert into z_assay
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="assayId != null">assay_id,</if>
+            <if test="assayNo != null">assay_no,</if>
+            <if test="deviceNo != null">device_no,</if>
+            <if test="assayType != null">assay_type,</if>
+            <if test="assayBigprocess != null">assay_bigprocess,</if>
+            <if test="assaySmallprocess != null">assay_smallprocess,</if>
+            <if test="beginTime != null">begin_time,</if>
+            <if test="endTime != null">end_time,</if>
+            <if test="assayDate != null">assay_date,</if>
+            <if test="assayBy != null">assay_by,</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="version != null">version,</if>
+            <if test="stepName != null">step_name,</if>
+            <if test="stepTotal != null">step_total,</if>
+            <if test="stepNow != null">step_now,</if>
+            <if test="stepInfo1 != null">step_info1,</if>
+            <if test="stepInfo2 != null">step_info2,</if>
+            <if test="stepInfo3 != null">step_info3,</if>
+            <if test="assayStatus != null">assay_status,</if>
+            <if test="assayMethod != null">assay_method,</if>
+            <if test="cPangusyncsourcetimestamp != null">C_PanguSyncSourceTimestamp,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="assayId != null">#{assayId},</if>
+            <if test="assayNo != null">#{assayNo},</if>
+            <if test="deviceNo != null">#{deviceNo},</if>
+            <if test="assayType != null">#{assayType},</if>
+            <if test="assayBigprocess != null">#{assayBigprocess},</if>
+            <if test="assaySmallprocess != null">#{assaySmallprocess},</if>
+            <if test="beginTime != null">#{beginTime},</if>
+            <if test="endTime != null">#{endTime},</if>
+            <if test="assayDate != null">#{assayDate},</if>
+            <if test="assayBy != null">#{assayBy},</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="version != null">#{version},</if>
+            <if test="stepName != null">#{stepName},</if>
+            <if test="stepTotal != null">#{stepTotal},</if>
+            <if test="stepNow != null">#{stepNow},</if>
+            <if test="stepInfo1 != null">#{stepInfo1},</if>
+            <if test="stepInfo2 != null">#{stepInfo2},</if>
+            <if test="stepInfo3 != null">#{stepInfo3},</if>
+            <if test="assayStatus != null">#{assayStatus},</if>
+            <if test="assayMethod != null">#{assayMethod},</if>
+            <if test="cPangusyncsourcetimestamp != null">#{cPangusyncsourcetimestamp},</if>
+         </trim>
+    </insert>
+
+    <update id="updateZAssay" parameterType="ZAssay">
+        update z_assay
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="assayNo != null">assay_no = #{assayNo},</if>
+            <if test="deviceNo != null">device_no = #{deviceNo},</if>
+            <if test="assayType != null">assay_type = #{assayType},</if>
+            <if test="assayBigprocess != null">assay_bigprocess = #{assayBigprocess},</if>
+            <if test="assaySmallprocess != null">assay_smallprocess = #{assaySmallprocess},</if>
+            <if test="beginTime != null">begin_time = #{beginTime},</if>
+            <if test="endTime != null">end_time = #{endTime},</if>
+            <if test="assayDate != null">assay_date = #{assayDate},</if>
+            <if test="assayBy != null">assay_by = #{assayBy},</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="version != null">version = #{version},</if>
+            <if test="stepName != null">step_name = #{stepName},</if>
+            <if test="stepTotal != null">step_total = #{stepTotal},</if>
+            <if test="stepNow != null">step_now = #{stepNow},</if>
+            <if test="stepInfo1 != null">step_info1 = #{stepInfo1},</if>
+            <if test="stepInfo2 != null">step_info2 = #{stepInfo2},</if>
+            <if test="stepInfo3 != null">step_info3 = #{stepInfo3},</if>
+            <if test="assayStatus != null">assay_status = #{assayStatus},</if>
+            <if test="assayMethod != null">assay_method = #{assayMethod},</if>
+            <if test="cPangusyncsourcetimestamp != null">C_PanguSyncSourceTimestamp = #{cPangusyncsourcetimestamp},</if>
+        </trim>
+        where assay_id = #{assayId}
+    </update>
+
+    <delete id="deleteZAssayByAssayId" parameterType="Long">
+        delete from z_assay where assay_id = #{assayId}
+    </delete>
+
+    <delete id="deleteZAssayByAssayIds" parameterType="String">
+        delete from z_assay where assay_id in 
+        <foreach item="assayId" collection="array" open="(" separator="," close=")">
+            #{assayId}
+        </foreach>
+    </delete>
+</mapper>

+ 234 - 0
target/classes/mapper/ZAssayResultMapper.xml

@@ -0,0 +1,234 @@
+<?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.robot.remote.smartrobotremote.mapper.ZAssayResultMapper">
+    
+    <resultMap type="ZAssayResult" id="ZAssayResultResult">
+        <result property="resultId"    column="result_id"    />
+        <result property="assayNo"    column="assay_no"    />
+        <result property="resultNo"    column="result_no"    />
+        <result property="sampleNo"    column="sample_no"    />
+        <result property="sampleVolume"    column="sample_volume"    />
+        <result property="deviceNo"    column="device_no"    />
+        <result property="assayItem"    column="assay_item"    />
+        <result property="resultConcentration"    column="result_concentration"    />
+        <result property="resultAbs"    column="result_abs"    />
+        <result property="resultDate"    column="result_date"    />
+        <result property="resultTime"    column="result_time"    />
+        <result property="curveK0"    column="curve_k0"    />
+        <result property="curveK1"    column="curve_k1"    />
+        <result property="curveId"    column="curve_id"    />
+        <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="j1901S01"    column="j_1901_s0_1"    />
+        <result property="j1901D01"    column="j_1901_d0_1"    />
+        <result property="j1901R01"    column="j_1901_R0_1"    />
+        <result property="j1901S1"    column="j_1901_s_1"    />
+        <result property="j1901D1"    column="j_1901_d_1"    />
+        <result property="j1901R1"    column="j_1901_r_1"    />
+        <result property="j1901S02"    column="j_1901_s0_2"    />
+        <result property="j1901D02"    column="j_1901_d0_2"    />
+        <result property="j1901R02"    column="j_1901_r0_2"    />
+        <result property="j1901S2"    column="j_1901_s_2"    />
+        <result property="j1901D2"    column="j_1901_d_2"    />
+        <result property="j1901R2"    column="j_1901_r_2"    />
+        <result property="assayType"    column="assay_type"    />
+        <result property="samplePost"    column="sample_post"    />
+        <result property="resultWendu"    column="result_wendu"    />
+        <result property="resultShidu"    column="result_shidu"    />
+        <result property="originalConcentration"    column="original_concentration"    />
+        <result property="curveNo"    column="curve_no"    />
+        <result property="readFlag"    column="read_flag"    />
+        <result property="cPangusyncsourcetimestamp"    column="C_PanguSyncSourceTimestamp"    />
+    </resultMap>
+
+    <sql id="selectZAssayResultVo">
+        select result_id, assay_no, result_no, sample_no, sample_volume, device_no, assay_item, result_concentration, result_abs, result_date, result_time, curve_k0, curve_k1, curve_id, create_by, create_time, update_by, update_time, j_1901_s0_1, j_1901_d0_1, j_1901_R0_1, j_1901_s_1, j_1901_d_1, j_1901_r_1, j_1901_s0_2, j_1901_d0_2, j_1901_r0_2, j_1901_s_2, j_1901_d_2, j_1901_r_2, assay_type, sample_post, result_wendu, result_shidu, original_concentration, curve_no, read_flag, C_PanguSyncSourceTimestamp from z_assay_result
+    </sql>
+
+    <select id="selectZAssayResultList" parameterType="ZAssayResult" resultMap="ZAssayResultResult">
+        <include refid="selectZAssayResultVo"/>
+        <where>  
+            <if test="assayNo != null  and assayNo != ''"> and assay_no = #{assayNo}</if>
+            <if test="resultNo != null  and resultNo != ''"> and result_no = #{resultNo}</if>
+            <if test="sampleNo != null  and sampleNo != ''"> and sample_no = #{sampleNo}</if>
+            <if test="sampleVolume != null "> and sample_volume = #{sampleVolume}</if>
+            <if test="deviceNo != null  and deviceNo != ''"> and device_no = #{deviceNo}</if>
+            <if test="assayItem != null  and assayItem != ''"> and assay_item = #{assayItem}</if>
+            <if test="resultConcentration != null "> and result_concentration = #{resultConcentration}</if>
+            <if test="resultAbs != null "> and result_abs = #{resultAbs}</if>
+            <if test="resultDate != null  and resultDate != ''"> and result_date = #{resultDate}</if>
+            <if test="resultTime != null  and resultTime != ''"> and result_time = #{resultTime}</if>
+            <if test="curveK0 != null "> and curve_k0 = #{curveK0}</if>
+            <if test="curveK1 != null "> and curve_k1 = #{curveK1}</if>
+            <if test="curveId != null "> and curve_id = #{curveId}</if>
+            <if test="j1901S01 != null "> and j_1901_s0_1 = #{j1901S01}</if>
+            <if test="j1901D01 != null "> and j_1901_d0_1 = #{j1901D01}</if>
+            <if test="j1901R01 != null "> and j_1901_R0_1 = #{j1901R01}</if>
+            <if test="j1901S1 != null "> and j_1901_s_1 = #{j1901S1}</if>
+            <if test="j1901D1 != null "> and j_1901_d_1 = #{j1901D1}</if>
+            <if test="j1901R1 != null "> and j_1901_r_1 = #{j1901R1}</if>
+            <if test="j1901S02 != null "> and j_1901_s0_2 = #{j1901S02}</if>
+            <if test="j1901D02 != null "> and j_1901_d0_2 = #{j1901D02}</if>
+            <if test="j1901R02 != null "> and j_1901_r0_2 = #{j1901R02}</if>
+            <if test="j1901S2 != null "> and j_1901_s_2 = #{j1901S2}</if>
+            <if test="j1901D2 != null "> and j_1901_d_2 = #{j1901D2}</if>
+            <if test="j1901R2 != null "> and j_1901_r_2 = #{j1901R2}</if>
+            <if test="assayType != null  and assayType != ''"> and assay_type = #{assayType}</if>
+            <if test="samplePost != null "> and sample_post = #{samplePost}</if>
+            <if test="resultWendu != null "> and result_wendu = #{resultWendu}</if>
+            <if test="resultShidu != null "> and result_shidu = #{resultShidu}</if>
+            <if test="originalConcentration != null "> and original_concentration = #{originalConcentration}</if>
+            <if test="curveNo != null  and curveNo != ''"> and curve_no = #{curveNo}</if>
+            <if test="readFlag != null  and readFlag != ''"> and read_flag = #{readFlag}</if>
+            <if test="cPangusyncsourcetimestamp != null "> and C_PanguSyncSourceTimestamp = #{cPangusyncsourcetimestamp}</if>
+        </where>
+    </select>
+    
+    <select id="selectZAssayResultByResultId" parameterType="Long" resultMap="ZAssayResultResult">
+        <include refid="selectZAssayResultVo"/>
+        where result_id = #{resultId}
+    </select>
+
+    <insert id="insertZAssayResult" parameterType="ZAssayResult">
+        insert into z_assay_result
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="resultId != null">result_id,</if>
+            <if test="assayNo != null">assay_no,</if>
+            <if test="resultNo != null">result_no,</if>
+            <if test="sampleNo != null">sample_no,</if>
+            <if test="sampleVolume != null">sample_volume,</if>
+            <if test="deviceNo != null">device_no,</if>
+            <if test="assayItem != null">assay_item,</if>
+            <if test="resultConcentration != null">result_concentration,</if>
+            <if test="resultAbs != null">result_abs,</if>
+            <if test="resultDate != null">result_date,</if>
+            <if test="resultTime != null">result_time,</if>
+            <if test="curveK0 != null">curve_k0,</if>
+            <if test="curveK1 != null">curve_k1,</if>
+            <if test="curveId != null">curve_id,</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="j1901S01 != null">j_1901_s0_1,</if>
+            <if test="j1901D01 != null">j_1901_d0_1,</if>
+            <if test="j1901R01 != null">j_1901_R0_1,</if>
+            <if test="j1901S1 != null">j_1901_s_1,</if>
+            <if test="j1901D1 != null">j_1901_d_1,</if>
+            <if test="j1901R1 != null">j_1901_r_1,</if>
+            <if test="j1901S02 != null">j_1901_s0_2,</if>
+            <if test="j1901D02 != null">j_1901_d0_2,</if>
+            <if test="j1901R02 != null">j_1901_r0_2,</if>
+            <if test="j1901S2 != null">j_1901_s_2,</if>
+            <if test="j1901D2 != null">j_1901_d_2,</if>
+            <if test="j1901R2 != null">j_1901_r_2,</if>
+            <if test="assayType != null">assay_type,</if>
+            <if test="samplePost != null">sample_post,</if>
+            <if test="resultWendu != null">result_wendu,</if>
+            <if test="resultShidu != null">result_shidu,</if>
+            <if test="originalConcentration != null">original_concentration,</if>
+            <if test="curveNo != null">curve_no,</if>
+            <if test="readFlag != null">read_flag,</if>
+            <if test="cPangusyncsourcetimestamp != null">C_PanguSyncSourceTimestamp,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="resultId != null">#{resultId},</if>
+            <if test="assayNo != null">#{assayNo},</if>
+            <if test="resultNo != null">#{resultNo},</if>
+            <if test="sampleNo != null">#{sampleNo},</if>
+            <if test="sampleVolume != null">#{sampleVolume},</if>
+            <if test="deviceNo != null">#{deviceNo},</if>
+            <if test="assayItem != null">#{assayItem},</if>
+            <if test="resultConcentration != null">#{resultConcentration},</if>
+            <if test="resultAbs != null">#{resultAbs},</if>
+            <if test="resultDate != null">#{resultDate},</if>
+            <if test="resultTime != null">#{resultTime},</if>
+            <if test="curveK0 != null">#{curveK0},</if>
+            <if test="curveK1 != null">#{curveK1},</if>
+            <if test="curveId != null">#{curveId},</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="j1901S01 != null">#{j1901S01},</if>
+            <if test="j1901D01 != null">#{j1901D01},</if>
+            <if test="j1901R01 != null">#{j1901R01},</if>
+            <if test="j1901S1 != null">#{j1901S1},</if>
+            <if test="j1901D1 != null">#{j1901D1},</if>
+            <if test="j1901R1 != null">#{j1901R1},</if>
+            <if test="j1901S02 != null">#{j1901S02},</if>
+            <if test="j1901D02 != null">#{j1901D02},</if>
+            <if test="j1901R02 != null">#{j1901R02},</if>
+            <if test="j1901S2 != null">#{j1901S2},</if>
+            <if test="j1901D2 != null">#{j1901D2},</if>
+            <if test="j1901R2 != null">#{j1901R2},</if>
+            <if test="assayType != null">#{assayType},</if>
+            <if test="samplePost != null">#{samplePost},</if>
+            <if test="resultWendu != null">#{resultWendu},</if>
+            <if test="resultShidu != null">#{resultShidu},</if>
+            <if test="originalConcentration != null">#{originalConcentration},</if>
+            <if test="curveNo != null">#{curveNo},</if>
+            <if test="readFlag != null">#{readFlag},</if>
+            <if test="cPangusyncsourcetimestamp != null">#{cPangusyncsourcetimestamp},</if>
+         </trim>
+    </insert>
+
+    <update id="updateZAssayResult" parameterType="ZAssayResult">
+        update z_assay_result
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="assayNo != null">assay_no = #{assayNo},</if>
+            <if test="resultNo != null">result_no = #{resultNo},</if>
+            <if test="sampleNo != null">sample_no = #{sampleNo},</if>
+            <if test="sampleVolume != null">sample_volume = #{sampleVolume},</if>
+            <if test="deviceNo != null">device_no = #{deviceNo},</if>
+            <if test="assayItem != null">assay_item = #{assayItem},</if>
+            <if test="resultConcentration != null">result_concentration = #{resultConcentration},</if>
+            <if test="resultAbs != null">result_abs = #{resultAbs},</if>
+            <if test="resultDate != null">result_date = #{resultDate},</if>
+            <if test="resultTime != null">result_time = #{resultTime},</if>
+            <if test="curveK0 != null">curve_k0 = #{curveK0},</if>
+            <if test="curveK1 != null">curve_k1 = #{curveK1},</if>
+            <if test="curveId != null">curve_id = #{curveId},</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="j1901S01 != null">j_1901_s0_1 = #{j1901S01},</if>
+            <if test="j1901D01 != null">j_1901_d0_1 = #{j1901D01},</if>
+            <if test="j1901R01 != null">j_1901_R0_1 = #{j1901R01},</if>
+            <if test="j1901S1 != null">j_1901_s_1 = #{j1901S1},</if>
+            <if test="j1901D1 != null">j_1901_d_1 = #{j1901D1},</if>
+            <if test="j1901R1 != null">j_1901_r_1 = #{j1901R1},</if>
+            <if test="j1901S02 != null">j_1901_s0_2 = #{j1901S02},</if>
+            <if test="j1901D02 != null">j_1901_d0_2 = #{j1901D02},</if>
+            <if test="j1901R02 != null">j_1901_r0_2 = #{j1901R02},</if>
+            <if test="j1901S2 != null">j_1901_s_2 = #{j1901S2},</if>
+            <if test="j1901D2 != null">j_1901_d_2 = #{j1901D2},</if>
+            <if test="j1901R2 != null">j_1901_r_2 = #{j1901R2},</if>
+            <if test="assayType != null">assay_type = #{assayType},</if>
+            <if test="samplePost != null">sample_post = #{samplePost},</if>
+            <if test="resultWendu != null">result_wendu = #{resultWendu},</if>
+            <if test="resultShidu != null">result_shidu = #{resultShidu},</if>
+            <if test="originalConcentration != null">original_concentration = #{originalConcentration},</if>
+            <if test="curveNo != null">curve_no = #{curveNo},</if>
+            <if test="readFlag != null">read_flag = #{readFlag},</if>
+            <if test="cPangusyncsourcetimestamp != null">C_PanguSyncSourceTimestamp = #{cPangusyncsourcetimestamp},</if>
+        </trim>
+        where result_id = #{resultId}
+    </update>
+
+    <delete id="deleteZAssayResultByResultId" parameterType="Long">
+        delete from z_assay_result where result_id = #{resultId}
+    </delete>
+
+    <delete id="deleteZAssayResultByResultIds" parameterType="String">
+        delete from z_assay_result where result_id in 
+        <foreach item="resultId" collection="array" open="(" separator="," close=")">
+            #{resultId}
+        </foreach>
+    </delete>
+</mapper>

+ 84 - 0
target/classes/mapper/ZDeviceSampleMapper.xml

@@ -0,0 +1,84 @@
+<?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.robot.remote.smartrobotremote.mapper.ZDeviceSampleMapper">
+    
+    <resultMap type="ZDeviceSample" id="ZDeviceSampleResult">
+        <result property="sampleId"    column="sample_id"    />
+        <result property="deviceNo"    column="device_no"    />
+        <result property="assayType"    column="assay_type"    />
+        <result property="itemName"    column="item_name"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectZDeviceSampleVo">
+        select sample_id, device_no, assay_type, item_name, create_by, create_time, update_by, update_time from z_device_sample
+    </sql>
+
+    <select id="selectZDeviceSampleList" parameterType="ZDeviceSample" resultMap="ZDeviceSampleResult">
+        <include refid="selectZDeviceSampleVo"/>
+        <where>  
+            <if test="deviceNo != null  and deviceNo != ''"> and device_no = #{deviceNo}</if>
+            <if test="assayType != null  and assayType != ''"> and assay_type = #{assayType}</if>
+            <if test="itemName != null  and itemName != ''"> and item_name like concat('%', #{itemName}, '%')</if>
+        </where>
+    </select>
+    
+    <select id="selectZDeviceSampleBySampleId" parameterType="Long" resultMap="ZDeviceSampleResult">
+        <include refid="selectZDeviceSampleVo"/>
+        where sample_id = #{sampleId}
+    </select>
+
+    <insert id="insertZDeviceSample" parameterType="ZDeviceSample">
+        insert into z_device_sample
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="sampleId != null">sample_id,</if>
+            <if test="deviceNo != null">device_no,</if>
+            <if test="assayType != null">assay_type,</if>
+            <if test="itemName != null">item_name,</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>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="sampleId != null">#{sampleId},</if>
+            <if test="deviceNo != null">#{deviceNo},</if>
+            <if test="assayType != null">#{assayType},</if>
+            <if test="itemName != null">#{itemName},</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>
+         </trim>
+    </insert>
+
+    <update id="updateZDeviceSample" parameterType="ZDeviceSample">
+        update z_device_sample
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="deviceNo != null">device_no = #{deviceNo},</if>
+            <if test="assayType != null">assay_type = #{assayType},</if>
+            <if test="itemName != null">item_name = #{itemName},</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>
+        </trim>
+        where sample_id = #{sampleId}
+    </update>
+
+    <delete id="deleteZDeviceSampleBySampleId" parameterType="Long">
+        delete from z_device_sample where sample_id = #{sampleId}
+    </delete>
+
+    <delete id="deleteZDeviceSampleBySampleIds" parameterType="String">
+        delete from z_device_sample where sample_id in 
+        <foreach item="sampleId" collection="array" open="(" separator="," close=")">
+            #{sampleId}
+        </foreach>
+    </delete>
+</mapper>

+ 96 - 0
target/classes/mapper/ZQualityValueMapper.xml

@@ -0,0 +1,96 @@
+<?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.robot.remote.smartrobotremote.mapper.ZQualityValueMapper">
+    
+    <resultMap type="ZQualityValue" id="ZQualityValueResult">
+        <result property="valueId"    column="value_id"    />
+        <result property="deviceWorks"    column="device_works"    />
+        <result property="assayItem"    column="assay_item"    />
+        <result property="resultValue"    column="result_value"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="endTime"    column="end_time"    />
+        <result property="lowValue"    column="low_value"    />
+        <result property="highValue"    column="high_value"    />
+        <result property="beginTime"    column="begin_time"    />
+    </resultMap>
+
+    <sql id="selectZQualityValueVo">
+        select value_id, device_works, assay_item, result_value, create_time, update_time, end_time, low_value, high_value, begin_time from z_quality_value
+    </sql>
+
+    <select id="selectZQualityValueList" parameterType="ZQualityValue" resultMap="ZQualityValueResult">
+        <include refid="selectZQualityValueVo"/>
+        <where>  
+            <if test="deviceWorks != null "> and device_works = #{deviceWorks}</if>
+            <if test="assayItem != null  and assayItem != ''"> and assay_item = #{assayItem}</if>
+            <if test="resultValue != null "> and result_value = #{resultValue}</if>
+            <if test="endTime != null "> and end_time = #{endTime}</if>
+            <if test="lowValue != null "> and low_value = #{lowValue}</if>
+            <if test="highValue != null "> and high_value = #{highValue}</if>
+            <if test="beginTime != null "> and begin_time = #{beginTime}</if>
+        </where>
+    </select>
+    
+    <select id="selectZQualityValueByValueId" parameterType="Long" resultMap="ZQualityValueResult">
+        <include refid="selectZQualityValueVo"/>
+        where value_id = #{valueId}
+    </select>
+
+    <insert id="insertZQualityValue" parameterType="ZQualityValue">
+        insert into z_quality_value
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="valueId != null">value_id,</if>
+            <if test="deviceWorks != null">device_works,</if>
+            <if test="assayItem != null">assay_item,</if>
+            <if test="resultValue != null">result_value,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="endTime != null">end_time,</if>
+            <if test="lowValue != null">low_value,</if>
+            <if test="highValue != null">high_value,</if>
+            <if test="beginTime != null">begin_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="valueId != null">#{valueId},</if>
+            <if test="deviceWorks != null">#{deviceWorks},</if>
+            <if test="assayItem != null">#{assayItem},</if>
+            <if test="resultValue != null">#{resultValue},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="endTime != null">#{endTime},</if>
+            <if test="lowValue != null">#{lowValue},</if>
+            <if test="highValue != null">#{highValue},</if>
+            <if test="beginTime != null">#{beginTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateZQualityValue" parameterType="ZQualityValue">
+        update z_quality_value
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="deviceWorks != null">device_works = #{deviceWorks},</if>
+            <if test="assayItem != null">assay_item = #{assayItem},</if>
+            <if test="resultValue != null">result_value = #{resultValue},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="endTime != null">end_time = #{endTime},</if>
+            <if test="lowValue != null">low_value = #{lowValue},</if>
+            <if test="highValue != null">high_value = #{highValue},</if>
+            <if test="beginTime != null">begin_time = #{beginTime},</if>
+        </trim>
+        where value_id = #{valueId}
+    </update>
+
+    <delete id="deleteZQualityValueByValueId" parameterType="Long">
+        delete from z_quality_value where value_id = #{valueId}
+    </delete>
+
+    <delete id="deleteZQualityValueByValueIds" parameterType="String">
+        delete from z_quality_value where value_id in 
+        <foreach item="valueId" collection="array" open="(" separator="," close=")">
+            #{valueId}
+        </foreach>
+    </delete>
+</mapper>