From 19bbb04fe271943850e5b0cdba1aaeed633bc83f Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 08 六月 2023 16:25:08 +0800
Subject: [PATCH] 添加swagger
---
smartor/src/main/java/com/smartor/service/IPatMedBloodsugarService.java | 62 +
smartor/src/main/java/com/smartor/service/impl/PatMedWeightServiceImpl.java | 90 ++
smartor/src/main/java/com/smartor/service/IPatMedWeightService.java | 62 +
smartor/src/main/java/com/smartor/service/impl/PatMedHypertensionServiceImpl.java | 90 ++
smartor/src/main/java/com/smartor/service/IPatMedHypertensionService.java | 62 +
smartor/src/main/java/com/smartor/service/impl/PatArchiveServiceImpl.java | 43
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java | 111 ++
smartor/src/main/resources/mapper/smartor/PatMedWeightMapper.xml | 126 +++
smartor/pom.xml | 5
smartor/src/main/java/com/smartor/domain/PatArchive.java | 168 ---
smartor/src/main/java/com/smartor/mapper/PatMedWeightMapper.java | 63 +
smartor/src/main/java/com/smartor/mapper/PatMedBloodsugarMapper.java | 63 +
smartor/src/main/resources/mapper/smartor/PatMedBloodsugarMapper.xml | 153 +++
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/BaseTagController.java | 13
smartor/src/main/java/com/smartor/service/IPatArchiveService.java | 3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedBloodsugarController.java | 104 ++
smartor/src/main/java/com/smartor/mapper/PatMedHypertensionMapper.java | 63 +
smartor/src/main/java/com/smartor/domain/PatMedWeight.java | 229 +++++
smartor/src/main/java/com/smartor/domain/PatMedBloodsugar.java | 244 +++++
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedHypertensionController.java | 111 ++
smartor/src/main/java/com/smartor/domain/PatMedOuthosp.java | 29
smartor/src/main/java/com/smartor/service/impl/PatMedBloodsugarServiceImpl.java | 90 ++
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java | 30
smartor/src/main/java/com/smartor/domain/PatMedHypertension.java | 252 ++++++
smartor/src/main/java/com/smartor/domain/BaseTag.java | 18
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java | 41
smartor/src/main/resources/mapper/smartor/PatMedHypertensionMapper.xml | 136 +++
27 files changed, 2,274 insertions(+), 187 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/BaseTagController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/BaseTagController.java
index cfc29df..9081ab8 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/BaseTagController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/BaseTagController.java
@@ -1,10 +1,14 @@
package com.ruoyi.web.controller.smartor;
+import java.lang.reflect.Array;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.smartor.domain.BaseTag;
import com.smartor.service.IBaseTagService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -28,6 +32,7 @@
* @author ruoyi
* @date 2023-06-06
*/
+@Api("鏍囩")
@RestController
@RequestMapping("/base/tag")
public class BaseTagController extends BaseController {
@@ -37,6 +42,7 @@
/**
* 鏌ヨ鏍囩鍒楄〃
*/
+ @ApiOperation("鏌ヨ鏍囩鍒楄〃")
@PreAuthorize("@ss.hasPermi('system:tag:list')")
@GetMapping("/list")
public TableDataInfo list(BaseTag baseTag) {
@@ -48,6 +54,7 @@
/**
* 瀵煎嚭鏍囩鍒楄〃
*/
+ @ApiOperation("瀵煎嚭鏍囩鍒楄〃")
@PreAuthorize("@ss.hasPermi('system:tag:export')")
@Log(title = "鏍囩", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@@ -60,6 +67,8 @@
/**
* 鑾峰彇鏍囩璇︾粏淇℃伅
*/
+ @ApiOperation("鑾峰彇鏍囩璇︾粏淇℃伅")
+ @ApiImplicitParam(name = "remove", value = "涓婚敭ID", dataType = "long", dataTypeClass = Long.class)
@PreAuthorize("@ss.hasPermi('system:tag:query')")
@GetMapping(value = "/{tagid}")
public AjaxResult getInfo(@PathVariable("tagid") Long tagid) {
@@ -69,6 +78,7 @@
/**
* 鏂板鏍囩
*/
+ @ApiOperation("鏂板鏍囩")
@PreAuthorize("@ss.hasPermi('system:tag:add')")
@Log(title = "鏍囩", businessType = BusinessType.INSERT)
@PostMapping
@@ -79,6 +89,7 @@
/**
* 淇敼鏍囩
*/
+ @ApiOperation("淇敼鏍囩")
@PreAuthorize("@ss.hasPermi('system:tag:edit')")
@Log(title = "鏍囩", businessType = BusinessType.UPDATE)
@PutMapping
@@ -89,6 +100,8 @@
/**
* 鍒犻櫎鏍囩
*/
+ @ApiOperation("鍒犻櫎鏍囩")
+ @ApiImplicitParam(name = "remove", value = "涓婚敭ID", dataType = "long", dataTypeClass = Array.class)
@PreAuthorize("@ss.hasPermi('system:tag:remove')")
@Log(title = "鏍囩", businessType = BusinessType.DELETE)
@DeleteMapping("/{tagids}")
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java
index 7e545d4..645746b 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java
@@ -11,6 +11,10 @@
import com.smartor.domain.PatArchive;
import com.smartor.domain.PatUpInfoVO;
import com.smartor.service.IPatArchiveService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
@@ -25,6 +29,7 @@
* @author smartor
* @date 2023-03-04
*/
+@Api("鎮h�呮。妗�")
@RestController
@RequestMapping("/smartor/patarchive")
public class PatArchiveController extends BaseController {
@@ -34,6 +39,7 @@
/**
* 鏌ヨ鎮h�呮。妗堝垪琛�
*/
+ @ApiOperation("鏌ヨ鎮h�呮。妗堝垪琛�")
@PreAuthorize("@ss.hasPermi('smartor:patarchive:list')")
@GetMapping("/list")
public TableDataInfo list(PatArchive patArchive) {
@@ -45,6 +51,7 @@
/**
* 瀵煎嚭鎮h�呮。妗堝垪琛�
*/
+ @ApiOperation("瀵煎嚭鎮h�呮。妗堝垪琛�")
@PreAuthorize("@ss.hasPermi('smartor:patarchive:export')")
@Log(title = "鎮h�呮。妗�", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@@ -57,15 +64,18 @@
/**
* 鑾峰彇鎮h�呮。妗堣缁嗕俊鎭�
*/
+ @ApiOperation("鑾峰彇鎮h�呮。妗堣缁嗕俊鎭�")
@PreAuthorize("@ss.hasPermi('smartor:patarchive:query')")
@GetMapping(value = "/{patid}")
- public AjaxResult getInfo(@PathVariable("patid") Long patid) {
+ @ApiImplicitParam(name = "patid",value = "鎮h�卛d")
+ public AjaxResult getInfo(@PathVariable(name = "patid") Long patid) {
return success(patArchiveService.selectPatArchiveByPatid(patid));
}
/**
* 鏂板鎮h�呮。妗�
*/
+ @ApiOperation("鏂板鎮h�呮。妗�")
@PreAuthorize("@ss.hasPermi('smartor:patarchive:add')")
@Log(title = "鎮h�呮。妗�", businessType = BusinessType.INSERT)
@PostMapping
@@ -76,6 +86,7 @@
/**
* 淇敼鎮h�呮。妗�
*/
+ @ApiOperation("淇敼鎮h�呮。妗�")
@PreAuthorize("@ss.hasPermi('smartor:patarchive:edit')")
@Log(title = "鎮h�呮。妗�", businessType = BusinessType.UPDATE)
@PutMapping
@@ -86,27 +97,33 @@
/**
* 鍒犻櫎鎮h�呮。妗�
*/
+ @ApiOperation("鍒犻櫎鎮h�呮。妗�")
@PreAuthorize("@ss.hasPermi('smartor:patarchive:remove')")
@Log(title = "鎮h�呮。妗�", businessType = BusinessType.DELETE)
@DeleteMapping("/{patids}")
+ @ApiImplicitParam(name = "patids",value = "鎮h�卛d闆嗗悎", dataType = "long", dataTypeClass = Long.class)
public AjaxResult remove(@PathVariable Long[] patids) {
return toAjax(patArchiveService.deletePatArchiveByPatids(patids));
}
/**
- * 鎮h�呮枃浠跺鐞�
+ * 瀵煎叆鎮h�呮枃浠跺鐞�
*
* @param multipartFile
*/
+ @ApiOperation("瀵煎叆鎮h�呮枃浠跺鐞�")
@PostMapping("/importFilehandle")
- public AjaxResult importFilehandle(@RequestParam("multipartFile") MultipartFile multipartFile) {
+
+ @ApiImplicitParams({
+ @ApiImplicitParam(name = "tags", value = "鏍囩"),
+ @ApiImplicitParam(name = "multipartFile", value = "涓婁紶鏂囦欢")
+ })
+ public AjaxResult importFilehandle(@RequestParam("tags") String tags, @RequestParam("multipartFile") MultipartFile multipartFile) {
//鑾峰彇褰撳墠鐧婚檰浜�
LoginUser loginUser = getLoginUser();
SysUser user = loginUser.getUser();
- String userName = user.getUserName();
-
- PatUpInfoVO patUpInfoVO = patArchiveService.importFilehandle(userName, multipartFile);
+ PatUpInfoVO patUpInfoVO = patArchiveService.importFilehandle(user, tags, multipartFile);
return success(patUpInfoVO);
}
@@ -116,6 +133,7 @@
*
* @param patArchiveList
*/
+ @ApiOperation("瀵煎嚭鎮h�呴敊璇俊鎭�")
@PostMapping("/exportErrPatInfo")
public AjaxResult exportErrPatInfo(@RequestBody List<PatArchive> patArchiveList) {
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedBloodsugarController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedBloodsugarController.java
new file mode 100644
index 0000000..6581552
--- /dev/null
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedBloodsugarController.java
@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.smartor;
+
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.page.TableDataInfo;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.smartor.domain.PatMedBloodsugar;
+import com.smartor.service.IPatMedBloodsugarService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.lang.reflect.Array;
+import java.util.List;
+
+/**
+ * 鎮h�呰绯栬褰旵ontroller
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+@Api("鎮h�呰绯栬褰�")
+@RestController
+@RequestMapping("/system/bloodsugar")
+public class PatMedBloodsugarController extends BaseController {
+ @Autowired
+ private IPatMedBloodsugarService patMedBloodsugarService;
+
+ /**
+ * 鏌ヨ鎮h�呰绯栬褰曞垪琛�
+ */
+ @PreAuthorize("@ss.hasPermi('system:bloodsugar:list')")
+ @GetMapping("/list")
+ @ApiOperation("鏌ヨ鎮h�呰绯栬褰曞垪琛�")
+ public TableDataInfo list(PatMedBloodsugar patMedBloodsugar) {
+ startPage();
+ List<PatMedBloodsugar> list = patMedBloodsugarService.selectPatMedBloodsugarList(patMedBloodsugar);
+ return getDataTable(list);
+ }
+
+ /**
+ * 瀵煎嚭鎮h�呰绯栬褰曞垪琛�
+ */
+ @ApiOperation("瀵煎嚭鎮h�呰绯栬褰曞垪琛�")
+ @PreAuthorize("@ss.hasPermi('system:bloodsugar:export')")
+ @Log(title = "瀵煎嚭鎮h�呰绯栬褰曞垪琛�", businessType = BusinessType.EXPORT)
+ @PostMapping("/export")
+ public void export(HttpServletResponse response, PatMedBloodsugar patMedBloodsugar) {
+ List<PatMedBloodsugar> list = patMedBloodsugarService.selectPatMedBloodsugarList(patMedBloodsugar);
+ ExcelUtil<PatMedBloodsugar> util = new ExcelUtil<PatMedBloodsugar>(PatMedBloodsugar.class);
+ util.exportExcel(response, list, "鎮h�呰绯栬褰曟暟鎹�");
+ }
+
+ /**
+ * 鑾峰彇鎮h�呰绯栬褰曡缁嗕俊鎭�
+ */
+ @PreAuthorize("@ss.hasPermi('system:bloodsugar:query')")
+ @GetMapping(value = "/{bloodsugarid}")
+ @ApiOperation("鑾峰彇鎮h�呰绯栬褰曡缁嗕俊鎭�")
+ @ApiImplicitParam(name = "bloodsugarid", value = "涓婚敭ID", dataType = "long", dataTypeClass = Long.class)
+ public AjaxResult getInfo(@PathVariable("bloodsugarid") Long bloodsugarid) {
+ return success(patMedBloodsugarService.selectPatMedBloodsugarByBloodsugarid(bloodsugarid));
+ }
+
+ /**
+ * 鏂板鎮h�呰绯栬褰�
+ */
+ @PreAuthorize("@ss.hasPermi('system:bloodsugar:add')")
+ @Log(title = "鏂板鎮h�呰绯栬褰�", businessType = BusinessType.INSERT)
+ @PostMapping
+ @ApiOperation("鏂板鎮h�呰绯栬褰�")
+ public AjaxResult add(@RequestBody PatMedBloodsugar patMedBloodsugar) {
+ return toAjax(patMedBloodsugarService.insertPatMedBloodsugar(patMedBloodsugar));
+ }
+
+ /**
+ * 淇敼鎮h�呰绯栬褰�
+ */
+ @PreAuthorize("@ss.hasPermi('system:bloodsugar:edit')")
+ @Log(title = "鎮h�呰绯栬褰�", businessType = BusinessType.UPDATE)
+ @PutMapping
+ @ApiOperation("淇敼鎮h�呰绯栬褰�")
+ public AjaxResult edit(@RequestBody PatMedBloodsugar patMedBloodsugar) {
+ return toAjax(patMedBloodsugarService.updatePatMedBloodsugar(patMedBloodsugar));
+ }
+
+ /**
+ * 鍒犻櫎鎮h�呰绯栬褰�
+ */
+ @ApiOperation("鍒犻櫎鎮h�呰绯栬褰�")
+ @PreAuthorize("@ss.hasPermi('system:bloodsugar:remove')")
+ @Log(title = "鎮h�呰绯栬褰�", businessType = BusinessType.DELETE)
+ @DeleteMapping("/{bloodsugarids}")
+ @ApiImplicitParam(name = "bloodsugarids", value = "涓婚敭ID闆嗗悎", dataType = "long", dataTypeClass = Array.class)
+ public AjaxResult remove(@PathVariable Long[] bloodsugarids) {
+ return toAjax(patMedBloodsugarService.deletePatMedBloodsugarByBloodsugarids(bloodsugarids));
+ }
+}
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedHypertensionController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedHypertensionController.java
new file mode 100644
index 0000000..d799fe1
--- /dev/null
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedHypertensionController.java
@@ -0,0 +1,111 @@
+package com.ruoyi.web.controller.smartor;
+
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.page.TableDataInfo;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.smartor.domain.PatMedHypertension;
+import com.smartor.service.IPatMedHypertensionService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.lang.reflect.Array;
+import java.util.List;
+
+/**
+ * 鎮h�呴珮琛�鍘嬭褰旵ontroller
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+@RestController
+@RequestMapping("/smartor/hypertension")
+@Api("鎮h�呴珮琛�鍘嬭褰�")
+public class PatMedHypertensionController extends BaseController
+{
+ @Autowired
+ private IPatMedHypertensionService patMedHypertensionService;
+
+ /**
+ * 鏌ヨ鎮h�呴珮琛�鍘嬭褰曞垪琛�
+ */
+ @PreAuthorize("@ss.hasPermi('system:hypertension:list')")
+ @GetMapping("/list")
+ @ApiOperation("鏌ヨ鎮h�呴珮琛�鍘嬭褰曞垪琛�")
+ public TableDataInfo list(PatMedHypertension patMedHypertension)
+ {
+ startPage();
+ List<PatMedHypertension> list = patMedHypertensionService.selectPatMedHypertensionList(patMedHypertension);
+ return getDataTable(list);
+ }
+
+ /**
+ * 瀵煎嚭鎮h�呴珮琛�鍘嬭褰曞垪琛�
+ */
+ @ApiOperation("鎮h�呴珮琛�鍘嬭褰�")
+ @PreAuthorize("@ss.hasPermi('system:hypertension:export')")
+ @Log(title = "鎮h�呴珮琛�鍘嬭褰�", businessType = BusinessType.EXPORT)
+ @PostMapping("/export")
+ public void export(HttpServletResponse response, PatMedHypertension patMedHypertension)
+ {
+ List<PatMedHypertension> list = patMedHypertensionService.selectPatMedHypertensionList(patMedHypertension);
+ ExcelUtil<PatMedHypertension> util = new ExcelUtil<PatMedHypertension>(PatMedHypertension.class);
+ util.exportExcel(response, list, "鎮h�呴珮琛�鍘嬭褰曟暟鎹�");
+ }
+
+ /**
+ * 鑾峰彇鎮h�呴珮琛�鍘嬭褰曡缁嗕俊鎭�
+ */
+ @ApiOperation("鑾峰彇鎮h�呴珮琛�鍘嬭褰曡缁嗕俊鎭�")
+ @ApiImplicitParam(name = "getInfo", value = "涓婚敭ID", dataType = "long", dataTypeClass = Long.class)
+ @PreAuthorize("@ss.hasPermi('system:hypertension:query')")
+ @GetMapping(value = "/{id}")
+ public AjaxResult getInfo(@PathVariable("id") Long id)
+ {
+ return success(patMedHypertensionService.selectPatMedHypertensionById(id));
+ }
+
+ /**
+ * 鏂板鎮h�呴珮琛�鍘嬭褰�
+ */
+ @ApiOperation("鎮h�呴珮琛�鍘嬭褰�")
+ @PreAuthorize("@ss.hasPermi('system:hypertension:add')")
+ @Log(title = "鎮h�呴珮琛�鍘嬭褰�", businessType = BusinessType.INSERT)
+ @PostMapping
+ public AjaxResult add(@RequestBody PatMedHypertension patMedHypertension)
+ {
+ return toAjax(patMedHypertensionService.insertPatMedHypertension(patMedHypertension));
+ }
+
+ /**
+ * 淇敼鎮h�呴珮琛�鍘嬭褰�
+ */
+ @ApiOperation("鎮h�呴珮琛�鍘嬭褰�")
+ @PreAuthorize("@ss.hasPermi('system:hypertension:edit')")
+ @Log(title = "鎮h�呴珮琛�鍘嬭褰�", businessType = BusinessType.UPDATE)
+ @PutMapping
+ public AjaxResult edit(@RequestBody PatMedHypertension patMedHypertension)
+ {
+ return toAjax(patMedHypertensionService.updatePatMedHypertension(patMedHypertension));
+ }
+
+ /**
+ * 鍒犻櫎鎮h�呴珮琛�鍘嬭褰�
+ */
+ @ApiOperation("鎮h�呴珮琛�鍘嬭褰�")
+ @PreAuthorize("@ss.hasPermi('system:hypertension:remove')")
+ @Log(title = "鎮h�呴珮琛�鍘嬭褰�", businessType = BusinessType.DELETE)
+ @ApiImplicitParam(name = "remove", value = "涓婚敭ID", dataType = "long", dataTypeClass = Array.class)
+ @DeleteMapping("/{ids}")
+ public AjaxResult remove(@PathVariable Long[] ids)
+ {
+ return toAjax(patMedHypertensionService.deletePatMedHypertensionByIds(ids));
+ }
+}
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java
index e5cca58..671b110 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java
@@ -1,7 +1,12 @@
-package com.smartor.controller;
+package com.ruoyi.web.controller.smartor;
+import java.lang.reflect.Array;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -23,14 +28,14 @@
/**
* 鎮h�呴棬璇婅褰旵ontroller
- *
+ *
* @author smartor
* @date 2023-03-04
*/
@RestController
@RequestMapping("/smartor/patouthosp")
-public class PatMedOuthospController extends BaseController
-{
+@Api("鎮h�呴棬璇婅褰�")
+public class PatMedOuthospController extends BaseController {
@Autowired
private IPatMedOuthospService patMedOuthospService;
@@ -39,8 +44,8 @@
*/
@PreAuthorize("@ss.hasPermi('smartor:patouthosp:list')")
@GetMapping("/list")
- public TableDataInfo list(PatMedOuthosp patMedOuthosp)
- {
+ @ApiOperation("鏌ヨ鎮h�呴棬璇婅褰曞垪琛�")
+ public TableDataInfo list(PatMedOuthosp patMedOuthosp) {
startPage();
List<PatMedOuthosp> list = patMedOuthospService.selectPatMedOuthospList(patMedOuthosp);
return getDataTable(list);
@@ -51,9 +56,9 @@
*/
@PreAuthorize("@ss.hasPermi('smartor:patouthosp:export')")
@Log(title = "鎮h�呴棬璇婅褰�", businessType = BusinessType.EXPORT)
+ @ApiOperation("鎮h�呴棬璇婅褰�")
@PostMapping("/export")
- public void export(HttpServletResponse response, PatMedOuthosp patMedOuthosp)
- {
+ public void export(HttpServletResponse response, PatMedOuthosp patMedOuthosp) {
List<PatMedOuthosp> list = patMedOuthospService.selectPatMedOuthospList(patMedOuthosp);
ExcelUtil<PatMedOuthosp> util = new ExcelUtil<PatMedOuthosp>(PatMedOuthosp.class);
util.exportExcel(response, list, "鎮h�呴棬璇婅褰曟暟鎹�");
@@ -62,43 +67,45 @@
/**
* 鑾峰彇鎮h�呴棬璇婅褰曡缁嗕俊鎭�
*/
+ @ApiOperation("鑾峰彇鎮h�呴棬璇婅褰曡缁嗕俊鎭�")
+ @ApiImplicitParam(name = "getInfo", value = "涓婚敭ID", dataType = "long", dataTypeClass = Long.class)
@PreAuthorize("@ss.hasPermi('smartor:patouthosp:query')")
@GetMapping(value = "/{id}")
- public AjaxResult getInfo(@PathVariable("id") Long id)
- {
+ public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(patMedOuthospService.selectPatMedOuthospById(id));
}
/**
* 鏂板鎮h�呴棬璇婅褰�
*/
+ @ApiOperation("鏂板鎮h�呴棬璇婅褰�")
@PreAuthorize("@ss.hasPermi('smartor:patouthosp:add')")
@Log(title = "鎮h�呴棬璇婅褰�", businessType = BusinessType.INSERT)
@PostMapping
- public AjaxResult add(@RequestBody PatMedOuthosp patMedOuthosp)
- {
+ public AjaxResult add(@RequestBody PatMedOuthosp patMedOuthosp) {
return toAjax(patMedOuthospService.insertPatMedOuthosp(patMedOuthosp));
}
/**
* 淇敼鎮h�呴棬璇婅褰�
*/
+ @ApiOperation("淇敼鎮h�呴棬璇婅褰�")
@PreAuthorize("@ss.hasPermi('smartor:patouthosp:edit')")
@Log(title = "鎮h�呴棬璇婅褰�", businessType = BusinessType.UPDATE)
@PutMapping
- public AjaxResult edit(@RequestBody PatMedOuthosp patMedOuthosp)
- {
+ public AjaxResult edit(@RequestBody PatMedOuthosp patMedOuthosp) {
return toAjax(patMedOuthospService.updatePatMedOuthosp(patMedOuthosp));
}
/**
* 鍒犻櫎鎮h�呴棬璇婅褰�
*/
+ @ApiOperation("鍒犻櫎鎮h�呴棬璇婅褰�")
@PreAuthorize("@ss.hasPermi('smartor:patouthosp:remove')")
+ @ApiImplicitParam(name = "remove", value = "涓婚敭ID", dataType = "long", dataTypeClass = Array.class)
@Log(title = "鎮h�呴棬璇婅褰�", businessType = BusinessType.DELETE)
- @DeleteMapping("/{ids}")
- public AjaxResult remove(@PathVariable Long[] ids)
- {
+ @DeleteMapping("/{ids}")
+ public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(patMedOuthospService.deletePatMedOuthospByIds(ids));
}
}
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java
new file mode 100644
index 0000000..6e51663
--- /dev/null
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java
@@ -0,0 +1,111 @@
+package com.ruoyi.web.controller.smartor;
+
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.page.TableDataInfo;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.smartor.domain.PatMedWeight;
+import com.smartor.service.IPatMedWeightService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.lang.reflect.Array;
+import java.util.List;
+
+/**
+ * 鎮h�呬綋閲嶈褰旵ontroller
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+@Api("鎮h�呬綋閲嶈褰�")
+@RestController
+@RequestMapping("/system/weight")
+public class PatMedWeightController extends BaseController
+{
+ @Autowired
+ private IPatMedWeightService patMedWeightService;
+
+ /**
+ * 鏌ヨ鎮h�呬綋閲嶈褰曞垪琛�
+ */
+ @ApiOperation("鏌ヨ鎮h�呬綋閲嶈褰曞垪琛�")
+ @PreAuthorize("@ss.hasPermi('system:weight:list')")
+ @GetMapping("/list")
+ public TableDataInfo list(PatMedWeight patMedWeight)
+ {
+ startPage();
+ List<PatMedWeight> list = patMedWeightService.selectPatMedWeightList(patMedWeight);
+ return getDataTable(list);
+ }
+
+ /**
+ * 瀵煎嚭鎮h�呬綋閲嶈褰曞垪琛�
+ */
+ @ApiOperation("瀵煎嚭鎮h�呬綋閲嶈褰曞垪琛�")
+ @PreAuthorize("@ss.hasPermi('system:weight:export')")
+ @Log(title = "鎮h�呬綋閲嶈褰�", businessType = BusinessType.EXPORT)
+ @PostMapping("/export")
+ public void export(HttpServletResponse response, PatMedWeight patMedWeight)
+ {
+ List<PatMedWeight> list = patMedWeightService.selectPatMedWeightList(patMedWeight);
+ ExcelUtil<PatMedWeight> util = new ExcelUtil<PatMedWeight>(PatMedWeight.class);
+ util.exportExcel(response, list, "鎮h�呬綋閲嶈褰曟暟鎹�");
+ }
+
+ /**
+ * 鑾峰彇鎮h�呬綋閲嶈褰曡缁嗕俊鎭�
+ */
+ @ApiOperation("鑾峰彇鎮h�呬綋閲嶈褰曡缁嗕俊鎭�")
+ @PreAuthorize("@ss.hasPermi('system:weight:query')")
+ @ApiImplicitParam(name = "getInfo", value = "涓婚敭ID", dataType = "long", dataTypeClass = Long.class)
+ @GetMapping(value = "/{id}")
+ public AjaxResult getInfo(@PathVariable("id") Long id)
+ {
+ return success(patMedWeightService.selectPatMedWeightById(id));
+ }
+
+ /**
+ * 鏂板鎮h�呬綋閲嶈褰�
+ */
+ @ApiOperation("鏂板鎮h�呬綋閲嶈褰�")
+ @PreAuthorize("@ss.hasPermi('system:weight:add')")
+ @Log(title = "鎮h�呬綋閲嶈褰�", businessType = BusinessType.INSERT)
+ @PostMapping
+ public AjaxResult add(@RequestBody PatMedWeight patMedWeight)
+ {
+ return toAjax(patMedWeightService.insertPatMedWeight(patMedWeight));
+ }
+
+ /**
+ * 淇敼鎮h�呬綋閲嶈褰�
+ */
+ @ApiOperation("淇敼鎮h�呬綋閲嶈褰�")
+ @PreAuthorize("@ss.hasPermi('system:weight:edit')")
+ @Log(title = "淇敼鎮h�呬綋閲嶈褰�", businessType = BusinessType.UPDATE)
+ @PutMapping
+ public AjaxResult edit(@RequestBody PatMedWeight patMedWeight)
+ {
+ return toAjax(patMedWeightService.updatePatMedWeight(patMedWeight));
+ }
+
+ /**
+ * 鍒犻櫎鎮h�呬綋閲嶈褰�
+ */
+ @ApiOperation("鍒犻櫎鎮h�呬綋閲嶈褰�")
+ @PreAuthorize("@ss.hasPermi('system:weight:remove')")
+ @Log(title = "鍒犻櫎鎮h�呬綋閲嶈褰�", businessType = BusinessType.DELETE)
+ @ApiImplicitParam(name = "remove", value = "涓婚敭ID", dataType = "long", dataTypeClass = Array.class)
+ @DeleteMapping("/{ids}")
+ public AjaxResult remove(@PathVariable Long[] ids)
+ {
+ return toAjax(patMedWeightService.deletePatMedWeightByIds(ids));
+ }
+}
diff --git a/smartor/pom.xml b/smartor/pom.xml
index b74987a..acbb29b 100644
--- a/smartor/pom.xml
+++ b/smartor/pom.xml
@@ -23,6 +23,11 @@
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common</artifactId>
</dependency>
+ <dependency>
+ <groupId>io.swagger</groupId>
+ <artifactId>swagger-annotations</artifactId>
+ <version>1.6.2</version>
+ </dependency>
</dependencies>
diff --git a/smartor/src/main/java/com/smartor/domain/BaseTag.java b/smartor/src/main/java/com/smartor/domain/BaseTag.java
index aff43d5..ac31b31 100644
--- a/smartor/src/main/java/com/smartor/domain/BaseTag.java
+++ b/smartor/src/main/java/com/smartor/domain/BaseTag.java
@@ -3,6 +3,8 @@
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
@@ -14,52 +16,56 @@
* @author ruoyi
* @date 2023-06-02
*/
+@ApiModel(value = "BaseTag", description = "鏍囩瀵硅薄")
public class BaseTag extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 鑷ID
*/
+ @ApiModelProperty(name = "鑷ID")
private Long tagid;
/**
* 鏍囩鍒嗙被ID
*/
- @Excel(name = " 鏍囩鍒嗙被ID ")
+ @ApiModelProperty(name = "鏍囩鍒嗙被ID")
private Long tagcategoryid;
/**
* 鏍囩鍚嶇О
*/
- @Excel(name = " 鏍囩鍚嶇О ")
+ @ApiModelProperty(name = "鏍囩鍚嶇О")
private String tagname;
/**
* 鏍囩鎻忚堪
*/
- @Excel(name = " 鏍囩鎻忚堪 ")
+ @ApiModelProperty(name = "鏍囩鎻忚堪")
private String tagdescription;
/**
* 鏈烘瀯ID
*/
- @Excel(name = " 鏈烘瀯ID ")
+ @ApiModelProperty(name = "鏈烘瀯ID")
private String orgid;
/**
* 鍒犻櫎鏍囪
*/
+ @ApiModelProperty(name = "鍒犻櫎鏍囪")
private String delFlag;
/**
* 涓婁紶鏍囪
*/
- @Excel(name = " 涓婁紶鏍囪 ")
+ @ApiModelProperty(name = "涓婁紶鏍囪")
private Long isupload;
/**
* 涓婁紶鏃堕棿
*/
+ @ApiModelProperty(name = "涓婁紶鏃堕棿")
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = " 涓婁紶鏃堕棿 ", width = 30, dateFormat = "yyyy-MM-dd")
private Date uploadTime;
@@ -67,7 +73,7 @@
/**
* 鏄惁寮�鍚�
*/
- @Excel(name = " 鏄惁寮�鍚� ")
+ @ApiModelProperty(name = "鏄惁寮�鍚�")
private Long isenable;
public void setTagid(Long tagid) {
diff --git a/smartor/src/main/java/com/smartor/domain/PatArchive.java b/smartor/src/main/java/com/smartor/domain/PatArchive.java
index 773f0e9..fdd19ae 100644
--- a/smartor/src/main/java/com/smartor/domain/PatArchive.java
+++ b/smartor/src/main/java/com/smartor/domain/PatArchive.java
@@ -3,6 +3,10 @@
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
@@ -14,35 +18,42 @@
* @author smartor
* @date 2023-03-04
*/
+@ApiModel(value = "PatArchive", description = "鎮h�呮。妗堝璞�")
+@Data
public class PatArchive extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 鑷ID
*/
+ @ApiModelProperty(name = "鑷ID")
private Long patid;
/**
* 濮撳悕
*/
+ @ApiModelProperty("濮撳悕")
@Excel(name = " 濮撳悕 ")
private String name;
/**
* 鎬у埆 1:鐢� 2:濂�
*/
+ @ApiModelProperty("鎬у埆")
@Excel(name = " 鎬у埆 ")
private Long sex;
/**
* 璇佷欢鍙风爜
*/
+ @ApiModelProperty("璇佷欢鍙风爜")
@Excel(name = " 璇佷欢鍙风爜 ")
private String iccardno;
/**
* 鐢熸棩
*/
+ @ApiModelProperty("鐢熸棩")
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = " 鐢熸棩 ", width = 30, dateFormat = "yyyy-MM-dd")
private Date birthdate;
@@ -50,215 +61,84 @@
/**
* 骞撮緞
*/
+ @ApiModelProperty("骞撮緞")
@Excel(name = " 骞撮緞 ")
private Long age;
/**
* 鏉ユ簮
*/
+ @ApiModelProperty("鏉ユ簮")
@Excel(name = " 鏉ユ簮 ")
private Long source;
/**
* 寤烘。鏃堕棿
*/
+ @ApiModelProperty("寤烘。鏃堕棿")
private Date archivetime;
/**
* 寤烘。浜�
*/
+ @ApiModelProperty("寤烘。浜�")
private String archiveby;
/**
* 鎵嬫満鍙风爜
*/
+ @ApiModelProperty("鎵嬫満鍙风爜")
@Excel(name = " 鎵嬫満鍙风爜 ")
private String telcode;
/**
* 浜插睘鍙风爜
*/
+ @ApiModelProperty("浜插睘鍙风爜")
private String relativetelcode;
/**
* 璇佷欢绫诲瀷
*/
+ @ApiModelProperty("璇佷欢绫诲瀷")
private String iccardtype;
/**
* 鏈烘瀯ID
*/
+ @ApiModelProperty("鏈烘瀯ID")
@Excel(name = " 鏈烘瀯ID ")
private String orgid;
/**
* 寰俊openid
*/
+ @ApiModelProperty("寰俊openid")
private String openid;
/**
* 鍒犻櫎鏍囪
*/
+ @ApiModelProperty("鍒犻櫎鏍囪")
private String delFlag;
/**
* 涓婁紶鏍囪
*/
+ @ApiModelProperty("涓婁紶鏍囪")
private Long isupload;
/**
* 涓婁紶鏃堕棿
*/
+ @ApiModelProperty("涓婁紶鏃堕棿")
private Date uploadTime;
/**
* 鏍囩
*/
+ @ApiModelProperty("鏍囩")
private String tag;
-
- public void setPatid(Long patid) {
- this.patid = patid;
- }
-
- public Long getPatid() {
- return patid;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getName() {
- return name;
- }
-
- public void setSex(Long sex) {
- this.sex = sex;
- }
-
- public Long getSex() {
- return sex;
- }
-
- public void setIccardno(String iccardno) {
- this.iccardno = iccardno;
- }
-
- public String getIccardno() {
- return iccardno;
- }
-
- public void setBirthdate(Date birthdate) {
- this.birthdate = birthdate;
- }
-
- public Date getBirthdate() {
- return birthdate;
- }
-
- public void setAge(Long age) {
- this.age = age;
- }
-
- public Long getAge() {
- return age;
- }
-
- public void setSource(Long source) {
- this.source = source;
- }
-
- public Long getSource() {
- return source;
- }
-
- public void setArchivetime(Date archivetime) {
- this.archivetime = archivetime;
- }
-
- public Date getArchivetime() {
- return archivetime;
- }
-
- public void setArchiveby(String archiveby) {
- this.archiveby = archiveby;
- }
-
- public String getArchiveby() {
- return archiveby;
- }
-
- public void setTelcode(String telcode) {
- this.telcode = telcode;
- }
-
- public String getTelcode() {
- return telcode;
- }
-
- public void setRelativetelcode(String relativetelcode) {
- this.relativetelcode = relativetelcode;
- }
-
- public String getRelativetelcode() {
- return relativetelcode;
- }
-
- public void setIccardtype(String iccardtype) {
- this.iccardtype = iccardtype;
- }
-
- public String getIccardtype() {
- return iccardtype;
- }
-
- public void setOrgid(String orgid) {
- this.orgid = orgid;
- }
-
- public String getOrgid() {
- return orgid;
- }
-
- public void setOpenid(String openid) {
- this.openid = openid;
- }
-
- public String getOpenid() {
- return openid;
- }
-
- public void setDelFlag(String delFlag) {
- this.delFlag = delFlag;
- }
-
- public String getDelFlag() {
- return delFlag;
- }
-
- public void setIsupload(Long isupload) {
- this.isupload = isupload;
- }
-
- public Long getIsupload() {
- return isupload;
- }
-
- public void setUploadTime(Date uploadTime) {
- this.uploadTime = uploadTime;
- }
-
- public Date getUploadTime() {
- return uploadTime;
- }
-
- public String getTag() {
- return tag;
- }
-
- public void setTag(String tag) {
- this.tag = tag;
- }
@Override
public String toString() {
diff --git a/smartor/src/main/java/com/smartor/domain/PatMedBloodsugar.java b/smartor/src/main/java/com/smartor/domain/PatMedBloodsugar.java
new file mode 100644
index 0000000..8a42aa0
--- /dev/null
+++ b/smartor/src/main/java/com/smartor/domain/PatMedBloodsugar.java
@@ -0,0 +1,244 @@
+package com.smartor.domain;
+
+import java.math.BigDecimal;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 鎮h�呰绯栬褰曞璞� pat_med_bloodsugar
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+@ApiModel(value = "PatMedWeight", description = "鎮h�呰绯栬褰曞璞�")
+public class PatMedBloodsugar extends BaseEntity
+{
+ private static final long serialVersionUID = 1L;
+
+ /** 鑷ID */
+ @ApiModelProperty(name = "鑷ID")
+ private Long bloodsugarid;
+
+ /** 娴佹按鍙� */
+ @ApiModelProperty(name = "娴佹按鍙�")
+ @Excel(name = " 娴佹按鍙� ")
+ private String serialnum;
+
+ /** 璁板綍鏃堕棿 */
+ @ApiModelProperty(name = "璁板綍鏃堕棿")
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = " 璁板綍鏃堕棿 ", width = 30, dateFormat = "yyyy-MM-dd")
+ private Date recordtime;
+
+ /** 鏈烘瀯ID */
+ @ApiModelProperty(name = "鏈烘瀯ID")
+ @Excel(name = " 鏈烘瀯ID ")
+ private String orgid;
+
+ /** 鍒犻櫎鏍囪 */
+ @ApiModelProperty(name = "鍒犻櫎鏍囪")
+ private String delFlag;
+
+ /** 涓婁紶鏍囪 */
+ @ApiModelProperty(name = "涓婁紶鏍囪")
+ @Excel(name = " 涓婁紶鏍囪 ")
+ private Long isupload;
+
+ /** 涓婁紶鏃堕棿 */
+ @ApiModelProperty(name = "涓婁紶鏃堕棿")
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = " 涓婁紶鏃堕棿 ", width = 30, dateFormat = "yyyy-MM-dd")
+ private Date uploadTime;
+
+ /** 妗fID */
+ @ApiModelProperty(name = "妗fID")
+ @Excel(name = " 妗fID ")
+ private Long patid;
+
+ /** 鏁版嵁绫诲瀷 */
+ @ApiModelProperty(name = "鏁版嵁绫诲瀷")
+ @Excel(name = " 鏁版嵁绫诲瀷 ")
+ private String typename;
+
+ /** 琛�绯栧�� */
+ @ApiModelProperty(name = "鑷ID")
+ @Excel(name = " 琛�绯栧�� ")
+ private BigDecimal sugarlevel;
+
+ /** 鏁版嵁鏉ユ簮 */
+ @ApiModelProperty(name = "鏁版嵁鏉ユ簮")
+ @Excel(name = " 鏁版嵁鏉ユ簮 ")
+ private String sourcename;
+
+ /** 绌鸿吂琛�绯� */
+ @ApiModelProperty(name = "绌鸿吂琛�绯�")
+ @Excel(name = " 绌鸿吂琛�绯� ")
+ private BigDecimal sugarlevelempty;
+
+ /** 灏辫瘖绫诲瀷;1闂ㄨ瘖 2浣忛櫌 3浣撴 */
+ @ApiModelProperty(name = "灏辫瘖绫诲瀷;1闂ㄨ瘖 2浣忛櫌 3浣撴")
+ @Excel(name = " 灏辫瘖绫诲瀷;1闂ㄨ瘖 2浣忛櫌 3浣撴 ")
+ private Long visittype;
+
+ /** 灏辫瘖ID;灏辫瘖绫诲瀷涓�-1:瀛橀棬璇婅褰旾D 2:瀛樹綇闄㈣褰旾D 3;瀛樹綋妫�璁板綍ID */
+ @Excel(name = " 灏辫瘖ID;灏辫瘖绫诲瀷涓�-1:瀛橀棬璇婅褰旾D 2:瀛樹綇闄㈣褰旾D 3;瀛樹綋妫�璁板綍ID ")
+ @ApiModelProperty(name = "灏辫瘖ID;灏辫瘖绫诲瀷涓�-1:瀛橀棬璇婅褰旾D 2:瀛樹綇闄㈣褰旾D 3;瀛樹綋妫�璁板綍ID")
+ private Long visitid;
+
+ public void setBloodsugarid(Long bloodsugarid)
+ {
+ this.bloodsugarid = bloodsugarid;
+ }
+
+ public Long getBloodsugarid()
+ {
+ return bloodsugarid;
+ }
+ public void setSerialnum(String serialnum)
+ {
+ this.serialnum = serialnum;
+ }
+
+ public String getSerialnum()
+ {
+ return serialnum;
+ }
+ public void setRecordtime(Date recordtime)
+ {
+ this.recordtime = recordtime;
+ }
+
+ public Date getRecordtime()
+ {
+ return recordtime;
+ }
+ public void setOrgid(String orgid)
+ {
+ this.orgid = orgid;
+ }
+
+ public String getOrgid()
+ {
+ return orgid;
+ }
+ public void setDelFlag(String delFlag)
+ {
+ this.delFlag = delFlag;
+ }
+
+ public String getDelFlag()
+ {
+ return delFlag;
+ }
+ public void setIsupload(Long isupload)
+ {
+ this.isupload = isupload;
+ }
+
+ public Long getIsupload()
+ {
+ return isupload;
+ }
+ public void setUploadTime(Date uploadTime)
+ {
+ this.uploadTime = uploadTime;
+ }
+
+ public Date getUploadTime()
+ {
+ return uploadTime;
+ }
+ public void setPatid(Long patid)
+ {
+ this.patid = patid;
+ }
+
+ public Long getPatid()
+ {
+ return patid;
+ }
+ public void setTypename(String typename)
+ {
+ this.typename = typename;
+ }
+
+ public String getTypename()
+ {
+ return typename;
+ }
+ public void setSugarlevel(BigDecimal sugarlevel)
+ {
+ this.sugarlevel = sugarlevel;
+ }
+
+ public BigDecimal getSugarlevel()
+ {
+ return sugarlevel;
+ }
+ public void setSourcename(String sourcename)
+ {
+ this.sourcename = sourcename;
+ }
+
+ public String getSourcename()
+ {
+ return sourcename;
+ }
+ public void setSugarlevelempty(BigDecimal sugarlevelempty)
+ {
+ this.sugarlevelempty = sugarlevelempty;
+ }
+
+ public BigDecimal getSugarlevelempty()
+ {
+ return sugarlevelempty;
+ }
+ public void setVisittype(Long visittype)
+ {
+ this.visittype = visittype;
+ }
+
+ public Long getVisittype()
+ {
+ return visittype;
+ }
+ public void setVisitid(Long visitid)
+ {
+ this.visitid = visitid;
+ }
+
+ public Long getVisitid()
+ {
+ return visitid;
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+ .append("bloodsugarid", getBloodsugarid())
+ .append("serialnum", getSerialnum())
+ .append("recordtime", getRecordtime())
+ .append("orgid", getOrgid())
+ .append("delFlag", getDelFlag())
+ .append("updateBy", getUpdateBy())
+ .append("updateTime", getUpdateTime())
+ .append("createBy", getCreateBy())
+ .append("createTime", getCreateTime())
+ .append("isupload", getIsupload())
+ .append("uploadTime", getUploadTime())
+ .append("patid", getPatid())
+ .append("typename", getTypename())
+ .append("sugarlevel", getSugarlevel())
+ .append("sourcename", getSourcename())
+ .append("sugarlevelempty", getSugarlevelempty())
+ .append("visittype", getVisittype())
+ .append("visitid", getVisitid())
+ .toString();
+ }
+}
diff --git a/smartor/src/main/java/com/smartor/domain/PatMedHypertension.java b/smartor/src/main/java/com/smartor/domain/PatMedHypertension.java
new file mode 100644
index 0000000..c1dd3e6
--- /dev/null
+++ b/smartor/src/main/java/com/smartor/domain/PatMedHypertension.java
@@ -0,0 +1,252 @@
+package com.smartor.domain;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 鎮h�呴珮琛�鍘嬭褰曞璞� pat_med_hypertension
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+@ApiModel(value = "PatMedHypertension", description = "鎮h�呴珮琛�鍘嬭褰曞璞�")
+public class PatMedHypertension extends BaseEntity {
+
+ /**
+ * 鑷ID
+ */
+ @ApiModelProperty(name = "鑷ID")
+ private Long id;
+
+ /**
+ * 娴佹按鍙�
+ */
+ @Excel(name = " 娴佹按鍙� ")
+ @ApiModelProperty(name = "娴佹按鍙�")
+ private String serialnum;
+
+ /**
+ * 璁板綍鏃堕棿
+ */
+ @ApiModelProperty(name = "璁板綍鏃堕棿")
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = " 璁板綍鏃堕棿 ", width = 30, dateFormat = "yyyy-MM-dd")
+ private Date recordtime;
+
+ /**
+ * 鏁版嵁绫诲瀷
+ */
+ @ApiModelProperty(name = "鏁版嵁绫诲瀷")
+ @Excel(name = " 鏁版嵁绫诲瀷 ")
+ private String typename;
+
+ /**
+ * 鏀剁缉鍘�
+ */
+ @ApiModelProperty(name = "鏀剁缉鍘�")
+ @Excel(name = " 鏀剁缉鍘� ")
+ private BigDecimal systolicpressure;
+
+ /**
+ * 鑸掑紶鍘�
+ */
+ @ApiModelProperty(name = "鑸掑紶鍘�")
+ @Excel(name = " 鑸掑紶鍘� ")
+ private BigDecimal diastolicpressure;
+
+ /**
+ * 鏁版嵁鏉ユ簮
+ */
+ @ApiModelProperty(name = "鏁版嵁鏉ユ簮")
+ @Excel(name = " 鏁版嵁鏉ユ簮 ")
+ private String sourcename;
+
+ /**
+ * 鏈烘瀯ID
+ */
+ @ApiModelProperty(name = "鏈烘瀯ID")
+ @Excel(name = " 鏈烘瀯ID ")
+ private String orgid;
+
+ /**
+ * 鍒犻櫎鏍囪
+ */
+ @ApiModelProperty(name = "鍒犻櫎鏍囪")
+ private String delFlag;
+
+ /**
+ * 涓婁紶鏍囪
+ */
+ @ApiModelProperty(name = "涓婁紶鏍囪")
+ @Excel(name = " 涓婁紶鏍囪 ")
+ private Long isupload;
+
+ /**
+ * 涓婁紶鏃堕棿
+ */
+ @ApiModelProperty(name = "涓婁紶鏃堕棿")
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = " 涓婁紶鏃堕棿 ", width = 30, dateFormat = "yyyy-MM-dd")
+ private Date uploadTime;
+
+ /**
+ * 妗fID
+ */
+ @ApiModelProperty(name = "妗fID")
+ @Excel(name = " 妗fID ")
+ private Long patid;
+
+ /**
+ * 蹇冪巼;娆�/鍒嗛挓
+ */
+ @ApiModelProperty(name = "蹇冪巼;娆�/鍒嗛挓")
+ @Excel(name = " 蹇冪巼;娆�/鍒嗛挓 ")
+ private Long heartrate;
+
+ /**
+ * 灏辫瘖绫诲瀷;1闂ㄨ瘖 2浣忛櫌 3浣撴
+ */
+ @ApiModelProperty(name = "灏辫瘖绫诲瀷;1闂ㄨ瘖 2浣忛櫌 3浣撴")
+ @Excel(name = " 灏辫瘖绫诲瀷;1闂ㄨ瘖 2浣忛櫌 3浣撴 ")
+ private Long visittype;
+
+ /**
+ * 灏辫瘖ID;灏辫瘖绫诲瀷涓�-1:瀛橀棬璇婅褰旾D 2:瀛樹綇闄㈣褰旾D 3;瀛樹綋妫�璁板綍ID
+ */
+ @ApiModelProperty(name = " 灏辫瘖ID;灏辫瘖绫诲瀷涓�-1:瀛橀棬璇婅褰旾D 2:瀛樹綇闄㈣褰旾D 3;瀛樹綋妫�璁板綍ID")
+ @Excel(name = " 灏辫瘖ID;灏辫瘖绫诲瀷涓�-1:瀛橀棬璇婅褰旾D 2:瀛樹綇闄㈣褰旾D 3;瀛樹綋妫�璁板綍ID ")
+ private Long visitid;
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setSerialnum(String serialnum) {
+ this.serialnum = serialnum;
+ }
+
+ public String getSerialnum() {
+ return serialnum;
+ }
+
+ public void setRecordtime(Date recordtime) {
+ this.recordtime = recordtime;
+ }
+
+ public Date getRecordtime() {
+ return recordtime;
+ }
+
+ public void setTypename(String typename) {
+ this.typename = typename;
+ }
+
+ public String getTypename() {
+ return typename;
+ }
+
+ public void setSystolicpressure(BigDecimal systolicpressure) {
+ this.systolicpressure = systolicpressure;
+ }
+
+ public BigDecimal getSystolicpressure() {
+ return systolicpressure;
+ }
+
+ public void setDiastolicpressure(BigDecimal diastolicpressure) {
+ this.diastolicpressure = diastolicpressure;
+ }
+
+ public BigDecimal getDiastolicpressure() {
+ return diastolicpressure;
+ }
+
+ public void setSourcename(String sourcename) {
+ this.sourcename = sourcename;
+ }
+
+ public String getSourcename() {
+ return sourcename;
+ }
+
+ public void setOrgid(String orgid) {
+ this.orgid = orgid;
+ }
+
+ public String getOrgid() {
+ return orgid;
+ }
+
+ public void setDelFlag(String delFlag) {
+ this.delFlag = delFlag;
+ }
+
+ public String getDelFlag() {
+ return delFlag;
+ }
+
+ public void setIsupload(Long isupload) {
+ this.isupload = isupload;
+ }
+
+ public Long getIsupload() {
+ return isupload;
+ }
+
+ public void setUploadTime(Date uploadTime) {
+ this.uploadTime = uploadTime;
+ }
+
+ public Date getUploadTime() {
+ return uploadTime;
+ }
+
+ public void setPatid(Long patid) {
+ this.patid = patid;
+ }
+
+ public Long getPatid() {
+ return patid;
+ }
+
+ public void setHeartrate(Long heartrate) {
+ this.heartrate = heartrate;
+ }
+
+ public Long getHeartrate() {
+ return heartrate;
+ }
+
+ public void setVisittype(Long visittype) {
+ this.visittype = visittype;
+ }
+
+ public Long getVisittype() {
+ return visittype;
+ }
+
+ public void setVisitid(Long visitid) {
+ this.visitid = visitid;
+ }
+
+ public Long getVisitid() {
+ return visitid;
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("serialnum", getSerialnum()).append("recordtime", getRecordtime()).append("typename", getTypename()).append("systolicpressure", getSystolicpressure()).append("diastolicpressure", getDiastolicpressure()).append("sourcename", getSourcename()).append("orgid", getOrgid()).append("delFlag", getDelFlag()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("isupload", getIsupload()).append("uploadTime", getUploadTime()).append("patid", getPatid()).append("heartrate", getHeartrate()).append("visittype", getVisittype()).append("visitid", getVisitid()).toString();
+ }
+}
diff --git a/smartor/src/main/java/com/smartor/domain/PatMedOuthosp.java b/smartor/src/main/java/com/smartor/domain/PatMedOuthosp.java
index 3c916b3..a5cf2c4 100644
--- a/smartor/src/main/java/com/smartor/domain/PatMedOuthosp.java
+++ b/smartor/src/main/java/com/smartor/domain/PatMedOuthosp.java
@@ -2,6 +2,8 @@
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
@@ -13,81 +15,98 @@
* @author smartor
* @date 2023-03-04
*/
+@ApiModel(value = "PatMedOuthosp", description = "鎮h�呴棬璇婅褰曞璞�")
public class PatMedOuthosp extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 鑷ID */
+ @ApiModelProperty(name = "鑷ID")
private Long id;
/** 娴佹按鍙� */
+ @ApiModelProperty(name = "娴佹按鍙�")
private String serialnum;
/** 妗fID */
+ @ApiModelProperty(name = "妗fID")
private Long patid;
/** 鍖婚櫌鍚嶇О */
- @Excel(name = " 鍖婚櫌鍚嶇О ")
+ @ApiModelProperty(name = "鍖婚櫌鍚嶇О")
private String hospitalname;
/** 鍖婚櫌缂栧彿 */
+ @ApiModelProperty(name = "鍖婚櫌缂栧彿")
private String hospitalcode;
/** 璇婃柇ICD鍊� */
+ @ApiModelProperty(name = "璇婃柇ICD鍊�")
private String icd10code;
/** 璇婃柇鍚嶇О */
- @Excel(name = " 璇婃柇鍚嶇О ")
+ @ApiModelProperty(name = "璇婃柇鍚嶇О")
private String diagname;
/** 绉戝浠g爜 */
+ @ApiModelProperty(name = "绉戝浠g爜")
private String deptcode;
/** 绉戝鍚嶇О */
+ @ApiModelProperty(name = "绉戝鍚嶇О")
@Excel(name = " 绉戝鍚嶇О ")
private String deptname;
/** 鍖荤敓宸ュ彿 */
+ @ApiModelProperty(name = "鍖荤敓宸ュ彿")
private String drcode;
/** 鍖荤敓鍚嶇О */
- @Excel(name = " 鍖荤敓鍚嶇О ")
+ @ApiModelProperty(name = "鍖荤敓鍚嶇О")
private String drname;
/** 灏辫瘖鏃ユ湡 */
+ @ApiModelProperty(name = "灏辫瘖鏃ユ湡")
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = " 灏辫瘖鏃ユ湡 ", width = 30, dateFormat = "yyyy-MM-dd")
private Date admitdate;
/** 鏈烘瀯ID */
- @Excel(name = " 鏈烘瀯ID ")
+ @ApiModelProperty(name = "鏈烘瀯ID")
private String orgid;
/** 鍒犻櫎鏍囪 */
+ @ApiModelProperty(name = "鍒犻櫎鏍囪")
private String delFlag;
/** 涓婁紶鏍囪 */
+ @ApiModelProperty(name = "涓婁紶鏍囪")
private Long isupload;
/** 涓婁紶鏃堕棿 */
+ @ApiModelProperty(name = "涓婁紶鏃堕棿")
private Date uploadTime;
/** 鏄惁鐢熸垚鏂规鐘舵��;0鏈敓鎴� 1鐢熸垚灏辫瘖 9鏃犲尮閰嶆柟妗� */
- @Excel(name = " 鏄惁鐢熸垚鏂规鐘舵��;0鏈敓鎴� 1鐢熸垚灏辫瘖 9鏃犲尮閰嶆柟妗� ")
+ @ApiModelProperty(name = "鏄惁鐢熸垚鏂规鐘舵��;0鏈敓鎴� 1鐢熸垚灏辫瘖 9鏃犲尮閰嶆柟妗�")
private Long schemestatus;
/** 绉戝ID */
+ @ApiModelProperty(name = "绉戝ID")
private Long deptid;
/** 鏂规鐘舵�佹搷浣滄椂闂� */
+ @ApiModelProperty(name = "鏂规鐘舵�佹搷浣滄椂闂�")
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = " 鏂规鐘舵�佹搷浣滄椂闂� ", width = 30, dateFormat = "yyyy-MM-dd")
private Date schemetime;
/** 鐜扮梾鍙� */
+ @ApiModelProperty(name = "鐜扮梾鍙�")
private String hpi;
/** 涓昏堪 */
+ @ApiModelProperty(name = "涓昏堪")
private String mainsuit;
public void setId(Long id)
diff --git a/smartor/src/main/java/com/smartor/domain/PatMedWeight.java b/smartor/src/main/java/com/smartor/domain/PatMedWeight.java
new file mode 100644
index 0000000..e1b915d
--- /dev/null
+++ b/smartor/src/main/java/com/smartor/domain/PatMedWeight.java
@@ -0,0 +1,229 @@
+package com.smartor.domain;
+
+import java.math.BigDecimal;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 鎮h�呬綋閲嶈褰曞璞� pat_med_weight
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+@ApiModel(value = "PatMedWeight", description = "鎮h�呬綋閲嶈褰曞璞�")
+public class PatMedWeight extends BaseEntity
+{
+ private static final long serialVersionUID = 1L;
+
+ /** 鑷ID */
+ @ApiModelProperty(name = "鑷ID")
+ private Long id;
+
+ /** 娴佹按鍙� */
+ @ApiModelProperty(name = "娴佹按鍙�")
+ @Excel(name = " 娴佹按鍙� ")
+ private String serialnum;
+
+ /** 鑴傝偑閲嶉噺 */
+ @ApiModelProperty(name = "鑴傝偑閲嶉噺")
+ @Excel(name = " 鑴傝偑閲嶉噺 ")
+ private BigDecimal fatweight;
+
+ /** 浣撻噸 */
+ @ApiModelProperty(name = "浣撻噸")
+ @Excel(name = " 浣撻噸 ")
+ private BigDecimal bodyweight;
+
+ /** 璁板綍鏃堕棿 */
+ @ApiModelProperty(name = "璁板綍鏃堕棿")
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = " 璁板綍鏃堕棿 ", width = 30, dateFormat = "yyyy-MM-dd")
+ private Date recordtime;
+
+ /** 鏈烘瀯ID */
+ @ApiModelProperty(name = "鏈烘瀯ID")
+ @Excel(name = " 鏈烘瀯ID ")
+ private String orgid;
+
+ /** 鍒犻櫎鏍囪 */
+ @ApiModelProperty(name = "鍒犻櫎鏍囪")
+ private String delFlag;
+
+ /** 涓婁紶鏍囪 */
+ @ApiModelProperty(name = "涓婁紶鏍囪")
+ @Excel(name = " 涓婁紶鏍囪 ")
+ private Long isupload;
+
+ /** 涓婁紶鏃堕棿 */
+ @ApiModelProperty(name = "涓婁紶鏃堕棿")
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = " 涓婁紶鏃堕棿 ", width = 30, dateFormat = "yyyy-MM-dd")
+ private Date uploadTime;
+
+ /** 妗fID */
+ @ApiModelProperty(name = "妗fID")
+ @Excel(name = " 妗fID ")
+ private Long patid;
+
+ /** 鏁版嵁鏉ユ簮 */
+ @ApiModelProperty(name = "鏁版嵁鏉ユ簮")
+ @Excel(name = " 鏁版嵁鏉ユ簮 ")
+ private String sourcename;
+
+ /** 灏辫瘖绫诲瀷;1闂ㄨ瘖 2浣忛櫌 3浣撴 */
+ @ApiModelProperty(name = "灏辫瘖绫诲瀷;1闂ㄨ瘖 2浣忛櫌 3浣撴")
+ @Excel(name = " 灏辫瘖绫诲瀷;1闂ㄨ瘖 2浣忛櫌 3浣撴 ")
+ private Long visittype;
+
+ /** 灏辫瘖;灏辫瘖绫诲瀷涓�-1:瀛橀棬璇婅褰旾D 2:瀛樹綇闄㈣褰旾D 3;瀛樹綋妫�璁板綍ID */
+ @ApiModelProperty(name = "灏辫瘖;灏辫瘖绫诲瀷涓�-1:瀛橀棬璇婅褰旾D 2:瀛樹綇闄㈣褰旾D 3;瀛樹綋妫�璁板綍ID")
+ @Excel(name = " 灏辫瘖;灏辫瘖绫诲瀷涓�-1:瀛橀棬璇婅褰旾D 2:瀛樹綇闄㈣褰旾D 3;瀛樹綋妫�璁板綍ID ")
+ private Long visitid;
+
+ public void setId(Long id)
+ {
+ this.id = id;
+ }
+
+ public Long getId()
+ {
+ return id;
+ }
+ public void setSerialnum(String serialnum)
+ {
+ this.serialnum = serialnum;
+ }
+
+ public String getSerialnum()
+ {
+ return serialnum;
+ }
+ public void setFatweight(BigDecimal fatweight)
+ {
+ this.fatweight = fatweight;
+ }
+
+ public BigDecimal getFatweight()
+ {
+ return fatweight;
+ }
+ public void setBodyweight(BigDecimal bodyweight)
+ {
+ this.bodyweight = bodyweight;
+ }
+
+ public BigDecimal getBodyweight()
+ {
+ return bodyweight;
+ }
+ public void setRecordtime(Date recordtime)
+ {
+ this.recordtime = recordtime;
+ }
+
+ public Date getRecordtime()
+ {
+ return recordtime;
+ }
+ public void setOrgid(String orgid)
+ {
+ this.orgid = orgid;
+ }
+
+ public String getOrgid()
+ {
+ return orgid;
+ }
+ public void setDelFlag(String delFlag)
+ {
+ this.delFlag = delFlag;
+ }
+
+ public String getDelFlag()
+ {
+ return delFlag;
+ }
+ public void setIsupload(Long isupload)
+ {
+ this.isupload = isupload;
+ }
+
+ public Long getIsupload()
+ {
+ return isupload;
+ }
+ public void setUploadTime(Date uploadTime)
+ {
+ this.uploadTime = uploadTime;
+ }
+
+ public Date getUploadTime()
+ {
+ return uploadTime;
+ }
+ public void setPatid(Long patid)
+ {
+ this.patid = patid;
+ }
+
+ public Long getPatid()
+ {
+ return patid;
+ }
+ public void setSourcename(String sourcename)
+ {
+ this.sourcename = sourcename;
+ }
+
+ public String getSourcename()
+ {
+ return sourcename;
+ }
+ public void setVisittype(Long visittype)
+ {
+ this.visittype = visittype;
+ }
+
+ public Long getVisittype()
+ {
+ return visittype;
+ }
+ public void setVisitid(Long visitid)
+ {
+ this.visitid = visitid;
+ }
+
+ public Long getVisitid()
+ {
+ return visitid;
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+ .append("id", getId())
+ .append("serialnum", getSerialnum())
+ .append("fatweight", getFatweight())
+ .append("bodyweight", getBodyweight())
+ .append("recordtime", getRecordtime())
+ .append("orgid", getOrgid())
+ .append("delFlag", getDelFlag())
+ .append("updateBy", getUpdateBy())
+ .append("updateTime", getUpdateTime())
+ .append("createBy", getCreateBy())
+ .append("createTime", getCreateTime())
+ .append("isupload", getIsupload())
+ .append("uploadTime", getUploadTime())
+ .append("patid", getPatid())
+ .append("sourcename", getSourcename())
+ .append("visittype", getVisittype())
+ .append("visitid", getVisitid())
+ .toString();
+ }
+}
diff --git a/smartor/src/main/java/com/smartor/mapper/PatMedBloodsugarMapper.java b/smartor/src/main/java/com/smartor/mapper/PatMedBloodsugarMapper.java
new file mode 100644
index 0000000..46e9eb3
--- /dev/null
+++ b/smartor/src/main/java/com/smartor/mapper/PatMedBloodsugarMapper.java
@@ -0,0 +1,63 @@
+package com.smartor.mapper;
+
+import com.smartor.domain.PatMedBloodsugar;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.List;
+
+/**
+ * 鎮h�呰绯栬褰昅apper鎺ュ彛
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+@Mapper
+public interface PatMedBloodsugarMapper {
+ /**
+ * 鏌ヨ鎮h�呰绯栬褰�
+ *
+ * @param bloodsugarid 鎮h�呰绯栬褰曚富閿�
+ * @return 鎮h�呰绯栬褰�
+ */
+ public PatMedBloodsugar selectPatMedBloodsugarByBloodsugarid(Long bloodsugarid);
+
+ /**
+ * 鏌ヨ鎮h�呰绯栬褰曞垪琛�
+ *
+ * @param patMedBloodsugar 鎮h�呰绯栬褰�
+ * @return 鎮h�呰绯栬褰曢泦鍚�
+ */
+ public List<PatMedBloodsugar> selectPatMedBloodsugarList(PatMedBloodsugar patMedBloodsugar);
+
+ /**
+ * 鏂板鎮h�呰绯栬褰�
+ *
+ * @param patMedBloodsugar 鎮h�呰绯栬褰�
+ * @return 缁撴灉
+ */
+ public int insertPatMedBloodsugar(PatMedBloodsugar patMedBloodsugar);
+
+ /**
+ * 淇敼鎮h�呰绯栬褰�
+ *
+ * @param patMedBloodsugar 鎮h�呰绯栬褰�
+ * @return 缁撴灉
+ */
+ public int updatePatMedBloodsugar(PatMedBloodsugar patMedBloodsugar);
+
+ /**
+ * 鍒犻櫎鎮h�呰绯栬褰�
+ *
+ * @param bloodsugarid 鎮h�呰绯栬褰曚富閿�
+ * @return 缁撴灉
+ */
+ public int deletePatMedBloodsugarByBloodsugarid(Long bloodsugarid);
+
+ /**
+ * 鎵归噺鍒犻櫎鎮h�呰绯栬褰�
+ *
+ * @param bloodsugarids 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎
+ * @return 缁撴灉
+ */
+ public int deletePatMedBloodsugarByBloodsugarids(Long[] bloodsugarids);
+}
diff --git a/smartor/src/main/java/com/smartor/mapper/PatMedHypertensionMapper.java b/smartor/src/main/java/com/smartor/mapper/PatMedHypertensionMapper.java
new file mode 100644
index 0000000..be115f8
--- /dev/null
+++ b/smartor/src/main/java/com/smartor/mapper/PatMedHypertensionMapper.java
@@ -0,0 +1,63 @@
+package com.smartor.mapper;
+
+import com.smartor.domain.PatMedHypertension;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.List;
+
+/**
+ * 鎮h�呴珮琛�鍘嬭褰昅apper鎺ュ彛
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+@Mapper
+public interface PatMedHypertensionMapper {
+ /**
+ * 鏌ヨ鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param id 鎮h�呴珮琛�鍘嬭褰曚富閿�
+ * @return 鎮h�呴珮琛�鍘嬭褰�
+ */
+ public PatMedHypertension selectPatMedHypertensionById(Long id);
+
+ /**
+ * 鏌ヨ鎮h�呴珮琛�鍘嬭褰曞垪琛�
+ *
+ * @param patMedHypertension 鎮h�呴珮琛�鍘嬭褰�
+ * @return 鎮h�呴珮琛�鍘嬭褰曢泦鍚�
+ */
+ public List<PatMedHypertension> selectPatMedHypertensionList(PatMedHypertension patMedHypertension);
+
+ /**
+ * 鏂板鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param patMedHypertension 鎮h�呴珮琛�鍘嬭褰�
+ * @return 缁撴灉
+ */
+ public int insertPatMedHypertension(PatMedHypertension patMedHypertension);
+
+ /**
+ * 淇敼鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param patMedHypertension 鎮h�呴珮琛�鍘嬭褰�
+ * @return 缁撴灉
+ */
+ public int updatePatMedHypertension(PatMedHypertension patMedHypertension);
+
+ /**
+ * 鍒犻櫎鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param id 鎮h�呴珮琛�鍘嬭褰曚富閿�
+ * @return 缁撴灉
+ */
+ public int deletePatMedHypertensionById(Long id);
+
+ /**
+ * 鎵归噺鍒犻櫎鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎
+ * @return 缁撴灉
+ */
+ public int deletePatMedHypertensionByIds(Long[] ids);
+}
diff --git a/smartor/src/main/java/com/smartor/mapper/PatMedWeightMapper.java b/smartor/src/main/java/com/smartor/mapper/PatMedWeightMapper.java
new file mode 100644
index 0000000..b9a3c6c
--- /dev/null
+++ b/smartor/src/main/java/com/smartor/mapper/PatMedWeightMapper.java
@@ -0,0 +1,63 @@
+package com.smartor.mapper;
+
+import com.smartor.domain.PatMedWeight;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.List;
+
+/**
+ * 鎮h�呬綋閲嶈褰昅apper鎺ュ彛
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+@Mapper
+public interface PatMedWeightMapper {
+ /**
+ * 鏌ヨ鎮h�呬綋閲嶈褰�
+ *
+ * @param id 鎮h�呬綋閲嶈褰曚富閿�
+ * @return 鎮h�呬綋閲嶈褰�
+ */
+ public PatMedWeight selectPatMedWeightById(Long id);
+
+ /**
+ * 鏌ヨ鎮h�呬綋閲嶈褰曞垪琛�
+ *
+ * @param patMedWeight 鎮h�呬綋閲嶈褰�
+ * @return 鎮h�呬綋閲嶈褰曢泦鍚�
+ */
+ public List<PatMedWeight> selectPatMedWeightList(PatMedWeight patMedWeight);
+
+ /**
+ * 鏂板鎮h�呬綋閲嶈褰�
+ *
+ * @param patMedWeight 鎮h�呬綋閲嶈褰�
+ * @return 缁撴灉
+ */
+ public int insertPatMedWeight(PatMedWeight patMedWeight);
+
+ /**
+ * 淇敼鎮h�呬綋閲嶈褰�
+ *
+ * @param patMedWeight 鎮h�呬綋閲嶈褰�
+ * @return 缁撴灉
+ */
+ public int updatePatMedWeight(PatMedWeight patMedWeight);
+
+ /**
+ * 鍒犻櫎鎮h�呬綋閲嶈褰�
+ *
+ * @param id 鎮h�呬綋閲嶈褰曚富閿�
+ * @return 缁撴灉
+ */
+ public int deletePatMedWeightById(Long id);
+
+ /**
+ * 鎵归噺鍒犻櫎鎮h�呬綋閲嶈褰�
+ *
+ * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎
+ * @return 缁撴灉
+ */
+ public int deletePatMedWeightByIds(Long[] ids);
+}
diff --git a/smartor/src/main/java/com/smartor/service/IPatArchiveService.java b/smartor/src/main/java/com/smartor/service/IPatArchiveService.java
index fcd9b6d..1119a94 100644
--- a/smartor/src/main/java/com/smartor/service/IPatArchiveService.java
+++ b/smartor/src/main/java/com/smartor/service/IPatArchiveService.java
@@ -3,6 +3,7 @@
import java.util.List;
import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.domain.entity.SysUser;
import com.smartor.domain.PatArchive;
import com.smartor.domain.PatUpInfoVO;
import org.springframework.web.bind.annotation.RequestBody;
@@ -70,7 +71,7 @@
* @param title
* @param file
*/
- public PatUpInfoVO importFilehandle(String username, MultipartFile file);
+ public PatUpInfoVO importFilehandle(SysUser user,String tags, MultipartFile file);
/**
* 瀵煎嚭鎮h�呴敊璇俊鎭�
diff --git a/smartor/src/main/java/com/smartor/service/IPatMedBloodsugarService.java b/smartor/src/main/java/com/smartor/service/IPatMedBloodsugarService.java
new file mode 100644
index 0000000..36e937c
--- /dev/null
+++ b/smartor/src/main/java/com/smartor/service/IPatMedBloodsugarService.java
@@ -0,0 +1,62 @@
+package com.smartor.service;
+
+import com.smartor.domain.PatMedBloodsugar;
+
+import java.util.List;
+
+/**
+ * 鎮h�呰绯栬褰昐ervice鎺ュ彛
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+public interface IPatMedBloodsugarService
+{
+ /**
+ * 鏌ヨ鎮h�呰绯栬褰�
+ *
+ * @param bloodsugarid 鎮h�呰绯栬褰曚富閿�
+ * @return 鎮h�呰绯栬褰�
+ */
+ public PatMedBloodsugar selectPatMedBloodsugarByBloodsugarid(Long bloodsugarid);
+
+ /**
+ * 鏌ヨ鎮h�呰绯栬褰曞垪琛�
+ *
+ * @param patMedBloodsugar 鎮h�呰绯栬褰�
+ * @return 鎮h�呰绯栬褰曢泦鍚�
+ */
+ public List<PatMedBloodsugar> selectPatMedBloodsugarList(PatMedBloodsugar patMedBloodsugar);
+
+ /**
+ * 鏂板鎮h�呰绯栬褰�
+ *
+ * @param patMedBloodsugar 鎮h�呰绯栬褰�
+ * @return 缁撴灉
+ */
+ public int insertPatMedBloodsugar(PatMedBloodsugar patMedBloodsugar);
+
+ /**
+ * 淇敼鎮h�呰绯栬褰�
+ *
+ * @param patMedBloodsugar 鎮h�呰绯栬褰�
+ * @return 缁撴灉
+ */
+ public int updatePatMedBloodsugar(PatMedBloodsugar patMedBloodsugar);
+
+ /**
+ * 鎵归噺鍒犻櫎鎮h�呰绯栬褰�
+ *
+ * @param bloodsugarids 闇�瑕佸垹闄ょ殑鎮h�呰绯栬褰曚富閿泦鍚�
+ * @return 缁撴灉
+ */
+ public int deletePatMedBloodsugarByBloodsugarids(Long[] bloodsugarids);
+
+ /**
+ * 鍒犻櫎鎮h�呰绯栬褰曚俊鎭�
+ *
+ * @param bloodsugarid 鎮h�呰绯栬褰曚富閿�
+ * @return 缁撴灉
+ */
+ public int deletePatMedBloodsugarByBloodsugarid(Long bloodsugarid);
+}
diff --git a/smartor/src/main/java/com/smartor/service/IPatMedHypertensionService.java b/smartor/src/main/java/com/smartor/service/IPatMedHypertensionService.java
new file mode 100644
index 0000000..45e44fd
--- /dev/null
+++ b/smartor/src/main/java/com/smartor/service/IPatMedHypertensionService.java
@@ -0,0 +1,62 @@
+package com.smartor.service;
+
+import com.smartor.domain.PatMedHypertension;
+
+import java.util.List;
+
+/**
+ * 鎮h�呴珮琛�鍘嬭褰昐ervice鎺ュ彛
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+public interface IPatMedHypertensionService
+{
+ /**
+ * 鏌ヨ鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param id 鎮h�呴珮琛�鍘嬭褰曚富閿�
+ * @return 鎮h�呴珮琛�鍘嬭褰�
+ */
+ public PatMedHypertension selectPatMedHypertensionById(Long id);
+
+ /**
+ * 鏌ヨ鎮h�呴珮琛�鍘嬭褰曞垪琛�
+ *
+ * @param patMedHypertension 鎮h�呴珮琛�鍘嬭褰�
+ * @return 鎮h�呴珮琛�鍘嬭褰曢泦鍚�
+ */
+ public List<PatMedHypertension> selectPatMedHypertensionList(PatMedHypertension patMedHypertension);
+
+ /**
+ * 鏂板鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param patMedHypertension 鎮h�呴珮琛�鍘嬭褰�
+ * @return 缁撴灉
+ */
+ public int insertPatMedHypertension(PatMedHypertension patMedHypertension);
+
+ /**
+ * 淇敼鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param patMedHypertension 鎮h�呴珮琛�鍘嬭褰�
+ * @return 缁撴灉
+ */
+ public int updatePatMedHypertension(PatMedHypertension patMedHypertension);
+
+ /**
+ * 鎵归噺鍒犻櫎鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param ids 闇�瑕佸垹闄ょ殑鎮h�呴珮琛�鍘嬭褰曚富閿泦鍚�
+ * @return 缁撴灉
+ */
+ public int deletePatMedHypertensionByIds(Long[] ids);
+
+ /**
+ * 鍒犻櫎鎮h�呴珮琛�鍘嬭褰曚俊鎭�
+ *
+ * @param id 鎮h�呴珮琛�鍘嬭褰曚富閿�
+ * @return 缁撴灉
+ */
+ public int deletePatMedHypertensionById(Long id);
+}
diff --git a/smartor/src/main/java/com/smartor/service/IPatMedWeightService.java b/smartor/src/main/java/com/smartor/service/IPatMedWeightService.java
new file mode 100644
index 0000000..7f7db8f
--- /dev/null
+++ b/smartor/src/main/java/com/smartor/service/IPatMedWeightService.java
@@ -0,0 +1,62 @@
+package com.smartor.service;
+
+import com.smartor.domain.PatMedWeight;
+
+import java.util.List;
+
+/**
+ * 鎮h�呬綋閲嶈褰昐ervice鎺ュ彛
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+public interface IPatMedWeightService
+{
+ /**
+ * 鏌ヨ鎮h�呬綋閲嶈褰�
+ *
+ * @param id 鎮h�呬綋閲嶈褰曚富閿�
+ * @return 鎮h�呬綋閲嶈褰�
+ */
+ public PatMedWeight selectPatMedWeightById(Long id);
+
+ /**
+ * 鏌ヨ鎮h�呬綋閲嶈褰曞垪琛�
+ *
+ * @param patMedWeight 鎮h�呬綋閲嶈褰�
+ * @return 鎮h�呬綋閲嶈褰曢泦鍚�
+ */
+ public List<PatMedWeight> selectPatMedWeightList(PatMedWeight patMedWeight);
+
+ /**
+ * 鏂板鎮h�呬綋閲嶈褰�
+ *
+ * @param patMedWeight 鎮h�呬綋閲嶈褰�
+ * @return 缁撴灉
+ */
+ public int insertPatMedWeight(PatMedWeight patMedWeight);
+
+ /**
+ * 淇敼鎮h�呬綋閲嶈褰�
+ *
+ * @param patMedWeight 鎮h�呬綋閲嶈褰�
+ * @return 缁撴灉
+ */
+ public int updatePatMedWeight(PatMedWeight patMedWeight);
+
+ /**
+ * 鎵归噺鍒犻櫎鎮h�呬綋閲嶈褰�
+ *
+ * @param ids 闇�瑕佸垹闄ょ殑鎮h�呬綋閲嶈褰曚富閿泦鍚�
+ * @return 缁撴灉
+ */
+ public int deletePatMedWeightByIds(Long[] ids);
+
+ /**
+ * 鍒犻櫎鎮h�呬綋閲嶈褰曚俊鎭�
+ *
+ * @param id 鎮h�呬綋閲嶈褰曚富閿�
+ * @return 缁撴灉
+ */
+ public int deletePatMedWeightById(Long id);
+}
diff --git a/smartor/src/main/java/com/smartor/service/impl/PatArchiveServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/PatArchiveServiceImpl.java
index 39b4483..9cad7d3 100644
--- a/smartor/src/main/java/com/smartor/service/impl/PatArchiveServiceImpl.java
+++ b/smartor/src/main/java/com/smartor/service/impl/PatArchiveServiceImpl.java
@@ -8,6 +8,7 @@
import java.util.List;
import java.util.Objects;
+import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.DtoConversionUtils;
import com.ruoyi.common.utils.StringUtils;
@@ -16,8 +17,10 @@
import com.smartor.domain.PatUpInfoVO;
import com.smartor.mapper.BaseTagMapper;
import com.smartor.mapper.PatArchivetagMapper;
+import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
+import org.apache.poi.ss.formula.functions.Now;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.springframework.beans.factory.annotation.Autowired;
@@ -116,7 +119,7 @@
@Override
@Transactional
- public PatUpInfoVO importFilehandle(String username, MultipartFile file) {
+ public PatUpInfoVO importFilehandle(SysUser user, String tags, MultipartFile file) {
PatUpInfoVO patUpInfoVO = new PatUpInfoVO();
Integer successNum = 0;
Integer failNum = 0;
@@ -213,10 +216,19 @@
}
//鎮i兘鏍囩鏄惁涓虹┖
- if (ObjectUtils.isEmpty(row.getCell(7))) {
- addRemark("鎮h�呮爣绛句负绌�", patArchive);
+ if (ObjectUtils.isEmpty(row.getCell(7)) || StringUtils.isEmpty(row.getCell(7).toString())) {
+ if (StringUtils.isEmpty(tags)) {
+ addRemark("鎮h�呮爣绛句负绌�", patArchive);
+ } else {
+ patArchive.setTag(tags);
+
+ }
} else {
- patArchive.setTag(row.getCell(7).toString());
+ if (StringUtils.isNotEmpty(tags)) {
+ patArchive.setTag(row.getCell(7).toString() + "," + tags);
+ } else {
+ patArchive.setTag(row.getCell(7).toString());
+ }
}
//鍒ゆ柇澶囨敞鏄惁涓虹┖
@@ -231,17 +243,32 @@
patArchiveMapper.insertPatArchive(patArchive);
//鏍规嵁鏍囩鍚嶆煡璇㈠嚭鏍囩淇℃伅
- String s = row.getCell(7).toString();
+ String s = patArchive.getTag();
String[] split = s.split(",");
for (String tagName : split) {
BaseTag baseTag = new BaseTag();
baseTag.setTagname(tagName);
List<BaseTag> baseTags = baseTagMapper.selectBaseTagList(baseTag);
- BaseTag baseTag1 = baseTags.get(0);
+
+ //濡傛灉璇ユ爣绛句负绌猴紝鐜版爣绛剧鐞嗘病鏈夊嚭鐜拌繃鐨勬柊鏍囩鏃讹紝鑷姩灏嗘爣绛炬坊鍔犲埌"鏍囩绠$悊"鏈垎绫烩�滀腑銆傜紪杈戜汉涓哄鍏ヨ处鍙�
+ if (CollectionUtils.isEmpty(baseTags)) {
+ baseTag = new BaseTag();
+ baseTag.setTagcategoryid(1L);
+ baseTag.setTagname(tagName);
+ baseTag.setOrgid(user.getDeptId().toString());
+ baseTag.setDelFlag("0");
+ baseTag.setCreateBy(user.getUserName());
+ baseTag.setCreateTime(new Date());
+ baseTag.setCreateBy(user.getUserName());
+ baseTag.setCreateTime(new Date());
+ baseTagMapper.insertBaseTag(baseTag);
+ } else {
+ baseTag = baseTags.get(0);
+ }
// 鏂板鎮h�呮。妗堟爣绛�
- PatArchivetag patArchivetag = DtoConversionUtils.sourceToTarget(baseTag1, PatArchivetag.class);
- patArchivetag.setUpdateBy(username);
+ PatArchivetag patArchivetag = DtoConversionUtils.sourceToTarget(baseTag, PatArchivetag.class);
+ patArchivetag.setUpdateBy(user.getUserName());
patArchivetag.setCreateTime(new Date());
patArchivetag.setPatid(patArchive.getPatid());
patArchivetagMapper.insertPatArchivetag(patArchivetag);
diff --git a/smartor/src/main/java/com/smartor/service/impl/PatMedBloodsugarServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/PatMedBloodsugarServiceImpl.java
new file mode 100644
index 0000000..00d3235
--- /dev/null
+++ b/smartor/src/main/java/com/smartor/service/impl/PatMedBloodsugarServiceImpl.java
@@ -0,0 +1,90 @@
+package com.smartor.service.impl;
+
+import com.ruoyi.common.utils.DateUtils;
+import com.smartor.domain.PatMedBloodsugar;
+import com.smartor.mapper.PatMedBloodsugarMapper;
+import com.smartor.service.IPatMedBloodsugarService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * 鎮h�呰绯栬褰昐ervice涓氬姟灞傚鐞�
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+@Service
+public class PatMedBloodsugarServiceImpl implements IPatMedBloodsugarService {
+ @Autowired
+ private PatMedBloodsugarMapper patMedBloodsugarMapper;
+
+ /**
+ * 鏌ヨ鎮h�呰绯栬褰�
+ *
+ * @param bloodsugarid 鎮h�呰绯栬褰曚富閿�
+ * @return 鎮h�呰绯栬褰�
+ */
+ @Override
+ public PatMedBloodsugar selectPatMedBloodsugarByBloodsugarid(Long bloodsugarid) {
+ return patMedBloodsugarMapper.selectPatMedBloodsugarByBloodsugarid(bloodsugarid);
+ }
+
+ /**
+ * 鏌ヨ鎮h�呰绯栬褰曞垪琛�
+ *
+ * @param patMedBloodsugar 鎮h�呰绯栬褰�
+ * @return 鎮h�呰绯栬褰�
+ */
+ @Override
+ public List<PatMedBloodsugar> selectPatMedBloodsugarList(PatMedBloodsugar patMedBloodsugar) {
+ return patMedBloodsugarMapper.selectPatMedBloodsugarList(patMedBloodsugar);
+ }
+
+ /**
+ * 鏂板鎮h�呰绯栬褰�
+ *
+ * @param patMedBloodsugar 鎮h�呰绯栬褰�
+ * @return 缁撴灉
+ */
+ @Override
+ public int insertPatMedBloodsugar(PatMedBloodsugar patMedBloodsugar) {
+ patMedBloodsugar.setCreateTime(DateUtils.getNowDate());
+ return patMedBloodsugarMapper.insertPatMedBloodsugar(patMedBloodsugar);
+ }
+
+ /**
+ * 淇敼鎮h�呰绯栬褰�
+ *
+ * @param patMedBloodsugar 鎮h�呰绯栬褰�
+ * @return 缁撴灉
+ */
+ @Override
+ public int updatePatMedBloodsugar(PatMedBloodsugar patMedBloodsugar) {
+ patMedBloodsugar.setUpdateTime(DateUtils.getNowDate());
+ return patMedBloodsugarMapper.updatePatMedBloodsugar(patMedBloodsugar);
+ }
+
+ /**
+ * 鎵归噺鍒犻櫎鎮h�呰绯栬褰�
+ *
+ * @param bloodsugarids 闇�瑕佸垹闄ょ殑鎮h�呰绯栬褰曚富閿�
+ * @return 缁撴灉
+ */
+ @Override
+ public int deletePatMedBloodsugarByBloodsugarids(Long[] bloodsugarids) {
+ return patMedBloodsugarMapper.deletePatMedBloodsugarByBloodsugarids(bloodsugarids);
+ }
+
+ /**
+ * 鍒犻櫎鎮h�呰绯栬褰曚俊鎭�
+ *
+ * @param bloodsugarid 鎮h�呰绯栬褰曚富閿�
+ * @return 缁撴灉
+ */
+ @Override
+ public int deletePatMedBloodsugarByBloodsugarid(Long bloodsugarid) {
+ return patMedBloodsugarMapper.deletePatMedBloodsugarByBloodsugarid(bloodsugarid);
+ }
+}
diff --git a/smartor/src/main/java/com/smartor/service/impl/PatMedHypertensionServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/PatMedHypertensionServiceImpl.java
new file mode 100644
index 0000000..4f9c6f2
--- /dev/null
+++ b/smartor/src/main/java/com/smartor/service/impl/PatMedHypertensionServiceImpl.java
@@ -0,0 +1,90 @@
+package com.smartor.service.impl;
+
+import com.ruoyi.common.utils.DateUtils;
+import com.smartor.domain.PatMedHypertension;
+import com.smartor.mapper.PatMedHypertensionMapper;
+import com.smartor.service.IPatMedHypertensionService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * 鎮h�呴珮琛�鍘嬭褰昐ervice涓氬姟灞傚鐞�
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+@Service
+public class PatMedHypertensionServiceImpl implements IPatMedHypertensionService {
+ @Autowired
+ private PatMedHypertensionMapper patMedHypertensionMapper;
+
+ /**
+ * 鏌ヨ鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param id 鎮h�呴珮琛�鍘嬭褰曚富閿�
+ * @return 鎮h�呴珮琛�鍘嬭褰�
+ */
+ @Override
+ public PatMedHypertension selectPatMedHypertensionById(Long id) {
+ return patMedHypertensionMapper.selectPatMedHypertensionById(id);
+ }
+
+ /**
+ * 鏌ヨ鎮h�呴珮琛�鍘嬭褰曞垪琛�
+ *
+ * @param patMedHypertension 鎮h�呴珮琛�鍘嬭褰�
+ * @return 鎮h�呴珮琛�鍘嬭褰�
+ */
+ @Override
+ public List<PatMedHypertension> selectPatMedHypertensionList(PatMedHypertension patMedHypertension) {
+ return patMedHypertensionMapper.selectPatMedHypertensionList(patMedHypertension);
+ }
+
+ /**
+ * 鏂板鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param patMedHypertension 鎮h�呴珮琛�鍘嬭褰�
+ * @return 缁撴灉
+ */
+ @Override
+ public int insertPatMedHypertension(PatMedHypertension patMedHypertension) {
+ patMedHypertension.setCreateTime(DateUtils.getNowDate());
+ return patMedHypertensionMapper.insertPatMedHypertension(patMedHypertension);
+ }
+
+ /**
+ * 淇敼鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param patMedHypertension 鎮h�呴珮琛�鍘嬭褰�
+ * @return 缁撴灉
+ */
+ @Override
+ public int updatePatMedHypertension(PatMedHypertension patMedHypertension) {
+ patMedHypertension.setUpdateTime(DateUtils.getNowDate());
+ return patMedHypertensionMapper.updatePatMedHypertension(patMedHypertension);
+ }
+
+ /**
+ * 鎵归噺鍒犻櫎鎮h�呴珮琛�鍘嬭褰�
+ *
+ * @param ids 闇�瑕佸垹闄ょ殑鎮h�呴珮琛�鍘嬭褰曚富閿�
+ * @return 缁撴灉
+ */
+ @Override
+ public int deletePatMedHypertensionByIds(Long[] ids) {
+ return patMedHypertensionMapper.deletePatMedHypertensionByIds(ids);
+ }
+
+ /**
+ * 鍒犻櫎鎮h�呴珮琛�鍘嬭褰曚俊鎭�
+ *
+ * @param id 鎮h�呴珮琛�鍘嬭褰曚富閿�
+ * @return 缁撴灉
+ */
+ @Override
+ public int deletePatMedHypertensionById(Long id) {
+ return patMedHypertensionMapper.deletePatMedHypertensionById(id);
+ }
+}
diff --git a/smartor/src/main/java/com/smartor/service/impl/PatMedWeightServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/PatMedWeightServiceImpl.java
new file mode 100644
index 0000000..27e8559
--- /dev/null
+++ b/smartor/src/main/java/com/smartor/service/impl/PatMedWeightServiceImpl.java
@@ -0,0 +1,90 @@
+package com.smartor.service.impl;
+
+import com.ruoyi.common.utils.DateUtils;
+import com.smartor.domain.PatMedWeight;
+import com.smartor.mapper.PatMedWeightMapper;
+import com.smartor.service.IPatMedWeightService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * 鎮h�呬綋閲嶈褰昐ervice涓氬姟灞傚鐞�
+ *
+ * @author ruoyi
+ * @date 2023-06-07
+ */
+@Service
+public class PatMedWeightServiceImpl implements IPatMedWeightService {
+ @Autowired
+ private PatMedWeightMapper patMedWeightMapper;
+
+ /**
+ * 鏌ヨ鎮h�呬綋閲嶈褰�
+ *
+ * @param id 鎮h�呬綋閲嶈褰曚富閿�
+ * @return 鎮h�呬綋閲嶈褰�
+ */
+ @Override
+ public PatMedWeight selectPatMedWeightById(Long id) {
+ return patMedWeightMapper.selectPatMedWeightById(id);
+ }
+
+ /**
+ * 鏌ヨ鎮h�呬綋閲嶈褰曞垪琛�
+ *
+ * @param patMedWeight 鎮h�呬綋閲嶈褰�
+ * @return 鎮h�呬綋閲嶈褰�
+ */
+ @Override
+ public List<PatMedWeight> selectPatMedWeightList(PatMedWeight patMedWeight) {
+ return patMedWeightMapper.selectPatMedWeightList(patMedWeight);
+ }
+
+ /**
+ * 鏂板鎮h�呬綋閲嶈褰�
+ *
+ * @param patMedWeight 鎮h�呬綋閲嶈褰�
+ * @return 缁撴灉
+ */
+ @Override
+ public int insertPatMedWeight(PatMedWeight patMedWeight) {
+ patMedWeight.setCreateTime(DateUtils.getNowDate());
+ return patMedWeightMapper.insertPatMedWeight(patMedWeight);
+ }
+
+ /**
+ * 淇敼鎮h�呬綋閲嶈褰�
+ *
+ * @param patMedWeight 鎮h�呬綋閲嶈褰�
+ * @return 缁撴灉
+ */
+ @Override
+ public int updatePatMedWeight(PatMedWeight patMedWeight) {
+ patMedWeight.setUpdateTime(DateUtils.getNowDate());
+ return patMedWeightMapper.updatePatMedWeight(patMedWeight);
+ }
+
+ /**
+ * 鎵归噺鍒犻櫎鎮h�呬綋閲嶈褰�
+ *
+ * @param ids 闇�瑕佸垹闄ょ殑鎮h�呬綋閲嶈褰曚富閿�
+ * @return 缁撴灉
+ */
+ @Override
+ public int deletePatMedWeightByIds(Long[] ids) {
+ return patMedWeightMapper.deletePatMedWeightByIds(ids);
+ }
+
+ /**
+ * 鍒犻櫎鎮h�呬綋閲嶈褰曚俊鎭�
+ *
+ * @param id 鎮h�呬綋閲嶈褰曚富閿�
+ * @return 缁撴灉
+ */
+ @Override
+ public int deletePatMedWeightById(Long id) {
+ return patMedWeightMapper.deletePatMedWeightById(id);
+ }
+}
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedBloodsugarMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedBloodsugarMapper.xml
new file mode 100644
index 0000000..cbc4b71
--- /dev/null
+++ b/smartor/src/main/resources/mapper/smartor/PatMedBloodsugarMapper.xml
@@ -0,0 +1,153 @@
+<?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.smartor.mapper.PatMedBloodsugarMapper">
+
+ <resultMap type="com.smartor.domain.PatMedBloodsugar" id="PatMedBloodsugarResult">
+ <result property="bloodsugarid" column="bloodsugarid"/>
+ <result property="serialnum" column="serialnum"/>
+ <result property="recordtime" column="recordtime"/>
+ <result property="orgid" column="orgid"/>
+ <result property="delFlag" column="del_flag"/>
+ <result property="updateBy" column="update_by"/>
+ <result property="updateTime" column="update_time"/>
+ <result property="createBy" column="create_by"/>
+ <result property="createTime" column="create_time"/>
+ <result property="isupload" column="isupload"/>
+ <result property="uploadTime" column="upload_time"/>
+ <result property="patid" column="patid"/>
+ <result property="typename" column="typename"/>
+ <result property="sugarlevel" column="sugarlevel"/>
+ <result property="sourcename" column="sourcename"/>
+ <result property="sugarlevelempty" column="sugarlevelempty"/>
+ <result property="visittype" column="visittype"/>
+ <result property="visitid" column="visitid"/>
+ </resultMap>
+
+ <sql id="selectPatMedBloodsugarVo">
+ select bloodsugarid,
+ serialnum,
+ recordtime,
+ orgid,
+ del_flag,
+ update_by,
+ update_time,
+ create_by,
+ create_time,
+ isupload,
+ upload_time,
+ patid,
+ typename,
+ sugarlevel,
+ sourcename,
+ sugarlevelempty,
+ visittype,
+ visitid
+ from pat_med_bloodsugar
+ </sql>
+
+ <select id="selectPatMedBloodsugarList" parameterType="com.smartor.domain.PatMedBloodsugar"
+ resultMap="PatMedBloodsugarResult">
+ <include refid="selectPatMedBloodsugarVo"/>
+ <where>
+ <if test="serialnum != null and serialnum != ''">and serialnum = #{serialnum}</if>
+ <if test="recordtime != null ">and recordtime = #{recordtime}</if>
+ <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
+ <if test="isupload != null ">and isupload = #{isupload}</if>
+ <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
+ <if test="patid != null ">and patid = #{patid}</if>
+ <if test="typename != null and typename != ''">and typename like concat('%', #{typename}, '%')</if>
+ <if test="sugarlevel != null ">and sugarlevel = #{sugarlevel}</if>
+ <if test="sourcename != null and sourcename != ''">and sourcename like concat('%', #{sourcename}, '%')</if>
+ <if test="sugarlevelempty != null ">and sugarlevelempty = #{sugarlevelempty}</if>
+ <if test="visittype != null ">and visittype = #{visittype}</if>
+ <if test="visitid != null ">and visitid = #{visitid}</if>
+ </where>
+ </select>
+
+ <select id="selectPatMedBloodsugarByBloodsugarid" parameterType="Long" resultMap="PatMedBloodsugarResult">
+ <include refid="selectPatMedBloodsugarVo"/>
+ where bloodsugarid = #{bloodsugarid}
+ </select>
+
+ <insert id="insertPatMedBloodsugar" parameterType="com.smartor.domain.PatMedBloodsugar" useGeneratedKeys="true"
+ keyProperty="bloodsugarid">
+ insert into pat_med_bloodsugar
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="serialnum != null">serialnum,</if>
+ <if test="recordtime != null">recordtime,</if>
+ <if test="orgid != null">orgid,</if>
+ <if test="delFlag != null and delFlag != ''">del_flag,</if>
+ <if test="updateBy != null">update_by,</if>
+ <if test="updateTime != null">update_time,</if>
+ <if test="createBy != null">create_by,</if>
+ <if test="createTime != null">create_time,</if>
+ <if test="isupload != null">isupload,</if>
+ <if test="uploadTime != null">upload_time,</if>
+ <if test="patid != null">patid,</if>
+ <if test="typename != null">typename,</if>
+ <if test="sugarlevel != null">sugarlevel,</if>
+ <if test="sourcename != null">sourcename,</if>
+ <if test="sugarlevelempty != null">sugarlevelempty,</if>
+ <if test="visittype != null">visittype,</if>
+ <if test="visitid != null">visitid,</if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="serialnum != null">#{serialnum},</if>
+ <if test="recordtime != null">#{recordtime},</if>
+ <if test="orgid != null">#{orgid},</if>
+ <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
+ <if test="updateBy != null">#{updateBy},</if>
+ <if test="updateTime != null">#{updateTime},</if>
+ <if test="createBy != null">#{createBy},</if>
+ <if test="createTime != null">#{createTime},</if>
+ <if test="isupload != null">#{isupload},</if>
+ <if test="uploadTime != null">#{uploadTime},</if>
+ <if test="patid != null">#{patid},</if>
+ <if test="typename != null">#{typename},</if>
+ <if test="sugarlevel != null">#{sugarlevel},</if>
+ <if test="sourcename != null">#{sourcename},</if>
+ <if test="sugarlevelempty != null">#{sugarlevelempty},</if>
+ <if test="visittype != null">#{visittype},</if>
+ <if test="visitid != null">#{visitid},</if>
+ </trim>
+ </insert>
+
+ <update id="updatePatMedBloodsugar" parameterType="com.smartor.domain.PatMedBloodsugar">
+ update pat_med_bloodsugar
+ <trim prefix="SET" suffixOverrides=",">
+ <if test="serialnum != null">serialnum = #{serialnum},</if>
+ <if test="recordtime != null">recordtime = #{recordtime},</if>
+ <if test="orgid != null">orgid = #{orgid},</if>
+ <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
+ <if test="updateBy != null">update_by = #{updateBy},</if>
+ <if test="updateTime != null">update_time = #{updateTime},</if>
+ <if test="createBy != null">create_by = #{createBy},</if>
+ <if test="createTime != null">create_time = #{createTime},</if>
+ <if test="isupload != null">isupload = #{isupload},</if>
+ <if test="uploadTime != null">upload_time = #{uploadTime},</if>
+ <if test="patid != null">patid = #{patid},</if>
+ <if test="typename != null">typename = #{typename},</if>
+ <if test="sugarlevel != null">sugarlevel = #{sugarlevel},</if>
+ <if test="sourcename != null">sourcename = #{sourcename},</if>
+ <if test="sugarlevelempty != null">sugarlevelempty = #{sugarlevelempty},</if>
+ <if test="visittype != null">visittype = #{visittype},</if>
+ <if test="visitid != null">visitid = #{visitid},</if>
+ </trim>
+ where bloodsugarid = #{bloodsugarid}
+ </update>
+
+ <delete id="deletePatMedBloodsugarByBloodsugarid" parameterType="Long">
+ delete
+ from pat_med_bloodsugar
+ where bloodsugarid = #{bloodsugarid}
+ </delete>
+
+ <delete id="deletePatMedBloodsugarByBloodsugarids" parameterType="String">
+ delete from pat_med_bloodsugar where bloodsugarid in
+ <foreach item="bloodsugarid" collection="array" open="(" separator="," close=")">
+ #{bloodsugarid}
+ </foreach>
+ </delete>
+</mapper>
\ No newline at end of file
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedHypertensionMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedHypertensionMapper.xml
new file mode 100644
index 0000000..dacf9fb
--- /dev/null
+++ b/smartor/src/main/resources/mapper/smartor/PatMedHypertensionMapper.xml
@@ -0,0 +1,136 @@
+<?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.smartor.mapper.PatMedHypertensionMapper">
+
+ <resultMap type="com.smartor.domain.PatMedHypertension" id="PatMedHypertensionResult">
+ <result property="id" column="id" />
+ <result property="serialnum" column="serialnum" />
+ <result property="recordtime" column="recordtime" />
+ <result property="typename" column="typename" />
+ <result property="systolicpressure" column="systolicpressure" />
+ <result property="diastolicpressure" column="diastolicpressure" />
+ <result property="sourcename" column="sourcename" />
+ <result property="orgid" column="orgid" />
+ <result property="delFlag" column="del_flag" />
+ <result property="updateBy" column="update_by" />
+ <result property="updateTime" column="update_time" />
+ <result property="createBy" column="create_by" />
+ <result property="createTime" column="create_time" />
+ <result property="isupload" column="isupload" />
+ <result property="uploadTime" column="upload_time" />
+ <result property="patid" column="patid" />
+ <result property="heartrate" column="heartrate" />
+ <result property="visittype" column="visittype" />
+ <result property="visitid" column="visitid" />
+ </resultMap>
+
+ <sql id="selectPatMedHypertensionVo">
+ select id, serialnum, recordtime, typename, systolicpressure, diastolicpressure, sourcename, orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, patid, heartrate, visittype, visitid from pat_med_hypertension
+ </sql>
+
+ <select id="selectPatMedHypertensionList" parameterType="com.smartor.domain.PatMedHypertension" resultMap="PatMedHypertensionResult">
+ <include refid="selectPatMedHypertensionVo"/>
+ <where>
+ <if test="serialnum != null and serialnum != ''"> and serialnum = #{serialnum}</if>
+ <if test="recordtime != null "> and recordtime = #{recordtime}</if>
+ <if test="typename != null and typename != ''"> and typename like concat('%', #{typename}, '%')</if>
+ <if test="systolicpressure != null "> and systolicpressure = #{systolicpressure}</if>
+ <if test="diastolicpressure != null "> and diastolicpressure = #{diastolicpressure}</if>
+ <if test="sourcename != null and sourcename != ''"> and sourcename like concat('%', #{sourcename}, '%')</if>
+ <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
+ <if test="isupload != null "> and isupload = #{isupload}</if>
+ <if test="uploadTime != null "> and upload_time = #{uploadTime}</if>
+ <if test="patid != null "> and patid = #{patid}</if>
+ <if test="heartrate != null "> and heartrate = #{heartrate}</if>
+ <if test="visittype != null "> and visittype = #{visittype}</if>
+ <if test="visitid != null "> and visitid = #{visitid}</if>
+ </where>
+ </select>
+
+ <select id="selectPatMedHypertensionById" parameterType="Long" resultMap="PatMedHypertensionResult">
+ <include refid="selectPatMedHypertensionVo"/>
+ where id = #{id}
+ </select>
+
+ <insert id="insertPatMedHypertension" parameterType="com.smartor.domain.PatMedHypertension" useGeneratedKeys="true" keyProperty="id">
+ insert into pat_med_hypertension
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="serialnum != null">serialnum,</if>
+ <if test="recordtime != null">recordtime,</if>
+ <if test="typename != null">typename,</if>
+ <if test="systolicpressure != null">systolicpressure,</if>
+ <if test="diastolicpressure != null">diastolicpressure,</if>
+ <if test="sourcename != null">sourcename,</if>
+ <if test="orgid != null">orgid,</if>
+ <if test="delFlag != null and delFlag != ''">del_flag,</if>
+ <if test="updateBy != null">update_by,</if>
+ <if test="updateTime != null">update_time,</if>
+ <if test="createBy != null">create_by,</if>
+ <if test="createTime != null">create_time,</if>
+ <if test="isupload != null">isupload,</if>
+ <if test="uploadTime != null">upload_time,</if>
+ <if test="patid != null">patid,</if>
+ <if test="heartrate != null">heartrate,</if>
+ <if test="visittype != null">visittype,</if>
+ <if test="visitid != null">visitid,</if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="serialnum != null">#{serialnum},</if>
+ <if test="recordtime != null">#{recordtime},</if>
+ <if test="typename != null">#{typename},</if>
+ <if test="systolicpressure != null">#{systolicpressure},</if>
+ <if test="diastolicpressure != null">#{diastolicpressure},</if>
+ <if test="sourcename != null">#{sourcename},</if>
+ <if test="orgid != null">#{orgid},</if>
+ <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
+ <if test="updateBy != null">#{updateBy},</if>
+ <if test="updateTime != null">#{updateTime},</if>
+ <if test="createBy != null">#{createBy},</if>
+ <if test="createTime != null">#{createTime},</if>
+ <if test="isupload != null">#{isupload},</if>
+ <if test="uploadTime != null">#{uploadTime},</if>
+ <if test="patid != null">#{patid},</if>
+ <if test="heartrate != null">#{heartrate},</if>
+ <if test="visittype != null">#{visittype},</if>
+ <if test="visitid != null">#{visitid},</if>
+ </trim>
+ </insert>
+
+ <update id="updatePatMedHypertension" parameterType="com.smartor.domain.PatMedHypertension">
+ update pat_med_hypertension
+ <trim prefix="SET" suffixOverrides=",">
+ <if test="serialnum != null">serialnum = #{serialnum},</if>
+ <if test="recordtime != null">recordtime = #{recordtime},</if>
+ <if test="typename != null">typename = #{typename},</if>
+ <if test="systolicpressure != null">systolicpressure = #{systolicpressure},</if>
+ <if test="diastolicpressure != null">diastolicpressure = #{diastolicpressure},</if>
+ <if test="sourcename != null">sourcename = #{sourcename},</if>
+ <if test="orgid != null">orgid = #{orgid},</if>
+ <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
+ <if test="updateBy != null">update_by = #{updateBy},</if>
+ <if test="updateTime != null">update_time = #{updateTime},</if>
+ <if test="createBy != null">create_by = #{createBy},</if>
+ <if test="createTime != null">create_time = #{createTime},</if>
+ <if test="isupload != null">isupload = #{isupload},</if>
+ <if test="uploadTime != null">upload_time = #{uploadTime},</if>
+ <if test="patid != null">patid = #{patid},</if>
+ <if test="heartrate != null">heartrate = #{heartrate},</if>
+ <if test="visittype != null">visittype = #{visittype},</if>
+ <if test="visitid != null">visitid = #{visitid},</if>
+ </trim>
+ where id = #{id}
+ </update>
+
+ <delete id="deletePatMedHypertensionById" parameterType="Long">
+ delete from pat_med_hypertension where id = #{id}
+ </delete>
+
+ <delete id="deletePatMedHypertensionByIds" parameterType="String">
+ delete from pat_med_hypertension where id in
+ <foreach item="id" collection="array" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ </delete>
+</mapper>
\ No newline at end of file
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedWeightMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedWeightMapper.xml
new file mode 100644
index 0000000..9fc3910
--- /dev/null
+++ b/smartor/src/main/resources/mapper/smartor/PatMedWeightMapper.xml
@@ -0,0 +1,126 @@
+<?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.smartor.mapper.PatMedWeightMapper">
+
+ <resultMap type="com.smartor.domain.PatMedWeight" id="PatMedWeightResult">
+ <result property="id" column="id" />
+ <result property="serialnum" column="serialnum" />
+ <result property="fatweight" column="fatweight" />
+ <result property="bodyweight" column="bodyweight" />
+ <result property="recordtime" column="recordtime" />
+ <result property="orgid" column="orgid" />
+ <result property="delFlag" column="del_flag" />
+ <result property="updateBy" column="update_by" />
+ <result property="updateTime" column="update_time" />
+ <result property="createBy" column="create_by" />
+ <result property="createTime" column="create_time" />
+ <result property="isupload" column="isupload" />
+ <result property="uploadTime" column="upload_time" />
+ <result property="patid" column="patid" />
+ <result property="sourcename" column="sourcename" />
+ <result property="visittype" column="visittype" />
+ <result property="visitid" column="visitid" />
+ </resultMap>
+
+ <sql id="selectPatMedWeightVo">
+ select id, serialnum, fatweight, bodyweight, recordtime, orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, patid, sourcename, visittype, visitid from pat_med_weight
+ </sql>
+
+ <select id="selectPatMedWeightList" parameterType="com.smartor.domain.PatMedWeight" resultMap="PatMedWeightResult">
+ <include refid="selectPatMedWeightVo"/>
+ <where>
+ <if test="serialnum != null and serialnum != ''"> and serialnum = #{serialnum}</if>
+ <if test="fatweight != null "> and fatweight = #{fatweight}</if>
+ <if test="bodyweight != null "> and bodyweight = #{bodyweight}</if>
+ <if test="recordtime != null "> and recordtime = #{recordtime}</if>
+ <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
+ <if test="isupload != null "> and isupload = #{isupload}</if>
+ <if test="uploadTime != null "> and upload_time = #{uploadTime}</if>
+ <if test="patid != null "> and patid = #{patid}</if>
+ <if test="sourcename != null and sourcename != ''"> and sourcename like concat('%', #{sourcename}, '%')</if>
+ <if test="visittype != null "> and visittype = #{visittype}</if>
+ <if test="visitid != null "> and visitid = #{visitid}</if>
+ </where>
+ </select>
+
+ <select id="selectPatMedWeightById" parameterType="Long" resultMap="PatMedWeightResult">
+ <include refid="selectPatMedWeightVo"/>
+ where id = #{id}
+ </select>
+
+ <insert id="insertPatMedWeight" parameterType="com.smartor.domain.PatMedWeight" useGeneratedKeys="true" keyProperty="id">
+ insert into pat_med_weight
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="serialnum != null">serialnum,</if>
+ <if test="fatweight != null">fatweight,</if>
+ <if test="bodyweight != null">bodyweight,</if>
+ <if test="recordtime != null">recordtime,</if>
+ <if test="orgid != null">orgid,</if>
+ <if test="delFlag != null and delFlag != ''">del_flag,</if>
+ <if test="updateBy != null">update_by,</if>
+ <if test="updateTime != null">update_time,</if>
+ <if test="createBy != null">create_by,</if>
+ <if test="createTime != null">create_time,</if>
+ <if test="isupload != null">isupload,</if>
+ <if test="uploadTime != null">upload_time,</if>
+ <if test="patid != null">patid,</if>
+ <if test="sourcename != null">sourcename,</if>
+ <if test="visittype != null">visittype,</if>
+ <if test="visitid != null">visitid,</if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="serialnum != null">#{serialnum},</if>
+ <if test="fatweight != null">#{fatweight},</if>
+ <if test="bodyweight != null">#{bodyweight},</if>
+ <if test="recordtime != null">#{recordtime},</if>
+ <if test="orgid != null">#{orgid},</if>
+ <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
+ <if test="updateBy != null">#{updateBy},</if>
+ <if test="updateTime != null">#{updateTime},</if>
+ <if test="createBy != null">#{createBy},</if>
+ <if test="createTime != null">#{createTime},</if>
+ <if test="isupload != null">#{isupload},</if>
+ <if test="uploadTime != null">#{uploadTime},</if>
+ <if test="patid != null">#{patid},</if>
+ <if test="sourcename != null">#{sourcename},</if>
+ <if test="visittype != null">#{visittype},</if>
+ <if test="visitid != null">#{visitid},</if>
+ </trim>
+ </insert>
+
+ <update id="updatePatMedWeight" parameterType="com.smartor.domain.PatMedWeight">
+ update pat_med_weight
+ <trim prefix="SET" suffixOverrides=",">
+ <if test="serialnum != null">serialnum = #{serialnum},</if>
+ <if test="fatweight != null">fatweight = #{fatweight},</if>
+ <if test="bodyweight != null">bodyweight = #{bodyweight},</if>
+ <if test="recordtime != null">recordtime = #{recordtime},</if>
+ <if test="orgid != null">orgid = #{orgid},</if>
+ <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
+ <if test="updateBy != null">update_by = #{updateBy},</if>
+ <if test="updateTime != null">update_time = #{updateTime},</if>
+ <if test="createBy != null">create_by = #{createBy},</if>
+ <if test="createTime != null">create_time = #{createTime},</if>
+ <if test="isupload != null">isupload = #{isupload},</if>
+ <if test="uploadTime != null">upload_time = #{uploadTime},</if>
+ <if test="patid != null">patid = #{patid},</if>
+ <if test="sourcename != null">sourcename = #{sourcename},</if>
+ <if test="visittype != null">visittype = #{visittype},</if>
+ <if test="visitid != null">visitid = #{visitid},</if>
+ </trim>
+ where id = #{id}
+ </update>
+
+ <delete id="deletePatMedWeightById" parameterType="Long">
+ delete from pat_med_weight where id = #{id}
+ </delete>
+
+ <delete id="deletePatMedWeightByIds" parameterType="String">
+ delete from pat_med_weight where id in
+ <foreach item="id" collection="array" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ </delete>
+</mapper>
\ No newline at end of file
--
Gitblit v1.9.3