liusheng
2023-06-08 19bbb04fe271943850e5b0cdba1aaeed633bc83f
添加swagger
已添加18个文件
已修改9个文件
2461 ■■■■■ 文件已修改
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/BaseTagController.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedBloodsugarController.java 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedHypertensionController.java 111 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java 111 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/pom.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/BaseTag.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/PatArchive.java 168 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/PatMedBloodsugar.java 244 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/PatMedHypertension.java 252 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/PatMedOuthosp.java 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/PatMedWeight.java 229 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/mapper/PatMedBloodsugarMapper.java 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/mapper/PatMedHypertensionMapper.java 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/mapper/PatMedWeightMapper.java 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/IPatArchiveService.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/IPatMedBloodsugarService.java 62 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/IPatMedHypertensionService.java 62 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/IPatMedWeightService.java 62 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/impl/PatArchiveServiceImpl.java 43 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/impl/PatMedBloodsugarServiceImpl.java 90 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/impl/PatMedHypertensionServiceImpl.java 90 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/impl/PatMedWeightServiceImpl.java 90 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/PatMedBloodsugarMapper.xml 153 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/PatMedHypertensionMapper.xml 136 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/PatMedWeightMapper.xml 126 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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}")
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("患者档案")
@RestController
@RequestMapping("/smartor/patarchive")
public class PatArchiveController extends BaseController {
@@ -34,6 +39,7 @@
    /**
     * æŸ¥è¯¢æ‚£è€…档案列表
     */
    @ApiOperation("查询患者档案列表")
    @PreAuthorize("@ss.hasPermi('smartor:patarchive:list')")
    @GetMapping("/list")
    public TableDataInfo list(PatArchive patArchive) {
@@ -45,6 +51,7 @@
    /**
     * å¯¼å‡ºæ‚£è€…档案列表
     */
    @ApiOperation("导出患者档案列表")
    @PreAuthorize("@ss.hasPermi('smartor:patarchive:export')")
    @Log(title = "患者档案", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
@@ -57,15 +64,18 @@
    /**
     * èŽ·å–æ‚£è€…æ¡£æ¡ˆè¯¦ç»†ä¿¡æ¯
     */
    @ApiOperation("获取患者档案详细信息")
    @PreAuthorize("@ss.hasPermi('smartor:patarchive:query')")
    @GetMapping(value = "/{patid}")
    public AjaxResult getInfo(@PathVariable("patid") Long patid) {
    @ApiImplicitParam(name = "patid",value = "患者id")
    public AjaxResult getInfo(@PathVariable(name = "patid") Long patid) {
        return success(patArchiveService.selectPatArchiveByPatid(patid));
    }
    /**
     * æ–°å¢žæ‚£è€…档案
     */
    @ApiOperation("新增患者档案")
    @PreAuthorize("@ss.hasPermi('smartor:patarchive:add')")
    @Log(title = "患者档案", businessType = BusinessType.INSERT)
    @PostMapping
@@ -76,6 +86,7 @@
    /**
     * ä¿®æ”¹æ‚£è€…档案
     */
    @ApiOperation("修改患者档案")
    @PreAuthorize("@ss.hasPermi('smartor:patarchive:edit')")
    @Log(title = "患者档案", businessType = BusinessType.UPDATE)
    @PutMapping
@@ -86,27 +97,33 @@
    /**
     * åˆ é™¤æ‚£è€…档案
     */
    @ApiOperation("删除患者档案")
    @PreAuthorize("@ss.hasPermi('smartor:patarchive:remove')")
    @Log(title = "患者档案", businessType = BusinessType.DELETE)
    @DeleteMapping("/{patids}")
    @ApiImplicitParam(name = "patids",value = "患者id集合", dataType = "long", dataTypeClass = Long.class)
    public AjaxResult remove(@PathVariable Long[] patids) {
        return toAjax(patArchiveService.deletePatArchiveByPatids(patids));
    }
    /**
     * æ‚£è€…文件处理
     * å¯¼å…¥æ‚£è€…文件处理
     *
     * @param multipartFile
     */
    @ApiOperation("导入患者文件处理")
    @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("导出患者错误信息")
    @PostMapping("/exportErrPatInfo")
    public AjaxResult exportErrPatInfo(@RequestBody List<PatArchive> patArchiveList) {
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;
/**
 * æ‚£è€…血糖记录Controller
 *
 * @author ruoyi
 * @date 2023-06-07
 */
@Api("患者血糖记录")
@RestController
@RequestMapping("/system/bloodsugar")
public class PatMedBloodsugarController extends BaseController {
    @Autowired
    private IPatMedBloodsugarService patMedBloodsugarService;
    /**
     * æŸ¥è¯¢æ‚£è€…血糖记录列表
     */
    @PreAuthorize("@ss.hasPermi('system:bloodsugar:list')")
    @GetMapping("/list")
    @ApiOperation("查询患者血糖记录列表")
    public TableDataInfo list(PatMedBloodsugar patMedBloodsugar) {
        startPage();
        List<PatMedBloodsugar> list = patMedBloodsugarService.selectPatMedBloodsugarList(patMedBloodsugar);
        return getDataTable(list);
    }
    /**
     * å¯¼å‡ºæ‚£è€…血糖记录列表
     */
    @ApiOperation("导出患者血糖记录列表")
    @PreAuthorize("@ss.hasPermi('system:bloodsugar:export')")
    @Log(title = "导出患者血糖记录列表", 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, "患者血糖记录数据");
    }
    /**
     * èŽ·å–æ‚£è€…è¡€ç³–è®°å½•è¯¦ç»†ä¿¡æ¯
     */
    @PreAuthorize("@ss.hasPermi('system:bloodsugar:query')")
    @GetMapping(value = "/{bloodsugarid}")
    @ApiOperation("获取患者血糖记录详细信息")
    @ApiImplicitParam(name = "bloodsugarid", value = "主键ID", dataType = "long", dataTypeClass = Long.class)
    public AjaxResult getInfo(@PathVariable("bloodsugarid") Long bloodsugarid) {
        return success(patMedBloodsugarService.selectPatMedBloodsugarByBloodsugarid(bloodsugarid));
    }
    /**
     * æ–°å¢žæ‚£è€…血糖记录
     */
    @PreAuthorize("@ss.hasPermi('system:bloodsugar:add')")
    @Log(title = "新增患者血糖记录", businessType = BusinessType.INSERT)
    @PostMapping
    @ApiOperation("新增患者血糖记录")
    public AjaxResult add(@RequestBody PatMedBloodsugar patMedBloodsugar) {
        return toAjax(patMedBloodsugarService.insertPatMedBloodsugar(patMedBloodsugar));
    }
    /**
     * ä¿®æ”¹æ‚£è€…血糖记录
     */
    @PreAuthorize("@ss.hasPermi('system:bloodsugar:edit')")
    @Log(title = "患者血糖记录", businessType = BusinessType.UPDATE)
    @PutMapping
    @ApiOperation("修改患者血糖记录")
    public AjaxResult edit(@RequestBody PatMedBloodsugar patMedBloodsugar) {
        return toAjax(patMedBloodsugarService.updatePatMedBloodsugar(patMedBloodsugar));
    }
    /**
     * åˆ é™¤æ‚£è€…血糖记录
     */
    @ApiOperation("删除患者血糖记录")
    @PreAuthorize("@ss.hasPermi('system:bloodsugar:remove')")
    @Log(title = "患者血糖记录", 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));
    }
}
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;
/**
 * æ‚£è€…高血压记录Controller
 *
 * @author ruoyi
 * @date 2023-06-07
 */
@RestController
@RequestMapping("/smartor/hypertension")
@Api("患者高血压记录")
public class PatMedHypertensionController extends BaseController
{
    @Autowired
    private IPatMedHypertensionService patMedHypertensionService;
    /**
     * æŸ¥è¯¢æ‚£è€…高血压记录列表
     */
    @PreAuthorize("@ss.hasPermi('system:hypertension:list')")
    @GetMapping("/list")
    @ApiOperation("查询患者高血压记录列表")
    public TableDataInfo list(PatMedHypertension patMedHypertension)
    {
        startPage();
        List<PatMedHypertension> list = patMedHypertensionService.selectPatMedHypertensionList(patMedHypertension);
        return getDataTable(list);
    }
    /**
     * å¯¼å‡ºæ‚£è€…高血压记录列表
     */
    @ApiOperation("患者高血压记录")
    @PreAuthorize("@ss.hasPermi('system:hypertension:export')")
    @Log(title = "患者高血压记录", 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, "患者高血压记录数据");
    }
    /**
     * èŽ·å–æ‚£è€…é«˜è¡€åŽ‹è®°å½•è¯¦ç»†ä¿¡æ¯
     */
    @ApiOperation("获取患者高血压记录详细信息")
    @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));
    }
    /**
     * æ–°å¢žæ‚£è€…高血压记录
     */
    @ApiOperation("患者高血压记录")
    @PreAuthorize("@ss.hasPermi('system:hypertension:add')")
    @Log(title = "患者高血压记录", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody PatMedHypertension patMedHypertension)
    {
        return toAjax(patMedHypertensionService.insertPatMedHypertension(patMedHypertension));
    }
    /**
     * ä¿®æ”¹æ‚£è€…高血压记录
     */
    @ApiOperation("患者高血压记录")
    @PreAuthorize("@ss.hasPermi('system:hypertension:edit')")
    @Log(title = "患者高血压记录", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody PatMedHypertension patMedHypertension)
    {
        return toAjax(patMedHypertensionService.updatePatMedHypertension(patMedHypertension));
    }
    /**
     * åˆ é™¤æ‚£è€…高血压记录
     */
    @ApiOperation("患者高血压记录")
    @PreAuthorize("@ss.hasPermi('system:hypertension:remove')")
    @Log(title = "患者高血压记录", 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));
    }
}
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 @@
/**
 * æ‚£è€…门诊记录Controller
 *
 *
 * @author smartor
 * @date 2023-03-04
 */
@RestController
@RequestMapping("/smartor/patouthosp")
public class PatMedOuthospController extends BaseController
{
@Api("患者门诊记录")
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("查询患者门诊记录列表")
    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 = "患者门诊记录", businessType = BusinessType.EXPORT)
    @ApiOperation("患者门诊记录")
    @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, "患者门诊记录数据");
@@ -62,43 +67,45 @@
    /**
     * èŽ·å–æ‚£è€…é—¨è¯Šè®°å½•è¯¦ç»†ä¿¡æ¯
     */
    @ApiOperation("获取患者门诊记录详细信息")
    @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));
    }
    /**
     * æ–°å¢žæ‚£è€…门诊记录
     */
    @ApiOperation("新增患者门诊记录")
    @PreAuthorize("@ss.hasPermi('smartor:patouthosp:add')")
    @Log(title = "患者门诊记录", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody PatMedOuthosp patMedOuthosp)
    {
    public AjaxResult add(@RequestBody PatMedOuthosp patMedOuthosp) {
        return toAjax(patMedOuthospService.insertPatMedOuthosp(patMedOuthosp));
    }
    /**
     * ä¿®æ”¹æ‚£è€…门诊记录
     */
    @ApiOperation("修改患者门诊记录")
    @PreAuthorize("@ss.hasPermi('smartor:patouthosp:edit')")
    @Log(title = "患者门诊记录", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody PatMedOuthosp patMedOuthosp)
    {
    public AjaxResult edit(@RequestBody PatMedOuthosp patMedOuthosp) {
        return toAjax(patMedOuthospService.updatePatMedOuthosp(patMedOuthosp));
    }
    /**
     * åˆ é™¤æ‚£è€…门诊记录
     */
    @ApiOperation("删除患者门诊记录")
    @PreAuthorize("@ss.hasPermi('smartor:patouthosp:remove')")
    @ApiImplicitParam(name = "remove", value = "主键ID", dataType = "long", dataTypeClass = Array.class)
    @Log(title = "患者门诊记录", businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(patMedOuthospService.deletePatMedOuthospByIds(ids));
    }
}
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;
/**
 * æ‚£è€…体重记录Controller
 *
 * @author ruoyi
 * @date 2023-06-07
 */
@Api("患者体重记录")
@RestController
@RequestMapping("/system/weight")
public class PatMedWeightController extends BaseController
{
    @Autowired
    private IPatMedWeightService patMedWeightService;
    /**
     * æŸ¥è¯¢æ‚£è€…体重记录列表
     */
    @ApiOperation("查询患者体重记录列表")
    @PreAuthorize("@ss.hasPermi('system:weight:list')")
    @GetMapping("/list")
    public TableDataInfo list(PatMedWeight patMedWeight)
    {
        startPage();
        List<PatMedWeight> list = patMedWeightService.selectPatMedWeightList(patMedWeight);
        return getDataTable(list);
    }
    /**
     * å¯¼å‡ºæ‚£è€…体重记录列表
     */
    @ApiOperation("导出患者体重记录列表")
    @PreAuthorize("@ss.hasPermi('system:weight:export')")
    @Log(title = "患者体重记录", 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, "患者体重记录数据");
    }
    /**
     * èŽ·å–æ‚£è€…ä½“é‡è®°å½•è¯¦ç»†ä¿¡æ¯
     */
    @ApiOperation("获取患者体重记录详细信息")
    @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));
    }
    /**
     * æ–°å¢žæ‚£è€…体重记录
     */
    @ApiOperation("新增患者体重记录")
    @PreAuthorize("@ss.hasPermi('system:weight:add')")
    @Log(title = "患者体重记录", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody PatMedWeight patMedWeight)
    {
        return toAjax(patMedWeightService.insertPatMedWeight(patMedWeight));
    }
    /**
     * ä¿®æ”¹æ‚£è€…体重记录
     */
    @ApiOperation("修改患者体重记录")
    @PreAuthorize("@ss.hasPermi('system:weight:edit')")
    @Log(title = "修改患者体重记录", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody PatMedWeight patMedWeight)
    {
        return toAjax(patMedWeightService.updatePatMedWeight(patMedWeight));
    }
    /**
     * åˆ é™¤æ‚£è€…体重记录
     */
    @ApiOperation("删除患者体重记录")
    @PreAuthorize("@ss.hasPermi('system:weight:remove')")
    @Log(title = "删除患者体重记录", 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));
    }
}
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>
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) {
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 = "患者档案对象")
@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() {
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;
/**
 * æ‚£è€…血糖记录对象 pat_med_bloodsugar
 *
 * @author ruoyi
 * @date 2023-06-07
 */
@ApiModel(value = "PatMedWeight", description = "患者血糖记录对象")
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;
    /**  æ¡£æ¡ˆID  */
    @ApiModelProperty(name = "档案ID")
    @Excel(name = " æ¡£æ¡ˆID ")
    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:存门诊记录ID 2:存住院记录ID 3;存体检记录ID  */
    @Excel(name = " å°±è¯ŠID;就诊类型为-1:存门诊记录ID 2:存住院记录ID 3;存体检记录ID ")
    @ApiModelProperty(name = "就诊ID;就诊类型为-1:存门诊记录ID 2:存住院记录ID 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();
    }
}
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;
/**
 * æ‚£è€…高血压记录对象 pat_med_hypertension
 *
 * @author ruoyi
 * @date 2023-06-07
 */
@ApiModel(value = "PatMedHypertension", description = "患者高血压记录对象")
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;
    /**
     * æ¡£æ¡ˆID
     */
    @ApiModelProperty(name = "档案ID")
    @Excel(name = " æ¡£æ¡ˆID ")
    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:存门诊记录ID 2:存住院记录ID 3;存体检记录ID
     */
    @ApiModelProperty(name = " å°±è¯ŠID;就诊类型为-1:存门诊记录ID 2:存住院记录ID 3;存体检记录ID")
    @Excel(name = " å°±è¯ŠID;就诊类型为-1:存门诊记录ID 2:存住院记录ID 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();
    }
}
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 = "患者门诊记录对象")
public class PatMedOuthosp extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /**  è‡ªå¢žID  */
    @ApiModelProperty(name = "自增ID")
    private Long id;
    /**  æµæ°´å·  */
    @ApiModelProperty(name = "流水号")
    private String serialnum;
    /**  æ¡£æ¡ˆID  */
    @ApiModelProperty(name = "档案ID")
    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;
    /**  ç§‘室代码  */
    @ApiModelProperty(name = "科室代码")
    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) 
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;
/**
 * æ‚£è€…体重记录对象 pat_med_weight
 *
 * @author ruoyi
 * @date 2023-06-07
 */
@ApiModel(value = "PatMedWeight", description = "患者体重记录对象")
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;
    /**  æ¡£æ¡ˆID  */
    @ApiModelProperty(name = "档案ID")
    @Excel(name = " æ¡£æ¡ˆID ")
    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:存门诊记录ID 2:存住院记录ID 3;存体检记录ID  */
    @ApiModelProperty(name = "就诊;就诊类型为-1:存门诊记录ID 2:存住院记录ID 3;存体检记录ID")
    @Excel(name = " å°±è¯Š;就诊类型为-1:存门诊记录ID 2:存住院记录ID 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();
    }
}
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;
/**
 * æ‚£è€…血糖记录Mapper接口
 *
 * @author ruoyi
 * @date 2023-06-07
 */
@Mapper
public interface PatMedBloodsugarMapper {
    /**
     * æŸ¥è¯¢æ‚£è€…血糖记录
     *
     * @param bloodsugarid æ‚£è€…血糖记录主键
     * @return æ‚£è€…血糖记录
     */
    public PatMedBloodsugar selectPatMedBloodsugarByBloodsugarid(Long bloodsugarid);
    /**
     * æŸ¥è¯¢æ‚£è€…血糖记录列表
     *
     * @param patMedBloodsugar æ‚£è€…血糖记录
     * @return æ‚£è€…血糖记录集合
     */
    public List<PatMedBloodsugar> selectPatMedBloodsugarList(PatMedBloodsugar patMedBloodsugar);
    /**
     * æ–°å¢žæ‚£è€…血糖记录
     *
     * @param patMedBloodsugar æ‚£è€…血糖记录
     * @return ç»“æžœ
     */
    public int insertPatMedBloodsugar(PatMedBloodsugar patMedBloodsugar);
    /**
     * ä¿®æ”¹æ‚£è€…血糖记录
     *
     * @param patMedBloodsugar æ‚£è€…血糖记录
     * @return ç»“æžœ
     */
    public int updatePatMedBloodsugar(PatMedBloodsugar patMedBloodsugar);
    /**
     * åˆ é™¤æ‚£è€…血糖记录
     *
     * @param bloodsugarid æ‚£è€…血糖记录主键
     * @return ç»“æžœ
     */
    public int deletePatMedBloodsugarByBloodsugarid(Long bloodsugarid);
    /**
     * æ‰¹é‡åˆ é™¤æ‚£è€…血糖记录
     *
     * @param bloodsugarids éœ€è¦åˆ é™¤çš„æ•°æ®ä¸»é”®é›†åˆ
     * @return ç»“æžœ
     */
    public int deletePatMedBloodsugarByBloodsugarids(Long[] bloodsugarids);
}
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;
/**
 * æ‚£è€…高血压记录Mapper接口
 *
 * @author ruoyi
 * @date 2023-06-07
 */
@Mapper
public interface PatMedHypertensionMapper {
    /**
     * æŸ¥è¯¢æ‚£è€…高血压记录
     *
     * @param id æ‚£è€…高血压记录主键
     * @return æ‚£è€…高血压记录
     */
    public PatMedHypertension selectPatMedHypertensionById(Long id);
    /**
     * æŸ¥è¯¢æ‚£è€…高血压记录列表
     *
     * @param patMedHypertension æ‚£è€…高血压记录
     * @return æ‚£è€…高血压记录集合
     */
    public List<PatMedHypertension> selectPatMedHypertensionList(PatMedHypertension patMedHypertension);
    /**
     * æ–°å¢žæ‚£è€…高血压记录
     *
     * @param patMedHypertension æ‚£è€…高血压记录
     * @return ç»“æžœ
     */
    public int insertPatMedHypertension(PatMedHypertension patMedHypertension);
    /**
     * ä¿®æ”¹æ‚£è€…高血压记录
     *
     * @param patMedHypertension æ‚£è€…高血压记录
     * @return ç»“æžœ
     */
    public int updatePatMedHypertension(PatMedHypertension patMedHypertension);
    /**
     * åˆ é™¤æ‚£è€…高血压记录
     *
     * @param id æ‚£è€…高血压记录主键
     * @return ç»“æžœ
     */
    public int deletePatMedHypertensionById(Long id);
    /**
     * æ‰¹é‡åˆ é™¤æ‚£è€…高血压记录
     *
     * @param ids éœ€è¦åˆ é™¤çš„æ•°æ®ä¸»é”®é›†åˆ
     * @return ç»“æžœ
     */
    public int deletePatMedHypertensionByIds(Long[] ids);
}
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;
/**
 * æ‚£è€…体重记录Mapper接口
 *
 * @author ruoyi
 * @date 2023-06-07
 */
@Mapper
public interface PatMedWeightMapper {
    /**
     * æŸ¥è¯¢æ‚£è€…体重记录
     *
     * @param id æ‚£è€…体重记录主键
     * @return æ‚£è€…体重记录
     */
    public PatMedWeight selectPatMedWeightById(Long id);
    /**
     * æŸ¥è¯¢æ‚£è€…体重记录列表
     *
     * @param patMedWeight æ‚£è€…体重记录
     * @return æ‚£è€…体重记录集合
     */
    public List<PatMedWeight> selectPatMedWeightList(PatMedWeight patMedWeight);
    /**
     * æ–°å¢žæ‚£è€…体重记录
     *
     * @param patMedWeight æ‚£è€…体重记录
     * @return ç»“æžœ
     */
    public int insertPatMedWeight(PatMedWeight patMedWeight);
    /**
     * ä¿®æ”¹æ‚£è€…体重记录
     *
     * @param patMedWeight æ‚£è€…体重记录
     * @return ç»“æžœ
     */
    public int updatePatMedWeight(PatMedWeight patMedWeight);
    /**
     * åˆ é™¤æ‚£è€…体重记录
     *
     * @param id æ‚£è€…体重记录主键
     * @return ç»“æžœ
     */
    public int deletePatMedWeightById(Long id);
    /**
     * æ‰¹é‡åˆ é™¤æ‚£è€…体重记录
     *
     * @param ids éœ€è¦åˆ é™¤çš„æ•°æ®ä¸»é”®é›†åˆ
     * @return ç»“æžœ
     */
    public int deletePatMedWeightByIds(Long[] ids);
}
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);
    /**
     * å¯¼å‡ºæ‚£è€…错误信息
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;
/**
 * æ‚£è€…血糖记录Service接口
 *
 * @author ruoyi
 * @date 2023-06-07
 */
public interface IPatMedBloodsugarService
{
    /**
     * æŸ¥è¯¢æ‚£è€…血糖记录
     *
     * @param bloodsugarid æ‚£è€…血糖记录主键
     * @return æ‚£è€…血糖记录
     */
    public PatMedBloodsugar selectPatMedBloodsugarByBloodsugarid(Long bloodsugarid);
    /**
     * æŸ¥è¯¢æ‚£è€…血糖记录列表
     *
     * @param patMedBloodsugar æ‚£è€…血糖记录
     * @return æ‚£è€…血糖记录集合
     */
    public List<PatMedBloodsugar> selectPatMedBloodsugarList(PatMedBloodsugar patMedBloodsugar);
    /**
     * æ–°å¢žæ‚£è€…血糖记录
     *
     * @param patMedBloodsugar æ‚£è€…血糖记录
     * @return ç»“æžœ
     */
    public int insertPatMedBloodsugar(PatMedBloodsugar patMedBloodsugar);
    /**
     * ä¿®æ”¹æ‚£è€…血糖记录
     *
     * @param patMedBloodsugar æ‚£è€…血糖记录
     * @return ç»“æžœ
     */
    public int updatePatMedBloodsugar(PatMedBloodsugar patMedBloodsugar);
    /**
     * æ‰¹é‡åˆ é™¤æ‚£è€…血糖记录
     *
     * @param bloodsugarids éœ€è¦åˆ é™¤çš„æ‚£è€…血糖记录主键集合
     * @return ç»“æžœ
     */
    public int deletePatMedBloodsugarByBloodsugarids(Long[] bloodsugarids);
    /**
     * åˆ é™¤æ‚£è€…血糖记录信息
     *
     * @param bloodsugarid æ‚£è€…血糖记录主键
     * @return ç»“æžœ
     */
    public int deletePatMedBloodsugarByBloodsugarid(Long bloodsugarid);
}
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;
/**
 * æ‚£è€…高血压记录Service接口
 *
 * @author ruoyi
 * @date 2023-06-07
 */
public interface IPatMedHypertensionService
{
    /**
     * æŸ¥è¯¢æ‚£è€…高血压记录
     *
     * @param id æ‚£è€…高血压记录主键
     * @return æ‚£è€…高血压记录
     */
    public PatMedHypertension selectPatMedHypertensionById(Long id);
    /**
     * æŸ¥è¯¢æ‚£è€…高血压记录列表
     *
     * @param patMedHypertension æ‚£è€…高血压记录
     * @return æ‚£è€…高血压记录集合
     */
    public List<PatMedHypertension> selectPatMedHypertensionList(PatMedHypertension patMedHypertension);
    /**
     * æ–°å¢žæ‚£è€…高血压记录
     *
     * @param patMedHypertension æ‚£è€…高血压记录
     * @return ç»“æžœ
     */
    public int insertPatMedHypertension(PatMedHypertension patMedHypertension);
    /**
     * ä¿®æ”¹æ‚£è€…高血压记录
     *
     * @param patMedHypertension æ‚£è€…高血压记录
     * @return ç»“æžœ
     */
    public int updatePatMedHypertension(PatMedHypertension patMedHypertension);
    /**
     * æ‰¹é‡åˆ é™¤æ‚£è€…高血压记录
     *
     * @param ids éœ€è¦åˆ é™¤çš„æ‚£è€…高血压记录主键集合
     * @return ç»“æžœ
     */
    public int deletePatMedHypertensionByIds(Long[] ids);
    /**
     * åˆ é™¤æ‚£è€…高血压记录信息
     *
     * @param id æ‚£è€…高血压记录主键
     * @return ç»“æžœ
     */
    public int deletePatMedHypertensionById(Long id);
}
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;
/**
 * æ‚£è€…体重记录Service接口
 *
 * @author ruoyi
 * @date 2023-06-07
 */
public interface IPatMedWeightService
{
    /**
     * æŸ¥è¯¢æ‚£è€…体重记录
     *
     * @param id æ‚£è€…体重记录主键
     * @return æ‚£è€…体重记录
     */
    public PatMedWeight selectPatMedWeightById(Long id);
    /**
     * æŸ¥è¯¢æ‚£è€…体重记录列表
     *
     * @param patMedWeight æ‚£è€…体重记录
     * @return æ‚£è€…体重记录集合
     */
    public List<PatMedWeight> selectPatMedWeightList(PatMedWeight patMedWeight);
    /**
     * æ–°å¢žæ‚£è€…体重记录
     *
     * @param patMedWeight æ‚£è€…体重记录
     * @return ç»“æžœ
     */
    public int insertPatMedWeight(PatMedWeight patMedWeight);
    /**
     * ä¿®æ”¹æ‚£è€…体重记录
     *
     * @param patMedWeight æ‚£è€…体重记录
     * @return ç»“æžœ
     */
    public int updatePatMedWeight(PatMedWeight patMedWeight);
    /**
     * æ‰¹é‡åˆ é™¤æ‚£è€…体重记录
     *
     * @param ids éœ€è¦åˆ é™¤çš„æ‚£è€…体重记录主键集合
     * @return ç»“æžœ
     */
    public int deletePatMedWeightByIds(Long[] ids);
    /**
     * åˆ é™¤æ‚£è€…体重记录信息
     *
     * @param id æ‚£è€…体重记录主键
     * @return ç»“æžœ
     */
    public int deletePatMedWeightById(Long id);
}
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 @@
                }
                //患都标签是否为空
                if (ObjectUtils.isEmpty(row.getCell(7))) {
                    addRemark("患者标签为空", patArchive);
                if (ObjectUtils.isEmpty(row.getCell(7)) || StringUtils.isEmpty(row.getCell(7).toString())) {
                    if (StringUtils.isEmpty(tags)) {
                        addRemark("患者标签为空", 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);
                    }
                    // æ–°å¢žæ‚£è€…档案标签
                    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);
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;
/**
 * æ‚£è€…血糖记录Service业务层处理
 *
 * @author ruoyi
 * @date 2023-06-07
 */
@Service
public class PatMedBloodsugarServiceImpl implements IPatMedBloodsugarService {
    @Autowired
    private PatMedBloodsugarMapper patMedBloodsugarMapper;
    /**
     * æŸ¥è¯¢æ‚£è€…血糖记录
     *
     * @param bloodsugarid æ‚£è€…血糖记录主键
     * @return æ‚£è€…血糖记录
     */
    @Override
    public PatMedBloodsugar selectPatMedBloodsugarByBloodsugarid(Long bloodsugarid) {
        return patMedBloodsugarMapper.selectPatMedBloodsugarByBloodsugarid(bloodsugarid);
    }
    /**
     * æŸ¥è¯¢æ‚£è€…血糖记录列表
     *
     * @param patMedBloodsugar æ‚£è€…血糖记录
     * @return æ‚£è€…血糖记录
     */
    @Override
    public List<PatMedBloodsugar> selectPatMedBloodsugarList(PatMedBloodsugar patMedBloodsugar) {
        return patMedBloodsugarMapper.selectPatMedBloodsugarList(patMedBloodsugar);
    }
    /**
     * æ–°å¢žæ‚£è€…血糖记录
     *
     * @param patMedBloodsugar æ‚£è€…血糖记录
     * @return ç»“æžœ
     */
    @Override
    public int insertPatMedBloodsugar(PatMedBloodsugar patMedBloodsugar) {
        patMedBloodsugar.setCreateTime(DateUtils.getNowDate());
        return patMedBloodsugarMapper.insertPatMedBloodsugar(patMedBloodsugar);
    }
    /**
     * ä¿®æ”¹æ‚£è€…血糖记录
     *
     * @param patMedBloodsugar æ‚£è€…血糖记录
     * @return ç»“æžœ
     */
    @Override
    public int updatePatMedBloodsugar(PatMedBloodsugar patMedBloodsugar) {
        patMedBloodsugar.setUpdateTime(DateUtils.getNowDate());
        return patMedBloodsugarMapper.updatePatMedBloodsugar(patMedBloodsugar);
    }
    /**
     * æ‰¹é‡åˆ é™¤æ‚£è€…血糖记录
     *
     * @param bloodsugarids éœ€è¦åˆ é™¤çš„æ‚£è€…血糖记录主键
     * @return ç»“æžœ
     */
    @Override
    public int deletePatMedBloodsugarByBloodsugarids(Long[] bloodsugarids) {
        return patMedBloodsugarMapper.deletePatMedBloodsugarByBloodsugarids(bloodsugarids);
    }
    /**
     * åˆ é™¤æ‚£è€…血糖记录信息
     *
     * @param bloodsugarid æ‚£è€…血糖记录主键
     * @return ç»“æžœ
     */
    @Override
    public int deletePatMedBloodsugarByBloodsugarid(Long bloodsugarid) {
        return patMedBloodsugarMapper.deletePatMedBloodsugarByBloodsugarid(bloodsugarid);
    }
}
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;
/**
 * æ‚£è€…高血压记录Service业务层处理
 *
 * @author ruoyi
 * @date 2023-06-07
 */
@Service
public class PatMedHypertensionServiceImpl implements IPatMedHypertensionService {
    @Autowired
    private PatMedHypertensionMapper patMedHypertensionMapper;
    /**
     * æŸ¥è¯¢æ‚£è€…高血压记录
     *
     * @param id æ‚£è€…高血压记录主键
     * @return æ‚£è€…高血压记录
     */
    @Override
    public PatMedHypertension selectPatMedHypertensionById(Long id) {
        return patMedHypertensionMapper.selectPatMedHypertensionById(id);
    }
    /**
     * æŸ¥è¯¢æ‚£è€…高血压记录列表
     *
     * @param patMedHypertension æ‚£è€…高血压记录
     * @return æ‚£è€…高血压记录
     */
    @Override
    public List<PatMedHypertension> selectPatMedHypertensionList(PatMedHypertension patMedHypertension) {
        return patMedHypertensionMapper.selectPatMedHypertensionList(patMedHypertension);
    }
    /**
     * æ–°å¢žæ‚£è€…高血压记录
     *
     * @param patMedHypertension æ‚£è€…高血压记录
     * @return ç»“æžœ
     */
    @Override
    public int insertPatMedHypertension(PatMedHypertension patMedHypertension) {
        patMedHypertension.setCreateTime(DateUtils.getNowDate());
        return patMedHypertensionMapper.insertPatMedHypertension(patMedHypertension);
    }
    /**
     * ä¿®æ”¹æ‚£è€…高血压记录
     *
     * @param patMedHypertension æ‚£è€…高血压记录
     * @return ç»“æžœ
     */
    @Override
    public int updatePatMedHypertension(PatMedHypertension patMedHypertension) {
        patMedHypertension.setUpdateTime(DateUtils.getNowDate());
        return patMedHypertensionMapper.updatePatMedHypertension(patMedHypertension);
    }
    /**
     * æ‰¹é‡åˆ é™¤æ‚£è€…高血压记录
     *
     * @param ids éœ€è¦åˆ é™¤çš„æ‚£è€…高血压记录主键
     * @return ç»“æžœ
     */
    @Override
    public int deletePatMedHypertensionByIds(Long[] ids) {
        return patMedHypertensionMapper.deletePatMedHypertensionByIds(ids);
    }
    /**
     * åˆ é™¤æ‚£è€…高血压记录信息
     *
     * @param id æ‚£è€…高血压记录主键
     * @return ç»“æžœ
     */
    @Override
    public int deletePatMedHypertensionById(Long id) {
        return patMedHypertensionMapper.deletePatMedHypertensionById(id);
    }
}
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;
/**
 * æ‚£è€…体重记录Service业务层处理
 *
 * @author ruoyi
 * @date 2023-06-07
 */
@Service
public class PatMedWeightServiceImpl implements IPatMedWeightService {
    @Autowired
    private PatMedWeightMapper patMedWeightMapper;
    /**
     * æŸ¥è¯¢æ‚£è€…体重记录
     *
     * @param id æ‚£è€…体重记录主键
     * @return æ‚£è€…体重记录
     */
    @Override
    public PatMedWeight selectPatMedWeightById(Long id) {
        return patMedWeightMapper.selectPatMedWeightById(id);
    }
    /**
     * æŸ¥è¯¢æ‚£è€…体重记录列表
     *
     * @param patMedWeight æ‚£è€…体重记录
     * @return æ‚£è€…体重记录
     */
    @Override
    public List<PatMedWeight> selectPatMedWeightList(PatMedWeight patMedWeight) {
        return patMedWeightMapper.selectPatMedWeightList(patMedWeight);
    }
    /**
     * æ–°å¢žæ‚£è€…体重记录
     *
     * @param patMedWeight æ‚£è€…体重记录
     * @return ç»“æžœ
     */
    @Override
    public int insertPatMedWeight(PatMedWeight patMedWeight) {
        patMedWeight.setCreateTime(DateUtils.getNowDate());
        return patMedWeightMapper.insertPatMedWeight(patMedWeight);
    }
    /**
     * ä¿®æ”¹æ‚£è€…体重记录
     *
     * @param patMedWeight æ‚£è€…体重记录
     * @return ç»“æžœ
     */
    @Override
    public int updatePatMedWeight(PatMedWeight patMedWeight) {
        patMedWeight.setUpdateTime(DateUtils.getNowDate());
        return patMedWeightMapper.updatePatMedWeight(patMedWeight);
    }
    /**
     * æ‰¹é‡åˆ é™¤æ‚£è€…体重记录
     *
     * @param ids éœ€è¦åˆ é™¤çš„æ‚£è€…体重记录主键
     * @return ç»“æžœ
     */
    @Override
    public int deletePatMedWeightByIds(Long[] ids) {
        return patMedWeightMapper.deletePatMedWeightByIds(ids);
    }
    /**
     * åˆ é™¤æ‚£è€…体重记录信息
     *
     * @param id æ‚£è€…体重记录主键
     * @return ç»“æžœ
     */
    @Override
    public int deletePatMedWeightById(Long id) {
        return patMedWeightMapper.deletePatMedWeightById(id);
    }
}
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>
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>
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>