27 lines
559 B
C#
27 lines
559 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace JiShe.CollectBus.Common.Helpers
|
|
{
|
|
public class DataFieldHelper
|
|
{
|
|
public static string GetDataField(string dataField)
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dataField))
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
if (dataField.Contains("."))
|
|
{
|
|
return dataField.Split('.')[0];
|
|
}
|
|
|
|
return dataField;
|
|
}
|
|
}
|
|
}
|