|
@@ -17,6 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
@@ -47,11 +48,12 @@ public class SyncDataServiceImpl implements SyncDataService {
|
|
|
|
|
|
List<ClearingDataDTO> sycnClearing = clearingRecordItemMapper.findSycnClearing(deviceIds, yyyymm);
|
|
|
Map<Long,String>idMatchFileNo= (Map<Long, String>) deviceInfo.get("matchs");
|
|
|
-
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
sycnClearing.forEach(clearingDataDTO -> {
|
|
|
ClearDataDto clearDataDto=new ClearDataDto();
|
|
|
clearDataDto.setFileNo(idMatchFileNo.get(clearingDataDTO.getDeviceId()));
|
|
|
clearDataDto.setReading(clearingDataDTO.getCurrentPeriodData());
|
|
|
+ clearDataDto.setCurrentPeriodDate(sdf.format(clearingDataDTO.getCurrentPeriodDate()));
|
|
|
result.add(clearDataDto);
|
|
|
});
|
|
|
return new ListObjectWrapper<ClearDataDto>(result);
|