<deleteid="deleteCTQ" parameterType="java.lang.String">

DELETE FROM sqm_product_ctq_current where guid in

 

<foreach item="idItem"collection="array"open="("separator=","close=")">

#{idItem}

</foreach>

</delete>

 

 

 

sqm_product_ctq_current 表名

guid  字段名

collection里表示类型,这里是array,还可以是list

idItem不用管,相当于一个变量

 

这个是写在xxxMapper.xml里的

在xxxMapper.java里需要有对应的方法

 

void deleteCTQ(String[] ctqGuids);

这里传进来的参数就是一个字符串型的数据

相关文章:

  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-06-28
  • 2021-06-23
猜你喜欢
  • 2021-09-02
  • 2021-12-02
  • 2022-12-23
  • 2021-05-30
  • 2021-05-16
相关资源
相似解决方案