| | |
| | | from rm_open_close_valve_history mTb |
| | | left join pr_intake piTb on piTb.id = mTb.intake_id |
| | | left join se_client scTb on scTb.id = mTb.client_id |
| | | <where> |
| | | <if test = "fromDate != null"> |
| | | mTb.cl_dt <![CDATA[>=]]> #{fromDate, javaType=DATE, jdbcType=TIMESTAMP} |
| | | where mTb.cl_this_money = 0.0 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test = "duration != null"> |
| | | mTb.cl_this_time > #{duration, javaType=INTEGER, jdbcType=INTEGER} and |
| | | </if> |
| | | <if test = "fromDate != null"> |
| | | mTb.cl_dt <![CDATA[>=]]> #{fromDate, javaType=DATE, jdbcType=TIMESTAMP} and |
| | | </if> |
| | | <if test = "intakeNum != null and intakeNum != '' "> |
| | | and piTb.name = #{intakeNum, jdbcType=VARCHAR} |
| | | piTb.name = #{intakeNum, jdbcType=VARCHAR} and |
| | | </if> |
| | | <if test = "clientNum != null and clientNum != '' "> |
| | | and scTb.clientNum = #{clientNum, jdbcType=VARCHAR} |
| | | scTb.clientNum = #{clientNum, jdbcType=VARCHAR} and |
| | | </if> |
| | | <if test = "clientName != null and clientName != '' "> |
| | | and scTb.name = #{clientName, jdbcType=VARCHAR} |
| | | scTb.name = #{clientName, jdbcType=VARCHAR} and |
| | | </if> |
| | | </where> |
| | | </trim> |
| | | </select> |
| | | |
| | | <select id="selectStealSome" parameterType="java.util.Map" resultType="com.dy.pipIrrGlobal.voSpecial.VoSteal"> |
| | |
| | | from rm_open_close_valve_history mTb |
| | | left join pr_intake piTb on piTb.id = mTb.intake_id |
| | | left join se_client scTb on scTb.id = mTb.client_id |
| | | <where> |
| | | where mTb.cl_this_money = 0.0 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test = "duration != null"> |
| | | mTb.cl_this_time > #{duration, javaType=INTEGER, jdbcType=INTEGER} and |
| | | </if> |
| | | <if test = "fromDate != null"> |
| | | mTb.cl_dt <![CDATA[>=]]> #{fromDate, javaType=DATE, jdbcType=TIMESTAMP} |
| | | mTb.cl_dt <![CDATA[>=]]> #{fromDate, javaType=DATE, jdbcType=TIMESTAMP} and |
| | | </if> |
| | | <if test = "intakeNum != null and intakeNum != '' "> |
| | | and piTb.name = #{intakeNum, jdbcType=VARCHAR} |
| | | piTb.name = #{intakeNum, jdbcType=VARCHAR} and |
| | | </if> |
| | | <if test = "clientNum != null and clientNum != '' "> |
| | | and scTb.clientNum = #{clientNum, jdbcType=VARCHAR} |
| | | scTb.clientNum = #{clientNum, jdbcType=VARCHAR} and |
| | | </if> |
| | | <if test = "clientName != null and clientName != '' "> |
| | | and scTb.name = #{clientName, jdbcType=VARCHAR} |
| | | scTb.name = #{clientName, jdbcType=VARCHAR} and |
| | | </if> |
| | | </where> |
| | | </trim> |
| | | order by mTb.id DESC |
| | | <trim prefix="limit " > |
| | | <if test="start != null and count != null"> |