| | |
| | | import com.moral.constant.Constants; |
| | | import com.moral.constant.RedisConstants; |
| | | import com.moral.constant.ResponseCodeEnum; |
| | | import com.moral.util.RegionCodeUtils; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | import org.springframework.web.context.request.ServletRequestAttributes; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.lang.reflect.Field; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | |
| | | GovMonitorPoint govMonitorPoint = govMonitorPointMapper.selectById(id); |
| | | return govMonitorPoint; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> selectGovMonitorPoints(String regionCode) { |
| | | QueryWrapper<GovMonitorPoint> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.select("guid", "name").eq("is_delete", Constants.NOT_DELETE); |
| | | if (!ObjectUtils.isEmpty(regionCode)) { |
| | | String regionName = RegionCodeUtils.regionCodeConvertToName(Integer.parseInt(regionCode)); |
| | | queryWrapper.eq(regionName, regionCode); |
| | | } |
| | | return govMonitorPointMapper.selectMaps(queryWrapper); |
| | | } |
| | | } |