Mybatis两表连接(一对一)
OrderJudgeMapper.xml <?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.datangedu.cn.dao.mapper.OrderJudgeMapper"> <resultMap type="com.datangedu.cn.model.BusinessOrder" id="OrderJudgeMap"> <id property="id" column="bid" /> <result column="SERVER_ID" jdbcType="VARCHAR" property="serverId" /> <result column="ORDER_INFO" jdbcType="VARCHAR" property="orderInfo" /> <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" /> <!-- association :配置一对一属性 --> <!--