专病路径
This commit is contained in:
parent
c580965139
commit
020c9a6f6b
@ -6,6 +6,7 @@ import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.utils.StringUtils;
|
||||
import com.xinelu.common.utils.file.FileUploadUtils;
|
||||
import com.xinelu.common.utils.file.FileUtils;
|
||||
import com.xinelu.common.utils.file.MimeTypeUtils;
|
||||
import com.xinelu.framework.config.ServerConfig;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@ -37,6 +38,9 @@ public class CommonController {
|
||||
|
||||
private static final String FILE_DELIMETER = ",";
|
||||
|
||||
@Resource
|
||||
private SystemBusinessConfig systemBusinessConfig;
|
||||
|
||||
/**
|
||||
* 通用下载请求
|
||||
*
|
||||
@ -140,4 +144,23 @@ public class CommonController {
|
||||
log.error("下载文件失败", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 通用管理端富文本上传请求(单个)
|
||||
*/
|
||||
@PostMapping("/richTextPictureUrl")
|
||||
public AjaxResult richTextPictureUrl(MultipartFile file) throws Exception {
|
||||
// 上传文件路径
|
||||
String filePath = SystemBusinessConfig.getProfile() + systemBusinessConfig.getRichTextPictureUrl();
|
||||
// 上传并返回新文件名称
|
||||
String fileName = FileUploadUtils.upload(filePath, file, MimeTypeUtils.IMAGE_EXTENSION);
|
||||
//拼接路径
|
||||
String url = serverConfig.getUrl() + fileName;
|
||||
AjaxResult ajax = AjaxResult.success();
|
||||
ajax.put("url", url);
|
||||
ajax.put("fileName", fileName);
|
||||
ajax.put("newFileName", FileUtils.getName(fileName));
|
||||
ajax.put("originalFilename", file.getOriginalFilename());
|
||||
return ajax;
|
||||
}
|
||||
}
|
||||
|
||||
@ -71,6 +71,11 @@ public class SystemBusinessConfig {
|
||||
*/
|
||||
private String scriptFileUrl;
|
||||
|
||||
/**
|
||||
* 获取管理端富文本的上传路径
|
||||
*/
|
||||
private String richTextPictureUrl;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@ -193,4 +198,12 @@ public class SystemBusinessConfig {
|
||||
public void setMaterialsVideoUrl(String materialsVideoUrl) {
|
||||
this.materialsVideoUrl = materialsVideoUrl;
|
||||
}
|
||||
|
||||
public String getRichTextPictureUrl() {
|
||||
return richTextPictureUrl;
|
||||
}
|
||||
|
||||
public void setRichTextPictureUrl(String richTextPictureUrl) {
|
||||
this.richTextPictureUrl = richTextPictureUrl;
|
||||
}
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ public class SignPatientManageRouteController extends BaseController {
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signroute:add')")
|
||||
@Log(title = "签约患者管理任务路径", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
@PostMapping("/add")
|
||||
public AjaxResult add(@RequestBody SignPatientManageRoute signPatientManageRoute) {
|
||||
return toAjax(signPatientManageRouteService.insertSignPatientManageRoute(signPatientManageRoute));
|
||||
}
|
||||
@ -80,7 +80,7 @@ public class SignPatientManageRouteController extends BaseController {
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signroute:edit')")
|
||||
@Log(title = "签约患者管理任务路径", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody SignPatientManageRoute signPatientManageRoute) {
|
||||
return toAjax(signPatientManageRouteService.updateSignPatientManageRoute(signPatientManageRoute));
|
||||
}
|
||||
|
||||
@ -0,0 +1,23 @@
|
||||
package com.xinelu.manage.vo.signpatientmanageroute;
|
||||
|
||||
import com.xinelu.manage.domain.signpatientmanageroute.SignPatientManageRoute;
|
||||
import com.xinelu.manage.domain.signpatientmanageroutenode.SignPatientManageRouteNode;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 签约患者管理任务路径对象 sign_patient_manage_route
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-03-18
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class SignPatientManageRouteVO extends SignPatientManageRoute {
|
||||
|
||||
|
||||
List<SignPatientManageRouteNode> routeNodeList;
|
||||
|
||||
}
|
||||
@ -23,6 +23,15 @@ public class SpecialDiseaseRouteVO extends SpecialDiseaseRoute {
|
||||
*/
|
||||
private Long specialDiseaseRouteId;
|
||||
|
||||
/**
|
||||
* 总数
|
||||
*/
|
||||
private Long totalNumber;
|
||||
|
||||
/**
|
||||
* 进度
|
||||
*/
|
||||
private Long agreeNumber;
|
||||
|
||||
/**
|
||||
* 节点信息
|
||||
|
||||
@ -37,6 +37,8 @@
|
||||
<result property="releaseStatus" column="release_status"/>
|
||||
<result property="suitRange" column="suit_range"/>
|
||||
<result property="routeSort" column="route_sort"/>
|
||||
<result property="agreeNumber" column="agreeNumber"/>
|
||||
<result property="totalNumber" column="totalNumber"/>
|
||||
<result property="routeRemark" column="route_remark"/>
|
||||
<collection property="triggerConditionList" javaType="java.util.List"
|
||||
resultMap="SpecialDiseaseTriggerConditionResult"/>
|
||||
@ -282,7 +284,7 @@
|
||||
<select id="selectSpecialDiseaseRouteAndTriggerById"
|
||||
resultType="com.xinelu.manage.vo.specialdiseaseroute.SpecialDiseaseRouteVO"
|
||||
resultMap="SpecialDiseaseRouteVOResult">
|
||||
select sdr.id specialDiseaseRouteId,
|
||||
select sdr.id specialDiseaseRouteId,
|
||||
sdr.department_id,
|
||||
sdr.department_name,
|
||||
sdr.disease_type_id,
|
||||
@ -295,7 +297,7 @@
|
||||
sdr.suit_range,
|
||||
sdr.route_sort,
|
||||
sdr.route_remark,
|
||||
sdtc.id triggerConditionId,
|
||||
sdtc.id triggerConditionId,
|
||||
sdtc.route_id,
|
||||
sdtc.route_name,
|
||||
sdtc.trigger_condition_code,
|
||||
@ -303,8 +305,16 @@
|
||||
sdtc.trigger_condition_operator,
|
||||
sdtc.trigger_condition_value,
|
||||
sdtc.trigger_condition_sort,
|
||||
sdtc.trigger_condition_remark
|
||||
sdtc.trigger_condition_remark,
|
||||
(select COUNT(1)
|
||||
from special_disease_node
|
||||
where route_id = specialDiseaseRouteId) totalNumber,
|
||||
(select COUNT(1)
|
||||
from special_disease_node
|
||||
where route_id = specialDiseaseRouteId
|
||||
and route_check_status = 'AGREE') agreeNumber
|
||||
from special_disease_route sdr
|
||||
LEFT JOIN special_disease_node sdn ON sdn.route_id = sdr.id
|
||||
LEFT JOIN special_disease_trigger_condition sdtc ON sdr.id = sdtc.route_id
|
||||
where sdr.id = #{id}
|
||||
</select>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user