|
|
|
@ -1,7 +1,5 @@ |
|
|
|
package com.gaotao.modules.pallet.service.impl; |
|
|
|
|
|
|
|
import cn.idev.excel.FastExcel; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.gaotao.modules.pallet.entity.Pallet; |
|
|
|
import com.gaotao.modules.pallet.mapper.PalletMapper; |
|
|
|
@ -21,7 +19,7 @@ public class PalletServiceImpl extends ServiceImpl<PalletMapper, Pallet> impleme |
|
|
|
if (pallets.isEmpty()){ |
|
|
|
return; |
|
|
|
} |
|
|
|
List<String> list = pallets.stream().map(Pallet::getPalletNo).collect(Collectors.toList()); |
|
|
|
List<String> list = pallets.stream().map(Pallet::getPalletNo).distinct().collect(Collectors.toList()); |
|
|
|
lambdaUpdate() |
|
|
|
.in(Pallet::getPalletNo,list) |
|
|
|
.remove(); |
|
|
|
|