%@ page import="org.springframework.web.context.WebApplicationContext" %> <%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %> <%@ page import="sxyx.hzxf.dao.ServiceMapper" %> <%@ page import="sxyx.hzxf.entity.Service" %> <%@ page trimDirectiveWhitespaces="true" %> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <% WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(config.getServletContext()); ServiceMapper serviceMapper=context.getBean(ServiceMapper.class); Integer serviceId=Integer.valueOf(request.getParameter("id")); Service service=serviceMapper.getServiceDetail(serviceId); String title=service.getTitle()!=null?service.getTitle():""; String remark=""; if (service.getRemark()!=null){ remark=service.getRemark(); }else if (service.getRemark()==null||service.gethRRemark()!=null){ remark=service.gethRRemark(); }else { remark="无详细描述"; } String hrRemark=service.gethRRemark()!=null?service.gethRRemark():""; String service_type=service.getService_type()!=null?service.getService_type():""; String end_time=service.getEnd_time()!=null?service.getEnd_time():""; String phone=service.getPhone()!=null?service.getPhone():""; %>
<%=title%>
该商品已失效
关注成功
不可关注