|
|
|
|
@ -261,6 +261,9 @@ public class BsEnergyQuotaController extends BladeController { |
|
|
|
|
StringBuffer msg = new StringBuffer(); |
|
|
|
|
List<BsEnergyQuotaEntity> list = new ArrayList<>(); |
|
|
|
|
for (BsEnergyQuotaElectricImportExcel excel : importList) { |
|
|
|
|
LocalDate parse = LocalDate.parse(excel.getDate(), DateTimeFormatter.ofPattern("yyyy/M/d")); |
|
|
|
|
String newDate = parse.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")); |
|
|
|
|
excel.setDate(newDate); |
|
|
|
|
EquipmentEntity equipmentEntity = equipmentService.getDeEquipmentCardByCode(excel.getDeviceCode()); |
|
|
|
|
if (equipmentEntity == null) { |
|
|
|
|
msg.append("设备【" + excel.getDeviceCode() + "】不存在\rn"); |
|
|
|
|
|