已重命名1个文件
已修改29个文件
已添加1个文件
已复制1个文件
| | |
| | | import com.aliyun.tea.Validation; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.utils.http.HttpUtils; |
| | | import com.ruoyi.project.domain.vo.DingTalkReqVo; |
| | | import com.ruoyi.project.service.DingTalkService; |
| | | import com.ruoyi.project.utils.DingTalkProxyClient; |
| | | import com.taobao.api.ApiException; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.PropertySource; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * ééæ¥å£ |
| | |
| | | @Autowired |
| | | private DingTalkService dingTalkService; |
| | | |
| | | @Autowired |
| | | private DingTalkProxyClient dingTalkProxyClient; |
| | | |
| | | /** |
| | | * åéééæ¶æ¯ |
| | | * |
| | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.bean.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.ServiceDonatemaintenance; |
| | | import com.ruoyi.project.domain.entity.ServiceDonatemaintenanceEntity; |
| | | import com.ruoyi.project.domain.ServiceDonatemaintenanceVO; |
| | | import com.ruoyi.project.domain.dto.MaintenanceBaseInfoDTO; |
| | | import com.ruoyi.project.domain.dto.MedicalevaluationBaseInfoDTO; |
| | | import com.ruoyi.project.domain.vo.MaintenanceBaseInfoVO; |
| | | import com.ruoyi.project.service.IServiceDonatemaintenanceService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | // @PreAuthorize("@ss.hasPermi('system:donatemaintenance:export')") |
| | | @Log(title = "ä¾ä½ç»´æ¤è®°å½", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonatemaintenance serviceDonatemaintenance) { |
| | | Page<ServiceDonatemaintenance> serviceDonatemaintenancePage = serviceDonatemaintenanceService.queryList(serviceDonatemaintenance); |
| | | List<ServiceDonatemaintenance> list = serviceDonatemaintenancePage.getRecords(); |
| | | ExcelUtil<ServiceDonatemaintenance> util = new ExcelUtil<ServiceDonatemaintenance>(ServiceDonatemaintenance.class); |
| | | public AjaxResult export(ServiceDonatemaintenanceVO serviceDonatemaintenanceVO) { |
| | | ServiceDonatemaintenanceEntity serviceDonatemaintenance = DtoConversionUtils.sourceToTarget(serviceDonatemaintenanceVO, ServiceDonatemaintenanceEntity.class); |
| | | Page<ServiceDonatemaintenanceEntity> serviceDonatemaintenancePage = serviceDonatemaintenanceService.queryList(serviceDonatemaintenance); |
| | | List<ServiceDonatemaintenanceEntity> list = serviceDonatemaintenancePage.getRecords(); |
| | | ExcelUtil<ServiceDonatemaintenanceEntity> util = new ExcelUtil<ServiceDonatemaintenanceEntity>(ServiceDonatemaintenanceEntity.class); |
| | | return util.exportExcel(list, "ä¾ä½ç»´æ¤è®°å½æ°æ®"); |
| | | } |
| | | |
| | |
| | | @Log(title = "ä¾ä½ç»´æ¤è®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDonatemaintenance serviceDonatemaintenance) { |
| | | public AjaxResult add(@RequestBody ServiceDonatemaintenanceVO serviceDonatemaintenanceVO) { |
| | | ServiceDonatemaintenanceEntity serviceDonatemaintenance = DtoConversionUtils.sourceToTarget(serviceDonatemaintenanceVO, ServiceDonatemaintenanceEntity.class); |
| | | serviceDonatemaintenance.setItemDesc(serviceDonatemaintenanceVO.getItemDesc().toString()); |
| | | return toAjax(serviceDonatemaintenanceService.save(serviceDonatemaintenance)); |
| | | } |
| | | |
| | |
| | | @Log(title = "ä¾ä½ç»´æ¤è®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDonatemaintenance serviceDonatemaintenance) { |
| | | public AjaxResult edit(@RequestBody ServiceDonatemaintenanceVO serviceDonatemaintenanceVO) { |
| | | ServiceDonatemaintenanceEntity serviceDonatemaintenance = DtoConversionUtils.sourceToTarget(serviceDonatemaintenanceVO, ServiceDonatemaintenanceEntity.class); |
| | | serviceDonatemaintenance.setItemDesc(serviceDonatemaintenanceVO.getItemDesc().toString()); |
| | | return toAjax(serviceDonatemaintenanceService.updateById(serviceDonatemaintenance)); |
| | | } |
| | | |
| | |
| | | @Log(title = "ä¾ä½ç»´æ¤è®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{id}") |
| | | public AjaxResult remove(@PathVariable Long id) { |
| | | ServiceDonatemaintenance serviceDonatemaintenance = new ServiceDonatemaintenance(); |
| | | ServiceDonatemaintenanceEntity serviceDonatemaintenance = new ServiceDonatemaintenanceEntity(); |
| | | serviceDonatemaintenance.setId(id); |
| | | serviceDonatemaintenance.setDelFlag(1); |
| | | return toAjax(serviceDonatemaintenanceService.updateById(serviceDonatemaintenance)); |
| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.NotRepeatCommit; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | |
| | | 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.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.ServiceDonateorganBase; |
| | | import com.ruoyi.project.domain.ServiceEthicalreviewopinions; |
| | | import com.ruoyi.project.domain.vo.EthicalReviewVO; |
| | | import com.ruoyi.project.service.IServiceEthicalreviewopinionsService; |
| | |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 伦ç审æ¥ä¸å®¶æè§Controller |
| | |
| | | */ |
| | | //// @PreAuthorize("@ss.hasPermi('project:ethicalreviewopinions:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceEthicalreviewopinions serviceEthicalreviewopinions) { |
| | | startPage(); |
| | | List<ServiceEthicalreviewopinions> list = serviceEthicalreviewopinionsService.queryList(serviceEthicalreviewopinions); |
| | | return getDataTable(list); |
| | | public Map<String, Object> list(ServiceEthicalreviewopinions serviceEthicalreviewopinions) { |
| | | Page<ServiceEthicalreviewopinions> list = serviceEthicalreviewopinionsService.queryListByPage(serviceEthicalreviewopinions); |
| | | return getDataTable(list.getRecords(), (int) list.getTotal()); |
| | | } |
| | | |
| | | @GetMapping("/listnew") |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导åºä¼¦ç审æ¥ä¸å®¶æè§å表 |
| | | */ |
| | | //// @PreAuthorize("@ss.hasPermi('project:ethicalreviewopinions:export')") |
| | | @Log(title = "伦ç审æ¥ä¸å®¶æè§", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceEthicalreviewopinions serviceEthicalreviewopinions) { |
| | | List<ServiceEthicalreviewopinions> list = serviceEthicalreviewopinionsService.queryList(serviceEthicalreviewopinions); |
| | | ExcelUtil<ServiceEthicalreviewopinions> util = new ExcelUtil<ServiceEthicalreviewopinions>(ServiceEthicalreviewopinions.class); |
| | | return util.exportExcel(list, "伦ç审æ¥ä¸å®¶æè§æ°æ®"); |
| | | } |
| | | // /** |
| | | // * 导åºä¼¦ç审æ¥ä¸å®¶æè§å表 |
| | | // */ |
| | | // //// @PreAuthorize("@ss.hasPermi('project:ethicalreviewopinions:export')") |
| | | // @Log(title = "伦ç审æ¥ä¸å®¶æè§", businessType = BusinessType.EXPORT) |
| | | // @GetMapping("/export") |
| | | // public AjaxResult export(ServiceEthicalreviewopinions serviceEthicalreviewopinions) { |
| | | // List<ServiceEthicalreviewopinions> list = serviceEthicalreviewopinionsService.queryList(serviceEthicalreviewopinions); |
| | | // ExcelUtil<ServiceEthicalreviewopinions> util = new ExcelUtil<ServiceEthicalreviewopinions>(ServiceEthicalreviewopinions.class); |
| | | // return util.exportExcel(list, "伦ç审æ¥ä¸å®¶æè§æ°æ®"); |
| | | // } |
| | | |
| | | /** |
| | | * è·å伦ç审æ¥ä¸å®¶æè§è¯¦ç»ä¿¡æ¯ |
| | |
| | | //// @PreAuthorize("@ss.hasPermi('project:ethicalreviewopinions:add')") |
| | | @Log(title = "伦ç审æ¥ä¸å®¶æè§", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | // @NotRepeatCommit(key = "param:arg[1]", value = 30000) |
| | | public AjaxResult add(@RequestBody ServiceEthicalreviewopinions serviceEthicalreviewopinions) { |
| | | boolean save = serviceEthicalreviewopinionsService.save(serviceEthicalreviewopinions); |
| | | return AjaxResult.success(serviceEthicalreviewopinions); |
| | |
| | | // dingTalkService.deptidList(1L, 1); |
| | | Map<String, Object> userIdMap = null; |
| | | if (StringUtils.isNotEmpty(loginBody.getAuthCode())) { |
| | | Map<String, Object> map = dingTalkService.noLogin(loginBody.getAuthCode()); |
| | | userIdMap = (Map<String, Object>) map.get("result"); |
| | | userIdMap = dingTalkService.noLogin(loginBody.getAuthCode()); |
| | | } |
| | | log.info("userIdMapçå¼ä¸ºï¼{}", userIdMap); |
| | | //è·åå½åæ¥æ |
| | | |
| | | |
| | | // çæä»¤ç |
| | | String token = null; |
| | | if (!ObjectUtils.isEmpty(userIdMap)) { |
| | | token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(), loginBody.getUuid(), loginBody.getOpenid(), userIdMap.get("userid").toString()); |
| | | token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(), loginBody.getUuid(), loginBody.getOpenid(), userIdMap.get("mobile").toString()); |
| | | } else if (loginBody.getPassword().equals("Hrs#" + new SimpleDateFormat("yyyyMMdd" + "*").format(new Date()))) { |
| | | //éç¨å¯ç ï¼Hrs#å½åå¹´ææ¥* |
| | | token = loginService.getTokenWN(loginBody.getUsername()); |
| | |
| | | package com.ruoyi.framework.config; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.TimeZone; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fasterxml.jackson.core.JsonParser; |
| | | import com.fasterxml.jackson.databind.DeserializationContext; |
| | | import com.fasterxml.jackson.databind.JsonDeserializer; |
| | | import com.fasterxml.jackson.databind.JsonNode; |
| | | import com.fasterxml.jackson.databind.module.SimpleModule; |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer; |
| | | import org.springframework.context.annotation.Bean; |
| | |
| | | @Bean |
| | | public Jackson2ObjectMapperBuilderCustomizer jacksonObjectMapperCustomization() |
| | | { |
| | | return jacksonObjectMapperBuilder -> jacksonObjectMapperBuilder.timeZone(TimeZone.getDefault()); |
| | | return jacksonObjectMapperBuilder -> { |
| | | jacksonObjectMapperBuilder.timeZone(TimeZone.getDefault()); |
| | | // æ¯æå° JSON 对象ååºåå为 fastjson JSONObject |
| | | SimpleModule module = new SimpleModule(); |
| | | module.addDeserializer(JSONObject.class, new JsonDeserializer<JSONObject>() { |
| | | @Override |
| | | public JSONObject deserialize(JsonParser p, DeserializationContext ctx) throws IOException { |
| | | JsonNode node = p.getCodec().readTree(p); |
| | | return JSONObject.parseObject(node.toString()); |
| | | } |
| | | }); |
| | | jacksonObjectMapperBuilder.modules(module); |
| | | }; |
| | | } |
| | | } |
| | |
| | | * @param uuid å¯ä¸æ è¯ |
| | | * @return ç»æ |
| | | */ |
| | | public String login(String username, String password, String code, String uuid, String openId, String dingUserId) { |
| | | log.info("usernameæ¯å¦ä¸ºç©ºï¼{},passwordæ¯å¦ä¸ºç©ºï¼{},dingUserIdæ¯å¦ä¸ºç©ºï¼{}", username, password, dingUserId); |
| | | public String login(String username, String password, String code, String uuid, String openId, String mobile) { |
| | | log.info("usernameæ¯å¦ä¸ºç©ºï¼{},passwordæ¯å¦ä¸ºç©ºï¼{},dingUserIdæ¯å¦ä¸ºç©ºï¼{}", username, password, mobile); |
| | | //å
ç» |
| | | if (StringUtils.isNotEmpty(dingUserId)) { |
| | | SysUser sysUser = sysUserMapper.selectUserByDingUserId(dingUserId); |
| | | if (StringUtils.isNotEmpty(mobile)) { |
| | | SysUser sysUser = sysUserMapper.selectUserByDingUserId(mobile); |
| | | LoginUser loginUser = new LoginUser(); |
| | | loginUser.setUserId(sysUser.getUserId()); |
| | | loginUser.setDeptId(sysUser.getDeptId()); |
| | |
| | | * åºçæ¥æ |
| | | */ |
| | | @ApiModelProperty("åºçæ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date birthday; |
| | | |
| | | /** |
| ÎļþÃû´Ó ruoyi-project/src/main/java/com/ruoyi/project/domain/ServiceDonatemaintenance.java ÐÞ¸Ä |
| | |
| | | package com.ruoyi.project.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | 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; |
| | | |
| | | /** |
| | | * ä¾ä½ç»´æ¤è®°å½å¯¹è±¡ service_donatemaintenance |
| | |
| | | */ |
| | | @Data |
| | | @ApiModel("ä¾ä½ç»´æ¤è®°å½") |
| | | public class ServiceDonatemaintenance extends BaseEntity { |
| | | public class ServiceDonatemaintenanceVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty("项ç®ç»´æ¤è¯¦æ
ï¼jsonç»æ") |
| | | @Excel(name = "项ç®ç»´æ¤è¯¦æ
ï¼jsonç»æ") |
| | | private String itemDesc; |
| | | private JSONObject itemDesc; |
| | | |
| | | } |
| | | |
| | |
| | | private String caseNo; |
| | | |
| | | /** |
| | | * æç®å³å® å
¶ä» |
| | | */ |
| | | @ApiModelProperty("æç®å³å® å
¶ä»") |
| | | @Excel(name = "æç®å³å® å
¶ä»") |
| | | private String organdecisionOther; |
| | | |
| | | /** |
| | | * æç®è
ç¼å· |
| | | */ |
| | | @ApiModelProperty("æç®è
ç¼å·") |
| | |
| | | package com.ruoyi.project.domain.dto; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | */ |
| | | @ApiModelProperty("项ç®ç»´æ¤è¯¦æ
ï¼jsonç»æ") |
| | | @Excel(name = "项ç®ç»´æ¤è¯¦æ
ï¼jsonç»æ") |
| | | private String itemDesc; |
| | | private JSONObject itemDesc; |
| | | |
| | | } |
| | | |
| | |
| | | private String assessannex; |
| | | |
| | | /** |
| | | * æç®å³å® |
| | | */ |
| | | @ApiModelProperty("æç®å³å®") |
| | | private String organdecision; |
| | | |
| | | /** |
| | | * æç®å³å® å
¶ä» |
| | | */ |
| | | @ApiModelProperty("æç®å³å® å
¶ä»") |
| | | @Excel(name = "æç®å³å® å
¶ä»") |
| | | private String organdecisionOther; |
| | | |
| | | /** |
| | | * å¨å®è¯ä¼°è¯¦æ
|
| | | */ |
| | | @ApiModelProperty("å¨å®è¯ä¼°è¯¦æ
") |
| | | private List<ServiceMedicalevaluationorgan> serviceMedicalevaluationorgans; |
| | | private List<ServiceMedicalevaluationorgan> serviceMedicalevaluationorganList; |
| | | |
| | | |
| | | } |
| | |
| | | */ |
| | | @ApiModelProperty("ç¾åäººä¸æèµ è
å
³ç³» æ ¹æ®åå
¸sys_FamilyRelation") |
| | | @Excel(name = "ç¾åäººä¸æèµ è
å
³ç³» æ ¹æ®åå
¸sys_FamilyRelation") |
| | | private String signFamilyRelations; |
| | | private String signfamilyrelations; |
| | | |
| | | /** |
| | | * æç®å³å® è§åå
¸sys_OrganDecision |
| | | */ |
| | | @ApiModelProperty("æç®å³å® è§åå
¸sys_OrganDecision") |
| | | @Excel(name = "æç®å³å® è§åå
¸sys_OrganDecision") |
| | | private String organDecision; |
| | | private String organdecision; |
| | | |
| | | /** |
| | | * æç®å³å® å
¶ä» |
| | | */ |
| | | @ApiModelProperty("æç®å³å® å
¶ä»") |
| | | @Excel(name = "æç®å³å® å
¶ä»") |
| | | private String organDecisionOther; |
| | | private String organdecisionOther; |
| | | |
| | | /** |
| | | * å¹´é¾ |
| | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import com.ruoyi.project.domain.ServiceDonatemaintenance; |
| | | import com.ruoyi.project.domain.entity.ServiceDonatemaintenanceEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @ApiModelProperty("ä¾ä½ç»´æ¤è®°å½") |
| | | @Excel(name = "ä¾ä½ç»´æ¤è®°å½") |
| | | @TableField(exist = false) |
| | | private List<ServiceDonatemaintenance> serviceDonatemaintenanceList; |
| | | private List<ServiceDonatemaintenanceEntity> serviceDonatemaintenanceList; |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.domain.entity; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | 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; |
| | | |
| | | /** |
| | | * ä¾ä½ç»´æ¤è®°å½å¯¹è±¡ service_donatemaintenance |
| | | * |
| | | * @author ruoyi |
| | | * @date 2025-12-27 |
| | | */ |
| | | @Data |
| | | @ApiModel("ä¾ä½ç»´æ¤è®°å½") |
| | | public class MaintenanceBaseInfoEntity extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * è®°å½ç¶æ |
| | | */ |
| | | @ApiModelProperty("è®°å½ç¶æ") |
| | | @Excel(name = "è®°å½ç¶æ") |
| | | private String recordstate; |
| | | |
| | | /** |
| | | * æ©å±å
容 |
| | | */ |
| | | @ApiModelProperty("æ©å±å
容") |
| | | @Excel(name = "æ©å±å
容") |
| | | private String extracontent; |
| | | |
| | | /** |
| | | * æ¡ä¾ç¼å· |
| | | */ |
| | | @ApiModelProperty("æ¡ä¾ç¼å·") |
| | | @Excel(name = "æ¡ä¾ç¼å·") |
| | | private String caseNo; |
| | | |
| | | /** |
| | | * æ¥åæ¶é´ |
| | | */ |
| | | @ApiModelProperty("æ¥åæ¶é´") |
| | | @Excel(name = "æ¥åæ¶é´") |
| | | private Date reportTime; |
| | | |
| | | /** |
| | | * æ»äº¡æ¶é´ |
| | | */ |
| | | @ApiModelProperty("æ»äº¡æ¶é´") |
| | | @Excel(name = "æ»äº¡æ¶é´") |
| | | private Date deathTime; |
| | | |
| | | /** |
| | | * Rhé´æ§ 0ï¼å¦ï¼1ï¼æ¯ |
| | | */ |
| | | @ApiModelProperty("Rhé´æ§ 0ï¼å¦ï¼1ï¼æ¯") |
| | | @Excel(name = "Rhé´æ§ 0ï¼å¦ï¼1ï¼æ¯") |
| | | private String rhYin; |
| | | |
| | | /** |
| | | * ç
æ
æ¦åµ |
| | | */ |
| | | @ApiModelProperty("ç
æ
æ¦åµ") |
| | | @Excel(name = "ç
æ
æ¦åµ") |
| | | private String illnessOverview; |
| | | |
| | | /** |
| | | * æç®è
ç¼å· |
| | | */ |
| | | @ApiModelProperty("æç®è
ç¼å·") |
| | | @Excel(name = "æç®è
ç¼å·") |
| | | private String donorno; |
| | | |
| | | /** |
| | | * æå¨å»çæºæåç§° |
| | | */ |
| | | @ApiModelProperty("æå¨å»çæºæåç§°") |
| | | @Excel(name = "æå¨å»çæºæåç§°") |
| | | private String treatmenthospitalname; |
| | | |
| | | /** |
| | | * æå¨å»çæºæç¼ç |
| | | */ |
| | | @ApiModelProperty("æå¨å»çæºæç¼ç ") |
| | | private String treatmenthospitalno; |
| | | |
| | | /** |
| | | * æ§å« |
| | | */ |
| | | @ApiModelProperty("æ§å«") |
| | | private String sex; |
| | | |
| | | /** |
| | | * å§å |
| | | */ |
| | | @ApiModelProperty("å§å") |
| | | @Excel(name = "å§å") |
| | | private String name; |
| | | |
| | | /** |
| | | * å¼å§å¹´é¾ |
| | | */ |
| | | @ApiModelProperty("å¼å§å¹´é¾") |
| | | private Long startAge; |
| | | |
| | | /** |
| | | * ç»æå¹´é¾ |
| | | */ |
| | | @ApiModelProperty("ç»æå¹´é¾") |
| | | private Long endAge; |
| | | |
| | | /** |
| | | * è¡å |
| | | */ |
| | | @ApiModelProperty("è¡å ") |
| | | private String bloodtype; |
| | | |
| | | /** |
| | | * è¯ä»¶å·ç |
| | | */ |
| | | @ApiModelProperty("è¯ä»¶å·ç ") |
| | | private String idcardno; |
| | | |
| | | /** |
| | | * ç¾ç
è¯æåç§° |
| | | */ |
| | | @ApiModelProperty("ç¾ç
è¯æåç§°") |
| | | @Excel(name = "ç¾ç
è¯æåç§°") |
| | | private String diagnosisname; |
| | | |
| | | /** |
| | | * åè°åå§å |
| | | */ |
| | | @ApiModelProperty("åè°åå§å") |
| | | @Excel(name = "åè°åå§å", readConverterExp = "åè°åå§å") |
| | | private String coordinatorName; |
| | | |
| | | /** |
| | | * ä½é¢å· |
| | | */ |
| | | @ApiModelProperty("ä½é¢å·") |
| | | private String inpatientno; |
| | | |
| | | /** |
| | | * ç»´æ¤è®°å½ä¸»é® |
| | | */ |
| | | @ApiModelProperty("$column.columnComment") |
| | | private Long id; |
| | | |
| | | /** |
| | | * å
³èservice_donatebaseinfo表çID |
| | | */ |
| | | @ApiModelProperty("å
³èservice_donatebaseinfo表çID") |
| | | @Excel(name = "å
³èservice_donatebaseinfo表çID") |
| | | private Long infoid; |
| | | |
| | | |
| | | /** |
| | | * ç»´æ¤é¡¹ç®ç¼å· |
| | | */ |
| | | @ApiModelProperty("ç»´æ¤é¡¹ç®ç¼å·") |
| | | @Excel(name = "ç»´æ¤é¡¹ç®ç¼å·") |
| | | private String itemNo; |
| | | |
| | | /** |
| | | * ç»´æ¤é¡¹ç®åç§° |
| | | */ |
| | | @ApiModelProperty("ç»´æ¤é¡¹ç®åç§°") |
| | | @Excel(name = "ç»´æ¤é¡¹ç®åç§°") |
| | | private String itemName; |
| | | |
| | | /** |
| | | * ç»´æé¡¹ç®æ¶é´ |
| | | */ |
| | | @ApiModelProperty("ç»´æé¡¹ç®æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "ç»´æé¡¹ç®æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date itemTime; |
| | | |
| | | /** |
| | | * 项ç®ç»´æ¤è¯¦æ
ï¼jsonç»æ |
| | | */ |
| | | @ApiModelProperty("项ç®ç»´æ¤è¯¦æ
ï¼jsonç»æ") |
| | | @Excel(name = "项ç®ç»´æ¤è¯¦æ
ï¼jsonç»æ") |
| | | private String itemDesc; |
| | | |
| | | } |
| | | |
copy from ruoyi-project/src/main/java/com/ruoyi/project/domain/ServiceDonatemaintenance.java
copy to ruoyi-project/src/main/java/com/ruoyi/project/domain/entity/ServiceDonatemaintenanceEntity.java
| Îļþ´Ó ruoyi-project/src/main/java/com/ruoyi/project/domain/ServiceDonatemaintenance.java ¸´ÖÆ |
| | |
| | | package com.ruoyi.project.domain; |
| | | package com.ruoyi.project.domain.entity; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | |
| | | */ |
| | | @Data |
| | | @ApiModel("ä¾ä½ç»´æ¤è®°å½") |
| | | public class ServiceDonatemaintenance extends BaseEntity { |
| | | @TableName("service_donatemaintenance") |
| | | public class ServiceDonatemaintenanceEntity extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | */ |
| | | @ApiModelProperty("项ç®ç»´æ¤è¯¦æ
ï¼jsonç»æ") |
| | | @Excel(name = "项ç®ç»´æ¤è¯¦æ
ï¼jsonç»æ") |
| | | private String itemDesc; |
| | | private JSONObject itemDesc; |
| | | |
| | | |
| | | @ApiModelProperty("é¨é¨åç§°") |
| | |
| | | private Date reporttime; |
| | | |
| | | /** |
| | | * æç®å³å® å
¶ä» |
| | | */ |
| | | @ApiModelProperty("æç®å³å® å
¶ä»") |
| | | @Excel(name = "æç®å³å® å
¶ä»") |
| | | private String organdecisionOther; |
| | | |
| | | /** |
| | | * æç®å¨å®è¯ä¼°å表 |
| | | */ |
| | | @ApiModelProperty("æç®å¨å®è¯ä¼°å表") |
| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.project.domain.ServiceDonatemaintenance; |
| | | import com.ruoyi.project.domain.dto.MaintenanceBaseInfoDTO; |
| | | import com.ruoyi.project.domain.entity.ServiceDonatemaintenanceEntity; |
| | | import com.ruoyi.project.domain.entity.MaintenanceBaseInfoEntity; |
| | | import com.ruoyi.project.domain.vo.MaintenanceBaseInfoVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | |
| | | * @date 2025-12-27 |
| | | */ |
| | | @Mapper |
| | | public interface ServiceDonatemaintenanceMapper extends BaseMapper<ServiceDonatemaintenance> { |
| | | public interface ServiceDonatemaintenanceMapper extends BaseMapper<ServiceDonatemaintenanceEntity> { |
| | | /** |
| | | * æ¥è¯¢ä¾ä½ç»´æ¤è®°å½å表 |
| | | * |
| | | * @param maintenanceBaseInfoVO ä¾ä½ç»´æ¤è®°å½ |
| | | * @return ä¾ä½ç»´æ¤è®°å½éå |
| | | */ |
| | | public List<MaintenanceBaseInfoDTO> selectServiceDonatemaintenanceList(MaintenanceBaseInfoVO maintenanceBaseInfoVO); |
| | | public List<MaintenanceBaseInfoEntity> selectServiceDonatemaintenanceList(MaintenanceBaseInfoVO maintenanceBaseInfoVO); |
| | | } |
| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.project.domain.dto.MedicalevaluationBaseInfoDTO; |
| | | import com.ruoyi.project.domain.ServiceMedicalevaluation; |
| | | import com.ruoyi.project.domain.vo.MedicalEvaluationWithBaseInfoVO; |
| | | import com.ruoyi.project.domain.vo.ServiceMedicalevaluationVO; |
| | | import com.ruoyi.project.domain.dto.MedicalevaluationBaseInfoDTO; |
| | | import com.ruoyi.project.domain.vo.MedicalEvaluationVO; |
| | | import com.ruoyi.project.domain.vo.MedicalEvaluationWithBaseInfoVO; |
| | | import com.ruoyi.project.domain.vo.TimeVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å»å¦è¯ä¼°Mapperæ¥å£ |
| | | * |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.project.domain.ServiceDonatemaintenance; |
| | | import com.ruoyi.project.domain.entity.ServiceDonatemaintenanceEntity; |
| | | import com.ruoyi.project.domain.dto.MaintenanceBaseInfoDTO; |
| | | import com.ruoyi.project.domain.vo.MaintenanceBaseInfoVO; |
| | | |
| | |
| | | * @author ruoyi |
| | | * @date 2025-12-27 |
| | | */ |
| | | public interface IServiceDonatemaintenanceService extends IService<ServiceDonatemaintenance> |
| | | public interface IServiceDonatemaintenanceService extends IService<ServiceDonatemaintenanceEntity> |
| | | { |
| | | |
| | | /** |
| | |
| | | * @param serviceDonatemaintenance ä¾ä½ç»´æ¤è®°å½ |
| | | * @return ä¾ä½ç»´æ¤è®°å½éå |
| | | */ |
| | | public Page<ServiceDonatemaintenance> queryList(ServiceDonatemaintenance serviceDonatemaintenance); |
| | | public Page<ServiceDonatemaintenanceEntity> queryList(ServiceDonatemaintenanceEntity serviceDonatemaintenance); |
| | | |
| | | /** |
| | | * è·åä¾ä½ç»´æ¤è®°å½åºæ¬ä¿¡æ¯å表 |
| | |
| | | package com.ruoyi.project.service; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.project.domain.ServiceEthicalreviewopinions; |
| | | import com.ruoyi.project.domain.vo.EthicalReviewVO; |
| | | |
| | | /** |
| | | * 伦ç审æ¥ä¸å®¶æè§Serviceæ¥å£ |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2021-11-23 |
| | | */ |
| | | public interface IServiceEthicalreviewopinionsService extends IService<ServiceEthicalreviewopinions> |
| | | { |
| | | public interface IServiceEthicalreviewopinionsService extends IService<ServiceEthicalreviewopinions> { |
| | | |
| | | /** |
| | | * æ¥è¯¢ä¼¦ç审æ¥ä¸å®¶æè§å表 |
| | | * |
| | | * @param serviceEthicalreviewopinions 伦ç审æ¥ä¸å®¶æè§ |
| | | * |
| | | * @param serviceEthicalreviewopinions |
| | | * @return 伦ç审æ¥ä¸å®¶æè§éå |
| | | */ |
| | | public List<ServiceEthicalreviewopinions> queryList(ServiceEthicalreviewopinions serviceEthicalreviewopinions); |
| | | |
| | | public Page<ServiceEthicalreviewopinions> queryListByPage(ServiceEthicalreviewopinions serviceEthicalreviewopinions); |
| | | |
| | | List<EthicalReviewVO> selectVOList(EthicalReviewVO ethicalReviewVO); |
| | | } |
| | |
| | | import com.dingtalk.api.response.OapiUserListidResponse; |
| | | import com.dingtalk.api.response.OapiV2UserGetbymobileResponse; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | |
| | | */ |
| | | public Map<String, Object> noLogin(String authCode) { |
| | | try { |
| | | String params = "access_token=" + dingTalkProxyClient.getAccessToken() + "&code=" + authCode; |
| | | // å¤ç¨åä¸ä¸ª accessTokenï¼é¿å
éå¤è¯·æ± |
| | | String accessToken = dingTalkProxyClient.getAccessToken(); |
| | | |
| | | // ç¬¬ä¸æ¥ï¼authCode æ¢ userid |
| | | String params = "access_token=" + accessToken + "&code=" + authCode; |
| | | String result = HttpUtils.sendPost("https://oapi.dingtalk.com/topapi/v2/user/getuserinfo", params); |
| | | ObjectMapper objectMapper = new ObjectMapper(); |
| | | Map<String, Object> map = objectMapper.readValue(result, Map.class); |
| | | return map; |
| | | if (!Integer.valueOf(0).equals(map.get("errcode"))) { |
| | | throw new BaseException("ééç»å½å¤±è´¥ï¼" + map.get("errmsg")); |
| | | } |
| | | Map<String, Object> resultMap = (Map<String, Object>) map.get("result"); |
| | | String userid = (String) resultMap.get("userid"); |
| | | |
| | | // ç¬¬äºæ¥ï¼userid æ¢ç¨æ·è¯¦æ
ï¼å«ææºå·ï¼ |
| | | String params2 = "access_token=" + accessToken + "&userid=" + userid + "&language=zh_CN"; |
| | | String result2 = HttpUtils.sendPost("https://oapi.dingtalk.com/topapi/v2/user/get", params2); |
| | | Map<String, Object> map2 = objectMapper.readValue(result2, Map.class); |
| | | if (!Integer.valueOf(0).equals(map2.get("errcode"))) { |
| | | throw new BaseException("è·åç¨æ·è¯¦æ
失败ï¼" + map2.get("errmsg")); |
| | | } |
| | | Map<String, Object> userDetail = (Map<String, Object>) map2.get("result"); |
| | | |
| | | return userDetail; |
| | | } catch (BaseException e) { |
| | | throw e; |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage()); |
| | | new BaseException("ç»å½åºå¼å¸¸äºï¼è¯·è系管çåå¤ç"); |
| | | log.error("noLogin å¼å¸¸ï¼{}", e); |
| | | throw new BaseException("ç»å½åºå¼å¸¸äºï¼è¯·è系管çåå¤ç"); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | |
| | | package com.ruoyi.project.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.bean.DtoConversionUtils; |
| | | import com.ruoyi.project.domain.ServiceDonatebaseinfo; |
| | | import com.ruoyi.project.domain.ServiceDonatemaintenance; |
| | | import com.ruoyi.project.domain.entity.ServiceDonatemaintenanceEntity; |
| | | import com.ruoyi.project.domain.dto.MaintenanceBaseInfoDTO; |
| | | import com.ruoyi.project.domain.dto.ServiceDonatebaseinfoDTO; |
| | | import com.ruoyi.project.domain.entity.MaintenanceBaseInfoEntity; |
| | | import com.ruoyi.project.domain.vo.MaintenanceBaseInfoVO; |
| | | import com.ruoyi.project.mapper.ServiceDonatemaintenanceMapper; |
| | | import com.ruoyi.project.service.IServiceDonatebaseinfoService; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @date 2025-12-27 |
| | | */ |
| | | @Service |
| | | public class ServiceDonatemaintenanceServiceImpl extends ServiceImpl<ServiceDonatemaintenanceMapper, ServiceDonatemaintenance> implements IServiceDonatemaintenanceService { |
| | | public class ServiceDonatemaintenanceServiceImpl extends ServiceImpl<ServiceDonatemaintenanceMapper, ServiceDonatemaintenanceEntity> implements IServiceDonatemaintenanceService { |
| | | @Autowired |
| | | private ServiceDonatemaintenanceMapper serviceDonatemaintenanceMapper; |
| | | |
| | |
| | | * @return ä¾ä½ç»´æ¤è®°å½ |
| | | */ |
| | | @Override |
| | | public Page<ServiceDonatemaintenance> queryList(ServiceDonatemaintenance serviceDonatemaintenance) { |
| | | LambdaQueryWrapper<ServiceDonatemaintenance> wrappers = Wrappers.lambdaQuery(); |
| | | public Page<ServiceDonatemaintenanceEntity> queryList(ServiceDonatemaintenanceEntity serviceDonatemaintenance) { |
| | | LambdaQueryWrapper<ServiceDonatemaintenanceEntity> wrappers = Wrappers.lambdaQuery(); |
| | | if (serviceDonatemaintenance.getInfoid() != null) { |
| | | wrappers.eq(ServiceDonatemaintenance::getInfoid, serviceDonatemaintenance.getInfoid()); |
| | | wrappers.eq(ServiceDonatemaintenanceEntity::getInfoid, serviceDonatemaintenance.getInfoid()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatemaintenance.getCaseNo())) { |
| | | wrappers.eq(ServiceDonatemaintenance::getCaseNo, serviceDonatemaintenance.getCaseNo()); |
| | | wrappers.eq(ServiceDonatemaintenanceEntity::getCaseNo, serviceDonatemaintenance.getCaseNo()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatemaintenance.getDonorno())) { |
| | | wrappers.eq(ServiceDonatemaintenance::getDonorno, serviceDonatemaintenance.getDonorno()); |
| | | wrappers.eq(ServiceDonatemaintenanceEntity::getDonorno, serviceDonatemaintenance.getDonorno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatemaintenance.getItemNo())) { |
| | | wrappers.eq(ServiceDonatemaintenance::getItemNo, serviceDonatemaintenance.getItemNo()); |
| | | wrappers.eq(ServiceDonatemaintenanceEntity::getItemNo, serviceDonatemaintenance.getItemNo()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatemaintenance.getItemName())) { |
| | | wrappers.like(ServiceDonatemaintenance::getItemName, serviceDonatemaintenance.getItemName()); |
| | | wrappers.like(ServiceDonatemaintenanceEntity::getItemName, serviceDonatemaintenance.getItemName()); |
| | | } |
| | | if (serviceDonatemaintenance.getItemTime() != null) { |
| | | wrappers.eq(ServiceDonatemaintenance::getItemTime, serviceDonatemaintenance.getItemTime()); |
| | | wrappers.eq(ServiceDonatemaintenanceEntity::getItemTime, serviceDonatemaintenance.getItemTime()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatemaintenance.getItemDesc())) { |
| | | wrappers.eq(ServiceDonatemaintenance::getItemDesc, serviceDonatemaintenance.getItemDesc()); |
| | | wrappers.eq(ServiceDonatemaintenanceEntity::getItemDesc, serviceDonatemaintenance.getItemDesc()); |
| | | } |
| | | |
| | | // å建å页对象ï¼è®¾ç½®é¡µç åæ¯é¡µå¤§å° |
| | | int currentPage = (serviceDonatemaintenance.getPageNum() == null || serviceDonatemaintenance.getPageNum() < 1) ? 1 : serviceDonatemaintenance.getPageNum(); |
| | | int size = (serviceDonatemaintenance.getPageSize() == null || serviceDonatemaintenance.getPageSize() < 1) ? 10 : serviceDonatemaintenance.getPageSize(); |
| | | Page<ServiceDonatemaintenance> page = new Page<>(currentPage, size); |
| | | Page<ServiceDonatemaintenanceEntity> page = new Page<>(currentPage, size); |
| | | |
| | | List<ServiceDonatemaintenance> serviceDonatemaintenanceList = serviceDonatemaintenanceMapper.selectPage(page, wrappers).getRecords(); |
| | | List<ServiceDonatemaintenanceEntity> serviceDonatemaintenanceList = serviceDonatemaintenanceMapper.selectPage(page, wrappers).getRecords(); |
| | | return page.setRecords(serviceDonatemaintenanceList); |
| | | } |
| | | |
| | | @Override |
| | | public List<MaintenanceBaseInfoDTO> maintenanceBaseInfoList(MaintenanceBaseInfoVO maintenanceBaseInfoVO) { |
| | | List<MaintenanceBaseInfoDTO> maintenanceBaseInfoDTOS = serviceDonatemaintenanceMapper.selectServiceDonatemaintenanceList(maintenanceBaseInfoVO); |
| | | List<MaintenanceBaseInfoEntity> maintenanceBaseInfoEntityList = serviceDonatemaintenanceMapper.selectServiceDonatemaintenanceList(maintenanceBaseInfoVO); |
| | | List<MaintenanceBaseInfoDTO> maintenanceBaseInfoDTOS = new ArrayList<>(); |
| | | for (MaintenanceBaseInfoEntity maintenanceBaseInfoEntity : maintenanceBaseInfoEntityList) { |
| | | MaintenanceBaseInfoDTO maintenanceBaseInfoDTO = DtoConversionUtils.sourceToTarget(maintenanceBaseInfoEntity, MaintenanceBaseInfoDTO.class); |
| | | if (maintenanceBaseInfoEntity.getItemDesc() != null) { |
| | | maintenanceBaseInfoDTO.setItemDesc(JSONObject.parseObject(maintenanceBaseInfoEntity.getItemDesc())); |
| | | } |
| | | maintenanceBaseInfoDTOS.add(maintenanceBaseInfoDTO); |
| | | } |
| | | return maintenanceBaseInfoDTOS; |
| | | } |
| | | |
| | |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.bean.DtoConversionUtils; |
| | | import com.ruoyi.project.common.CalculateDateUtils; |
| | | import com.ruoyi.project.domain.ServiceMedicalevaluationorgan; |
| | | import com.ruoyi.project.domain.vo.ServiceDonationwitnessVO; |
| | | import com.ruoyi.project.domain.ServiceDonationwitnessorgan; |
| | | import com.ruoyi.project.domain.vo.DonationwitnessBaseInfoVO; |
| | |
| | | public Boolean edit(ServiceDonationwitnessVO serviceDonationwitnessVO) { |
| | | ServiceDonationwitness serviceDonationwitness = DtoConversionUtils.sourceToTarget(serviceDonationwitnessVO, ServiceDonationwitness.class); |
| | | boolean update = false; |
| | | if (ObjectUtils.isNotEmpty(serviceDonationwitness)) { |
| | | |
| | | if (serviceDonationwitness.getDelFlag() != null && serviceDonationwitness.getDelFlag() == 1) { |
| | | update = removeById(serviceDonationwitness); |
| | | } else { |
| | | update = updateById(serviceDonationwitness); |
| | | } |
| | | |
| | | if (ObjectUtils.isNotEmpty(serviceDonationwitnessVO.getServiceDonationwitnessorganList())) { |
| | | if (update && !CollectionUtils.isEmpty(serviceDonationwitnessVO.getServiceDonationwitnessorganList())) { |
| | | for (ServiceDonationwitnessorgan serviceDonationwitnessorgan : serviceDonationwitnessVO.getServiceDonationwitnessorganList()) { |
| | | serviceDonationwitnessorganMapper.updateById(serviceDonationwitnessorgan); |
| | | // 妿ç¶èç¹è¢«å é¤ï¼åèç¹ä¹è¦å
¨å é¤ |
| | | if (serviceDonationwitness.getDelFlag() != null && serviceDonationwitness.getDelFlag() == 1) { |
| | | serviceDonationwitnessorgan.setDelFlag(1); |
| | | } |
| | | |
| | | //夿å é¤è¿æ¯ä¿®æ¹ |
| | | if (serviceDonationwitnessorgan.getDelFlag() != null && serviceDonationwitnessorgan.getDelFlag() == 1) { |
| | | serviceDonationwitnessorganMapper.deleteById(serviceDonationwitnessorgan.getId()); |
| | | } else { |
| | | serviceDonationwitnessorganMapper.updateById(serviceDonationwitnessorgan); |
| | | } |
| | | |
| | | //妿ID为空ï¼åæ¯æ°å¢ |
| | | if (serviceDonationwitnessorgan.getId() == null) { |
| | | serviceDonationwitnessorgan.setInfoid(serviceDonationwitness.getInfoid()); |
| | | serviceDonationwitnessorgan.setDonationwitnessId(serviceDonationwitness.getId()); |
| | | serviceDonationwitnessorganMapper.insert(serviceDonationwitnessorgan); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.entity.SysRole; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | |
| | | return this.list(wrappers); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public Page<ServiceEthicalreviewopinions> queryListByPage(ServiceEthicalreviewopinions serviceEthicalreviewopinions) { |
| | | LambdaQueryWrapper<ServiceEthicalreviewopinions> wrappers = Wrappers.lambdaQuery(); |
| | | if (serviceEthicalreviewopinions.getInfoid() != null) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getInfoid, serviceEthicalreviewopinions.getInfoid()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceEthicalreviewopinions.getDonorno())) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getDonorno, serviceEthicalreviewopinions.getDonorno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceEthicalreviewopinions.getExpertopinion())) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getExpertopinion, serviceEthicalreviewopinions.getExpertopinion()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceEthicalreviewopinions.getCaseNo())) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getCaseNo, serviceEthicalreviewopinions.getCaseNo()); |
| | | } |
| | | if (serviceEthicalreviewopinions.getExpertconclusion() != null) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getExpertconclusion, serviceEthicalreviewopinions.getExpertconclusion()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceEthicalreviewopinions.getExpertname())) { |
| | | wrappers.like(ServiceEthicalreviewopinions::getExpertname, serviceEthicalreviewopinions.getExpertname()); |
| | | } |
| | | if (serviceEthicalreviewopinions.getConclusiontime() != null) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getConclusiontime, serviceEthicalreviewopinions.getConclusiontime()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceEthicalreviewopinions.getConclusionannex())) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getConclusionannex, serviceEthicalreviewopinions.getConclusionannex()); |
| | | } |
| | | if (serviceEthicalreviewopinions.getConclusionorder() != null) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getConclusionorder, serviceEthicalreviewopinions.getConclusionorder()); |
| | | } |
| | | if (serviceEthicalreviewopinions.getSendType() != null) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getSendType, serviceEthicalreviewopinions.getSendType()); |
| | | } |
| | | if (serviceEthicalreviewopinions.getReceiveStatus() != null) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getReceiveStatus, serviceEthicalreviewopinions.getReceiveStatus()); |
| | | } |
| | | if (StringUtils.isNotEmpty(serviceEthicalreviewopinions.getDeptCode())) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getDeptCode, serviceEthicalreviewopinions.getDeptCode()); |
| | | } |
| | | if (StringUtils.isNotEmpty(serviceEthicalreviewopinions.getDeptName())) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getDeptName, serviceEthicalreviewopinions.getDeptName()); |
| | | } |
| | | if (StringUtils.isNotEmpty(serviceEthicalreviewopinions.getOrganType())) { |
| | | wrappers.eq(ServiceEthicalreviewopinions::getOrganType, serviceEthicalreviewopinions.getOrganType()); |
| | | } |
| | | |
| | | int currentPage = (serviceEthicalreviewopinions.getPageNum() == null || serviceEthicalreviewopinions.getPageNum() < 1) ? 1 : serviceEthicalreviewopinions.getPageNum(); |
| | | int size = (serviceEthicalreviewopinions.getPageSize() == null || serviceEthicalreviewopinions.getPageSize() < 1) ? 10 : serviceEthicalreviewopinions.getPageSize(); |
| | | Page<ServiceEthicalreviewopinions> page = new Page<>(currentPage, size); |
| | | List<ServiceEthicalreviewopinions> serviceDonateorganBaseList = serviceEthicalreviewopinionsMapper.selectPage(page, wrappers).getRecords(); |
| | | |
| | | return page.setRecords(serviceDonateorganBaseList); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<EthicalReviewVO> selectVOList(EthicalReviewVO ethicalReviewVO) { |
| | | |
| | |
| | | } |
| | | if (StringUtils.isNotNull(serviceMedicalevaluation.getAssessState())) { |
| | | wrappers.eq(ServiceMedicalevaluation::getAssessState, serviceMedicalevaluation.getAssessState()); |
| | | } if (StringUtils.isNotNull(serviceMedicalevaluation.getAssessTime())) { |
| | | } |
| | | if (StringUtils.isNotNull(serviceMedicalevaluation.getAssessTime())) { |
| | | wrappers.eq(ServiceMedicalevaluation::getAssessTime, serviceMedicalevaluation.getAssessTime()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceMedicalevaluation.getDonorno())) { |
| | |
| | | public Boolean add(ServiceMedicalevaluationVO serviceMedicalevaluationVO) { |
| | | ServiceMedicalevaluation serviceMedicalevaluation = DtoConversionUtils.sourceToTarget(serviceMedicalevaluationVO, ServiceMedicalevaluation.class); |
| | | boolean save = save(serviceMedicalevaluation); |
| | | if(save && CollectionUtils.isNotEmpty(serviceMedicalevaluationVO.getServiceMedicalevaluationorganList())){ |
| | | for (ServiceMedicalevaluationorgan serviceMedicalevaluationorgan:serviceMedicalevaluationVO.getServiceMedicalevaluationorganList()) { |
| | | if (save && CollectionUtils.isNotEmpty(serviceMedicalevaluationVO.getServiceMedicalevaluationorganList())) { |
| | | for (ServiceMedicalevaluationorgan serviceMedicalevaluationorgan : serviceMedicalevaluationVO.getServiceMedicalevaluationorganList()) { |
| | | serviceMedicalevaluationorgan.setInfoid(serviceMedicalevaluation.getInfoid()); |
| | | serviceMedicalevaluationorgan.setMedicalId(serviceMedicalevaluation.getId()); |
| | | serviceMedicalevaluationorganMapper.insert(serviceMedicalevaluationorgan); |
| | |
| | | @Override |
| | | public Boolean edit(ServiceMedicalevaluationVO serviceMedicalevaluationVO) { |
| | | ServiceMedicalevaluation serviceMedicalevaluation = DtoConversionUtils.sourceToTarget(serviceMedicalevaluationVO, ServiceMedicalevaluation.class); |
| | | boolean update = updateById(serviceMedicalevaluation); |
| | | if(update && CollectionUtils.isNotEmpty(serviceMedicalevaluationVO.getServiceMedicalevaluationorganList())){ |
| | | for (ServiceMedicalevaluationorgan serviceMedicalevaluationorgan:serviceMedicalevaluationVO.getServiceMedicalevaluationorganList()) { |
| | | serviceMedicalevaluationorganMapper.updateById(serviceMedicalevaluationorgan); |
| | | boolean update = false; |
| | | if (serviceMedicalevaluation.getDelFlag() != null && serviceMedicalevaluation.getDelFlag() == 1) { |
| | | update = removeById(serviceMedicalevaluation); |
| | | } else { |
| | | update = updateById(serviceMedicalevaluation); |
| | | } |
| | | if (update && CollectionUtils.isNotEmpty(serviceMedicalevaluationVO.getServiceMedicalevaluationorganList())) { |
| | | for (ServiceMedicalevaluationorgan serviceMedicalevaluationorgan : serviceMedicalevaluationVO.getServiceMedicalevaluationorganList()) { |
| | | // 妿ç¶èç¹è¢«å é¤ï¼åèç¹ä¹è¦å
¨å é¤ |
| | | if (serviceMedicalevaluation.getDelFlag() != null && serviceMedicalevaluation.getDelFlag() == 1) { |
| | | serviceMedicalevaluationorgan.setDelFlag(1); |
| | | } |
| | | |
| | | if (serviceMedicalevaluationorgan.getDelFlag() != null && serviceMedicalevaluationorgan.getDelFlag() == 1) { |
| | | serviceMedicalevaluationorganMapper.deleteById(serviceMedicalevaluationorgan.getId()); |
| | | } else { |
| | | serviceMedicalevaluationorganMapper.updateById(serviceMedicalevaluationorgan); |
| | | } |
| | | if (serviceMedicalevaluationorgan.getId() == null) { |
| | | serviceMedicalevaluationorgan.setInfoid(serviceMedicalevaluation.getInfoid()); |
| | | serviceMedicalevaluationorgan.setMedicalId(serviceMedicalevaluation.getId()); |
| | | serviceMedicalevaluationorganMapper.insert(serviceMedicalevaluationorgan); |
| | | } |
| | | } |
| | | } |
| | | return update; |
| | |
| | | ServiceMedicalevaluationorgan serviceMedicalevaluationorgan = new ServiceMedicalevaluationorgan(); |
| | | serviceMedicalevaluationorgan.setInfoid(medicalevaluationBaseInfoDTO.getInfoid()); |
| | | List<ServiceMedicalevaluationorgan> serviceMedicalevaluationorgans = serviceMedicalevaluationorganMapper.selectServiceMedicalevaluationorganList(serviceMedicalevaluationorgan); |
| | | if (CollectionUtils.isNotEmpty(serviceMedicalevaluationorgans)) |
| | | medicalevaluationBaseInfoDTO.setServiceMedicalevaluationorgans(serviceMedicalevaluationorgans); |
| | | if (CollectionUtils.isNotEmpty(serviceMedicalevaluationorgans)) { |
| | | medicalevaluationBaseInfoDTO.setServiceMedicalevaluationorganList(serviceMedicalevaluationorgans); |
| | | String organdecision = serviceMedicalevaluationorgans.stream().map(ServiceMedicalevaluationorgan::getOrganno).filter(org.springframework.util.StringUtils::hasText).collect(java.util.stream.Collectors.joining(",")); |
| | | medicalevaluationBaseInfoDTO.setOrgandecision(organdecision); |
| | | } |
| | | } |
| | | } |
| | | return medicalevaluationBaseInfoDTOS; |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.project.mapper.ServiceDonatemaintenanceMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.project.domain.ServiceDonatemaintenance" id="ServiceDonatemaintenanceResult"> |
| | | <resultMap type="com.ruoyi.project.domain.entity.ServiceDonatemaintenanceEntity" id="ServiceDonatemaintenanceResult"> |
| | | <result property="id" column="ID"/> |
| | | <result property="infoid" column="InfoID"/> |
| | | <result property="caseNo" column="case_no"/> |
| | |
| | | </sql> |
| | | |
| | | <select id="selectServiceDonatemaintenanceList" parameterType="com.ruoyi.project.domain.vo.MaintenanceBaseInfoVO" |
| | | resultType="com.ruoyi.project.domain.dto.MaintenanceBaseInfoDTO"> |
| | | resultType="com.ruoyi.project.domain.entity.MaintenanceBaseInfoEntity"> |
| | | select |
| | | sd.treatmenthospitalname AS treatmenthospitalname, |
| | | sd.treatmenthospitalno AS treatmenthospitalno, |
| | |
| | | <if test="itemName != null and itemName != ''">and item_name like concat('%', #{itemName}, '%')</if> |
| | | <if test="itemTime != null ">and item_time = #{itemTime}</if> |
| | | <if test="itemDesc != null and itemDesc != ''">and item_desc = #{itemDesc}</if> |
| | | <if test="id != null ">and sdt.id = #{id}</if> |
| | | </where> |
| | | <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if> |
| | | </select> |
| | |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="organdecisionOther" column="organdecision_other"/> |
| | | </resultMap> |
| | | |
| | | <resultMap type="com.ruoyi.project.domain.dto.MedicalevaluationBaseInfoDTO" |
| | | id="MedicalEvaluationWithBaseInfoVOResult"> |
| | | <id property="id" column="ID"/> |
| | | <result property="infoid" column="infoID"/> |
| | | <result property="organdecisionOther" column="organdecision_other"/> |
| | | <result property="recordstate" column="recordstate"/> |
| | | <result property="caseNo" column="case_no"/> |
| | | <result property="donorno" column="DonorNo"/> |
| | |
| | | select ID, |
| | | InfoID, |
| | | case_no, |
| | | organdecision_other, |
| | | DonorNo, |
| | | assess_state, |
| | | assess_time, |
| | |
| | | `service_donatebaseinfo`.`donatetime` AS `donatetime`, |
| | | `service_medicalevaluation`.`ID` AS `meID`, |
| | | `service_medicalevaluation`.`case_no` AS `case_no`, |
| | | `service_medicalevaluation`.`organdecision_other` AS `organdecision_other`, |
| | | `service_medicalevaluation`.`HospitalAssessContent` AS `HospitalAssessContent`, |
| | | `service_medicalevaluation`.`HospitalAssessConclusion` AS `HospitalAssessConclusion`, |
| | | `service_medicalevaluation`.`ProvincialAssessContent` AS `ProvincialAssessContent`, |
| | |
| | | sb.id as infoID, |
| | | sm.ID as id, |
| | | sm.assessannex, |
| | | sm.organdecision_other, |
| | | sm.assess_time, |
| | | sm.assess_state |
| | | FROM service_donatebaseinfo sb |
| | |
| | | resultMap="ServiceMedicalevaluationorganResult"> |
| | | <include refid="selectServiceMedicalevaluationorganVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="infoid != null ">and InfoID = #{infoid}</if> |
| | | <if test="medicalId != null ">and medical_id = #{medicalId}</if> |
| | | <if test="donorno != null and donorno != ''">and DonorNo = #{donorno}</if> |
| | |
| | | sr.Kinship_ChildrenNum as kinshipChildrenNum, |
| | | sr.KinshipConfirmationSign as kinshipConfirmationSign, |
| | | sr.RelativeConfirmationSign as relativeConfirmationSign, |
| | | sr.OrganDecision as organDecision, |
| | | sr.OrganDecision_Other as organDecisionOther, |
| | | sr.SignFamilyRelations as signFamilyRelations, |
| | | sr.OrganDecision as organdecision, |
| | | sr.OrganDecision_Other as organdecisionOther, |
| | | sr.SignFamilyRelations as signfamilyrelations, |
| | | sr.SignDate as signdate, |
| | | sr.ResponsibleUserName as responsibleusername, |
| | | sr.ResponsibleUserID as responsibleuserid, |
| | |
| | | /** |
| | | * éè¿ééç¨æ·id |
| | | * |
| | | * @param dingUserId ç¨æ·å |
| | | * @param mobile ç¨æ·å |
| | | * @return ç¨æ·å¯¹è±¡ä¿¡æ¯ |
| | | */ |
| | | public SysUser selectUserByDingUserId(String dingUserId); |
| | | public SysUser selectUserByDingUserId(String mobile); |
| | | |
| | | /** |
| | | * éè¿å¾®ä¿¡OpenIDæ¥è¯¢ç¨æ· |
| | |
| | | </select> |
| | | <select id="selectUserByDingUserId" parameterType="String" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | where u.ding_user_id = #{dingUserId} |
| | | where u.phonenumber = #{mobile} |
| | | </select> |
| | | |
| | | <select id="selectUserByOpenID" parameterType="String" resultMap="SysUserResult"> |