Commit 4f394828 by 陶光胜

自助指标解密

parent 7ae39afe
...@@ -247,8 +247,14 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService { ...@@ -247,8 +247,14 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
fieldResult = DecryptUtils.decrypt(preResult); fieldResult = DecryptUtils.decrypt(preResult);
}else if(dataPermission == 2 && ("phone_number".equals(fieldName) || "card_num".equals(fieldName))){ }else if(dataPermission == 2 && ("phone_number".equals(fieldName) || "card_num".equals(fieldName))){
fieldResult = DecryptUtils.decrypt(preResult); fieldResult = DecryptUtils.decrypt(preResult);
} }else fieldResult = rs.getObject(fieldColumnIndex);
} else fieldResult = "******"; } else {
if(dataPermission == 1 && "phone_number".equals(fieldName)){
fieldResult = "******";
}else if(dataPermission == 2 && ("phone_number".equals(fieldName) || "card_num".equals(fieldName))){
fieldResult = "******";
} else fieldResult = rs.getObject(fieldColumnIndex);
}
} else fieldResult = rs.getObject(fieldColumnIndex); } else fieldResult = rs.getObject(fieldColumnIndex);
} // SWITCH OVER } // SWITCH OVER
result.add(fieldName, fieldResult); result.add(fieldName, fieldResult);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment