Created
July 16, 2024 17:27
-
-
Save levancho/25e1f63a957cd44e1a88dc0ffd4d41df to your computer and use it in GitHub Desktop.
how to write in select in mybatis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Select({"<script>", | |
SELECT_PRODUCTS, | |
"WHERE desp_product.oid IN", | |
"<foreach item='oidItem' index='index' collection='oids'", | |
"open='(' separator=',' close=')'>", | |
"#{oidItem}", | |
"</foreach>", | |
"</script>"}) | |
@ResultMap("noParrent") | |
public List<DespProduct> getAllProductsIn(@Param("oids") List<Integer> oids) ; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment