|
|
|
|
@ -2,15 +2,17 @@ package com.ssm.controller;
|
|
|
|
|
|
|
|
|
|
import com.ssm.entity.PartTime;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.ui.Model;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
|
@RequestMapping("/parttime")
|
|
|
|
|
public class PartTimeController {
|
|
|
|
|
@RequestMapping("/add")
|
|
|
|
|
public String addPartTime(PartTime partTime) {
|
|
|
|
|
public String addPartTime(PartTime partTime, Model model) {
|
|
|
|
|
System.out.println("=== 收到兼职信息 ===");
|
|
|
|
|
System.out.println(partTime);
|
|
|
|
|
model.addAttribute("partTime", partTime);
|
|
|
|
|
return "showPartTime";
|
|
|
|
|
}
|
|
|
|
|
}
|