| | |
| | | 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; |
| | |
| | | * @author ruoyi |
| | | * @date 2023-06-06 |
| | | */ |
| | | @Api("æ ç¾") |
| | | @RestController |
| | | @RequestMapping("/base/tag") |
| | | public class BaseTagController extends BaseController { |
| | |
| | | /** |
| | | * æ¥è¯¢æ ç¾å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ ç¾å表") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BaseTag baseTag) { |
| | |
| | | /** |
| | | * å¯¼åºæ ç¾å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ ç¾å表") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | @Log(title = "æ ç¾", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | |
| | | /** |
| | | * è·åæ ç¾è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @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) { |
| | |
| | | /** |
| | | * æ°å¢æ ç¾ |
| | | */ |
| | | @ApiOperation("æ°å¢æ ç¾") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "æ ç¾", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | |
| | | /** |
| | | * ä¿®æ¹æ ç¾ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ ç¾") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "æ ç¾", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | |
| | | /** |
| | | * å 餿 ç¾ |
| | | */ |
| | | @ApiOperation("å 餿 ç¾") |
| | | @ApiImplicitParam(name = "remove", value = "主é®ID", dataType = "long", dataTypeClass = Array.class) |
| | | @PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | @Log(title = "æ ç¾", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{tagids}") |
| | |
| | | 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.*; |
| | |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | | @Api("æ£è
æ¡£æ¡") |
| | | @RestController |
| | | @RequestMapping("/smartor/patarchive") |
| | | public class PatArchiveController extends BaseController { |
| | |
| | | /** |
| | | * æ¥è¯¢æ£è
æ¡£æ¡å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
æ¡£æ¡å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatArchive patArchive) { |
| | |
| | | /** |
| | | * å¯¼åºæ£è
æ¡£æ¡å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
æ¡£æ¡å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:export')") |
| | | @Log(title = "æ£è
æ¡£æ¡", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | |
| | | /** |
| | | * è·åæ£è
æ¡£æ¡è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @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 |
| | |
| | | /** |
| | | * ä¿®æ¹æ£è
æ¡£æ¡ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ£è
æ¡£æ¡") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:edit')") |
| | | @Log(title = "æ£è
æ¡£æ¡", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | |
| | | /** |
| | | * å 餿£è
æ¡£æ¡ |
| | | */ |
| | | @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); |
| | | } |
| | |
| | | * |
| | | * @param patArchiveList |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
é误信æ¯") |
| | | @PostMapping("/exportErrPatInfo") |
| | | public AjaxResult exportErrPatInfo(@RequestBody List<PatArchive> patArchiveList) { |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)); |
| | | } |
| | | } |
| | |
| | | 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; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/patouthosp") |
| | | public class PatMedOuthospController extends BaseController |
| | | { |
| | | @Api("æ£è
é¨è¯è®°å½") |
| | | public class PatMedOuthospController extends BaseController { |
| | | @Autowired |
| | | private IPatMedOuthospService patMedOuthospService; |
| | | |
| | |
| | | */ |
| | | @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); |
| | |
| | | */ |
| | | @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, "æ£è
é¨è¯è®°å½æ°æ®"); |
| | |
| | | /** |
| | | * è·åæ£è
é¨è¯è®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @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) |
| | | { |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patMedOuthospService.deletePatMedOuthospByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)); |
| | | } |
| | | } |
| | |
| | | <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> |
| | | |
| | |
| | | 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; |
| | |
| | | * @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; |
| | |
| | | /** |
| | | * æ¯å¦å¼å¯ |
| | | */ |
| | | @Excel(name = " æ¯å¦å¼å¯ ") |
| | | @ApiModelProperty(name = "æ¯å¦å¼å¯") |
| | | private Long isenable; |
| | | |
| | | public void setTagid(Long tagid) { |
| | |
| | | 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; |
| | |
| | | * @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; |
| | |
| | | /** |
| | | * å¹´é¾ |
| | | */ |
| | | @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() { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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(); |
| | | } |
| | | } |
| | |
| | | |
| | | 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; |
| | |
| | | * @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) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | |
| | | 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; |
| | |
| | | * @param title |
| | | * @param file |
| | | */ |
| | | public PatUpInfoVO importFilehandle(String username, MultipartFile file); |
| | | public PatUpInfoVO importFilehandle(SysUser user,String tags, MultipartFile file); |
| | | |
| | | /** |
| | | * å¯¼åºæ£è
éè¯¯ä¿¡æ¯ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | |
| | | @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; |
| | |
| | | } |
| | | |
| | | //æ£é½æ ç¾æ¯å¦ä¸ºç©º |
| | | if (ObjectUtils.isEmpty(row.getCell(7))) { |
| | | if (ObjectUtils.isEmpty(row.getCell(7)) || StringUtils.isEmpty(row.getCell(7).toString())) { |
| | | if (StringUtils.isEmpty(tags)) { |
| | | addRemark("æ£è
æ ç¾ä¸ºç©º", patArchive); |
| | | } else { |
| | | patArchive.setTag(tags); |
| | | |
| | | } |
| | | } else { |
| | | if (StringUtils.isNotEmpty(tags)) { |
| | | patArchive.setTag(row.getCell(7).toString() + "," + tags); |
| | | } else { |
| | | patArchive.setTag(row.getCell(7).toString()); |
| | | } |
| | | } |
| | | |
| | | //夿夿³¨æ¯å¦ä¸ºç©º |
| | |
| | | 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); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |