需求 :
将
WKFormalReviewDto dto 中 int examineDetermine 的值 赋值给新建 string ExamineDetermineStr
Integer examineDetermine = dto.getExamineDetermine();
//通过反射 重新赋值
Field examineDetermineStrField =
WKFormalReviewDto.class.getDeclaredField("examineDetermineStr");
examineDetermineStrField.setAccessible(true);
examineDetermineStrField.set(dto, examineDetermine.toString());
if (2 == (examineDetermine)) {
dto.setExamineDetermineStr("通过");
} else if ("3".equals(examineDetermine)) {
dto.setExamineDetermineStr("不通过");
}