|
@@ -2271,7 +2271,7 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
|
|
|
Method requestMethod = clazz.getMethod(getGetMethod(field.getName()));
|
|
|
Object requestVal = requestMethod.invoke(vo);
|
|
|
Excel excel = field.getAnnotation(Excel.class);
|
|
|
- if (excel != null && excel.styleType() == 1) {
|
|
|
+ if (excel != null && excel.styleType() == 1 && requestVal != null) {
|
|
|
// 拼接自定义字符串
|
|
|
paramList.append("{\"name\":\"").append(excel.name()).append("\",");
|
|
|
paramList.append("\"content\":\"").append(requestVal).append("\"},");
|