package thyyxxk.wxservice_server.entity.assessment; import lombok.Data; import thyyxxk.wxservice_server.utils.ListUtil; import java.util.List; @Data public class InpatientSatisfiedQuestionnaire { private Integer id; private String inpatientNo; private Integer times; private String patientId; private String item1; private String item2; private String item3; private String item4; private String item5; private String item6; private String item7; private String item8; private String item9; private String item10; private String item11; private String item12; private String item13; private String item14; private String item15; private String item16; private String item17; private String item18; private String item19; private String item20; private String item21; private String item22; private String suggestion; private List item2Arr; private List item4Arr; private List item6Arr; private List item8Arr; private List item10Arr; private List item12Arr; private List item14Arr; private List item16Arr; private List item18Arr; private List item20Arr; private List item22Arr; public String getItem2() { if (ListUtil.isEmpty(item2Arr)) { return item2; } StringBuilder builder = new StringBuilder(); for (String item : item2Arr) { builder.append(item).append("^"); } return builder.substring(0, builder.length() - 1); } public String getItem4() { if (ListUtil.isEmpty(item4Arr)) { return item4; } StringBuilder builder = new StringBuilder(); for (String item : item4Arr) { builder.append(item).append("^"); } return builder.substring(0, builder.length() - 1); } public String getItem6() { if (ListUtil.isEmpty(item6Arr)) { return item6; } StringBuilder builder = new StringBuilder(); for (String item : item6Arr) { builder.append(item).append("^"); } return builder.substring(0, builder.length() - 1); } public String getItem8() { if (ListUtil.isEmpty(item8Arr)) { return item8; } StringBuilder builder = new StringBuilder(); for (String item : item8Arr) { builder.append(item).append("^"); } return builder.substring(0, builder.length() - 1); } public String getItem10() { if (ListUtil.isEmpty(item10Arr)) { return item10; } StringBuilder builder = new StringBuilder(); for (String item : item10Arr) { builder.append(item).append("^"); } return builder.substring(0, builder.length() - 1); } public String getItem12() { if (ListUtil.isEmpty(item12Arr)) { return item12; } StringBuilder builder = new StringBuilder(); for (String item : item12Arr) { builder.append(item).append("^"); } return builder.substring(0, builder.length() - 1); } public String getItem14() { if (ListUtil.isEmpty(item14Arr)) { return item14; } StringBuilder builder = new StringBuilder(); for (String item : item14Arr) { builder.append(item).append("^"); } return builder.substring(0, builder.length() - 1); } public String getItem16() { if (ListUtil.isEmpty(item16Arr)) { return item16; } StringBuilder builder = new StringBuilder(); for (String item : item16Arr) { builder.append(item).append("^"); } return builder.substring(0, builder.length() - 1); } public String getItem18() { if (ListUtil.isEmpty(item18Arr)) { return item18; } StringBuilder builder = new StringBuilder(); for (String item : item18Arr) { builder.append(item).append("^"); } return builder.substring(0, builder.length() - 1); } public String getItem20() { if (ListUtil.isEmpty(item20Arr)) { return item20; } StringBuilder builder = new StringBuilder(); for (String item : item20Arr) { builder.append(item).append("^"); } return builder.substring(0, builder.length() - 1); } public String getItem22() { if (ListUtil.isEmpty(item22Arr)) { return item22; } StringBuilder builder = new StringBuilder(); for (String item : item22Arr) { builder.append(item).append("^"); } return builder.substring(0, builder.length() - 1); } }