|
|
|
@ -291,7 +291,7 @@ public class CollectModel {
|
|
|
|
|
* @param sheet_index
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public List<Record> checkColumnNameDuplicate(int job_id, int sheet_index) {
|
|
|
|
|
public boolean checkColumnNameDuplicate(int job_id, int sheet_index) {
|
|
|
|
|
Set<String> blzList = getBlzColumn();//检查是不是与保留字重复
|
|
|
|
|
String sql = "select column_name,count(1) as c from t_collect_job_sheet_col where job_id=? and sheet_index=? group by column_name having count(1)>1";
|
|
|
|
|
List<Record> list = Db.find(sql, job_id, sheet_index);
|
|
|
|
@ -300,7 +300,7 @@ public class CollectModel {
|
|
|
|
|
int c = record.getInt("c");
|
|
|
|
|
if (blzList.contains(column_name)) record.set(column_name, c + 1);
|
|
|
|
|
}
|
|
|
|
|
return list;
|
|
|
|
|
return list.size() > 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean checkColumnNameDuplicate(String json) {
|
|
|
|
|