<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > <mapper namespace="com.xf.huludao.project.dao.ProjectPrincipalUserMapper"> <resultMap id="nodeResultMap" type="com.xf.huludao.vo.ProjectInformVO"> <result column="project_no" property="projectNo" /> <result column="project_name" property="projectName" /> <result column="real_name" property="realName" /> <result column="principal_phone" property="principalPhone" /> <result column="first_notice_time" property="firstNoticeTime" /> <result column="end_time" property="endTime" /> <result column="node_name" property="nodeName"/> </resultMap> <select id="selectInformProject" resultMap="nodeResultMap"> select p.project_name,p.project_no,ppu.real_name,ppu.principal_phone,pnt.end_time,pnt.first_notice_time,pn.node_name from project p left join project_principal_user ppu on p.project_no = ppu.project_no left join project_node_config pnc on p.project_no = pnc.project_no left join project_node_time pnt on pnc.project_node_no = pnt.project_node_no left join project_node pn on pnc.node_no = pn.node_number where p.project_state != 3 and pnc.node_state = 1 and NOW() < pnt.end_time </select> </mapper>