Browse Source

新增api查询接口

master
Rui_Li 11 months ago
parent
commit
b2d1202c83
  1. 10
      src/main/java/com/spring/modules/base/service/Impl/PropertiesServiceImpl.java

10
src/main/java/com/spring/modules/base/service/Impl/PropertiesServiceImpl.java

@ -299,7 +299,8 @@ public class PropertiesServiceImpl implements PropertiesService {
//区分是否是工具方法过来的参数
if("TL".equalsIgnoreCase(functionType) || "TLI".equalsIgnoreCase(functionType)){
return propertiesMapper.searchPropertiesChoose("*", functionType, list);
//return propertiesMapper.searchPropertiesChoose("*", functionType, list); 暂时注释掉
return propertiesMapper.searchPropertiesUnChoose(inData.getSite(), functionType, list);
}else {
return propertiesMapper.searchPropertiesUnChoose(inData.getSite(), functionType, list);
}
@ -420,7 +421,8 @@ public class PropertiesServiceImpl implements PropertiesService {
String recordType = inData.getRecordType();
List<PartSubPropertiesValueData> result = null;
if("TL".equalsIgnoreCase(recordType) || "TLI".equalsIgnoreCase(recordType)){
result = propertiesMapper.getPropertiesListByPartAndCodeNoForTool(inData);
//result = propertiesMapper.getPropertiesListByPartAndCodeNoForTool(inData); 暂时不需要
result = propertiesMapper.getPropertiesListByPartAndCodeNo(inData);
}else {
result = propertiesMapper.getPropertiesListByPartAndCodeNo(inData);
}
@ -428,7 +430,9 @@ public class PropertiesServiceImpl implements PropertiesService {
if ("Y".equals(result.get(i).getValueChooseFlag())) {
//针对工具的情况 需要特殊设置
if("TL".equalsIgnoreCase(recordType) || "TLI".equalsIgnoreCase(recordType)){
List<PlmPropertiesItemAvailableData> availableList = partInformationMapper.getAvailableValueListForTool(result.get(i));
//List<PlmPropertiesItemAvailableData> availableList = partInformationMapper.getAvailableValueListForTool(result.get(i));
//result.get(i).setAvailableValueList(availableList);
List<PlmPropertiesItemAvailableData> availableList = partInformationMapper.getAvailableValueList(result.get(i));
result.get(i).setAvailableValueList(availableList);
}else {
List<PlmPropertiesItemAvailableData> availableList = partInformationMapper.getAvailableValueList(result.get(i));

Loading…
Cancel
Save