|
|
@@ -1,13 +1,5 @@
|
|
|
package com.uas.mes.scm.service.impl;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-import java.util.regex.Matcher;
|
|
|
-import java.util.regex.Pattern;
|
|
|
-
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.stereotype.Service;
|
|
|
-
|
|
|
import com.uas.mes.common.data.BaseDao;
|
|
|
import com.uas.mes.common.data.SqlUtil;
|
|
|
import com.uas.mes.common.support.HandlerService;
|
|
|
@@ -20,6 +12,11 @@ import com.uas.mes.core.util.DateUtil;
|
|
|
import com.uas.mes.core.util.FlexJsonUtil;
|
|
|
import com.uas.mes.core.util.LangUtil;
|
|
|
import com.uas.mes.scm.service.LabelTemplateSetService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@Service("LabelTTemplateSetServiceImpl")
|
|
|
public class LabelTemplateSetServiceImpl implements LabelTemplateSetService{
|
|
|
@@ -132,7 +129,7 @@ public class LabelTemplateSetServiceImpl implements LabelTemplateSetService{
|
|
|
}
|
|
|
|
|
|
private void checkSql(String sql,Object detno) {
|
|
|
- String value = sql.toUpperCase().replaceAll("(\n|\t)", "");
|
|
|
+ String value = sql.replaceAll("(\n|\t)", "");
|
|
|
String regex = "[\\{].*?[\\}]";
|
|
|
String va = value.replaceAll(regex, "\\'1\\'");
|
|
|
if(va.matches(".*(UPDATE|DELETE|TRUNCATE|ALTER|DROP|FLUSH|INSERT|SET|CREATE)\\s+.*")){
|