|
@@ -3,6 +3,7 @@ package thyyxxk.webserver.entity.casefrontsheet.request.casefrontsheet;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
import lombok.Data;
|
|
|
+import thyyxxk.webserver.utils.FilterUtil;
|
|
|
import thyyxxk.webserver.utils.StringUtil;
|
|
|
|
|
|
import java.io.Serializable;
|
|
@@ -129,89 +130,23 @@ public class CaseFrontsheetSurgery implements Serializable {
|
|
|
|
|
|
public String getCutHeal() {
|
|
|
if (StringUtil.isBlank(cutHeal)) {
|
|
|
- if (getCut() != null && getHeal() != null) {
|
|
|
- String first = getCutHealFirstPart(getCut());
|
|
|
- String last = getCutHealLastPart(getHeal());
|
|
|
- return first + "/" + last;
|
|
|
- } else {
|
|
|
- return "";
|
|
|
- }
|
|
|
+ return FilterUtil.combineCutHeal(getCut(), getHeal());
|
|
|
}
|
|
|
return cutHeal.trim();
|
|
|
}
|
|
|
|
|
|
- private String getCutHealFirstPart(String cut) {
|
|
|
- switch (cut) {
|
|
|
- case "0":
|
|
|
- return "0";
|
|
|
- case "1":
|
|
|
- return "Ⅰ";
|
|
|
- case "2":
|
|
|
- return "Ⅱ";
|
|
|
- case "3":
|
|
|
- return "Ⅲ";
|
|
|
- default:
|
|
|
- return null;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private String getCutHealLastPart(String heal) {
|
|
|
- switch (heal) {
|
|
|
- case "0":
|
|
|
- return "0";
|
|
|
- case "1":
|
|
|
- return "甲";
|
|
|
- case "2":
|
|
|
- return "乙";
|
|
|
- case "3":
|
|
|
- return "丙";
|
|
|
- default:
|
|
|
- return null;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
public String getCut() {
|
|
|
if (StringUtil.notBlank(cut)) {
|
|
|
return cut.trim();
|
|
|
}
|
|
|
- if (StringUtil.isBlank(cutHeal)) {
|
|
|
- return null;
|
|
|
- }
|
|
|
- String[] arrs = cutHeal.split("/");
|
|
|
- switch (arrs[0]) {
|
|
|
- case "0":
|
|
|
- return "0";
|
|
|
- case "Ⅰ":
|
|
|
- return "1";
|
|
|
- case "Ⅱ":
|
|
|
- return "2";
|
|
|
- case "Ⅲ":
|
|
|
- return "3";
|
|
|
- default:
|
|
|
- return null;
|
|
|
- }
|
|
|
+ return FilterUtil.filterCut(cutHeal);
|
|
|
}
|
|
|
|
|
|
public String getHeal() {
|
|
|
if (StringUtil.notBlank(heal)) {
|
|
|
return heal.trim();
|
|
|
}
|
|
|
- if (StringUtil.isBlank(cutHeal)) {
|
|
|
- return null;
|
|
|
- }
|
|
|
- String[] arrs = cutHeal.split("/");
|
|
|
- switch (arrs[1]) {
|
|
|
- case "0":
|
|
|
- return "0";
|
|
|
- case "甲":
|
|
|
- return "1";
|
|
|
- case "乙":
|
|
|
- return "2";
|
|
|
- case "丙":
|
|
|
- return "3";
|
|
|
- default:
|
|
|
- return null;
|
|
|
- }
|
|
|
+ return FilterUtil.filterHeal(cutHeal);
|
|
|
}
|
|
|
|
|
|
public Integer getType() {
|