main
黄海 2 years ago
parent 3d74fa6feb
commit 78ffa7e8c5

@ -116,6 +116,21 @@ public class CollectController extends Controller {
renderJson(CommonUtil.renderJsonForLayUI(list));
}
/**
* Sheet
*
* @param job_id
* @param sheet_index
* @return
*/
@Before({GET.class})
@IsLoginInterface({})
@IsNumericInterface({"job_id", "sheet_index"})
public void getSheetStruct(int job_id, int sheet_index) {
List<Record> list = cm.getSheetStruct(job_id, sheet_index);
renderJson(CommonUtil.renderJsonForLayUI(list));
}
/**
*
*/

@ -122,4 +122,18 @@ public class CollectModel {
String sql = "select * from t_collect_job_sheet where job_id=? order by sheet_index";
return Db.find(sql, job_id);
}
/**
* Sheet
*
* @param job_id
* @param sheet_index
* @return
*/
public List<Record> getSheetStruct(int job_id, int sheet_index) {
String sql = "select * from t_collect_job_sheet_col where job_id=? and sheet_index=? order by column_index";
return Db.find(sql, job_id, sheet_index);
}
}
Loading…
Cancel
Save