|
@@ -101,14 +101,16 @@ public class SortDayworkController extends BaseController {
|
|
|
if (bizDayworkItem.getKeywords() != null ) {
|
|
|
// 如果 keywords 不为空或空字符串,则添加 LIKE 条件
|
|
|
list = bizProductInspectionInstructionService.query()
|
|
|
- .eq("technological_process_id", bizDayworkItem.getTechnologicalProcessId())
|
|
|
+ .eq("product_id", bizLot.getProductId())
|
|
|
+ .eq("technology_version", bizLot.getTechnologyVersion())
|
|
|
.eq("process_id", bizDayworkItem.getProcessId())
|
|
|
.like("standard", bizDayworkItem.getKeywords()) // 添加 LIKE 条件
|
|
|
.list();
|
|
|
} else {
|
|
|
// 如果 keywords 为空,则不添加 LIKE 条件
|
|
|
list = bizProductInspectionInstructionService.query()
|
|
|
- .eq("technological_process_id", bizDayworkItem.getTechnologicalProcessId())
|
|
|
+ .eq("product_id", bizLot.getProductId())
|
|
|
+ .eq("technology_version", bizLot.getTechnologyVersion())
|
|
|
.eq("process_id", bizDayworkItem.getProcessId())
|
|
|
.list();
|
|
|
}
|