|
|
|
@ -9,9 +9,8 @@ import com.gaotao.modules.pallet.service.PalletService; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import java.net.URLEncoder; |
|
|
|
import java.util.List; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
@Service |
|
|
|
public class PalletServiceImpl extends ServiceImpl<PalletMapper, Pallet> implements PalletService { |
|
|
|
@ -22,6 +21,10 @@ public class PalletServiceImpl extends ServiceImpl<PalletMapper, Pallet> impleme |
|
|
|
if (pallets.isEmpty()){ |
|
|
|
return; |
|
|
|
} |
|
|
|
List<String> list = pallets.stream().map(Pallet::getPalletNo).collect(Collectors.toList()); |
|
|
|
lambdaUpdate() |
|
|
|
.in(Pallet::getPalletNo,list) |
|
|
|
.remove(); |
|
|
|
int i = baseMapper.saveBatch(pallets); |
|
|
|
} |
|
|
|
} |