| | |
| | | <if test = "rtuAddr != null and rtuAddr !=''"> |
| | | AND oh.rtu_addr LIKE CONCAT('%',#{rtuAddr},'%') |
| | | </if> |
| | | <if test = "timeStart_open != null and timeStop_open != null"> |
| | | <if test = "timeStart_open != null and timeStart_open != '' and timeStop_open != null and timeStop_open != '' "> |
| | | AND oh.op_dt BETWEEN #{timeStart_open} AND #{timeStop_open} |
| | | </if> |
| | | <if test = "timeStart_close != null and timeStop_close != null"> |
| | | <if test = "timeStart_close != null and timeStart_close != '' and timeStop_close != null and timeStop_close != '' "> |
| | | AND oh.cl_dt BETWEEN #{timeStart_close} AND #{timeStop_close} |
| | | </if> |
| | | </where> |
| | |
| | | <if test = "rtuAddr != null and rtuAddr !=''"> |
| | | AND oh.rtu_addr LIKE CONCAT('%',#{rtuAddr},'%') |
| | | </if> |
| | | <if test = "timeStart_open != null and timeStop_open != null"> |
| | | <if test = "timeStart_open != null and timeStart_open != '' and timeStop_open != null and timeStop_open != '' "> |
| | | AND oh.op_dt BETWEEN #{timeStart_open} AND #{timeStop_open} |
| | | </if> |
| | | <if test = "timeStart_close != null and timeStop_close != null"> |
| | | <if test = "timeStart_close != null and timeStart_close != '' and timeStop_close != null and timeStop_close != '' "> |
| | | AND oh.cl_dt BETWEEN #{timeStart_close} AND #{timeStop_close} |
| | | </if> |
| | | </where> |