<?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.cool.store.mapper.FirstOrderMapper">
  <resultMap id="BaseResultMap" type="com.cool.store.entity.FirstOrderDO">
    <!--
      WARNING - @mbg.generated
    -->
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="shop_id" jdbcType="BIGINT" property="shopId" />
    <result column="total_order_deposit" jdbcType="VARCHAR" property="totalOrderDeposit" />
    <result column="latest_payment_date" jdbcType="TIMESTAMP" property="latestPaymentDate" />
    <result column="estimated_cost" jdbcType="VARCHAR" property="estimatedCost" />
    <result column="fruits_cost" jdbcType="VARCHAR" property="fruitsCost" />
    <result column="create_user_id" jdbcType="VARCHAR" property="createUserId" />
    <result column="update_user_id" jdbcType="VARCHAR" property="updateUserId" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  </resultMap>
  <select id="selectByShopId" resultType="com.cool.store.dto.openPreparation.FirstOrderDTO">
    select *
    from xfsg_first_order
    where shop_id = #{shopId}
  </select>

</mapper>