src/com/controller/schoolenrollmentController.java
(完整代码) 1KBpackage com.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.service.CompanyService;
import com.service.JobService;
import com.util.PageUtil;
import com.util.UploadUtil;
@Controller
@RequestMapping("")
public class schoolenrollmentController {
private static final int rows = 10;
@Autowired
private JobService jobService;
@Autowired
private CompanyService companyService;
/**
* 添加信息
* @param request
* @return
*/
@RequestMapping("/schoolenrollmentindex")
public String schoolenrollmentindex(HttpServletRequest request)
{
request.setAttribute("jobList1", jobService.getList(" and jobflag='通过' and jobtypes='互联网'",1, rows));
request.setAttribute("jobList2", jobService.getList(" and jobflag='通过' and jobtypes='金融'",1, rows));
request.setAttribute("jobList3", jobService.getList(" and jobflag='通过' and jobtypes='新媒体'",1, rows));
request.setAttribute("jobList4", jobService.getList(" and jobflag='通过' and jobflag='通过'and jobtypes='人力资源'",1, rows));
request.setAttribute("jobList5", jobService.getList(" and jobflag='通过' and jobtypes='电子技术'",1, rows));
request.setAttribute("jobList6", jobService.getList(" and jobflag='通过' and jobtypes='机械'",1, rows));
request.setAttribute("jobList7", jobService.getList(" and jobflag='通过'and jobtypes='工程建筑'",1, rows));
request.setAttribute("companyList", companyService.getList("",1, 10));
return "main";
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
