| | |
| | | String ids = "["+labels.getId()+"],"; |
| | | // goodsMapper.update(null,new UpdateWrapper<Goods>().lambda() |
| | | // .setSql("zhuanqu_Ids =REPLACE(zhuanqu_Ids, '"+ids+"', '')")); |
| | | if( labels.getApplyIdList()!=null){ |
| | | labels.getApplyIdList().stream().map(String::valueOf).collect(Collectors.joining(",")); |
| | | if( labels.getApplyIdList()!=null && labels.getApplyIdList().size()>0){ |
| | | // List<Goods> goods = goodsMapper.selectList(new QueryWrapper<Goods>().lambda().in(Goods::getId,labels.getApplyIdList() )); |
| | | goodsMapper.update(null,new UpdateWrapper<Goods>().lambda() |
| | | .setSql("zhuanqu_Ids =concat(ifnull(zhuanqu_Ids,''), '"+ids+"' )") |
| | |
| | | String ids = "["+labels.getId()+"],"; |
| | | goodsMapper.update(null,new UpdateWrapper<Goods>().lambda() |
| | | .setSql("zhuanqu_Ids =REPLACE(zhuanqu_Ids, '"+ids+"', '')")); |
| | | if( labels.getApplyIdList()!=null){ |
| | | labels.getApplyIdList().stream().map(String::valueOf).collect(Collectors.joining(",")); |
| | | if( labels.getApplyIdList()!=null && labels.getApplyIdList().size()>0){ |
| | | goodsMapper.update(null,new UpdateWrapper<Goods>().lambda() |
| | | .setSql("zhuanqu_Ids =concat(ifnull(zhuanqu_Ids,''), '"+ids+"' )") |
| | | .in(Goods::getId,labels.getApplyIdList() )); |