| | |
| | | SELECT COUNT(*) AS recordCount |
| | | FROM rm_open_close_valve_history |
| | | <where> |
| | | AND op_type = #{openType} |
| | | <if test="openType != null"> |
| | | AND op_type = #{openType} |
| | | </if> |
| | | <if test="timeStart != null and timeStop != null"> |
| | | AND op_dt BETWEEN #{timeStart} AND #{timeStop} |
| | | </if> |
| | |
| | | SELECT COUNT(*) AS recordCount |
| | | FROM rm_open_close_valve_history |
| | | <where> |
| | | AND cl_type = #{closeType} |
| | | <if test="closeType != null"> |
| | | AND cl_type = #{closeType} |
| | | </if> |
| | | <if test="timeStart != null and timeStop != null"> |
| | | AND cl_dt BETWEEN #{timeStart} AND #{timeStop} |
| | | </if> |