| | |
| | | <if test="query.phone != null and query.phone != ''"> |
| | | and t1.phone like concat('%',#{query.phone},'%') |
| | | </if> |
| | | <if test="query.storeId != null and query.storeId != ''"> |
| | | <if test="query.storeId != null "> |
| | | and t1.storeId = #{query.storeId} |
| | | </if> |
| | | <if test="query.optometristId != null and query.optometristId != ''"> |
| | | <if test="query.optometristId != null "> |
| | | and t1.optometristId = #{query.optometristId} |
| | | </if> |
| | | <if test="query.userId != null "> |
| | | and t1.userId = #{query.userId} |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime!=''"> |
| | | and (t1.createTime between #{query.startTime} and #{query.endTime}) |
| | | </if> |