| | |
| | | oh.cl_total_amount AS closeTotalAmount |
| | | FROM rm_open_close_valve_history oh |
| | | LEFT JOIN pr_intake inta ON inta.id = oh.intake_id |
| | | LEFT JOIN ba_client cl ON cl.id = oh.client_id |
| | | LEFT JOIN se_client cl ON cl.id = oh.client_id |
| | | <where> |
| | | <if test="intakeId != null and intakeId > 0"> |
| | | AND oh.intake_id = #{intakeId} |
| | |
| | | AND oh.cl_dt BETWEEN #{timeStart_close} AND #{timeStop_close} |
| | | </if> |
| | | </where> |
| | | ORDER BY oh.op_dt DESC |
| | | ORDER BY oh.id DESC |
| | | <trim prefix="limit "> |
| | | <if test="start != null and count != null"> |
| | | #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} |