yujian
2019-11-14 7bedd903b10c125660d25373ffea23201bed22cc
fanli/src/main/java/com/yeshi/fanli/mapping/ThreeSaleMapper.xml
@@ -5,13 +5,11 @@
   <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.ThreeSale">
      <id column="id" property="id" jdbcType="BIGINT" />
      <result column="state" property="state" jdbcType="BOOLEAN" />
      <result column="succeedTime" property="succeedTime" jdbcType="BIGINT" />
      <result column="createTime" property="createTime" jdbcType="BIGINT" />
      <result column="updateTime" property="updateTime" jdbcType="BIGINT" />
      <result column="expire" property="expire" jdbcType="INTEGER" />
      <association property="boss" column="boss_id"
         javaType="com.yeshi.fanli.entity.bus.user.UserInfo">
         <id column="boss_id" property="id" jdbcType="BIGINT" />
@@ -502,4 +500,11 @@
          AND  <![CDATA[t.createTime >= #{minTime} AND t.createTime <= #{maxTime}]]>
   </select>
   
   <select id="getByWorkerIdAndTime" resultMap="BaseResultMap">
      SELECT * FROM yeshi_ec_threesale t
      WHERE t.`worker_id` = #{workerId} AND t.`state` = 1
          <![CDATA[AND t.succeedTime >= #{time}]]>
   </select>
</mapper>