55555
This commit is contained in:
parent
4293c839d4
commit
89d09449ac
@ -8,6 +8,8 @@ import net.lab1024.sa.common.common.domain.PageParam;
|
|||||||
import net.lab1024.sa.common.common.swagger.ApiModelPropertyEnum;
|
import net.lab1024.sa.common.common.swagger.ApiModelPropertyEnum;
|
||||||
import net.lab1024.sa.common.common.validator.enumeration.CheckEnum;
|
import net.lab1024.sa.common.common.validator.enumeration.CheckEnum;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 前端请求列表的 from
|
* 前端请求列表的 from
|
||||||
*/
|
*/
|
||||||
@ -17,8 +19,7 @@ public class MedicalRecordQueryForm extends PageParam {
|
|||||||
@ApiModelProperty(value = "name")
|
@ApiModelProperty(value = "name")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@ApiModelPropertyEnum(value = CasetypeEnum.class, desc = "病历类型")
|
@ApiModelProperty(value = "治疗类型", required = true)
|
||||||
@CheckEnum(value = CasetypeEnum.class, message = "病历类型 错误")
|
|
||||||
private Integer caseType;
|
private Integer caseType;
|
||||||
|
|
||||||
@ApiModelPropertyEnum(value = CaseStatusEnum.class, desc = "病例状态(0待审核 1审核通过 2审核不通过)")
|
@ApiModelPropertyEnum(value = CaseStatusEnum.class, desc = "病例状态(0待审核 1审核通过 2审核不通过)")
|
||||||
|
|||||||
@ -251,7 +251,7 @@ public class CaseplatformCaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 跳过最后一行
|
// 跳过最后一行
|
||||||
if (rowNum == lastRowNum) {
|
if (lastRowNum == rowNum) {
|
||||||
rowNum++;
|
rowNum++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -266,6 +266,7 @@ public class CaseplatformCaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isEmptyRow) {
|
if (isEmptyRow) {
|
||||||
|
rowNum++;
|
||||||
continue; // 跳过空行
|
continue; // 跳过空行
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -331,6 +332,8 @@ public class CaseplatformCaseService {
|
|||||||
caseplatformCase.setUpdateTime(LocalDateTime.now());
|
caseplatformCase.setUpdateTime(LocalDateTime.now());
|
||||||
caseplatformCaseDao.updateById(caseplatformCase);
|
caseplatformCaseDao.updateById(caseplatformCase);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rowNum++;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new BusinessException("文件读取失败: " + e.getMessage());
|
throw new BusinessException("文件读取失败: " + e.getMessage());
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
</if>
|
</if>
|
||||||
<!--病历类型-->
|
<!--病历类型-->
|
||||||
<if test="queryForm.caseType != null">
|
<if test="queryForm.caseType != null">
|
||||||
AND t_caseplatform_case.case_type = #{queryForm.caseType}
|
AND t_caseplatform_case.case_type LIKE CONCAT('%', #{queryForm.caseType}, '%')
|
||||||
</if>
|
</if>
|
||||||
<!--0待审核 1审核通过 2审核不通过-->
|
<!--0待审核 1审核通过 2审核不通过-->
|
||||||
<if test="queryForm.status != null">
|
<if test="queryForm.status != null">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user