我有元数据和Expression类的地图:
$sql = "UPDATE pm_videos SET description = REPLACE(`description` , 'Instagram:', '');";
现在我在businessService类中有一个方法:
Map<String , Object> metaDate;
public class Expression{
private List<UserCondition> conditions;
private LogicalOperationEnum; // and , or
getters/stters...
}
public classUserCondition{
private String fieldName;
private MathOperationEnum operation; // > , < , >= , <= , =
private Object value;
getters/setters...
}
现在我认为这种方法可以实现更好,但我不知道我该怎么做?