mybatis

Vo包

public class OutPayLogGroupByOutIdVo {

private List<String> feeItem;

}

xml里面的写法

<if test="feeItem != null and feeItem.size>0">
AND log.fee_item in
<foreach item="feeItem" index="index" collection="feeItem" open="("
separator=","
close=")">
#{feeItem}
</foreach>
</if>

 

直接传参数的

List<Map<String, Object>> selectTFInfoByList(@Param("list")List<String> list, @Param("type")String type)

@Select("<script>"

    + " SELECT * "

 WHERE aaa IN "

 

相关文章:

  • 2021-08-23
  • 2021-07-25
  • 2021-09-21
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2021-12-25
  • 2022-02-14
  • 2022-12-23
相关资源
相似解决方案