|
|
|
@ -38,7 +38,7 @@ public class CollectController extends Controller {
|
|
|
|
|
CollectModel cm = new CollectModel();
|
|
|
|
|
String basePath = CommonUtil.WebRoot + File.separator + "Excel";
|
|
|
|
|
|
|
|
|
|
public CollectController() throws URISyntaxException {
|
|
|
|
|
public CollectController() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/********以下为EXCEL模板上传管理功能******************************************************
|
|
|
|
@ -47,7 +47,7 @@ public class CollectController extends Controller {
|
|
|
|
|
*/
|
|
|
|
|
@Before({POST.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
public void uoloadTemplate() throws URISyntaxException, IOException {
|
|
|
|
|
public void uoloadTemplate() throws IOException {
|
|
|
|
|
UploadFile excelFile = getFile();//得到文件对象
|
|
|
|
|
//操作人员
|
|
|
|
|
String person_id = SessionKit.get(getRequest(), getResponse(), "person_id");
|
|
|
|
@ -232,7 +232,7 @@ public class CollectController extends Controller {
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
@IsNumericInterface({"job_id"})
|
|
|
|
|
@EmptyInterface({"job_name"})
|
|
|
|
|
public void saveJob(int job_id, String job_name) throws URISyntaxException, IOException {
|
|
|
|
|
public void saveJob(int job_id, String job_name) throws IOException {
|
|
|
|
|
//操作人员
|
|
|
|
|
String person_id = SessionKit.get(getRequest(), getResponse(), "person_id");
|
|
|
|
|
//检查当前登录人员是不是发布任务的角色
|
|
|
|
@ -389,7 +389,7 @@ public class CollectController extends Controller {
|
|
|
|
|
*/
|
|
|
|
|
@Before({POST.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
public void importData() throws URISyntaxException, IOException, ParseException {
|
|
|
|
|
public void importData() throws IOException, ParseException {
|
|
|
|
|
// 延迟解析比率
|
|
|
|
|
ZipSecureFile.setMinInflateRatio(-1.0d);
|
|
|
|
|
UploadFile excelFile = getFile();//得到文件对象
|
|
|
|
|