| | |
| | | <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" /> |
| | |
| | | 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> |