添加校验模版判断

dev
862857010@qq.com 2 years ago
parent 217270e1c4
commit c4f1fa9494
  1. 7
      cjy-project/src/main/java/com/cjy/appointmentteamdata/service/impl/AppointmentTeamDataServiceImpl.java

@ -90,6 +90,13 @@ public class AppointmentTeamDataServiceImpl implements IAppointmentTeamDataServi
@Override
public String importData(List<AppointmentPeopleInfo> list, int row, Long organCode) {
boolean allNull = list.stream().allMatch(element -> element == null);
if (allNull) {
return "模版错误或者数据为空,请核验导入模版";
}
List<AppointmentPeopleInfo> newList = new ArrayList<>();
List<String> dictTypes = new ArrayList<>();
dictTypes.add("write_off_status");

Loading…
Cancel
Save