当前位置:网站首页>【问题篇】将集合[‘‘,‘‘]处理成(‘‘,‘‘)
【问题篇】将集合[‘‘,‘‘]处理成(‘‘,‘‘)
2022-07-26 19:59:00 【小z*】
实现批量删除时,通过in关键字删除()内的数据,例如 in ('1','2'),前端传过来的是[],需要转一遍,配合流的方式,进行转换,如下:
public void batchDeleteById(List<String> ids){
//将集合['','','']处理成('','','')
String idsNew = ids.stream().map((id) -> "'"+id+"'").collect(Collectors.joining(",", "(", ") "));
jt.batchUpdate(DELETE_QUOTA_SQL + idsNew);
}
ids.stream().map((id) -> "'"+id+"'").collect(Collectors.joining(",", "(", ") "))
边栏推荐
- Easy gene | introduction to macrovirus sequencing technology
- PSPICE 仿真石英晶体振荡电路
- Experiment 6 BGP federal comprehensive experiment
- [record of question brushing] 22. bracket generation
- Fitting the new direction of curriculum standards, ape guidance, creating a characteristic new concept content system
- How to upload and download files
- A super simple neural network code with 5 coordinates for one layer node training
- YGG cooperates with my pet hooligan, AMGI's flagship NFT project, to enter the rabbit hole
- What functions does the medical live broadcast platform need
- 深度可分离卷积(DepthwiseSeparableConvolution):Depthwise卷积与Pointwise卷积
猜你喜欢
![Installation and configuration of [basic services] [database] Clickhouse](/img/fe/5c24e4c3dc17a6a96985e4fe97024e.png)
Installation and configuration of [basic services] [database] Clickhouse

深度可分离卷积(DepthwiseSeparableConvolution):Depthwise卷积与Pointwise卷积

QT driving school subject examination system -- from implementation to release

MPLS multi protocol label switching technology
![[record of question brushing] 22. bracket generation](/img/0d/8881fcbcd0e963875dff2946b95865.png)
[record of question brushing] 22. bracket generation

BGP -- Border Gateway Protocol

Fitting the new direction of curriculum standards, ape guidance, creating a characteristic new concept content system

Buu brush inscription 2
![[wechat applet] zero basics | applet syntax](/img/3d/fb999fde6f61af62337464ea8e32bd.png)
[wechat applet] zero basics | applet syntax

Bean injection and lifecycle
随机推荐
Leetcode刷题之——链表总结
BUU刷题记-网鼎杯专栏2
如何组装一个注册中心?
How to assemble a registry?
查询字段较多时可以添加普通查询和高级查询两种情况
Tinui development history
Fitting the new direction of curriculum standards, ape guidance, creating a characteristic new concept content system
A super simple neural network code with 5 coordinates for one layer node training
Build Prometheus automatic monitoring and alarm system from scratch
BGP routing black hole and anti ring
How to obtain Cu block partition information in HM and draw with MATLAB
7.25模拟赛总结
Task 2 kaggle diabetes detection
confd+etcd实现高可用自动发现
数据块的存储系统中缓存的作用是什么?
人脸识别、指纹识别都弱爆了?五角大楼研发远距离心跳识别
Pandonia spirit voxedit creation competition
St table, weighted and search set
Buu brush inscription 2
Installation and configuration of [basic services] [database] Clickhouse