|
|
@ -25,21 +25,29 @@ public interface HighCouponAgentRelMapperExt { |
|
|
|
" and a.status in (2,3) and a.coupon_code_id = b.id and a.sales_time >= #{consumeTimeS} and a.sales_time <= #{consumeTimeE}") |
|
|
|
" and a.status in (2,3) and a.coupon_code_id = b.id and a.sales_time >= #{consumeTimeS} and a.sales_time <= #{consumeTimeE}") |
|
|
|
AgentSalesModel getAgentSales(@Param("agentId") Long agentId, @Param("consumeTimeS")String consumeTimeS, @Param("consumeTimeE")String consumeTimeE); |
|
|
|
AgentSalesModel getAgentSales(@Param("agentId") Long agentId, @Param("consumeTimeS")String consumeTimeS, @Param("consumeTimeE")String consumeTimeE); |
|
|
|
|
|
|
|
|
|
|
|
@Select(" select a.* from high_coupon_agent_code a,high_coupon_code b,high_coupon_agent_rel c " + |
|
|
|
@Select(" select a.* from high_coupon_agent_code a" + |
|
|
|
" where c.id = a.coupon_agent_id and c.agent_id = #{agentId} and a.status in (2,3) and a.coupon_code_id = b.id " + |
|
|
|
" LEFT JOIN high_coupon_agent_rel c on c.id = a.coupon_agent_id " + |
|
|
|
|
|
|
|
" where c.id = a.coupon_agent_id and c.agent_id = #{agentId} and a.status in (2,3) " + |
|
|
|
" and a.sales_time >= #{consumeTimeS} and a.sales_time <= #{consumeTimeE} ORDER BY a.sales_time desc") |
|
|
|
" and a.sales_time >= #{consumeTimeS} and a.sales_time <= #{consumeTimeE} ORDER BY a.sales_time desc") |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType= JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="coupon_agent_id", property="couponAgentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_agent_id", property="couponAgentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="coupon_agent_record_id", property="couponAgentRecordId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_agent_record_id", property="couponAgentRecordId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="convert_user_phone", property="convertUserPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="convert_code", property="convertCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_code", property="couponCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="coupon_code", property="couponCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="qr_code", property="qrCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="qr_code", property="qrCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="assign_coupon_agent_id", property="assignCouponAgentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="assign_agent_id", property="assignAgentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="assign_agent_name", property="assignAgentName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
|
|
|
@Result(column="sales_time", property="salesTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|