|
@ -1,8 +1,14 @@ |
|
|
package com.zc.business.service.impl; |
|
|
package com.zc.business.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
|
|
import java.util.Date; |
|
|
|
|
|
import java.util.LinkedHashMap; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
import com.ruoyi.common.utils.DateUtils; |
|
|
import com.ruoyi.common.utils.DateUtils; |
|
|
import com.zc.business.domain.DcRoadConditionInformation; |
|
|
import com.zc.business.domain.DcRoadConditionInformation; |
|
|
|
|
|
import com.zc.business.enums.UniversalEnum; |
|
|
import com.zc.business.mapper.DcRoadConditionInformationMapper; |
|
|
import com.zc.business.mapper.DcRoadConditionInformationMapper; |
|
|
import com.zc.business.service.IDcRoadConditionInformationService; |
|
|
import com.zc.business.service.IDcRoadConditionInformationService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
@ -96,7 +102,17 @@ public class DcRoadConditionInformationServiceImpl implements IDcRoadConditionIn |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<DcRoadConditionInformation> selectlistTime() { |
|
|
public Map<String,String> selectlistTime() { |
|
|
return dcRoadConditionInformationMapper.selectlistTime(); |
|
|
List<DcRoadConditionInformation> dcRoadConditionInformations = dcRoadConditionInformationMapper.selectlistTime(); |
|
|
|
|
|
if (! dcRoadConditionInformations.isEmpty()) { |
|
|
|
|
|
Map<String,String> map =new LinkedHashMap<>(); |
|
|
|
|
|
for (DcRoadConditionInformation dcRoadConditionInformation : dcRoadConditionInformationMapper.selectlistTime()) { |
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat(UniversalEnum.PURE_CHINESE_CHARACTER_TIME_FORMAT_TIME.getValue()); |
|
|
|
|
|
String formattedDate = sdf.format(dcRoadConditionInformation.getCreateTime()); |
|
|
|
|
|
map.put(formattedDate, dcRoadConditionInformation.getOtherConfig()); |
|
|
|
|
|
} |
|
|
|
|
|
return map; |
|
|
|
|
|
} |
|
|
|
|
|
return new LinkedHashMap<>(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|