|
@@ -1930,12 +1930,12 @@ public class CustomFunction {
|
|
* @Author yangyj
|
|
* @Author yangyj
|
|
* @Date 2022.02.11 10:09
|
|
* @Date 2022.02.11 10:09
|
|
**/
|
|
**/
|
|
- public static Object checkpoints(Object data ,Object remark,Object design,Object dev){
|
|
|
|
|
|
+ public static Object checkpoints(Object data ,Object remark,Object design,Object dev,Object xN){
|
|
if(data!=null){
|
|
if(data!=null){
|
|
if(data instanceof String &&((String) data).contains("NumberFormatException")){
|
|
if(data instanceof String &&((String) data).contains("NumberFormatException")){
|
|
return data;
|
|
return data;
|
|
}
|
|
}
|
|
- Object[] R=ck(data,design,dev);
|
|
|
|
|
|
+ Object[] R=ck(data,design,dev,xN);
|
|
if(R[0]!=null&&R[1]!=null&&R[2]!=null){
|
|
if(R[0]!=null&&R[1]!=null&&R[2]!=null){
|
|
int checkpoints=Integer.parseInt(R[0].toString());
|
|
int checkpoints=Integer.parseInt(R[0].toString());
|
|
int passpoints=Integer.parseInt(R[1].toString());
|
|
int passpoints=Integer.parseInt(R[1].toString());
|
|
@@ -1966,7 +1966,7 @@ public class CustomFunction {
|
|
return "/";
|
|
return "/";
|
|
}
|
|
}
|
|
|
|
|
|
- public static Object[] ck(Object data ,Object design,Object dev){
|
|
|
|
|
|
+ public static Object[] ck(Object data ,Object design,Object dev,Object xN){
|
|
Object[] r=new Object[3];
|
|
Object[] r=new Object[3];
|
|
List<Object> result = new ArrayList<>();
|
|
List<Object> result = new ArrayList<>();
|
|
List<Object> datas = obj2List(removeEmpty(data));
|
|
List<Object> datas = obj2List(removeEmpty(data));
|
|
@@ -1993,7 +1993,7 @@ public class CustomFunction {
|
|
}
|
|
}
|
|
result=result.stream().map(StringUtils::handleNull).map(String::trim).filter(e->!StringUtils.isEquals("/",e)).collect(Collectors.toList());
|
|
result=result.stream().map(StringUtils::handleNull).map(String::trim).filter(e->!StringUtils.isEquals("/",e)).collect(Collectors.toList());
|
|
if(result.size()>0){
|
|
if(result.size()>0){
|
|
- List<Object> pl = passList(design,dev,result,1);
|
|
|
|
|
|
+ List<Object> pl = passList(design,dev,result,xN);
|
|
passpoints+= pl.size();
|
|
passpoints+= pl.size();
|
|
result=obj2List(result);
|
|
result=obj2List(result);
|
|
checkpoints+=result.size();
|
|
checkpoints+=result.size();
|
|
@@ -2037,7 +2037,7 @@ public class CustomFunction {
|
|
**/
|
|
**/
|
|
public static Object qrate(Object design,Object dev,Object data,Object scale,Object xN){
|
|
public static Object qrate(Object design,Object dev,Object data,Object scale,Object xN){
|
|
if(data!=null&&StringUtils.isNotEmpty(design,dev,xN)){
|
|
if(data!=null&&StringUtils.isNotEmpty(design,dev,xN)){
|
|
- Object[] R=ck(data,design,dev);
|
|
|
|
|
|
+ Object[] R=ck(data,design,dev,xN);
|
|
if(R[0]!=null&&R[1]!=null&&Math.abs(Double.parseDouble(R[0].toString()))>0){
|
|
if(R[0]!=null&&R[1]!=null&&Math.abs(Double.parseDouble(R[0].toString()))>0){
|
|
String result=StringUtils.number2String(Double.parseDouble(R[1].toString())*100/Double.parseDouble(R[0].toString()),scale);
|
|
String result=StringUtils.number2String(Double.parseDouble(R[1].toString())*100/Double.parseDouble(R[0].toString()),scale);
|
|
if(result.contains(".")){
|
|
if(result.contains(".")){
|