public String workassign() throws Exception{
		dataMap = new HashMap<String,Object>();
		//Work work = new Work();
		//work.setWid(wid);
		//work.setTeachid1(teachid);
		//work.setTeachid2(teachid);
		Work work = workService.query3(wid);
		if((work.getTeachid1()==0) && !(work.getTeachid2()==teachid)){
			work.setTeachid1(teachid);
			workService.fileassign1(work);
			dataMap.put("status", "2000");     //分配成功
			return SUCCESS;
		}else{
			if((work.getTeachid2()==0) && !(work.getTeachid1()==teachid)){
				work.setTeachid2(teachid);
				workService.fileassign2(work);
				dataMap.put("status", "2000");
				return SUCCESS;
			}else{
				dataMap.put("status", "1005");   //分配失败，作品已经分配
				return ERROR;
			}
		}
	}