|
@@ -186,9 +186,9 @@ public class QualityTaskServiceImpl implements QualityTaskService {
|
|
|
}
|
|
|
// 4. 【规范性】
|
|
|
if (dataRules.getRuleType().equalsIgnoreCase("null_data")) {
|
|
|
- // 日期格式
|
|
|
sql.append(" and ");
|
|
|
- sql.append(fieldName + " is '' ");
|
|
|
+ // 空字符串判断 LENGTH(trim(a))=0
|
|
|
+ sql.append("LENGTH(trim("+fieldName+"))=0 ");
|
|
|
}
|
|
|
|
|
|
System.err.println(">>>> 组装的sql为:" + sql.toString());
|