| | |
| | | oi.start_time AS startTime, |
| | | oi.stop_time AS stopTime |
| | | FROM `ope_inspect` oi |
| | | INNER JOIN `ba_user` ON oi.inspector_id = ba_user.id |
| | | INNER JOIN `ba_user` ON oi.inspector_id = ba_user.id |
| | | <where> |
| | | ba_user.deleted = 0 |
| | | <if test="inspectorId != null"> |
| | |
| | | AND oi.start_time BETWEEN #{timeStart} AND #{timeStop} |
| | | </if> |
| | | </where> |
| | | LIMIT #{queryStart},#{queryCount} |
| | | <trim prefix="limit " > |
| | | <if test="start != null and count != null"> |
| | | #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} |
| | | </if> |
| | | </trim> |
| | | </select> |
| | | </mapper> |