|
|
|
@ -255,6 +255,7 @@ public class CollectModel {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:获取指定任务的数据填报情况
|
|
|
|
|
*
|
|
|
|
|
* @param job_id
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
@ -263,6 +264,19 @@ public class CollectModel {
|
|
|
|
|
return Db.find(sql, job_id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:指定任务+指定SheetIndex下,是不是存在字段名称重复的情况
|
|
|
|
|
*
|
|
|
|
|
* @param job_id
|
|
|
|
|
* @param sheet_index
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public List<Record> checkColumnNameDuplicate(int job_id, int sheet_index) {
|
|
|
|
|
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);
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:是不是指定任务的所有Sheet全部都确认通过
|
|
|
|
|
*
|
|
|
|
|