Mybatis

<resultMap type="com.utry.ucsc.task.vo.Project" id="ProjectDetailResultMap">
    <result column="projectId" jdbcType="VARCHAR" property="projectId" />
    <result column="version" jdbcType="INTEGER" property="version" />
    <result column="end_date" jdbcType="TIMESTAMP" property="endDate" />
    <association property="projectCharge" javaType="com.utry.ucsc.task.vo.ProjectCharge">
      <result column="charge_type" jdbcType="VARCHAR" property="chargeType" />
      <result column="unit_price" jdbcType="DECIMAL" property="unitPrice" />
      <result column="extract_price" jdbcType="DECIMAL" property="extractPrice" />
    </association>
    <collection property="requires" ofType="com.utry.ucsc.task.vo.ProjectRequirement">
      <result column="require_type" jdbcType="VARCHAR" property="requireType" />
      <result column="require_value" jdbcType="VARCHAR" property="requireValue" />
    </collection>
  </resultMap>
全部评论

相关推荐

投递腾讯云智研发等公司10个岗位
点赞 评论 收藏
转发
点赞 收藏 评论
分享
牛客网
牛客企业服务