|
@@ -261,7 +261,9 @@ public class BizProcessInspecionController extends BaseController
|
|
|
@PostMapping("/getLotOutsourcedInfo")
|
|
|
public AjaxResult getLotOutsourcedInfo(@RequestBody BizDayworkCarrier dayworkCarrier) throws NoSuchFieldException, IllegalAccessException
|
|
|
{
|
|
|
- List<String> processCodes =dayworkCarrier.getProcessCode();
|
|
|
+ List<String> processCodes =dayworkCarrier.getProcessCode().stream()
|
|
|
+ .map(String::trim) // 使用String类的trim方法去除字符串两端的空白
|
|
|
+ .collect(Collectors.toList()); // 将结果收集到新的List中
|
|
|
System.out.println("查询工序编码:processCodes"+processCodes);
|
|
|
//根据箱号查询当前绑定信息
|
|
|
dayworkCarrier=bizDayworkCarrierService.getByCarrierCode(dayworkCarrier);
|
|
@@ -279,18 +281,6 @@ public class BizProcessInspecionController extends BaseController
|
|
|
throw new RuntimeException("该批次不是外协回收批次");
|
|
|
}
|
|
|
|
|
|
- //根据传过来的工序编码查询是否有该工序
|
|
|
- for (BizReturnReceiptDetail detail : detailList) {
|
|
|
- System.out.println("查询是否有该工序:detail: `"+detail.getProcessCode() + "`");
|
|
|
- }
|
|
|
- System.out.println("查询是否又工序存在");
|
|
|
- for (BizReturnReceiptDetail detail : detailList) {
|
|
|
- for (String processCode : processCodes) {
|
|
|
- if(detail.getProcessCode().equals(processCode)){
|
|
|
- System.out.println("有数据存在:"+detail.getProcessCode());
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
detailList = detailList.stream()
|
|
|
.filter(detail -> processCodes.contains(detail.getProcessCode()))
|
|
|
.collect(Collectors.toList());
|