|
|
@ -2286,6 +2286,22 @@ public class QcServiceImpl implements QcService { |
|
|
return list; |
|
|
return list; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 查询物料集合(分页) |
|
|
|
|
|
**/ |
|
|
|
|
|
@Override |
|
|
|
|
|
public PageUtils queryPartListPage(QcFAIRecordData data) { |
|
|
|
|
|
if (data.getBu() != null && data.getBu().split("_").length >= 2) { |
|
|
|
|
|
data.setSite(data.getBu().split("_")[0]); |
|
|
|
|
|
data.setBuNo(data.getBu().split("_")[1]); |
|
|
|
|
|
} else { |
|
|
|
|
|
throw new RuntimeException(pmsI18nHelper.text("pms.error.siteBu.invalid", null, "工厂和部门有误!")); |
|
|
|
|
|
} |
|
|
|
|
|
IPage<QcFAIRecordData> resultList = qcMapper.queryPartListPage( |
|
|
|
|
|
new Page<>(data.getPage(), data.getLimit()), data); |
|
|
|
|
|
return new PageUtils(resultList); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 查询单位列表 |
|
|
* 查询单位列表 |
|
|
**/ |
|
|
**/ |
|
|
@ -4946,7 +4962,8 @@ public class QcServiceImpl implements QcService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private String resolveAutogenerateInspectionType(String inspectionTypeKey, String inspectionTypeNo) { |
|
|
private String resolveAutogenerateInspectionType(String inspectionTypeKey, String inspectionTypeNo) { |
|
|
if ("IPQC".equalsIgnoreCase(inspectionTypeKey) || "SQC".equalsIgnoreCase(inspectionTypeKey)) { |
|
|
|
|
|
|
|
|
//|| "SQC".equalsIgnoreCase(inspectionTypeKey) |
|
|
|
|
|
if ("IPQC".equalsIgnoreCase(inspectionTypeKey) ) { |
|
|
if (StringUtils.isNotBlank(inspectionTypeNo)) { |
|
|
if (StringUtils.isNotBlank(inspectionTypeNo)) { |
|
|
if (inspectionTypeNo.startsWith("IPQC")) { |
|
|
if (inspectionTypeNo.startsWith("IPQC")) { |
|
|
return inspectionTypeNo; |
|
|
return inspectionTypeNo; |
|
|
|