| | |
| | | package com.ruoyi.plan.service.impl; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import java.util.ArrayList; |
| | | import java.util.Map; |
| | | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.plan.mapper.ArdEplanMapper; |
| | | import com.ruoyi.plan.domain.ArdEplan; |
| | | import com.ruoyi.plan.service.IArdEplanService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * 应急预案Service业务层处理 |
| | |
| | | */ |
| | | @Service |
| | | public class ArdEplanServiceImpl implements IArdEplanService { |
| | | @Autowired |
| | | @Resource |
| | | private ArdEplanMapper ardEplanMapper; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public List<ArdEplan> selectArdEplanList(ArdEplan ardEplan) { |
| | | //public List<Map<String,Object>> selectArdEplanList(ArdEplan ardEplan) { |
| | | /*List<ArdEplan> list = ardEplanMapper.selectArdEplanList(ardEplan); |
| | | List<Map<String,Object>> result = new ArrayList(); |
| | | for(ArdEplan para : list){ |
| | | Map<String,Object> map = new HashMap(); |
| | | map.put("id",para.getId()); |
| | | map.put("name",para.getName()); |
| | | map.put("time",para.getTime()); |
| | | String info = para.getInfo(); |
| | | String[] infoArr = info.split(";"); |
| | | List<Map<String,String>> infoList = new ArrayList(); |
| | | for(String str : infoArr){ |
| | | Map<String,String> infoMap = new HashMap(); |
| | | infoMap.put("longitude",str.split(",")[0]); |
| | | infoMap.put("latitude",str.split(",")[1]); |
| | | infoMap.put("altitude",str.split(",")[2]); |
| | | infoMap.put("text",str.split(",")[3]); |
| | | infoList.add(infoMap); |
| | | } |
| | | map.put("obj",infoList); |
| | | map.put("userId",para.getUserId()); |
| | | map.put("deptId",para.getDeptId()); |
| | | map.put("createBy",para.getCreateBy()); |
| | | result.add(map); |
| | | } |
| | | return result;*/ |
| | | return ardEplanMapper.selectArdEplanList(ardEplan); |
| | | } |
| | | |