In mapper Interface java file write the method like this
public List<com.test.myTest> getAllbyDate(@Param("date") Date date, @Param("myid") int myid)
Then, modify xml file
<select id="getAllbyDate" parameterType="map" resultType="com.test.myTest">
Mybatis put all parameters with annotation @Param
into map.