¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.component; |
| | | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | import static com.ruoyi.common.utils.SecurityUtils.getLoginUser; |
| | | |
| | | @Component |
| | | public class DeptUtils { |
| | | public static Map<String, String> getDeptAndDocID() { |
| | | Map<String, String> map = new HashMap<>(); |
| | | LoginUser loginUser = getLoginUser(); |
| | | SysUser user = loginUser.getUser(); |
| | | String detpId = user.getDeptId().toString(); |
| | | String userName = user.getUserName(); |
| | | map.put("deptId", detpId); |
| | | map.put("userName", userName); |
| | | return map; |
| | | } |
| | | } |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:icd10:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody Icd10Association icd10Association) { |
| | | if (icd10Association.getIsPage()) { |
| | | PageUtils.startPageByPost(icd10Association.getPageNum(), icd10Association.getPageSize()); |
| | | } |
| | | List<Icd10Association> list = iIcd10AssociationService.selectIcd10AssociationList(icd10Association); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | public class PatArchiveController extends BaseController { |
| | | @Autowired |
| | | private IPatArchiveService patArchiveService; |
| | | // |
| | | // /** |
| | | // * æ¥è¯¢æ£è
æ¡£æ¡å表 |
| | | // */ |
| | | // @ApiOperation("æ¥è¯¢æ£è
æ¡£æ¡å表") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:patarchive:list')") |
| | | // @PostMapping("/list") |
| | | // public TableDataInfo list(@RequestBody PatArchive patArchive) { |
| | | // startPage(); |
| | | // List<PatArchive> list = patArchiveService.selectPatArchiveList(patArchive); |
| | | // return getDataTable(list); |
| | | //} |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
æ¡£æ¡å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
æ¡£æ¡å表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatArchive patArchive) { |
| | | startPage(); |
| | | List<PatArchive> list = patArchiveService.selectPatArchiveList(patArchive); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ£è
æ¡£æ¡å表 |
| | |
| | | // } |
| | | |
| | | /** |
| | | * æ°å¢æ£è
æ¡£æ¡ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ£è
æ¡£æ¡") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:update')") |
| | | @Log(title = "æ£è
æ¡£æ¡", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody PatArchive patArchive) { |
| | | return toAjax(patArchiveService.update(patArchive)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹æ£è
æ¡£ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹æ£è
档信æ¯") |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.PatFilterlist; |
| | | import com.smartor.service.IPatFilterlistService; |
| | | 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.util.List; |
| | | |
| | | /** |
| | | * æ£è
è¿æ»¤ååController |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-02 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/filterlist") |
| | | public class PatFilterlistController extends BaseController { |
| | | @Autowired |
| | | private IPatFilterlistService patFilterlistService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
è¿æ»¤ååå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:filterlist:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatFilterlist patFilterlist) { |
| | | startPage(); |
| | | List<PatFilterlist> list = patFilterlistService.selectPatFilterlistList(patFilterlist); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ£è
è¿æ»¤ååå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:filterlist:export')") |
| | | @Log(title = "æ£è
è¿æ»¤åå", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatFilterlist patFilterlist) { |
| | | List<PatFilterlist> list = patFilterlistService.selectPatFilterlistList(patFilterlist); |
| | | ExcelUtil<PatFilterlist> util = new ExcelUtil<PatFilterlist>(PatFilterlist.class); |
| | | util.exportExcel(response, list, "æ£è
è¿æ»¤ååæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ£è
è¿æ»¤åå详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:filterlist:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patFilterlistService.selectPatFilterlistById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ£è
è¿æ»¤åå |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:filterlist:add')") |
| | | @Log(title = "æ£è
è¿æ»¤åå", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatFilterlist patFilterlist) { |
| | | return toAjax(patFilterlistService.insertPatFilterlist(patFilterlist)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
è¿æ»¤åå |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:filterlist:edit')") |
| | | @Log(title = "æ£è
è¿æ»¤åå", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatFilterlist patFilterlist) { |
| | | return toAjax(patFilterlistService.updatePatFilterlist(patFilterlist)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿£è
è¿æ»¤åå |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:filterlist:remove')") |
| | | @Log(title = "æ£è
è¿æ»¤åå", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patFilterlistService.deletePatFilterlistByIds(ids)); |
| | | } |
| | | } |
| | |
| | | @ApiOperation("è·åæ£è
é¨è¯è®°å½è¯¦ç»ä¿¡æ¯") |
| | | @ApiImplicitParam(name = "getInfo", value = "主é®ID", dataType = "long", dataTypeClass = Long.class) |
| | | @PreAuthorize("@ss.hasPermi('smartor:patouthosp:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @GetMapping(value = "getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedOuthospService.selectPatMedOuthospById(id)); |
| | | } |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:patouthosp:remove')") |
| | | @ApiImplicitParam(name = "remove", value = "主é®ID", dataType = "long", dataTypeClass = Array.class) |
| | | @Log(title = "æ£è
é¨è¯è®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/{ids}") |
| | | @GetMapping("/remove/{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.PatMedRegistration; |
| | | import com.smartor.service.IPatMedRegistrationService; |
| | | 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.util.List; |
| | | |
| | | /** |
| | | * æ£è
æå·è®°å½Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-01 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/registration") |
| | | public class PatMedRegistrationController extends BaseController { |
| | | @Autowired |
| | | private IPatMedRegistrationService patMedRegistrationService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
æå·è®°å½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:registration:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatMedRegistration patMedRegistration) { |
| | | startPage(); |
| | | List<PatMedRegistration> list = patMedRegistrationService.selectPatMedRegistrationList(patMedRegistration); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ£è
æå·è®°å½å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:registration:export')") |
| | | @Log(title = "æ£è
æå·è®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedRegistration patMedRegistration) { |
| | | List<PatMedRegistration> list = patMedRegistrationService.selectPatMedRegistrationList(patMedRegistration); |
| | | ExcelUtil<PatMedRegistration> util = new ExcelUtil<PatMedRegistration>(PatMedRegistration.class); |
| | | util.exportExcel(response, list, "æ£è
æå·è®°å½æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ£è
æå·è®°å½è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:registration:query')") |
| | | @GetMapping(value = "/getInfo/{registid}") |
| | | public AjaxResult getInfo(@PathVariable("registid") Long registid) { |
| | | return success(patMedRegistrationService.selectPatMedRegistrationByRegistid(registid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ£è
æå·è®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:registration:add')") |
| | | @Log(title = "æ£è
æå·è®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedRegistration patMedRegistration) { |
| | | return toAjax(patMedRegistrationService.insertPatMedRegistration(patMedRegistration)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
æå·è®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:registration:edit')") |
| | | @Log(title = "æ£è
æå·è®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedRegistration patMedRegistration) { |
| | | return toAjax(patMedRegistrationService.updatePatMedRegistration(patMedRegistration)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿£è
æå·è®°å½ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:registration:remove')") |
| | | @Log(title = "æ£è
æå·è®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{registids}") |
| | | public AjaxResult remove(@PathVariable Long[] registids) { |
| | | return toAjax(patMedRegistrationService.deletePatMedRegistrationByRegistids(registids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.PatSpeciallist; |
| | | import com.smartor.service.IPatSpeciallistService; |
| | | 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.util.List; |
| | | |
| | | /** |
| | | * ä¸ç
æ£è
Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-02 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/speciallist") |
| | | public class PatSpeciallistController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IPatSpeciallistService patSpeciallistService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ä¸ç
æ£è
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatSpeciallist patSpeciallist) |
| | | { |
| | | startPage(); |
| | | List<PatSpeciallist> list = patSpeciallistService.selectPatSpeciallistList(patSpeciallist); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºä¸ç
æ£è
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:export')") |
| | | @Log(title = "ä¸ç
æ£è
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatSpeciallist patSpeciallist) |
| | | { |
| | | List<PatSpeciallist> list = patSpeciallistService.selectPatSpeciallistList(patSpeciallist); |
| | | ExcelUtil<PatSpeciallist> util = new ExcelUtil<PatSpeciallist>(PatSpeciallist.class); |
| | | util.exportExcel(response, list, "ä¸ç
æ£è
æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åä¸ç
æ£è
详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(patSpeciallistService.selectPatSpeciallistById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ä¸ç
æ£è
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:add')") |
| | | @Log(title = "ä¸ç
æ£è
", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatSpeciallist patSpeciallist) |
| | | { |
| | | return toAjax(patSpeciallistService.insertPatSpeciallist(patSpeciallist)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ä¸ç
æ£è
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:edit')") |
| | | @Log(title = "ä¸ç
æ£è
", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatSpeciallist patSpeciallist) |
| | | { |
| | | return toAjax(patSpeciallistService.updatePatSpeciallist(patSpeciallist)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä¸ç
æ£è
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:speciallist:remove')") |
| | | @Log(title = "ä¸ç
æ£è
", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(patSpeciallistService.deletePatSpeciallistByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.web.component.DeptUtils; |
| | | import com.smartor.domain.PerSonWorkbenchDto; |
| | | import com.smartor.service.PersonWorkbenchService; |
| | | import io.swagger.annotations.Api; |
| | | 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 java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * æ ç¾Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-06 |
| | | */ |
| | | @Api(description = "个人工ä½å°") |
| | | @RestController |
| | | @RequestMapping("/smartor/workbench") |
| | | public class PersonWorkbenchController extends BaseController { |
| | | @Autowired |
| | | private PersonWorkbenchService personWorkbenchService; |
| | | |
| | | /** |
| | | * å½åç»å½ç¨æ·çé¨è¯ãå¨é¢ãåºé¢ç
人çç»è®¡æ
åµ |
| | | */ |
| | | @ApiOperation("å½åç»å½ç¨æ·çé¨è¯ãå¨é¢ãåºé¢ç
人çç»è®¡æ
åµ") |
| | | @GetMapping("/getPatCount") |
| | | public TableDataInfo getPatCount(@RequestParam("deptIds") String detpIds, @RequestParam("dcCodes") String dcCodes) { |
| | | //è·åå½åç»é人 |
| | | Map<String, String> deptAndDocID = DeptUtils.getDeptAndDocID(); |
| | | if (StringUtils.isEmpty(detpIds)) { |
| | | detpIds = deptAndDocID.get("deptId"); |
| | | } |
| | | if (StringUtils.isEmpty(dcCodes)) { |
| | | dcCodes = deptAndDocID.get("userName"); |
| | | } |
| | | |
| | | List<PerSonWorkbenchDto> patCount = personWorkbenchService.getPatCount(detpIds, dcCodes); |
| | | return getDataTable(patCount); |
| | | } |
| | | |
| | | /** |
| | | * å½åç»å½ç¨æ·çé¨è¯ãå¨é¢ãåºé¢ç
人çç»è®¡æ
åµ |
| | | */ |
| | | @ApiOperation("å½åç»å½ç¨æ·çé¨è¯ãå¨é¢ãåºé¢ç
人çç»è®¡æ
åµ") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @GetMapping("/getTaskInfo") |
| | | public TableDataInfo getTaskInfo(@RequestParam("deptIds") String detpIds, @RequestParam("dcCodes") String dcCodes) { |
| | | //è·åå½åç»é人 |
| | | Map<String, String> deptAndDocID = DeptUtils.getDeptAndDocID(); |
| | | if (StringUtils.isEmpty(detpIds)) { |
| | | detpIds = deptAndDocID.get("deptId"); |
| | | } |
| | | if (StringUtils.isEmpty(dcCodes)) { |
| | | dcCodes = deptAndDocID.get("userName"); |
| | | } |
| | | |
| | | List<PerSonWorkbenchDto> patCount = personWorkbenchService.getPatCount(detpIds, dcCodes); |
| | | return getDataTable(patCount); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | startPage(); |
| | | List<SvyLibTemplateCategoryVO> list = svyLibTemplateCategoryService.selectSvyLibTemplateCategoryList(svyLibTemplateCategory); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | import com.smartor.domain.SvyLibScriptTag; |
| | | import com.smartor.domain.SvyLibTemplate; |
| | | import com.smartor.domain.SvyLibTemplateReq; |
| | | import com.smartor.domain.SvyLibTemplateVO; |
| | | import com.smartor.service.ISvyLibTemplateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @PostMapping("/selectSvyLibTemplatelist") |
| | | public TableDataInfo selectSvyLibTemplatelist(@RequestBody SvyLibTemplateReq svyLibTemplateReq) { |
| | | PageUtils.startPageByPost(svyLibTemplateReq.getPageNum(), svyLibTemplateReq.getPageSize()); |
| | | List<SvyLibTemplate> list = svyLibTemplateService.selectSvyLibTemplateList(svyLibTemplateReq); |
| | | List<SvyLibTemplateVO> list = svyLibTemplateService.selectSvyLibTemplateList(svyLibTemplateReq); |
| | | |
| | | if (CollectionUtils.isNotEmpty(list)) { |
| | | //è·åtotal |
| | |
| | | @ApiOperation("æ°å¢æä¿®æ¹é®å·æ¨¡æ¿ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/saveOrUpdateTemplate") |
| | | public AjaxResult saveOrUpdateTemplate(@RequestBody SvyLibTemplate svyLibTemplate) { |
| | | if (ObjectUtils.isEmpty(svyLibTemplate)) { |
| | | public AjaxResult saveOrUpdateTemplate(@RequestBody SvyLibTemplateVO svyLibTemplateVO) { |
| | | if (ObjectUtils.isEmpty(svyLibTemplateVO)) { |
| | | throw new BaseException("å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | | } |
| | | return success(svyLibTemplateService.saveOrUpdateTemplate(svyLibTemplate)); |
| | | return success(svyLibTemplateService.saveOrUpdateTemplate(svyLibTemplateVO)); |
| | | } |
| | | |
| | | /** |
| | |
| | | "doc", "docx", "xls", "xlsx", "ppt", "pptx", "html", "htm", "txt", |
| | | // å缩æä»¶ |
| | | "rar", "zip", "gz", "bz2", |
| | | //é³é¢æ ¼å¼ |
| | | "swf", "flv", "mp3", "wav", "wma", "wmv", "mid", "avi", "mpg", "asf", "rm", "rmvb", |
| | | // è§é¢æ ¼å¼ |
| | | "mp4", "avi", "rmvb", |
| | | // pdf |
| | |
| | | @Excel(name = "坿æ¬") |
| | | @ApiModelProperty("坿æ¬") |
| | | private String richText = ""; |
| | | |
| | | /** |
| | | * ç±»åï¼1宣æ 2éç¥ |
| | | */ |
| | | @ApiModelProperty("ç±»åï¼1宣æ 2éç¥") |
| | | private String hetype; |
| | | } |
| | |
| | | @Excel(name = "pageSize") |
| | | private Integer pageSize; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å页") |
| | | private Boolean isPage = true; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * æ£è
è¿æ»¤åå对象 pat_filterlist |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-02 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "PatFilterlist", description = "æ£è
è¿æ»¤åå对象 ") |
| | | public class PatFilterlist extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty("主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * ç
人档æ¡ID |
| | | */ |
| | | @ApiModelProperty("ç
人档æ¡ID") |
| | | private Long patid; |
| | | |
| | | /** |
| | | * è¿æ»¤ç±»åç¼å· |
| | | */ |
| | | @ApiModelProperty("è¿æ»¤ç±»åç¼å·") |
| | | private String filtertype; |
| | | |
| | | /** |
| | | * è¿æ»¤ç±»å |
| | | */ |
| | | @ApiModelProperty("è¿æ»¤ç±»å") |
| | | private String filterdesc; |
| | | |
| | | /** |
| | | * è¿æ»¤ç³è¯·è¯´æ |
| | | */ |
| | | @ApiModelProperty("è¿æ»¤ç³è¯·è¯´æ") |
| | | private String filternotes; |
| | | |
| | | /** |
| | | * ç³è¯·æ¥æ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty("ç³è¯·æ¥æ") |
| | | private Date applyTime; |
| | | |
| | | /** |
| | | * å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼ |
| | | */ |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * å®¡æ ¸äºº |
| | | */ |
| | | @ApiModelProperty("å®¡æ ¸äºº") |
| | | private Long checkBy; |
| | | |
| | | /** |
| | | * å®¡æ ¸ç¶æ |
| | | */ |
| | | @ApiModelProperty("å®¡æ ¸ç¶æ") |
| | | private String checkFlag; |
| | | |
| | | /** |
| | | * å®¡æ ¸æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty("å®¡æ ¸æ¶é´") |
| | | private Date checkTime; |
| | | |
| | | /** |
| | | * å®¡æ ¸æè§ |
| | | */ |
| | | @ApiModelProperty("å®¡æ ¸æè§") |
| | | private String checkdesc; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ å¿ï¼0ï¼æªä¸ä¼ 1ï¼å·²ä¸ä¼ ï¼ |
| | | */ |
| | | @ApiModelProperty("ä¸ä¼ æ å¿") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty("ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty("ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty("GUID") |
| | | private String guid; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * æ£è
æå·è®°å½å¯¹è±¡ pat_med_registration |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-01 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "PatMedRegistration", description = "æ£è
æå·è®°å½å¯¹è±¡") |
| | | public class PatMedRegistration extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | private Long registid; |
| | | |
| | | /** |
| | | * æµæ°´è¡¨ |
| | | */ |
| | | @ApiModelProperty("æµæ°´è¡¨") |
| | | private String serialnum; |
| | | |
| | | /** |
| | | * æ¡£æ¡ID |
| | | */ |
| | | @ApiModelProperty("æ¡£æ¡ID") |
| | | private Long patid; |
| | | |
| | | /** |
| | | * å»é¢åç§° |
| | | */ |
| | | @ApiModelProperty("å»é¢åç§°") |
| | | private String hospitalname; |
| | | |
| | | /** |
| | | * å»é¢ç¼å· |
| | | */ |
| | | @ApiModelProperty("å»é¢ç¼å·") |
| | | private String hospitalcode; |
| | | |
| | | /** |
| | | * ç§å®¤ä»£ç |
| | | */ |
| | | @ApiModelProperty("ç§å®¤ä»£ç ") |
| | | private String deptcode; |
| | | |
| | | /** |
| | | * ç§å®¤åç§° |
| | | */ |
| | | @ApiModelProperty("ç§å®¤åç§°") |
| | | private String deptname; |
| | | |
| | | /** |
| | | * ç§å®¤ID |
| | | */ |
| | | @ApiModelProperty("ç§å®¤ID") |
| | | private Long deptid; |
| | | |
| | | /** |
| | | * é¢çº¦ç¶æ;0.å·²é¢çº¦ 1.已宿 2.已忶 |
| | | */ |
| | | @ApiModelProperty("é¢çº¦ç¶æ;0.å·²é¢çº¦ 1.已宿 2.已忶") |
| | | private Long state; |
| | | |
| | | /** |
| | | * é¢çº¦æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty("é¢çº¦æ¶é´") |
| | | private Date appointmenttime; |
| | | |
| | | /** |
| | | * é¢çº¦çå«;1:ä¸å 2:ä¸å 3:æä¸ |
| | | */ |
| | | @ApiModelProperty("é¢çº¦çå«;1:ä¸å 2:ä¸å 3:æä¸") |
| | | private Long appointmenttimetype; |
| | | |
| | | /** |
| | | * é¢çº¦å·æº |
| | | */ |
| | | @ApiModelProperty("é¢çº¦å·æº") |
| | | private String appointmentcode; |
| | | |
| | | /** |
| | | * é¢çº¦æ¶æ®µå¼å§æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty("é¢çº¦æ¶æ®µå¼å§æ¶é´") |
| | | private Date appointmentbegintime; |
| | | |
| | | /** |
| | | * é¢çº¦æ¶æ®µç»ææ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty("é¢çº¦æ¶æ®µç»ææ¶é´") |
| | | private Date appointmentendtime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼ |
| | | */ |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ å¿ï¼0ï¼æªä¸ä¼ 1ï¼å·²ä¸ä¼ ï¼ |
| | | */ |
| | | @ApiModelProperty("ä¸ä¼ æ å¿") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty("ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty("ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty("GUID") |
| | | private String guid; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * ä¸ç
æ£è
对象 pat_speciallist |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-02 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "PatSpeciallist", description = "ä¸ç
æ£è
对象 ") |
| | | public class PatSpeciallist extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | private Long id; |
| | | |
| | | /** |
| | | * ç
人档æ¡ID |
| | | */ |
| | | @ApiModelProperty("ç
人档æ¡ID") |
| | | private Long patid; |
| | | |
| | | /** |
| | | * sdï¼specialize diseaseï¼ ç±»åç¼å· |
| | | */ |
| | | @ApiModelProperty("ç±»åç¼å·") |
| | | private String sdtype; |
| | | |
| | | /** |
| | | * sdï¼specialize diseaseï¼ ç±»å |
| | | */ |
| | | @ApiModelProperty("ç±»åæè¿°") |
| | | private String sddesc; |
| | | |
| | | /** |
| | | * sdï¼specialize diseaseï¼ ç³è¯·è¯´æ |
| | | */ |
| | | @ApiModelProperty("ç³è¯·è¯´æ") |
| | | private String sdnotes; |
| | | |
| | | /** |
| | | * ç³è¯·æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty("ç³è¯·æ¶é´") |
| | | private Date applyTime; |
| | | |
| | | /** |
| | | * å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼ |
| | | */ |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * å®¡æ ¸äºº |
| | | */ |
| | | @ApiModelProperty("å®¡æ ¸äºº") |
| | | private Long checkBy; |
| | | |
| | | /** |
| | | * å®¡æ ¸ç¶æ |
| | | */ |
| | | @ApiModelProperty("å®¡æ ¸ç¶æ") |
| | | private String checkFlag; |
| | | |
| | | /** |
| | | * å®¡æ ¸æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty("å®¡æ ¸æ¶é´") |
| | | private Date checkTime; |
| | | |
| | | /** |
| | | * å®¡æ ¸æè§ |
| | | */ |
| | | @ApiModelProperty("å®¡æ ¸æè§") |
| | | private String checkdesc; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ å¿ï¼0ï¼æªä¸ä¼ 1ï¼å·²ä¸ä¼ ï¼ |
| | | */ |
| | | @ApiModelProperty("ä¸ä¼ æ å¿") |
| | | private Long uploadFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty("ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty("ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty("GUID") |
| | | private String guid; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * å¤é¨æ£è
æ¡£æ¡å¯¹è±¡ pat_archive_out |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-29 |
| | | */ |
| | | @ApiModel(value = "PatArchiveOut", description = "å¤é¨æ£è
æ¡£æ¡å¯¹è±¡") |
| | | @Data |
| | | public class PerSonWorkbenchDto extends BaseEntity { |
| | | |
| | | @ApiModelProperty("å§å") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("æ°é") |
| | | private String count; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "æ·»å æ¶é´") |
| | | private Date addtime; |
| | | |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å¼å§æ¶é´") |
| | | private Date beginTime; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ç»ææ¶é´") |
| | | private Date endTime; |
| | | |
| | | /** |
| | | * å®¡æ ¸äººid |
| | | */ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·å¯¹è±¡ svy_lib_Template |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTemplate", description = "é®å·å¯¹è±¡") |
| | | public class SvyLibTemplateVO extends BaseEntity { |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "èªå¢ID") |
| | | private Long svyid; |
| | | |
| | | /** |
| | | * é®å·åç±»ID |
| | | */ |
| | | @ApiModelProperty(value = "é®å·åç±»ID", required = true) |
| | | @Excel(name = " é®å·åç±»ID ") |
| | | private Long categoryid; |
| | | |
| | | /** |
| | | * é®å·ä»£ç |
| | | */ |
| | | @ApiModelProperty(value = "é®å·ä»£ç ") |
| | | @Excel(name = " é®å·ä»£ç ") |
| | | private String svycode; |
| | | |
| | | /** |
| | | * é®å·åç§° |
| | | */ |
| | | @ApiModelProperty(value = "é®å·åç§°", required = true) |
| | | @Excel(name = " é®å·åç§° ") |
| | | private String svyname; |
| | | |
| | | /** |
| | | * æè¿° |
| | | */ |
| | | @ApiModelProperty(value = "æè¿°", required = true) |
| | | @Excel(name = " æè¿° ") |
| | | private String description; |
| | | |
| | | /** |
| | | * é®å·ä»ç» |
| | | */ |
| | | @ApiModelProperty(value = "é®å·ä»ç»") |
| | | @Excel(name = " é®å·ä»ç» ") |
| | | private String introduce; |
| | | |
| | | /** |
| | | * é®å·æç¤º |
| | | */ |
| | | @ApiModelProperty(value = "é®å·æç¤º") |
| | | @Excel(name = " é®å·æç¤º ") |
| | | private String submitprompt; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | @Excel(name = " 模æ¿ID ") |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * çæ¬ |
| | | */ |
| | | @ApiModelProperty(value = "çæ¬") |
| | | @Excel(name = " çæ¬ ") |
| | | private String version; |
| | | |
| | | /** |
| | | * ä¸å¿åºä»£ç |
| | | */ |
| | | @ApiModelProperty(value = "ä¸å¿åºä»£ç ") |
| | | @Excel(name = " ä¸å¿åºä»£ç ") |
| | | private String centerlibrarycode; |
| | | |
| | | /** |
| | | * ä¸å¿åºID |
| | | */ |
| | | @ApiModelProperty(value = "ä¸å¿åºID") |
| | | @Excel(name = " ä¸å¿åºID ") |
| | | private Long centerlibraryid; |
| | | |
| | | /** |
| | | * æ¯å¦æ¬å° |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦æ¬å°") |
| | | @Excel(name = " æ¯å¦æ¬å° ") |
| | | private Long islocal; |
| | | |
| | | /** |
| | | * æ¯å¦å¯ç¨ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å¯ç¨") |
| | | @Excel(name = " æ¯å¦å¯ç¨ ") |
| | | private String isenable = "0"; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty(value = "æºæID") |
| | | @Excel(name = " æºæID ") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | private Long isupload; |
| | | |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * ç¾ç
åç§° |
| | | */ |
| | | @ApiModelProperty(value = "ç¾ç
åç§°") |
| | | private String icdname; |
| | | |
| | | /** |
| | | * ç¾ç
ID |
| | | */ |
| | | @ApiModelProperty(value = "ç¾ç
å
³è表") |
| | | private List<Icd10Association> icd10Associations; |
| | | |
| | | /** |
| | | * é®å·é¢ç®éå |
| | | */ |
| | | @ApiModelProperty(value = "é®å·é¢ç®éå") |
| | | private List<SvyLibTemplateScript> svyTemplateLibScripts; |
| | | |
| | | /** |
| | | * 模æ¿ç§å®¤å
³èéå |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿ç§å®¤å
³èéå") |
| | | private List<TempDetpRelevance> tempDetpRelevances = new ArrayList<>(); |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * ç§å®¤åç§° |
| | | */ |
| | | @Excel(name = "ç§å®¤åç§°") |
| | | @ApiModelProperty("ç§å®¤åç§°") |
| | | private String deptNames = ""; |
| | | |
| | | /** |
| | | * æ ç¾ä¿¡æ¯ |
| | | */ |
| | | @Excel(name = "æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty("æ ç¾ä¿¡æ¯") |
| | | private List<SvyLibTemplateTag> svyLibTemplateTagList; |
| | | |
| | | /** |
| | | * å
¶å®ç¾ç
|
| | | */ |
| | | @Excel(name = "å
¶å®ç¾ç
") |
| | | @ApiModelProperty("å
¶å®ç¾ç
") |
| | | private List<Icd10Association> icd10AssociationList; |
| | | |
| | | /** |
| | | * é¢åº |
| | | */ |
| | | @Excel(name = "é¢åº") |
| | | @ApiModelProperty("é¢åº") |
| | | private String campus = ""; |
| | | |
| | | /** |
| | | * éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3 |
| | | */ |
| | | @Excel(name = "é¢éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3åº") |
| | | @ApiModelProperty("éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway = ""; |
| | | |
| | | |
| | | /** |
| | | * å
¶å®æ°æ®ï¼åå¨åéï¼ |
| | | */ |
| | | @ApiModelProperty("å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata = ""; |
| | | |
| | | /** |
| | | * é®é¢æ»åå¼ |
| | | */ |
| | | @ApiModelProperty("é®é¢æ»åå¼") |
| | | private String scriptScore; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | @Excel(name = "å¼ç±»å", readConverterExp = "1=é项,2=ææ¬,3=æ°å¼") |
| | | private Long valueType; |
| | | |
| | | |
| | | @ApiModelProperty(value = "åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") |
| | | private String reply; |
| | | |
| | | @ApiModelProperty(value = "åæ°ç±»åï¼æ°åï¼åæ¯ï¼ç级ï¼") |
| | | private String scoreType; |
| | | |
| | | |
| | | public SvyLibTemplateVO() { |
| | | } |
| | | |
| | | public SvyLibTemplateVO(Long svyid, String icdname) { |
| | | this.svyid = svyid; |
| | | this.icdname = icdname; |
| | | } |
| | | } |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.PatArchiveOut; |
| | | import com.smartor.domain.PerSonWorkbenchDto; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * å¤é¨æ£è
æ¡£æ¡Mapperæ¥å£ |
| | |
| | | * @date 2024-04-29 |
| | | */ |
| | | @Mapper |
| | | public interface PatArchiveOutMapper |
| | | { |
| | | public interface PatArchiveOutMapper { |
| | | /** |
| | | * æ¥è¯¢å¤é¨æ£è
æ¡£æ¡ |
| | | * |
| | |
| | | */ |
| | | public PatArchiveOut selectPatArchiveOutByPatid(Long patid); |
| | | |
| | | public List<PerSonWorkbenchDto> selectPatArchiveCount(@Param("deptIds") long[] deptIds,@Param("drCodes") String[] drCodes); |
| | | |
| | | /** |
| | | * æ¥è¯¢å¤é¨æ£è
æ¡£æ¡å表 |
| | | * |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.PatFilterlist; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
è¿æ»¤ååMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-02 |
| | | */ |
| | | @Mapper |
| | | public interface PatFilterlistMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ£è
è¿æ»¤åå |
| | | * |
| | | * @param id æ£è
è¿æ»¤ååä¸»é® |
| | | * @return æ£è
è¿æ»¤åå |
| | | */ |
| | | public PatFilterlist selectPatFilterlistById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
è¿æ»¤ååå表 |
| | | * |
| | | * @param patFilterlist æ£è
è¿æ»¤åå |
| | | * @return æ£è
è¿æ»¤ååéå |
| | | */ |
| | | public List<PatFilterlist> selectPatFilterlistList(PatFilterlist patFilterlist); |
| | | |
| | | /** |
| | | * æ°å¢æ£è
è¿æ»¤åå |
| | | * |
| | | * @param patFilterlist æ£è
è¿æ»¤åå |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPatFilterlist(PatFilterlist patFilterlist); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
è¿æ»¤åå |
| | | * |
| | | * @param patFilterlist æ£è
è¿æ»¤åå |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatFilterlist(PatFilterlist patFilterlist); |
| | | |
| | | /** |
| | | * å 餿£è
è¿æ»¤åå |
| | | * |
| | | * @param id æ£è
è¿æ»¤ååä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatFilterlistById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
è¿æ»¤åå |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatFilterlistByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.PatMedRegistration; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
æå·è®°å½Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-01 |
| | | */ |
| | | @Mapper |
| | | public interface PatMedRegistrationMapper { |
| | | /** |
| | | * æ¥è¯¢æ£è
æå·è®°å½ |
| | | * |
| | | * @param registid æ£è
æå·è®°å½ä¸»é® |
| | | * @return æ£è
æå·è®°å½ |
| | | */ |
| | | public PatMedRegistration selectPatMedRegistrationByRegistid(Long registid); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
æå·è®°å½å表 |
| | | * |
| | | * @param patMedRegistration æ£è
æå·è®°å½ |
| | | * @return æ£è
æå·è®°å½éå |
| | | */ |
| | | public List<PatMedRegistration> selectPatMedRegistrationList(PatMedRegistration patMedRegistration); |
| | | |
| | | /** |
| | | * æ°å¢æ£è
æå·è®°å½ |
| | | * |
| | | * @param patMedRegistration æ£è
æå·è®°å½ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPatMedRegistration(PatMedRegistration patMedRegistration); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
æå·è®°å½ |
| | | * |
| | | * @param patMedRegistration æ£è
æå·è®°å½ |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatMedRegistration(PatMedRegistration patMedRegistration); |
| | | |
| | | /** |
| | | * å 餿£è
æå·è®°å½ |
| | | * |
| | | * @param registid æ£è
æå·è®°å½ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatMedRegistrationByRegistid(Long registid); |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
æå·è®°å½ |
| | | * |
| | | * @param registids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatMedRegistrationByRegistids(Long[] registids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.PatSpeciallist; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä¸ç
æ£è
Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-02 |
| | | */ |
| | | @Mapper |
| | | public interface PatSpeciallistMapper { |
| | | /** |
| | | * æ¥è¯¢ä¸ç
æ£è
|
| | | * |
| | | * @param id ä¸ç
æ£è
ä¸»é® |
| | | * @return ä¸ç
æ£è
|
| | | */ |
| | | public PatSpeciallist selectPatSpeciallistById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ä¸ç
æ£è
å表 |
| | | * |
| | | * @param patSpeciallist ä¸ç
æ£è
|
| | | * @return ä¸ç
æ£è
éå |
| | | */ |
| | | public List<PatSpeciallist> selectPatSpeciallistList(PatSpeciallist patSpeciallist); |
| | | |
| | | /** |
| | | * æ°å¢ä¸ç
æ£è
|
| | | * |
| | | * @param patSpeciallist ä¸ç
æ£è
|
| | | * @return ç»æ |
| | | */ |
| | | public int insertPatSpeciallist(PatSpeciallist patSpeciallist); |
| | | |
| | | /** |
| | | * ä¿®æ¹ä¸ç
æ£è
|
| | | * |
| | | * @param patSpeciallist ä¸ç
æ£è
|
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatSpeciallist(PatSpeciallist patSpeciallist); |
| | | |
| | | /** |
| | | * å é¤ä¸ç
æ£è
|
| | | * |
| | | * @param id ä¸ç
æ£è
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatSpeciallistById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ä¸ç
æ£è
|
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatSpeciallistByIds(Long[] ids); |
| | | } |
| | |
| | | */ |
| | | public Boolean saveOrUpdatePatInfo(PatArchiveVO patArchiveVO); |
| | | |
| | | public Boolean update(PatArchive patArchive); |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
æ¡£æ¡ |
| | | * |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.PatFilterlist; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
è¿æ»¤ååServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-02 |
| | | */ |
| | | public interface IPatFilterlistService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ£è
è¿æ»¤åå |
| | | * |
| | | * @param id æ£è
è¿æ»¤ååä¸»é® |
| | | * @return æ£è
è¿æ»¤åå |
| | | */ |
| | | public PatFilterlist selectPatFilterlistById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
è¿æ»¤ååå表 |
| | | * |
| | | * @param patFilterlist æ£è
è¿æ»¤åå |
| | | * @return æ£è
è¿æ»¤ååéå |
| | | */ |
| | | public List<PatFilterlist> selectPatFilterlistList(PatFilterlist patFilterlist); |
| | | |
| | | /** |
| | | * æ°å¢æ£è
è¿æ»¤åå |
| | | * |
| | | * @param patFilterlist æ£è
è¿æ»¤åå |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPatFilterlist(PatFilterlist patFilterlist); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
è¿æ»¤åå |
| | | * |
| | | * @param patFilterlist æ£è
è¿æ»¤åå |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatFilterlist(PatFilterlist patFilterlist); |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
è¿æ»¤åå |
| | | * |
| | | * @param ids éè¦å é¤çæ£è
è¿æ»¤åå主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatFilterlistByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å 餿£è
è¿æ»¤ååä¿¡æ¯ |
| | | * |
| | | * @param id æ£è
è¿æ»¤ååä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatFilterlistById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.PatMedRegistration; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
æå·è®°å½Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-01 |
| | | */ |
| | | public interface IPatMedRegistrationService { |
| | | /** |
| | | * æ¥è¯¢æ£è
æå·è®°å½ |
| | | * |
| | | * @param registid æ£è
æå·è®°å½ä¸»é® |
| | | * @return æ£è
æå·è®°å½ |
| | | */ |
| | | public PatMedRegistration selectPatMedRegistrationByRegistid(Long registid); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
æå·è®°å½å表 |
| | | * |
| | | * @param patMedRegistration æ£è
æå·è®°å½ |
| | | * @return æ£è
æå·è®°å½éå |
| | | */ |
| | | public List<PatMedRegistration> selectPatMedRegistrationList(PatMedRegistration patMedRegistration); |
| | | |
| | | /** |
| | | * æ°å¢æ£è
æå·è®°å½ |
| | | * |
| | | * @param patMedRegistration æ£è
æå·è®°å½ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPatMedRegistration(PatMedRegistration patMedRegistration); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
æå·è®°å½ |
| | | * |
| | | * @param patMedRegistration æ£è
æå·è®°å½ |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatMedRegistration(PatMedRegistration patMedRegistration); |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
æå·è®°å½ |
| | | * |
| | | * @param registids éè¦å é¤çæ£è
æå·è®°å½ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatMedRegistrationByRegistids(Long[] registids); |
| | | |
| | | /** |
| | | * å 餿£è
æå·è®°å½ä¿¡æ¯ |
| | | * |
| | | * @param registid æ£è
æå·è®°å½ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatMedRegistrationByRegistid(Long registid); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.PatSpeciallist; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä¸ç
æ£è
Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-02 |
| | | */ |
| | | public interface IPatSpeciallistService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ä¸ç
æ£è
|
| | | * |
| | | * @param id ä¸ç
æ£è
ä¸»é® |
| | | * @return ä¸ç
æ£è
|
| | | */ |
| | | public PatSpeciallist selectPatSpeciallistById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ä¸ç
æ£è
å表 |
| | | * |
| | | * @param patSpeciallist ä¸ç
æ£è
|
| | | * @return ä¸ç
æ£è
éå |
| | | */ |
| | | public List<PatSpeciallist> selectPatSpeciallistList(PatSpeciallist patSpeciallist); |
| | | |
| | | /** |
| | | * æ°å¢ä¸ç
æ£è
|
| | | * |
| | | * @param patSpeciallist ä¸ç
æ£è
|
| | | * @return ç»æ |
| | | */ |
| | | public int insertPatSpeciallist(PatSpeciallist patSpeciallist); |
| | | |
| | | /** |
| | | * ä¿®æ¹ä¸ç
æ£è
|
| | | * |
| | | * @param patSpeciallist ä¸ç
æ£è
|
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatSpeciallist(PatSpeciallist patSpeciallist); |
| | | |
| | | /** |
| | | * æ¹éå é¤ä¸ç
æ£è
|
| | | * |
| | | * @param ids éè¦å é¤çä¸ç
æ£è
主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatSpeciallistByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤ä¸ç
æ£è
ä¿¡æ¯ |
| | | * |
| | | * @param id ä¸ç
æ£è
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatSpeciallistById(Long id); |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.smartor.domain.SvyLibTemplate; |
| | | import com.smartor.domain.SvyLibTemplateReq; |
| | | import com.smartor.domain.SvyLibTemplateVO; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | /** |
| | |
| | | * @param svyLibTemplateReq é®å· |
| | | * @return é®å·éå |
| | | */ |
| | | public List<SvyLibTemplate> selectSvyLibTemplateList(SvyLibTemplateReq svyLibTemplateReq); |
| | | public List<SvyLibTemplateVO> selectSvyLibTemplateList(SvyLibTemplateReq svyLibTemplateReq); |
| | | |
| | | // /** |
| | | // * æ°å¢é®å· |
| | |
| | | * @param svyLibTemplate |
| | | * @return |
| | | */ |
| | | public Integer saveOrUpdateTemplate(@RequestBody SvyLibTemplate svyLibTemplate); |
| | | public Integer saveOrUpdateTemplate(SvyLibTemplateVO svyLibTemplateVO); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å· |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.BaseTag; |
| | | import com.smartor.domain.PerSonWorkbenchDto; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ ç¾Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-02 |
| | | */ |
| | | public interface PersonWorkbenchService { |
| | | /** |
| | | * å½åç»å½ç¨æ·çé¨è¯ãå¨é¢ãåºé¢ç
人çç»è®¡æ
åµ |
| | | */ |
| | | public List<PerSonWorkbenchDto> getPatCount(String detpId, String drCode); |
| | | |
| | | } |
| | |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Boolean update(PatArchive patArchive) { |
| | | int i = patArchiveMapper.updatePatArchive(patArchive); |
| | | if (i != 1) { |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹æ£è
æ¡£ä¿¡æ¯ |
| | | * |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.PatFilterlist; |
| | | import com.smartor.mapper.PatFilterlistMapper; |
| | | import com.smartor.service.IPatFilterlistService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
è¿æ»¤ååServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-02 |
| | | */ |
| | | @Service |
| | | public class PatFilterlistServiceImpl implements IPatFilterlistService |
| | | { |
| | | @Autowired |
| | | private PatFilterlistMapper patFilterlistMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
è¿æ»¤åå |
| | | * |
| | | * @param id æ£è
è¿æ»¤ååä¸»é® |
| | | * @return æ£è
è¿æ»¤åå |
| | | */ |
| | | @Override |
| | | public PatFilterlist selectPatFilterlistById(Long id) |
| | | { |
| | | return patFilterlistMapper.selectPatFilterlistById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
è¿æ»¤ååå表 |
| | | * |
| | | * @param patFilterlist æ£è
è¿æ»¤åå |
| | | * @return æ£è
è¿æ»¤åå |
| | | */ |
| | | @Override |
| | | public List<PatFilterlist> selectPatFilterlistList(PatFilterlist patFilterlist) |
| | | { |
| | | return patFilterlistMapper.selectPatFilterlistList(patFilterlist); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ£è
è¿æ»¤åå |
| | | * |
| | | * @param patFilterlist æ£è
è¿æ»¤åå |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertPatFilterlist(PatFilterlist patFilterlist) |
| | | { |
| | | patFilterlist.setCreateTime(DateUtils.getNowDate()); |
| | | return patFilterlistMapper.insertPatFilterlist(patFilterlist); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
è¿æ»¤åå |
| | | * |
| | | * @param patFilterlist æ£è
è¿æ»¤åå |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updatePatFilterlist(PatFilterlist patFilterlist) |
| | | { |
| | | patFilterlist.setUpdateTime(DateUtils.getNowDate()); |
| | | return patFilterlistMapper.updatePatFilterlist(patFilterlist); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
è¿æ»¤åå |
| | | * |
| | | * @param ids éè¦å é¤çæ£è
è¿æ»¤ååä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatFilterlistByIds(Long[] ids) |
| | | { |
| | | return patFilterlistMapper.deletePatFilterlistByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿£è
è¿æ»¤ååä¿¡æ¯ |
| | | * |
| | | * @param id æ£è
è¿æ»¤ååä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatFilterlistById(Long id) |
| | | { |
| | | return patFilterlistMapper.deletePatFilterlistById(id); |
| | | } |
| | | } |
| | |
| | | public int insertPatMedOuthosp(PatMedOuthosp patMedOuthosp) |
| | | { |
| | | patMedOuthosp.setCreateTime(DateUtils.getNowDate()); |
| | | patMedOuthosp.setUpdateTime(DateUtils.getNowDate()); |
| | | return patMedOuthospMapper.insertPatMedOuthosp(patMedOuthosp); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.PatMedRegistration; |
| | | import com.smartor.mapper.PatMedRegistrationMapper; |
| | | import com.smartor.service.IPatMedRegistrationService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
æå·è®°å½Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-01 |
| | | */ |
| | | @Service |
| | | public class PatMedRegistrationServiceImpl implements IPatMedRegistrationService |
| | | { |
| | | @Autowired |
| | | private PatMedRegistrationMapper patMedRegistrationMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
æå·è®°å½ |
| | | * |
| | | * @param registid æ£è
æå·è®°å½ä¸»é® |
| | | * @return æ£è
æå·è®°å½ |
| | | */ |
| | | @Override |
| | | public PatMedRegistration selectPatMedRegistrationByRegistid(Long registid) |
| | | { |
| | | return patMedRegistrationMapper.selectPatMedRegistrationByRegistid(registid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
æå·è®°å½å表 |
| | | * |
| | | * @param patMedRegistration æ£è
æå·è®°å½ |
| | | * @return æ£è
æå·è®°å½ |
| | | */ |
| | | @Override |
| | | public List<PatMedRegistration> selectPatMedRegistrationList(PatMedRegistration patMedRegistration) |
| | | { |
| | | return patMedRegistrationMapper.selectPatMedRegistrationList(patMedRegistration); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ£è
æå·è®°å½ |
| | | * |
| | | * @param patMedRegistration æ£è
æå·è®°å½ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertPatMedRegistration(PatMedRegistration patMedRegistration) |
| | | { |
| | | patMedRegistration.setCreateTime(DateUtils.getNowDate()); |
| | | return patMedRegistrationMapper.insertPatMedRegistration(patMedRegistration); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
æå·è®°å½ |
| | | * |
| | | * @param patMedRegistration æ£è
æå·è®°å½ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updatePatMedRegistration(PatMedRegistration patMedRegistration) |
| | | { |
| | | patMedRegistration.setUpdateTime(DateUtils.getNowDate()); |
| | | return patMedRegistrationMapper.updatePatMedRegistration(patMedRegistration); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
æå·è®°å½ |
| | | * |
| | | * @param registids éè¦å é¤çæ£è
æå·è®°å½ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatMedRegistrationByRegistids(Long[] registids) |
| | | { |
| | | return patMedRegistrationMapper.deletePatMedRegistrationByRegistids(registids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿£è
æå·è®°å½ä¿¡æ¯ |
| | | * |
| | | * @param registid æ£è
æå·è®°å½ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatMedRegistrationByRegistid(Long registid) |
| | | { |
| | | return patMedRegistrationMapper.deletePatMedRegistrationByRegistid(registid); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.PatSpeciallist; |
| | | import com.smartor.mapper.PatSpeciallistMapper; |
| | | import com.smartor.service.IPatSpeciallistService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä¸ç
æ£è
Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-08-02 |
| | | */ |
| | | @Service |
| | | public class PatSpeciallistServiceImpl implements IPatSpeciallistService |
| | | { |
| | | @Autowired |
| | | private PatSpeciallistMapper patSpeciallistMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ä¸ç
æ£è
|
| | | * |
| | | * @param id ä¸ç
æ£è
ä¸»é® |
| | | * @return ä¸ç
æ£è
|
| | | */ |
| | | @Override |
| | | public PatSpeciallist selectPatSpeciallistById(Long id) |
| | | { |
| | | return patSpeciallistMapper.selectPatSpeciallistById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ä¸ç
æ£è
å表 |
| | | * |
| | | * @param patSpeciallist ä¸ç
æ£è
|
| | | * @return ä¸ç
æ£è
|
| | | */ |
| | | @Override |
| | | public List<PatSpeciallist> selectPatSpeciallistList(PatSpeciallist patSpeciallist) |
| | | { |
| | | return patSpeciallistMapper.selectPatSpeciallistList(patSpeciallist); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ä¸ç
æ£è
|
| | | * |
| | | * @param patSpeciallist ä¸ç
æ£è
|
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertPatSpeciallist(PatSpeciallist patSpeciallist) |
| | | { |
| | | patSpeciallist.setCreateTime(DateUtils.getNowDate()); |
| | | return patSpeciallistMapper.insertPatSpeciallist(patSpeciallist); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ä¸ç
æ£è
|
| | | * |
| | | * @param patSpeciallist ä¸ç
æ£è
|
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updatePatSpeciallist(PatSpeciallist patSpeciallist) |
| | | { |
| | | patSpeciallist.setUpdateTime(DateUtils.getNowDate()); |
| | | return patSpeciallistMapper.updatePatSpeciallist(patSpeciallist); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ä¸ç
æ£è
|
| | | * |
| | | * @param ids éè¦å é¤çä¸ç
æ£è
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatSpeciallistByIds(Long[] ids) |
| | | { |
| | | return patSpeciallistMapper.deletePatSpeciallistByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä¸ç
æ£è
ä¿¡æ¯ |
| | | * |
| | | * @param id ä¸ç
æ£è
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatSpeciallistById(Long id) |
| | | { |
| | | return patSpeciallistMapper.deletePatSpeciallistById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.Icd10; |
| | | import com.smartor.domain.PerSonWorkbenchDto; |
| | | import com.smartor.mapper.Icd10Mapper; |
| | | import com.smartor.mapper.PatArchiveOutMapper; |
| | | import com.smartor.service.IIcd10Service; |
| | | import com.smartor.service.PersonWorkbenchService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¾ç
Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-21 |
| | | */ |
| | | @Service |
| | | public class PersonWorkbenchServiceImpl implements PersonWorkbenchService { |
| | | @Autowired |
| | | private PatArchiveOutMapper patArchiveOutMapper; |
| | | |
| | | @Override |
| | | public List<PerSonWorkbenchDto> getPatCount(String detpId, String drCode) { |
| | | long[] deptIds = Arrays.stream(detpId.split(",")).mapToLong(Long::parseLong).toArray(); |
| | | String[] drCodes = drCode.split(","); |
| | | |
| | | List<PerSonWorkbenchDto> perSonWorkbenchDtos = patArchiveOutMapper.selectPatArchiveCount(deptIds, drCodes); |
| | | return perSonWorkbenchDtos; |
| | | } |
| | | } |
| | |
| | | @Override |
| | | public int insertServiceTask(ServiceTask serviceTask) { |
| | | serviceTask.setCreateTime(DateUtils.getNowDate()); |
| | | serviceTask.setUpdateTime(DateUtils.getNowDate()); |
| | | return serviceTaskMapper.insertServiceTask(serviceTask); |
| | | } |
| | | |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.*; |
| | |
| | | private TempDetpRelevanceMapper tempDetpRelevanceMapper; |
| | | @Autowired |
| | | private SvyLibTemplateTagMapper svyLibTemplateTagMapper; |
| | | @Autowired |
| | | private Icd10AssociationMapper icd10AssociationMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å· |
| | |
| | | * @return é®å· |
| | | */ |
| | | @Override |
| | | public List<SvyLibTemplate> selectSvyLibTemplateList(SvyLibTemplateReq svyLibTemplateReq) { |
| | | public List<SvyLibTemplateVO> selectSvyLibTemplateList(SvyLibTemplateReq svyLibTemplateReq) { |
| | | List<SvyLibTemplate> svyLibTemplates = svyLibTemplateMapper.selectSvyLibTemplateList(svyLibTemplateReq); |
| | | List<SvyLibTemplateVO> svyLibTemplateVOS = DtoConversionUtils.sourceToTarget(svyLibTemplates, SvyLibTemplateVO.class); |
| | | //æ·»å é¢ç® |
| | | for (int i = 0; i < svyLibTemplates.size(); i++) { |
| | | for (int i = 0; i < svyLibTemplateVOS.size(); i++) { |
| | | SvyLibTemplateScript svyLibTemplateScript = new SvyLibTemplateScript(); |
| | | svyLibTemplateScript.setSvyid(svyLibTemplates.get(i).getSvyid()); |
| | | svyLibTemplateScript.setSvyid(svyLibTemplateVOS.get(i).getSvyid()); |
| | | List<SvyLibTemplateScript> svyLibTemplateScripts = svyLibTemplateScriptMapper.selectSvyLibTemplateScriptList(svyLibTemplateScript); |
| | | //è·åé¢ç®é项 |
| | | a: |
| | |
| | | } |
| | | } |
| | | //å°é¢ç®æ¾å°é®å·åè¡¨ä¸ |
| | | svyLibTemplates.get(i).setSvyTemplateLibScripts(svyLibTemplateScripts); |
| | | svyLibTemplateVOS.get(i).setSvyTemplateLibScripts(svyLibTemplateScripts); |
| | | |
| | | //è·åæ¯ä¸ªé®å·å¯¹åºçç§å®¤ |
| | | TempDetpRelevance tempDetpRelevance = new TempDetpRelevance(); |
| | | tempDetpRelevance.setTempid(svyLibTemplates.get(i).getSvyid()); |
| | | tempDetpRelevance.setTempid(svyLibTemplateVOS.get(i).getSvyid()); |
| | | List<TempDetpRelevance> tempDetpRelevances = tempDetpRelevanceMapper.selectTempDetpRelevanceList(tempDetpRelevance); |
| | | svyLibTemplates.get(i).setTempDetpRelevances(CollectionUtils.isNotEmpty(tempDetpRelevances) ? tempDetpRelevances : new ArrayList<>()); |
| | | svyLibTemplateVOS.get(i).setTempDetpRelevances(CollectionUtils.isNotEmpty(tempDetpRelevances) ? tempDetpRelevances : new ArrayList<>()); |
| | | |
| | | //è·åæ ç¾ |
| | | SvyLibTemplateTag svyLibTemplateTag = new SvyLibTemplateTag(); |
| | | svyLibTemplateTag.setTemplateid(svyLibTemplates.get(i).getSvyid()); |
| | | svyLibTemplateTag.setTemplateid(svyLibTemplateVOS.get(i).getSvyid()); |
| | | List<SvyLibTemplateTag> svyLibTemplateTags = svyLibTemplateTagMapper.selectSvyLibTemplateTagList(svyLibTemplateTag); |
| | | svyLibTemplates.get(i).setSvyLibTemplateTagList(svyLibTemplateTags); |
| | | svyLibTemplateVOS.get(i).setSvyLibTemplateTagList(svyLibTemplateTags); |
| | | |
| | | //è·åç¾ç
|
| | | Icd10Association icd10Association = new Icd10Association(); |
| | | icd10Association.setType(5L); |
| | | icd10Association.setOutid(svyLibTemplateVOS.get(i).getSvyid()); |
| | | svyLibTemplateVOS.get(i).setIcd10AssociationList(icd10AssociationMapper.selectIcd10AssociationList(icd10Association)); |
| | | |
| | | } |
| | | |
| | | //å
å°ç¸åçidçicdname,æ´çå°ä¸å |
| | | List<SvyLibTemplate> libTemplates = svyLibTemplates.stream().collect(Collectors.groupingBy(SvyLibTemplate::getSvyid, Collectors.mapping(SvyLibTemplate::getIcdname, Collectors.joining(", ")))).entrySet().stream().map(entry -> new SvyLibTemplate(entry.getKey(), entry.getValue())).collect(Collectors.toList()); |
| | | List<SvyLibTemplateVO> libTemplates = svyLibTemplateVOS.stream().collect(Collectors.groupingBy(SvyLibTemplateVO::getSvyid, Collectors.mapping(SvyLibTemplateVO::getIcdname, Collectors.joining(", ")))).entrySet().stream().map(entry -> new SvyLibTemplateVO(entry.getKey(), entry.getValue())).collect(Collectors.toList()); |
| | | //临æ¶åéï¼ç¨æ¥ä¿åç¾ç
åç§° |
| | | String icdname = null; |
| | | for (int i = 0; i < libTemplates.size(); i++) { |
| | | for (int j = 0; j < svyLibTemplates.size(); j++) { |
| | | if (ObjectUtils.isNotEmpty(libTemplates.get(i).getSvyid()) && libTemplates.get(i).getSvyid() == svyLibTemplates.get(j).getSvyid()) { |
| | | for (int j = 0; j < svyLibTemplateVOS.size(); j++) { |
| | | if (ObjectUtils.isNotEmpty(libTemplates.get(i).getSvyid()) && libTemplates.get(i).getSvyid() == svyLibTemplateVOS.get(j).getSvyid()) { |
| | | icdname = libTemplates.get(i).getIcdname(); |
| | | // å°åæ°æ®æ·è´å°æ´çç好çå¯¹è±¡ä¸ |
| | | BeanUtils.copyProperties(svyLibTemplates.get(j), libTemplates.get(i)); |
| | | BeanUtils.copyProperties(svyLibTemplateVOS.get(j), libTemplates.get(i)); |
| | | //åå°æ´ç好çâç¾ç
åç§°âæ¿æ¢ |
| | | libTemplates.get(i).setIcdname(icdname); |
| | | } |
| | | } |
| | | } |
| | | return libTemplates; |
| | | |
| | | return svyLibTemplateVOS; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹é®å·æ¨¡æ¿ä¿¡æ¯ |
| | | * |
| | | * @param svyLibTemplate |
| | | * @param svyLibTemplateVO |
| | | * @return |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public Integer saveOrUpdateTemplate(SvyLibTemplate svyLibTemplate) { |
| | | public Integer saveOrUpdateTemplate(SvyLibTemplateVO svyLibTemplateVO) { |
| | | SvyLibTemplate svyLibTemplate = DtoConversionUtils.sourceToTarget(svyLibTemplateVO, SvyLibTemplate.class); |
| | | Integer i = null; |
| | | if (svyLibTemplate.getIsoperation() != null && svyLibTemplate.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | |
| | | } |
| | | |
| | | } |
| | | if (CollectionUtils.isNotEmpty(svyLibTemplateVO.getIcd10AssociationList())) { |
| | | for (Icd10Association icd10Association : svyLibTemplateVO.getIcd10AssociationList()) { |
| | | if (icd10Association.getId() == null) { |
| | | icd10Association.setType(5L); |
| | | icd10Association.setOutid(svyLibTemplate.getSvyid()); |
| | | icd10AssociationMapper.insertIcd10Association(icd10Association); |
| | | } else { |
| | | icd10Association.setType(5L); |
| | | icd10Association.setOutid(svyLibTemplate.getSvyid()); |
| | | icd10AssociationMapper.updateIcd10Association(icd10Association); |
| | | } |
| | | } |
| | | } |
| | | return i; |
| | | } |
| | | |
| | |
| | | <if test="scriptTopic != null">script_topic = #{scriptTopic},</if> |
| | | <if test="nextScriptno != null">next_scriptno = #{nextScriptno},</if> |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | <if test="isMust != null and isMust != ''">is_must = #{isMust}</if> |
| | | <if test="scriptDesc != null ">script_desc = #{scriptDesc}</if> |
| | | <if test="scriptType != null ">script_type = #{scriptType}</if> |
| | | <if test="sort != null ">sort = #{sort}</if> |
| | | <if test="isMust != null and isMust != ''">is_must = #{isMust},</if> |
| | | <if test="scriptDesc != null ">script_desc = #{scriptDesc},</if> |
| | | <if test="scriptType != null ">script_type = #{scriptType},</if> |
| | | <if test="sort != null ">sort = #{sort},</if> |
| | | <if test="branchFlag != null and branchFlag != ''">branch_flag = #{branchFlag},</if> |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">branch_nextscriptno = |
| | | #{branchNextscriptno}, |
| | |
| | | where patid = #{patid} |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveCount" parameterType="Long" resultType="com.smartor.domain.PerSonWorkbenchDto"> |
| | | select aa.name1 as name, aa.count as count |
| | | from ( |
| | | SELECT "ä½é¢" as name1, count(1) as count FROM `pat_med_inhosp` |
| | | <where> |
| | | del_flag = 0 and endtime = null |
| | | <if test="deptIds != null ">and deptId in |
| | | <foreach collection="deptIds" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | </if> |
| | | <if test="drCodes != null ">and drcode in |
| | | <foreach collection="drCodes" item="drCode" open="(" separator="," close=")"> |
| | | #{drCode} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | union |
| | | select "åºé¢" name1, count(1) as count FROM `pat_med_inhosp` |
| | | <where> |
| | | del_flag=0 and endtime != null |
| | | <if test="deptIds != null ">and deptId in |
| | | <foreach collection="deptIds" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | </if> |
| | | <if test="drCodes != null ">and drcode in |
| | | <foreach collection="drCodes" item="drCode" open="(" separator="," close=")"> |
| | | #{drCode} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | union |
| | | select "é¨è¯" name1, count(1) as count FROM `pat_med_outhosp` |
| | | where del_flag=0 |
| | | ) aa |
| | | |
| | | </select> |
| | | |
| | | <insert id="insertPatArchiveOut" parameterType="com.smartor.domain.PatArchiveOut" useGeneratedKeys="true" |
| | | keyProperty="patid"> |
| | | insert into pat_archive_out |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.PatFilterlistMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.PatFilterlist" id="PatFilterlistResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="patid" column="patid" /> |
| | | <result property="filtertype" column="filtertype" /> |
| | | <result property="filterdesc" column="filterdesc" /> |
| | | <result property="filternotes" column="filternotes" /> |
| | | <result property="applyTime" column="apply_time" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="checkBy" column="check_by" /> |
| | | <result property="checkFlag" column="check_flag" /> |
| | | <result property="checkTime" column="check_time" /> |
| | | <result property="checkdesc" column="checkdesc" /> |
| | | <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="orgid" column="orgid" /> |
| | | <result property="pid" column="pid" /> |
| | | <result property="guid" column="guid" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatFilterlistVo"> |
| | | select id, patid, filtertype, filterdesc, filternotes, apply_time, del_flag, check_by, check_flag, check_time, checkdesc, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid from pat_filterlist |
| | | </sql> |
| | | |
| | | <select id="selectPatFilterlistList" parameterType="com.smartor.domain.PatFilterlist" resultMap="PatFilterlistResult"> |
| | | <include refid="selectPatFilterlistVo"/> |
| | | <where> |
| | | <if test="patid != null "> and patid = #{patid}</if> |
| | | <if test="filtertype != null and filtertype != ''"> and filtertype = #{filtertype}</if> |
| | | <if test="filterdesc != null and filterdesc != ''"> and filterdesc = #{filterdesc}</if> |
| | | <if test="filternotes != null and filternotes != ''"> and filternotes = #{filternotes}</if> |
| | | <if test="applyTime != null "> and apply_time = #{applyTime}</if> |
| | | <if test="checkBy != null "> and check_by = #{checkBy}</if> |
| | | <if test="checkFlag != null and checkFlag != ''"> and check_flag = #{checkFlag}</if> |
| | | <if test="checkTime != null "> and check_time = #{checkTime}</if> |
| | | <if test="checkdesc != null and checkdesc != ''"> and checkdesc = #{checkdesc}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="pid != null "> and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''"> and guid = #{guid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatFilterlistById" parameterType="Long" resultMap="PatFilterlistResult"> |
| | | <include refid="selectPatFilterlistVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPatFilterlist" parameterType="com.smartor.domain.PatFilterlist" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into pat_filterlist |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="patid != null">patid,</if> |
| | | <if test="filtertype != null">filtertype,</if> |
| | | <if test="filterdesc != null">filterdesc,</if> |
| | | <if test="filternotes != null">filternotes,</if> |
| | | <if test="applyTime != null">apply_time,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="checkBy != null">check_by,</if> |
| | | <if test="checkFlag != null">check_flag,</if> |
| | | <if test="checkTime != null">check_time,</if> |
| | | <if test="checkdesc != null">checkdesc,</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="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="patid != null">#{patid},</if> |
| | | <if test="filtertype != null">#{filtertype},</if> |
| | | <if test="filterdesc != null">#{filterdesc},</if> |
| | | <if test="filternotes != null">#{filternotes},</if> |
| | | <if test="applyTime != null">#{applyTime},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="checkBy != null">#{checkBy},</if> |
| | | <if test="checkFlag != null">#{checkFlag},</if> |
| | | <if test="checkTime != null">#{checkTime},</if> |
| | | <if test="checkdesc != null">#{checkdesc},</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="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatFilterlist" parameterType="com.smartor.domain.PatFilterlist"> |
| | | update pat_filterlist |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="patid != null">patid = #{patid},</if> |
| | | <if test="filtertype != null">filtertype = #{filtertype},</if> |
| | | <if test="filterdesc != null">filterdesc = #{filterdesc},</if> |
| | | <if test="filternotes != null">filternotes = #{filternotes},</if> |
| | | <if test="applyTime != null">apply_time = #{applyTime},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="checkBy != null">check_by = #{checkBy},</if> |
| | | <if test="checkFlag != null">check_flag = #{checkFlag},</if> |
| | | <if test="checkTime != null">check_time = #{checkTime},</if> |
| | | <if test="checkdesc != null">checkdesc = #{checkdesc},</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="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deletePatFilterlistById" parameterType="Long"> |
| | | update pat_filterlist |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag =1,</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deletePatFilterlistByIds" parameterType="String"> |
| | | delete from pat_filterlist where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="outhospno != null and outhospno != ''">and outhospno = #{outhospno}</if> |
| | | </where> |
| | | order by update_time desc |
| | | </select> |
| | | |
| | | <select id="selectPatMedOuthospById" parameterType="Long" resultMap="PatMedOuthospResult"> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.PatMedRegistrationMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.PatMedRegistration" id="PatMedRegistrationResult"> |
| | | <result property="registid" column="registid"/> |
| | | <result property="serialnum" column="serialnum"/> |
| | | <result property="patid" column="patid"/> |
| | | <result property="hospitalname" column="hospitalname"/> |
| | | <result property="hospitalcode" column="hospitalcode"/> |
| | | <result property="deptcode" column="deptcode"/> |
| | | <result property="deptname" column="deptname"/> |
| | | <result property="deptid" column="deptid"/> |
| | | <result property="state" column="state"/> |
| | | <result property="appointmenttime" column="appointmenttime"/> |
| | | <result property="appointmenttimetype" column="appointmenttimetype"/> |
| | | <result property="appointmentcode" column="appointmentcode"/> |
| | | <result property="appointmentbegintime" column="appointmentbegintime"/> |
| | | <result property="appointmentendtime" column="appointmentendtime"/> |
| | | <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="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatMedRegistrationVo"> |
| | | select registid, |
| | | serialnum, |
| | | patid, |
| | | hospitalname, |
| | | hospitalcode, |
| | | deptcode, |
| | | deptname, |
| | | deptid, |
| | | state, |
| | | appointmenttime, |
| | | appointmenttimetype, |
| | | appointmentcode, |
| | | appointmentbegintime, |
| | | appointmentendtime, |
| | | orgid, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | pid, |
| | | guid |
| | | from pat_med_registration |
| | | </sql> |
| | | |
| | | <select id="selectPatMedRegistrationList" parameterType="com.smartor.domain.PatMedRegistration" |
| | | resultMap="PatMedRegistrationResult"> |
| | | <include refid="selectPatMedRegistrationVo"/> |
| | | <where> |
| | | <if test="serialnum != null and serialnum != ''">and serialnum = #{serialnum}</if> |
| | | <if test="patid != null ">and patid = #{patid}</if> |
| | | <if test="hospitalname != null and hospitalname != ''">and hospitalname like concat('%', #{hospitalname}, |
| | | '%') |
| | | </if> |
| | | <if test="hospitalcode != null and hospitalcode != ''">and hospitalcode = #{hospitalcode}</if> |
| | | <if test="deptcode != null and deptcode != ''">and deptcode = #{deptcode}</if> |
| | | <if test="deptname != null and deptname != ''">and deptname like concat('%', #{deptname}, '%')</if> |
| | | <if test="deptid != null ">and deptid = #{deptid}</if> |
| | | <if test="state != null ">and state = #{state}</if> |
| | | <if test="appointmenttime != null ">and appointmenttime = #{appointmenttime}</if> |
| | | <if test="appointmenttimetype != null ">and appointmenttimetype = #{appointmenttimetype}</if> |
| | | <if test="appointmentcode != null and appointmentcode != ''">and appointmentcode = #{appointmentcode}</if> |
| | | <if test="appointmentbegintime != null ">and appointmentbegintime = #{appointmentbegintime}</if> |
| | | <if test="appointmentendtime != null ">and appointmentendtime = #{appointmentendtime}</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="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatMedRegistrationByRegistid" parameterType="Long" resultMap="PatMedRegistrationResult"> |
| | | <include refid="selectPatMedRegistrationVo"/> |
| | | where registid = #{registid} |
| | | </select> |
| | | |
| | | <insert id="insertPatMedRegistration" parameterType="com.smartor.domain.PatMedRegistration"> |
| | | insert into pat_med_registration |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="registid != null">registid,</if> |
| | | <if test="serialnum != null">serialnum,</if> |
| | | <if test="patid != null">patid,</if> |
| | | <if test="hospitalname != null">hospitalname,</if> |
| | | <if test="hospitalcode != null">hospitalcode,</if> |
| | | <if test="deptcode != null">deptcode,</if> |
| | | <if test="deptname != null">deptname,</if> |
| | | <if test="deptid != null">deptid,</if> |
| | | <if test="state != null">state,</if> |
| | | <if test="appointmenttime != null">appointmenttime,</if> |
| | | <if test="appointmenttimetype != null">appointmenttimetype,</if> |
| | | <if test="appointmentcode != null">appointmentcode,</if> |
| | | <if test="appointmentbegintime != null">appointmentbegintime,</if> |
| | | <if test="appointmentendtime != null">appointmentendtime,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="delFlag != null">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="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="registid != null">#{registid},</if> |
| | | <if test="serialnum != null">#{serialnum},</if> |
| | | <if test="patid != null">#{patid},</if> |
| | | <if test="hospitalname != null">#{hospitalname},</if> |
| | | <if test="hospitalcode != null">#{hospitalcode},</if> |
| | | <if test="deptcode != null">#{deptcode},</if> |
| | | <if test="deptname != null">#{deptname},</if> |
| | | <if test="deptid != null">#{deptid},</if> |
| | | <if test="state != null">#{state},</if> |
| | | <if test="appointmenttime != null">#{appointmenttime},</if> |
| | | <if test="appointmenttimetype != null">#{appointmenttimetype},</if> |
| | | <if test="appointmentcode != null">#{appointmentcode},</if> |
| | | <if test="appointmentbegintime != null">#{appointmentbegintime},</if> |
| | | <if test="appointmentendtime != null">#{appointmentendtime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="delFlag != null">#{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="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatMedRegistration" parameterType="com.smartor.domain.PatMedRegistration"> |
| | | update pat_med_registration |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="serialnum != null">serialnum = #{serialnum},</if> |
| | | <if test="patid != null">patid = #{patid},</if> |
| | | <if test="hospitalname != null">hospitalname = #{hospitalname},</if> |
| | | <if test="hospitalcode != null">hospitalcode = #{hospitalcode},</if> |
| | | <if test="deptcode != null">deptcode = #{deptcode},</if> |
| | | <if test="deptname != null">deptname = #{deptname},</if> |
| | | <if test="deptid != null">deptid = #{deptid},</if> |
| | | <if test="state != null">state = #{state},</if> |
| | | <if test="appointmenttime != null">appointmenttime = #{appointmenttime},</if> |
| | | <if test="appointmenttimetype != null">appointmenttimetype = #{appointmenttimetype},</if> |
| | | <if test="appointmentcode != null">appointmentcode = #{appointmentcode},</if> |
| | | <if test="appointmentbegintime != null">appointmentbegintime = #{appointmentbegintime},</if> |
| | | <if test="appointmentendtime != null">appointmentendtime = #{appointmentendtime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="delFlag != null">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="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where registid = #{registid} |
| | | </update> |
| | | |
| | | <delete id="deletePatMedRegistrationByRegistid" parameterType="Long"> |
| | | delete |
| | | from pat_med_registration |
| | | where registid = #{registid} |
| | | </delete> |
| | | |
| | | <update id="deletePatMedRegistrationByRegistids" parameterType="Long"> |
| | | update pat_med_registration |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where registid in |
| | | <foreach item="registid" collection="array" open="(" separator="," close=")"> |
| | | #{registid} |
| | | </foreach> |
| | | </update> |
| | | </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.PatSpeciallistMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.PatSpeciallist" id="PatSpeciallistResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="patid" column="patid" /> |
| | | <result property="sdtype" column="sdtype" /> |
| | | <result property="sddesc" column="sddesc" /> |
| | | <result property="sdnotes" column="sdnotes" /> |
| | | <result property="applyTime" column="apply_time" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="checkBy" column="check_by" /> |
| | | <result property="checkFlag" column="check_flag" /> |
| | | <result property="checkTime" column="check_time" /> |
| | | <result property="checkdesc" column="checkdesc" /> |
| | | <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="uploadFlag" column="upload_flag" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | <result property="orgid" column="orgid" /> |
| | | <result property="pid" column="pid" /> |
| | | <result property="guid" column="guid" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatSpeciallistVo"> |
| | | select id, patid, sdtype, sddesc, sdnotes, apply_time, del_flag, check_by, check_flag, check_time, checkdesc, update_by, update_time, create_by, create_time, upload_flag, upload_time, orgid, pid, guid from pat_speciallist |
| | | </sql> |
| | | |
| | | <select id="selectPatSpeciallistList" parameterType="com.smartor.domain.PatSpeciallist" resultMap="PatSpeciallistResult"> |
| | | <include refid="selectPatSpeciallistVo"/> |
| | | <where> |
| | | <if test="patid != null "> and patid = #{patid}</if> |
| | | <if test="sdtype != null and sdtype != ''"> and sdtype = #{sdtype}</if> |
| | | <if test="sddesc != null and sddesc != ''"> and sddesc = #{sddesc}</if> |
| | | <if test="sdnotes != null and sdnotes != ''"> and sdnotes = #{sdnotes}</if> |
| | | <if test="applyTime != null "> and apply_time = #{applyTime}</if> |
| | | <if test="checkBy != null "> and check_by = #{checkBy}</if> |
| | | <if test="checkFlag != null and checkFlag != ''"> and check_flag = #{checkFlag}</if> |
| | | <if test="checkTime != null "> and check_time = #{checkTime}</if> |
| | | <if test="checkdesc != null and checkdesc != ''"> and checkdesc = #{checkdesc}</if> |
| | | <if test="uploadFlag != null "> and upload_flag = #{uploadFlag}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="pid != null "> and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''"> and guid = #{guid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatSpeciallistById" parameterType="Long" resultMap="PatSpeciallistResult"> |
| | | <include refid="selectPatSpeciallistVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPatSpeciallist" parameterType="com.smartor.domain.PatSpeciallist" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into pat_speciallist |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="patid != null">patid,</if> |
| | | <if test="sdtype != null">sdtype,</if> |
| | | <if test="sddesc != null">sddesc,</if> |
| | | <if test="sdnotes != null">sdnotes,</if> |
| | | <if test="applyTime != null">apply_time,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="checkBy != null">check_by,</if> |
| | | <if test="checkFlag != null">check_flag,</if> |
| | | <if test="checkTime != null">check_time,</if> |
| | | <if test="checkdesc != null">checkdesc,</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="uploadFlag != null">upload_flag,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="patid != null">#{patid},</if> |
| | | <if test="sdtype != null">#{sdtype},</if> |
| | | <if test="sddesc != null">#{sddesc},</if> |
| | | <if test="sdnotes != null">#{sdnotes},</if> |
| | | <if test="applyTime != null">#{applyTime},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="checkBy != null">#{checkBy},</if> |
| | | <if test="checkFlag != null">#{checkFlag},</if> |
| | | <if test="checkTime != null">#{checkTime},</if> |
| | | <if test="checkdesc != null">#{checkdesc},</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="uploadFlag != null">#{uploadFlag},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatSpeciallist" parameterType="com.smartor.domain.PatSpeciallist"> |
| | | update pat_speciallist |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="patid != null">patid = #{patid},</if> |
| | | <if test="sdtype != null">sdtype = #{sdtype},</if> |
| | | <if test="sddesc != null">sddesc = #{sddesc},</if> |
| | | <if test="sdnotes != null">sdnotes = #{sdnotes},</if> |
| | | <if test="applyTime != null">apply_time = #{applyTime},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="checkBy != null">check_by = #{checkBy},</if> |
| | | <if test="checkFlag != null">check_flag = #{checkFlag},</if> |
| | | <if test="checkTime != null">check_time = #{checkTime},</if> |
| | | <if test="checkdesc != null">checkdesc = #{checkdesc},</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="uploadFlag != null">upload_flag = #{uploadFlag},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deletePatSpeciallistById" parameterType="Long"> |
| | | update pat_speciallist |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag =1,</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deletePatSpeciallistByIds" parameterType="String"> |
| | | delete from pat_speciallist where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | <if test="checktime != null ">and checktime = #{checktime}</if> |
| | | <if test="type != null and type != ''">and type = #{type}</if> |
| | | <if test="typename != null and typename != ''">and typename like concat('%', #{typename}, '%')</if> |
| | | <if test="bgeinTime != null ">and date_format(update_time,'%y%m%d') >= date_format(#{endTime},'%y%m%d') |
| | | </if> |
| | | <if test="endTime != null ">and date_format(update_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') |
| | | </if> |
| | | |
| | | <if test="deptcode != null and deptcode != ''">and deptcode = #{deptcode}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | |
| | | <if test="hospType != null and hospType != ''">and hosp_type = #{hospType}</if> |
| | | <if test="libtemplateid != null ">and libtemplateid = #{libtemplateid}</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">and libtemplatename = #{libtemplatename}</if> |
| | | <if test="createBy != null and createBy != ''">and create_by = #{createBy}</if> |
| | | <if test="sendState != null ">and send_state = #{sendState}</if> |
| | | </where> |
| | | order by update_time desc,taskid desc |
| | | </select> |
| | |
| | | <if test="categoryid != null ">and a.categoryid = #{categoryid}</if> |
| | | <if test="svyid != null ">and a.svyid = #{svyid}</if> |
| | | <if test="svyname != null and svyname != ''">and a.svyname like concat('%', #{svyname}, '%')</if> |
| | | <if test="description != null and description != ''">and a.icdname like concat('%', #{description}, '%') |
| | | <if test="description != null and description != ''">and b.icd10name like concat('%', #{description}, '%') |
| | | </if> |
| | | </where> |
| | | order by a.create_time desc |