| | |
| | | import com.smartor.service.IPatChildArchiveDetailService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | } |
| | | |
| | | @ApiOperation("è·åå¿ç§æ¡£æ¡è¯¦æ
详ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('system:childArchiveDetail:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patChildArchiveDetailService.selectPatChildArchiveDetailById(id)); |
| | | @GetMapping(value = "/getInfo/{archiveid}") |
| | | public AjaxResult getInfo(@PathVariable("archiveid") Long archiveid) { |
| | | PatChildArchiveDetail patChildArchiveDetail = new PatChildArchiveDetail(); |
| | | patChildArchiveDetail.setArchiveid(archiveid); |
| | | List<PatChildArchiveDetail> list = patChildArchiveDetailService.selectPatChildArchiveDetailList(patChildArchiveDetail); |
| | | if(CollectionUtils.isNotEmpty(list)){ |
| | | return success(list.get(0)); |
| | | }else return success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ°å¢å¿ç§æ¡£æ¡è¯¦æ
") |
| | |
| | | import com.smartor.service.IPatMaternityArchiveDetailService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | } |
| | | |
| | | @ApiOperation("è·åå¦ç§æ¡£æ¡è¯¦æ
详ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('system:maternityArchiveDetail:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMaternityArchiveDetailService.selectPatMaternityArchiveDetailById(id)); |
| | | @GetMapping(value = "/getInfo/{archiveid}") |
| | | public AjaxResult getInfo(@PathVariable("archiveid") Long archiveid) { |
| | | PatMaternityArchiveDetail patMaternityArchiveDetail = new PatMaternityArchiveDetail(); |
| | | patMaternityArchiveDetail.setArchiveid(archiveid); |
| | | List<PatMaternityArchiveDetail> list = patMaternityArchiveDetailService.selectPatMaternityArchiveDetailList(patMaternityArchiveDetail); |
| | | if(CollectionUtils.isNotEmpty(list)){ |
| | | return success(list.get(0)); |
| | | }else return success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ°å¢å¦ç§æ¡£æ¡è¯¦æ
") |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | 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.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.PatSpecificArchiveGenerateConfig; |
| | | import com.smartor.service.IPatSpecificArchiveGenerateConfigService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä¸ç§æ¡£æ¡çæé
ç½®Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2026-10-12 |
| | | */ |
| | | @Api(description = "ä¸ç§æ¡£æ¡çæé
ç½®") |
| | | @RestController |
| | | @RequestMapping("/smartor/specificArchiveGenerateConfig") |
| | | public class PatSpecificArchiveGenerateConfigController extends BaseController { |
| | | @Autowired |
| | | private IPatSpecificArchiveGenerateConfigService patSpecificArchiveGenerateConfigService; |
| | | |
| | | @ApiOperation("æ¥è¯¢ä¸ç§æ¡£æ¡çæé
ç½®å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:specificArchiveGenerateConfig:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectPatSpecificArchiveGenerateConfigList") |
| | | public TableDataInfo selectPatSpecificArchiveGenerateConfigList(@RequestBody PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig) { |
| | | PageUtils.startPageByPost(patSpecificArchiveGenerateConfig.getPageNum(), patSpecificArchiveGenerateConfig.getPageSize()); |
| | | List<PatSpecificArchiveGenerateConfig> list = patSpecificArchiveGenerateConfigService.selectPatSpecificArchiveGenerateConfigList(patSpecificArchiveGenerateConfig); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @ApiOperation("导åºä¸ç§æ¡£æ¡çæé
ç½®å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:specificArchiveGenerateConfig:export')") |
| | | @Log(title = "ä¸ç§æ¡£æ¡çæé
ç½®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig) { |
| | | List<PatSpecificArchiveGenerateConfig> list = patSpecificArchiveGenerateConfigService.selectPatSpecificArchiveGenerateConfigList(patSpecificArchiveGenerateConfig); |
| | | ExcelUtil<PatSpecificArchiveGenerateConfig> util = new ExcelUtil<PatSpecificArchiveGenerateConfig>(PatSpecificArchiveGenerateConfig.class); |
| | | util.exportExcel(response, list, "ä¸ç§æ¡£æ¡çæé
ç½®æ°æ®"); |
| | | } |
| | | |
| | | @ApiOperation("è·åä¸ç§æ¡£æ¡çæé
置详ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('system:specificArchiveGenerateConfig:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patSpecificArchiveGenerateConfigService.selectPatSpecificArchiveGenerateConfigById(id)); |
| | | } |
| | | |
| | | @ApiOperation("æ°å¢ä¸ç§æ¡£æ¡çæé
ç½®") |
| | | //@PreAuthorize("@ss.hasPermi('system:specificArchiveGenerateConfig:add')") |
| | | @Log(title = "ä¸ç§æ¡£æ¡çæé
ç½®", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | patSpecificArchiveGenerateConfig.setOrgid(user.getOrgid()); |
| | | return toAjax(patSpecificArchiveGenerateConfigService.insertPatSpecificArchiveGenerateConfig(patSpecificArchiveGenerateConfig)); |
| | | } |
| | | |
| | | @ApiOperation("ä¿®æ¹ä¸ç§æ¡£æ¡çæé
ç½®") |
| | | //@PreAuthorize("@ss.hasPermi('system:specificArchiveGenerateConfig:edit')") |
| | | @Log(title = "ä¸ç§æ¡£æ¡çæé
ç½®", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig) { |
| | | return toAjax(patSpecificArchiveGenerateConfigService.updatePatSpecificArchiveGenerateConfig(patSpecificArchiveGenerateConfig)); |
| | | } |
| | | |
| | | @ApiOperation("å é¤ä¸ç§æ¡£æ¡çæé
ç½®") |
| | | //@PreAuthorize("@ss.hasPermi('system:specificArchiveGenerateConfig:remove')") |
| | | @Log(title = "ä¸ç§æ¡£æ¡çæé
ç½®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patSpecificArchiveGenerateConfigService.deletePatSpecificArchiveGenerateConfigByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤ä¸ç§æ¡£æ¡çæé
ç½®") |
| | | //@PreAuthorize("@ss.hasPermi('system:specificArchiveGenerateConfig:remove')") |
| | | @Log(title = "ä¸ç§æ¡£æ¡çæé
ç½®", businessType = BusinessType.DELETE) |
| | | @PostMapping("/batchDelete") |
| | | public AjaxResult batchDelete(@RequestBody Long[] ids) { |
| | | return toAjax(patSpecificArchiveGenerateConfigService.batchDeletePatSpecificArchiveGenerateConfigByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹ä¸ç§æ¡£æ¡çæé
ç½® |
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹ä¸ç§æ¡£æ¡çæé
ç½®") |
| | | @PostMapping("/insertOrUpdatePatSpecificArchiveGenerateConfig") |
| | | public AjaxResult insertOrUpdatePatSpecificArchiveGenerateConfig(@RequestBody PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig) { |
| | | LoginUser loginUser = getLoginUser(); |
| | | SysUser user = loginUser.getUser(); |
| | | patSpecificArchiveGenerateConfig.setCreateBy(user.getNickName()); |
| | | patSpecificArchiveGenerateConfig.setUpdateBy(user.getNickName()); |
| | | patSpecificArchiveGenerateConfig.setOrgid(user.getOrgid()); |
| | | if (StringUtils.isNotEmpty(user.getCampusid())) { |
| | | patSpecificArchiveGenerateConfig.setCampusid(user.getCampusid()); |
| | | } else { |
| | | patSpecificArchiveGenerateConfig.setCampusid("1"); |
| | | } |
| | | return toAjax(patSpecificArchiveGenerateConfigService.insertOrUpdatePatSpecificArchiveGenerateConfig(patSpecificArchiveGenerateConfig)); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.TreeUtils; |
| | | import com.ruoyi.common.utils.bean.BeanValidators; |
| | | import com.ruoyi.common.utils.spring.SpringUtils; |
| | | import com.ruoyi.system.domain.SysPost; |
| | | import com.ruoyi.system.domain.SysUserPost; |
| | | import com.ruoyi.system.mapper.*; |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.ruoyi.system.service.ISysDeptService; |
| | | import com.ruoyi.system.service.ISysUserService; |
| | | import com.ruoyi.common.core.service.IUserExtInfoService; |
| | | import com.ruoyi.system.mapper.SysUserDeptMapper; |
| | |
| | | |
| | | @Autowired |
| | | private SysUserMapper userMapper; |
| | | |
| | | @Autowired |
| | | private ISysDeptService sysDeptService; |
| | | |
| | | @Autowired |
| | | private SysDeptMapper sysDeptMapper; |
| | |
| | | List<SysUserDept> sysUserDeptBQs = null; |
| | | if (StringUtils.isNotEmpty(sysUser.getSearchscope()) && sysUser.getSearchscope().equals("0")) { |
| | | sysUserDept.setDeptType("1"); |
| | | sysUserDeptKSs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | sysUserDeptKSs = selectLeafSysDeptList(sysUserDept); |
| | | sysUserDept.setDeptType("2"); |
| | | sysUserDeptBQs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | sysUserDeptBQs = selectLeafSysDeptList(sysUserDept); |
| | | } else if (StringUtils.isNotEmpty(sysUser.getSearchscope()) && sysUser.getSearchscope().equals("1")) { |
| | | sysUserDept.setDeptType("1"); |
| | | sysUserDeptKSs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | sysUserDeptKSs = selectLeafSysDeptList(sysUserDept); |
| | | } else if (StringUtils.isNotEmpty(sysUser.getSearchscope()) && sysUser.getSearchscope().equals("2")) { |
| | | sysUserDept.setDeptType("2"); |
| | | sysUserDeptBQs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | sysUserDeptBQs = selectLeafSysDeptList(sysUserDept); |
| | | } |
| | | |
| | | sysUser.setDepts(deptIds); |
| | |
| | | SysDept deptBQ = new SysDept(); |
| | | deptBQ.setOrgid(split[1]); |
| | | deptBQ.setDeptType("2"); |
| | | CompletableFuture<List<SysDept>> ksFuture = CompletableFuture.supplyAsync(() -> sysDeptMapper.selectDeptList(deptKS), executor); |
| | | CompletableFuture<List<SysDept>> bqFuture = CompletableFuture.supplyAsync(() -> sysDeptMapper.selectDeptList(deptBQ), executor); |
| | | CompletableFuture<List<SysDept>> ksFuture = CompletableFuture.supplyAsync(() -> selectLeafSysDeptForAdmin(deptKS), executor); |
| | | CompletableFuture<List<SysDept>> bqFuture = CompletableFuture.supplyAsync(() -> selectLeafSysDeptForAdmin(deptBQ), executor); |
| | | try { |
| | | sysUserDeptKSs = distinctByDeptCode(DtoConversionUtils.sourceToTarget(ksFuture.get(5, TimeUnit.SECONDS), SysUserDept.class)); |
| | | sysUserDeptBQs = distinctByDeptCode(DtoConversionUtils.sourceToTarget(bqFuture.get(5, TimeUnit.SECONDS), SysUserDept.class)); |
| | |
| | | queryBQ.setUserId(sysUser.getUserId()); |
| | | queryBQ.setDeptType("2"); |
| | | queryBQ.setOrgid(split[1]); |
| | | CompletableFuture<List<SysUserDept>> ksFuture = CompletableFuture.supplyAsync(() -> sysUserDeptMapper.selectSysUserDeptList(queryKS), executor); |
| | | CompletableFuture<List<SysUserDept>> bqFuture = CompletableFuture.supplyAsync(() -> sysUserDeptMapper.selectSysUserDeptList(queryBQ), executor); |
| | | CompletableFuture<List<SysUserDept>> ksFuture = CompletableFuture.supplyAsync(() -> selectLeafSysDeptList(queryKS), executor); |
| | | CompletableFuture<List<SysUserDept>> bqFuture = CompletableFuture.supplyAsync(() -> selectLeafSysDeptList(queryBQ), executor); |
| | | try { |
| | | sysUserDeptKSs = ksFuture.get(5, TimeUnit.SECONDS); |
| | | sysUserDeptBQs = bqFuture.get(5, TimeUnit.SECONDS); |
| | |
| | | queryKS.setUserId(sysUser.getUserId()); |
| | | queryKS.setDeptType("1"); |
| | | queryKS.setOrgid(split[1]); |
| | | sysUserDeptKSs = sysUserDeptMapper.selectSysUserDeptList(queryKS); |
| | | sysUserDeptKSs = selectLeafSysDeptList(queryKS); |
| | | } else if ("2".equals(sysUser.getSearchscope())) { |
| | | SysUserDept queryBQ = new SysUserDept(); |
| | | queryBQ.setUserId(sysUser.getUserId()); |
| | | queryBQ.setDeptType("2"); |
| | | queryBQ.setOrgid(split[1]); |
| | | sysUserDeptBQs = sysUserDeptMapper.selectSysUserDeptList(queryBQ); |
| | | sysUserDeptBQs = selectLeafSysDeptList(queryBQ); |
| | | } |
| | | } |
| | | |
| | |
| | | sysUserDept.setUserId(null); |
| | | } |
| | | sysUserDept.setDeptType("1"); |
| | | sysUserDeptKSs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | sysUserDeptKSs = selectLeafSysDeptList(sysUserDept); |
| | | sysUserDept.setDeptType("2"); |
| | | sysUserDeptBQs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | sysUserDeptBQs = selectLeafSysDeptList(sysUserDept); |
| | | //妿æ¯adminï¼éè¦å¯¹sysUserDeptBQsï¼sysUserDeptBQså»é |
| | | if (StringUtils.isNotEmpty(split[0]) && split[0].equals("admin")) { |
| | | //妿æ¯adminï¼åªè½å»sys_deptå»åæ°æ® |
| | | SysDept dept = new SysDept(); |
| | | dept.setOrgid(split[1]); |
| | | dept.setDeptType("1"); |
| | | sysDepts = sysDeptMapper.selectDeptList(dept); |
| | | sysDepts = selectLeafSysDeptForAdmin(dept); |
| | | sysUserDeptKSs = DtoConversionUtils.sourceToTarget(sysDepts, SysUserDept.class); |
| | | |
| | | dept.setDeptType("2"); |
| | | sysDepts = sysDeptMapper.selectDeptList(dept); |
| | | sysDepts = selectLeafSysDeptForAdmin(dept); |
| | | sysUserDeptBQs = DtoConversionUtils.sourceToTarget(sysDepts, SysUserDept.class); |
| | | |
| | | List<SysUserDept> distinctUserDepts = new ArrayList<>(); |
| | |
| | | } |
| | | return successMsg.toString(); |
| | | } |
| | | |
| | | public List<SysUserDept> selectLeafSysDeptList(SysUserDept sysUserDept){ |
| | | List<SysDept> list = sysDeptMapper.selectSysDeptListBySysUserDept(sysUserDept); |
| | | if(org.apache.commons.collections4.CollectionUtils.isNotEmpty(list)){ |
| | | List<SysDept> tree = TreeUtils.buildDeptTree(list); |
| | | list = TreeUtils.getLeafDepts(tree); |
| | | } |
| | | List<SysUserDept> list1 = DtoConversionUtils.sourceToTarget(list, SysUserDept.class); |
| | | return list1; |
| | | } |
| | | |
| | | public List<SysDept> selectLeafSysDeptForAdmin(SysDept sysDept){ |
| | | SysUserDept sysUserDept = DtoConversionUtils.sourceToTarget(sysDept, SysUserDept.class); |
| | | List<SysDept> list = sysDeptMapper.selectSysDeptListBySysUserDept(sysUserDept); |
| | | if(org.apache.commons.collections4.CollectionUtils.isNotEmpty(list)){ |
| | | List<SysDept> tree = TreeUtils.buildDeptTree(list); |
| | | list = TreeUtils.getLeafDepts(tree); |
| | | } |
| | | return list; |
| | | } |
| | | } |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | |
| | | @ApiModelProperty(value = "æé访æ¶é´") |
| | | private Date plannedFollowTime; |
| | | |
| | | /** éè®¿å¨æ(次æ°) */ |
| | | @Excel(name = "éè®¿å¨æ(次æ°)") |
| | | @ApiModelProperty(value = "éè®¿å¨æ(次æ°)") |
| | | private String followupCycleTimes; |
| | | |
| | | /** æ§å« 1:ç· 2:女 */ |
| | | @Excel(name = "æ§å«") |
| | | @ApiModelProperty(value = "æ§å« 1:ç· 2:女") |
| | |
| | | @ApiModelProperty(value = "è¯æåç§°") |
| | | private String diagname; |
| | | |
| | | /** é¢çº¦æ
åµ */ |
| | | @ApiModelProperty(value = "é¢çº¦æ
åµ") |
| | | private String appointmentSituation; |
| | | |
| | | /** ç»æ¡ç¶æ */ |
| | | @Excel(name = "ç»æ¡ç¶æ") |
| | | @ApiModelProperty(value = "ç»æ¡ç¶æ") |
| | | private String closeStatus; |
| | | |
| | | /** è¥å
»æ§ç¾ç
ID */ |
| | | @Excel(name = "è¥å
»æ§ç¾ç
ID") |
| | | @ApiModelProperty(value = "è¥å
»æ§ç¾ç
ID") |
| | | private String nutritionIcd10Code; |
| | | |
| | | /** è¥å
»æ§ç¾ç
åç§° */ |
| | | @Excel(name = "è¥å
»æ§ç¾ç
åç§°") |
| | | @ApiModelProperty(value = "è¥å
»æ§ç¾ç
åç§°") |
| | | private String nutritionDiagName; |
| | | |
| | | /** åºçåå¨ */ |
| | | @Excel(name = "åºçåå¨") |
| | | @ApiModelProperty(value = "åºçåå¨") |
| | | private BigDecimal gestationalWeek; |
| | | |
| | | /** åºçä½é(kg) */ |
| | | @Excel(name = "åºçä½é(kg)") |
| | | @ApiModelProperty(value = "åºçä½é(kg)") |
| | | private BigDecimal birthWeight; |
| | | |
| | | /** é«å±å¿åç±» */ |
| | | @Excel(name = "é«å±å¿åç±»") |
| | | @ApiModelProperty(value = "é«å±å¿åç±»") |
| | | private String highRiskChildType; |
| | | |
| | | /** é«å±å¿åç§° */ |
| | | @Excel(name = "é«å±å¿åç§°") |
| | | @ApiModelProperty(value = "é«å±å¿åç§°") |
| | | private String highRiskChildName; |
| | | |
| | | /** ç»è®°äººå */ |
| | | @Excel(name = "ç»è®°äººå") |
| | | @ApiModelProperty(value = "ç»è®°äººå") |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * ä¸ç§æ¡£æ¡çæé
置对象 pat_specific_archive_generate_config |
| | | * |
| | | * @author ruoyi |
| | | * @date 2026-10-12 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ä¸ç§æ¡£æ¡çæé
置对象") |
| | | public class PatSpecificArchiveGenerateConfig extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** é
置表主é®ID */ |
| | | @ApiModelProperty(value = "é
置表主é®ID") |
| | | private Long id; |
| | | |
| | | /** é¨é¨ç±»åï¼1ç§å®¤ï¼2ç
åº */ |
| | | @Excel(name = "é¨é¨ç±»å") |
| | | @ApiModelProperty(value = "é¨é¨ç±»åï¼1ç§å®¤ï¼2ç
åº") |
| | | private String deptType; |
| | | |
| | | /** é¨é¨åç±»: 1å¦ç§ 2å¿ç§ */ |
| | | @Excel(name = "é¨é¨åç±»") |
| | | @ApiModelProperty(value = "é¨é¨åç±»: 1å¦ç§ 2å¿ç§") |
| | | private String deptCategory; |
| | | |
| | | /** æ¡£æ¡ç±»å: å¦ç§æ¡£æ¡ç±»å(1 æ©åå
³ç±2 å´ç»ç»æMHI),å¿ç§æ¡£æ¡ç±»å(1è¥å
»æ§ç¾ç
2å¦ä¹ å°é¾ 3é«å±å¿ä¸æ¡) */ |
| | | @Excel(name = "æ¡£æ¡ç±»å") |
| | | @ApiModelProperty(value = "æ¡£æ¡ç±»å: å¦ç§æ¡£æ¡ç±»å(1 æ©åå
³ç±2 å´ç»ç»æMHI),å¿ç§æ¡£æ¡ç±»å(1è¥å
»æ§ç¾ç
2å¦ä¹ å°é¾ 3é«å±å¿ä¸æ¡)") |
| | | private String archiveType; |
| | | |
| | | /** ç§å®¤Codeéå(JSONæ ¼å¼ï¼å¦ ["D001","D002"]) */ |
| | | @ApiModelProperty(value = "ç§å®¤Codeéå(JSONæ ¼å¼ï¼å¦ [\"D001\",\"D002\"])") |
| | | private String deptCodes; |
| | | |
| | | /** è¯æcodeéå(JSONæ ¼å¼ï¼å¦ ["E10.901","E11.901"]) */ |
| | | @ApiModelProperty(value = "è¯æcodeéå(JSONæ ¼å¼ï¼å¦ [\"E10.901\",\"E11.901\"])") |
| | | private String icd10Codes; |
| | | |
| | | /** å»é¢æºæID */ |
| | | @Excel(name = "å»é¢æºæID") |
| | | @ApiModelProperty(value = "å»é¢æºæID") |
| | | private String orgid; |
| | | |
| | | /** é¢åºID */ |
| | | @Excel(name = "é¢åºID") |
| | | @ApiModelProperty(value = "é¢åºID") |
| | | private String campusid; |
| | | |
| | | /** å 餿 å¿ï¼0ï¼æªå é¤ï¼1ï¼å·²å é¤ï¼ */ |
| | | @ApiModelProperty(value = "å 餿 å¿ï¼0ï¼æªå é¤ï¼1ï¼å·²å é¤ï¼") |
| | | private String delFlag; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.PatSpecificArchiveGenerateConfig; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä¸ç§æ¡£æ¡çæé
ç½®Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2026-10-12 |
| | | */ |
| | | @Mapper |
| | | public interface PatSpecificArchiveGenerateConfigMapper |
| | | { |
| | | public PatSpecificArchiveGenerateConfig selectPatSpecificArchiveGenerateConfigById(Long id); |
| | | |
| | | public List<PatSpecificArchiveGenerateConfig> selectPatSpecificArchiveGenerateConfigList(PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig); |
| | | |
| | | public int insertPatSpecificArchiveGenerateConfig(PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig); |
| | | |
| | | public int updatePatSpecificArchiveGenerateConfig(PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig); |
| | | |
| | | public int deletePatSpecificArchiveGenerateConfigById(Long id); |
| | | |
| | | public int deletePatSpecificArchiveGenerateConfigByIds(Long[] ids); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.PatSpecificArchiveGenerateConfig; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä¸ç§æ¡£æ¡çæé
ç½®Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2026-10-12 |
| | | */ |
| | | public interface IPatSpecificArchiveGenerateConfigService |
| | | { |
| | | public PatSpecificArchiveGenerateConfig selectPatSpecificArchiveGenerateConfigById(Long id); |
| | | |
| | | public List<PatSpecificArchiveGenerateConfig> selectPatSpecificArchiveGenerateConfigList(PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig); |
| | | |
| | | public int insertPatSpecificArchiveGenerateConfig(PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig); |
| | | |
| | | public int updatePatSpecificArchiveGenerateConfig(PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig); |
| | | |
| | | public int deletePatSpecificArchiveGenerateConfigByIds(Long[] ids); |
| | | |
| | | public int batchDeletePatSpecificArchiveGenerateConfigByIds(Long[] ids); |
| | | |
| | | public int deletePatSpecificArchiveGenerateConfigById(Long id); |
| | | |
| | | public int insertOrUpdatePatSpecificArchiveGenerateConfig(PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.PatSpecificArchiveGenerateConfig; |
| | | import com.smartor.mapper.PatSpecificArchiveGenerateConfigMapper; |
| | | import com.smartor.service.IPatSpecificArchiveGenerateConfigService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä¸ç§æ¡£æ¡çæé
ç½®Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2026-10-12 |
| | | */ |
| | | @Service |
| | | public class PatSpecificArchiveGenerateConfigServiceImpl implements IPatSpecificArchiveGenerateConfigService |
| | | { |
| | | @Autowired |
| | | private PatSpecificArchiveGenerateConfigMapper patSpecificArchiveGenerateConfigMapper; |
| | | |
| | | @Override |
| | | public PatSpecificArchiveGenerateConfig selectPatSpecificArchiveGenerateConfigById(Long id) |
| | | { |
| | | return patSpecificArchiveGenerateConfigMapper.selectPatSpecificArchiveGenerateConfigById(id); |
| | | } |
| | | |
| | | @Override |
| | | public List<PatSpecificArchiveGenerateConfig> selectPatSpecificArchiveGenerateConfigList(PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig) |
| | | { |
| | | return patSpecificArchiveGenerateConfigMapper.selectPatSpecificArchiveGenerateConfigList(patSpecificArchiveGenerateConfig); |
| | | } |
| | | |
| | | @Override |
| | | public int insertPatSpecificArchiveGenerateConfig(PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig) |
| | | { |
| | | patSpecificArchiveGenerateConfig.setCreateTime(DateUtils.getNowDate()); |
| | | return patSpecificArchiveGenerateConfigMapper.insertPatSpecificArchiveGenerateConfig(patSpecificArchiveGenerateConfig); |
| | | } |
| | | |
| | | @Override |
| | | public int updatePatSpecificArchiveGenerateConfig(PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig) |
| | | { |
| | | patSpecificArchiveGenerateConfig.setUpdateTime(DateUtils.getNowDate()); |
| | | return patSpecificArchiveGenerateConfigMapper.updatePatSpecificArchiveGenerateConfig(patSpecificArchiveGenerateConfig); |
| | | } |
| | | |
| | | @Override |
| | | public int insertOrUpdatePatSpecificArchiveGenerateConfig(PatSpecificArchiveGenerateConfig patSpecificArchiveGenerateConfig) |
| | | { |
| | | if (patSpecificArchiveGenerateConfig.getId() != null |
| | | && patSpecificArchiveGenerateConfigMapper.selectPatSpecificArchiveGenerateConfigById(patSpecificArchiveGenerateConfig.getId()) != null) |
| | | { |
| | | patSpecificArchiveGenerateConfig.setUpdateTime(DateUtils.getNowDate()); |
| | | return patSpecificArchiveGenerateConfigMapper.updatePatSpecificArchiveGenerateConfig(patSpecificArchiveGenerateConfig); |
| | | } |
| | | else |
| | | { |
| | | patSpecificArchiveGenerateConfig.setCreateTime(DateUtils.getNowDate()); |
| | | if (StringUtils.isEmpty(patSpecificArchiveGenerateConfig.getDelFlag())) |
| | | { |
| | | patSpecificArchiveGenerateConfig.setDelFlag("0"); |
| | | } |
| | | return patSpecificArchiveGenerateConfigMapper.insertPatSpecificArchiveGenerateConfig(patSpecificArchiveGenerateConfig); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public int batchDeletePatSpecificArchiveGenerateConfigByIds(Long[] ids) |
| | | { |
| | | return patSpecificArchiveGenerateConfigMapper.deletePatSpecificArchiveGenerateConfigByIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public int deletePatSpecificArchiveGenerateConfigByIds(Long[] ids) |
| | | { |
| | | return patSpecificArchiveGenerateConfigMapper.deletePatSpecificArchiveGenerateConfigByIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public int deletePatSpecificArchiveGenerateConfigById(Long id) |
| | | { |
| | | return patSpecificArchiveGenerateConfigMapper.deletePatSpecificArchiveGenerateConfigById(id); |
| | | } |
| | | } |
| | |
| | | <result property="diagTime" column="diag_time"/> |
| | | <result property="archiveTime" column="archive_time"/> |
| | | <result property="plannedFollowTime" column="planned_follow_time"/> |
| | | <result property="followupCycleTimes" column="followup_cycle_times"/> |
| | | <result property="sex" column="sex"/> |
| | | <result property="doctorCode" column="doctor_code"/> |
| | | <result property="doctorName" column="doctor_name"/> |
| | |
| | | <result property="wardname" column="wardname"/> |
| | | <result property="icd10code" column="icd10code"/> |
| | | <result property="diagname" column="diagname"/> |
| | | <result property="appointmentSituation" column="appointment_situation"/> |
| | | <result property="closeStatus" column="close_status"/> |
| | | <result property="nutritionIcd10Code" column="nutrition_icd10_code"/> |
| | | <result property="nutritionDiagName" column="nutrition_diag_name"/> |
| | | <result property="gestationalWeek" column="gestational_week"/> |
| | | <result property="birthWeight" column="birth_weight"/> |
| | | <result property="highRiskChildType" column="high_risk_child_type"/> |
| | | <result property="highRiskChildName" column="high_risk_child_name"/> |
| | | <result property="registerUser" column="register_user"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="orgid" column="orgid"/> |
| | |
| | | diag_time, |
| | | archive_time, |
| | | planned_follow_time, |
| | | followup_cycle_times, |
| | | sex, |
| | | doctor_code, |
| | | doctor_name, |
| | |
| | | wardname, |
| | | icd10code, |
| | | diagname, |
| | | appointment_situation, |
| | | close_status, |
| | | nutrition_icd10_code, |
| | | nutrition_diag_name, |
| | | gestational_week, |
| | | birth_weight, |
| | | high_risk_child_type, |
| | | high_risk_child_name, |
| | | register_user, |
| | | remark, |
| | | orgid, |
| | |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | | <if test="diagTime != null">and diag_time = #{diagTime}</if> |
| | | <if test="plannedFollowTime != null">and planned_follow_time = #{plannedFollowTime}</if> |
| | | <if test="followupCycleTimes != null and followupCycleTimes != ''">and followup_cycle_times = #{followupCycleTimes}</if> |
| | | <if test="sex != null">and sex = #{sex}</if> |
| | | <if test="doctorCode != null and doctorCode != ''">and doctor_code = #{doctorCode}</if> |
| | | <if test="doctorName != null and doctorName != ''">and doctor_name like concat('%', #{doctorName}, '%')</if> |
| | |
| | | <if test="wardname != null and wardname != ''">and wardname like concat('%', #{wardname}, '%')</if> |
| | | <if test="icd10code != null and icd10code != ''">and icd10code = #{icd10code}</if> |
| | | <if test="diagname != null and diagname != ''">and diagname like concat('%', #{diagname}, '%')</if> |
| | | <if test="nutritionIcd10Code != null and nutritionIcd10Code != ''">and nutrition_icd10_code = #{nutritionIcd10Code}</if> |
| | | <if test="nutritionDiagName != null and nutritionDiagName != ''">and nutrition_diag_name like concat('%', #{nutritionDiagName}, '%')</if> |
| | | <if test="highRiskChildType != null and highRiskChildType != ''">and high_risk_child_type = #{highRiskChildType}</if> |
| | | <if test="highRiskChildName != null and highRiskChildName != ''">and high_risk_child_name like concat('%', #{highRiskChildName}, '%')</if> |
| | | <if test="closeStatus != null and closeStatus != ''">and close_status = #{closeStatus}</if> |
| | | <if test="gestationalWeek != null">and gestational_week = #{gestationalWeek}</if> |
| | | <if test="birthWeight != null">and birth_weight = #{birthWeight}</if> |
| | | <if test="registerUser != null and registerUser != ''">and register_user = #{registerUser}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="campusid != null and campusid != ''">and campusid = #{campusid}</if> |
| | |
| | | <if test="diagTime != null">diag_time,</if> |
| | | <if test="archiveTime != null">archive_time,</if> |
| | | <if test="plannedFollowTime != null">planned_follow_time,</if> |
| | | <if test="followupCycleTimes != null">followup_cycle_times,</if> |
| | | <if test="sex != null">sex,</if> |
| | | <if test="doctorCode != null">doctor_code,</if> |
| | | <if test="doctorName != null">doctor_name,</if> |
| | |
| | | <if test="wardname != null">wardname,</if> |
| | | <if test="icd10code != null">icd10code,</if> |
| | | <if test="diagname != null">diagname,</if> |
| | | <if test="appointmentSituation != null">appointment_situation,</if> |
| | | <if test="closeStatus != null">close_status,</if> |
| | | <if test="nutritionIcd10Code != null">nutrition_icd10_code,</if> |
| | | <if test="nutritionDiagName != null">nutrition_diag_name,</if> |
| | | <if test="gestationalWeek != null">gestational_week,</if> |
| | | <if test="birthWeight != null">birth_weight,</if> |
| | | <if test="highRiskChildType != null">high_risk_child_type,</if> |
| | | <if test="highRiskChildName != null">high_risk_child_name,</if> |
| | | <if test="registerUser != null">register_user,</if> |
| | | <if test="remark != null">remark,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | |
| | | <if test="diagTime != null">#{diagTime},</if> |
| | | <if test="archiveTime != null">#{archiveTime},</if> |
| | | <if test="plannedFollowTime != null">#{plannedFollowTime},</if> |
| | | <if test="followupCycleTimes != null">#{followupCycleTimes},</if> |
| | | <if test="sex != null">#{sex},</if> |
| | | <if test="doctorCode != null">#{doctorCode},</if> |
| | | <if test="doctorName != null">#{doctorName},</if> |
| | |
| | | <if test="wardname != null">#{wardname},</if> |
| | | <if test="icd10code != null">#{icd10code},</if> |
| | | <if test="diagname != null">#{diagname},</if> |
| | | <if test="appointmentSituation != null">#{appointmentSituation},</if> |
| | | <if test="closeStatus != null">#{closeStatus},</if> |
| | | <if test="nutritionIcd10Code != null">#{nutritionIcd10Code},</if> |
| | | <if test="nutritionDiagName != null">#{nutritionDiagName},</if> |
| | | <if test="gestationalWeek != null">#{gestationalWeek},</if> |
| | | <if test="birthWeight != null">#{birthWeight},</if> |
| | | <if test="highRiskChildType != null">#{highRiskChildType},</if> |
| | | <if test="highRiskChildName != null">#{highRiskChildName},</if> |
| | | <if test="registerUser != null">#{registerUser},</if> |
| | | <if test="remark != null">#{remark},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | |
| | | <if test="diagTime != null">diag_time = #{diagTime},</if> |
| | | <if test="archiveTime != null">archive_time = #{archiveTime},</if> |
| | | <if test="plannedFollowTime != null">planned_follow_time = #{plannedFollowTime},</if> |
| | | <if test="followupCycleTimes != null">followup_cycle_times = #{followupCycleTimes},</if> |
| | | <if test="sex != null">sex = #{sex},</if> |
| | | <if test="doctorCode != null">doctor_code = #{doctorCode},</if> |
| | | <if test="doctorName != null">doctor_name = #{doctorName},</if> |
| | |
| | | <if test="wardname != null">wardname = #{wardname},</if> |
| | | <if test="icd10code != null">icd10code = #{icd10code},</if> |
| | | <if test="diagname != null">diagname = #{diagname},</if> |
| | | <if test="appointmentSituation != null">appointment_situation = #{appointmentSituation},</if> |
| | | <if test="closeStatus != null">close_status = #{closeStatus},</if> |
| | | <if test="nutritionIcd10Code != null">nutrition_icd10_code = #{nutritionIcd10Code},</if> |
| | | <if test="nutritionDiagName != null">nutrition_diag_name = #{nutritionDiagName},</if> |
| | | <if test="gestationalWeek != null">gestational_week = #{gestationalWeek},</if> |
| | | <if test="birthWeight != null">birth_weight = #{birthWeight},</if> |
| | | <if test="highRiskChildType != null">high_risk_child_type = #{highRiskChildType},</if> |
| | | <if test="highRiskChildName != null">high_risk_child_name = #{highRiskChildName},</if> |
| | | <if test="registerUser != null">register_user = #{registerUser},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.PatSpecificArchiveGenerateConfigMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.PatSpecificArchiveGenerateConfig" id="PatSpecificArchiveGenerateConfigResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="deptType" column="dept_type"/> |
| | | <result property="deptCategory" column="dept_category"/> |
| | | <result property="archiveType" column="archive_type"/> |
| | | <result property="deptCodes" column="dept_codes"/> |
| | | <result property="icd10Codes" column="icd10_codes"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="campusid" column="campusid"/> |
| | | <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="delFlag" column="del_flag"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatSpecificArchiveGenerateConfigVo"> |
| | | select id, |
| | | dept_type, |
| | | dept_category, |
| | | archive_type, |
| | | dept_codes, |
| | | icd10_codes, |
| | | remark, |
| | | orgid, |
| | | campusid, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | del_flag |
| | | from pat_specific_archive_generate_config |
| | | </sql> |
| | | |
| | | <select id="selectPatSpecificArchiveGenerateConfigList" parameterType="com.smartor.domain.PatSpecificArchiveGenerateConfig" |
| | | resultMap="PatSpecificArchiveGenerateConfigResult"> |
| | | <include refid="selectPatSpecificArchiveGenerateConfigVo"/> |
| | | where 1=1 |
| | | and del_flag = '0' |
| | | <if test="deptType != null and deptType != ''">and dept_type = #{deptType}</if> |
| | | <if test="deptCategory != null and deptCategory != ''">and dept_category = #{deptCategory}</if> |
| | | <if test="archiveType != null and archiveType != ''">and archive_type = #{archiveType}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="campusid != null and campusid != ''">and campusid = #{campusid}</if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"> |
| | | and date_format(create_time, '%y%m%d') >= date_format(#{params.beginTime}, '%y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"> |
| | | and date_format(create_time, '%y%m%d') <= date_format(#{params.endTime}, '%y%m%d') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectPatSpecificArchiveGenerateConfigById" parameterType="Long" resultMap="PatSpecificArchiveGenerateConfigResult"> |
| | | <include refid="selectPatSpecificArchiveGenerateConfigVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPatSpecificArchiveGenerateConfig" parameterType="com.smartor.domain.PatSpecificArchiveGenerateConfig" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into pat_specific_archive_generate_config |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="deptType != null">dept_type,</if> |
| | | <if test="deptCategory != null">dept_category,</if> |
| | | <if test="archiveType != null">archive_type,</if> |
| | | <if test="deptCodes != null">dept_codes,</if> |
| | | <if test="icd10Codes != null">icd10_codes,</if> |
| | | <if test="remark != null">remark,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="campusid != null">campusid,</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="delFlag != null and delFlag != ''">del_flag,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="deptType != null">#{deptType},</if> |
| | | <if test="deptCategory != null">#{deptCategory},</if> |
| | | <if test="archiveType != null">#{archiveType},</if> |
| | | <if test="deptCodes != null">#{deptCodes},</if> |
| | | <if test="icd10Codes != null">#{icd10Codes},</if> |
| | | <if test="remark != null">#{remark},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="campusid != null">#{campusid},</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="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatSpecificArchiveGenerateConfig" parameterType="com.smartor.domain.PatSpecificArchiveGenerateConfig"> |
| | | update pat_specific_archive_generate_config |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="deptType != null">dept_type = #{deptType},</if> |
| | | <if test="deptCategory != null">dept_category = #{deptCategory},</if> |
| | | <if test="archiveType != null">archive_type = #{archiveType},</if> |
| | | <if test="deptCodes != null">dept_codes = #{deptCodes},</if> |
| | | <if test="icd10Codes != null">icd10_codes = #{icd10Codes},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="campusid != null">campusid = #{campusid},</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="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deletePatSpecificArchiveGenerateConfigById" parameterType="Long"> |
| | | update pat_specific_archive_generate_config |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag = '1' |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deletePatSpecificArchiveGenerateConfigByIds" parameterType="String"> |
| | | update pat_specific_archive_generate_config set del_flag = '1' where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | </mapper> |