|
@@ -82,7 +82,7 @@ public class AppointmentController extends AbstractController {
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public ControllerResult save(Model model, @RequestParam("bid") Long bid, @RequestParam("itemid") Long itemid,
|
|
public ControllerResult save(Model model, @RequestParam("bid") Long bid, @RequestParam("itemid") Long itemid,
|
|
@RequestParam("fid") Integer fid, @RequestParam("idcard") String idcard, @RequestParam("name") String name, @RequestParam("sex") Integer sex,
|
|
@RequestParam("fid") Integer fid, @RequestParam("idcard") String idcard, @RequestParam("name") String name, @RequestParam("sex") Integer sex,
|
|
- @RequestParam("phone") String phone, @RequestParam("atime") String atime){
|
|
|
|
|
|
+ @RequestParam("phone") String phone, @RequestParam("atime") String atime, @Param("extend") String extend){
|
|
UserBean userBean = this.getUser();
|
|
UserBean userBean = this.getUser();
|
|
BuyOrder buyOrder = buyOrderService.queryBuyOrder(bid);
|
|
BuyOrder buyOrder = buyOrderService.queryBuyOrder(bid);
|
|
if (buyOrder == null){
|
|
if (buyOrder == null){
|
|
@@ -110,7 +110,7 @@ public class AppointmentController extends AbstractController {
|
|
people.setIdcard(idcard);
|
|
people.setIdcard(idcard);
|
|
people.setPhone(phone);
|
|
people.setPhone(phone);
|
|
BuyOrderItem item = buyOrderService.queryItem(itemid);
|
|
BuyOrderItem item = buyOrderService.queryItem(itemid);
|
|
- familyPeopleService.addAppointment(userBean, people, buyOrder, item, atime, "");
|
|
|
|
|
|
+ familyPeopleService.addAppointment(userBean, people, buyOrder, item, atime, extend);
|
|
|
|
|
|
return new ControllerResult(people);
|
|
return new ControllerResult(people);
|
|
}
|
|
}
|
|
@@ -140,7 +140,7 @@ public class AppointmentController extends AbstractController {
|
|
@RequestMapping("change")
|
|
@RequestMapping("change")
|
|
public String change(Model model, @RequestParam("id") Integer id,
|
|
public String change(Model model, @RequestParam("id") Integer id,
|
|
@RequestParam("fid") Integer fid, @RequestParam("idcard") String idcard, @RequestParam("name") String name, @RequestParam("sex") Integer sex,
|
|
@RequestParam("fid") Integer fid, @RequestParam("idcard") String idcard, @RequestParam("name") String name, @RequestParam("sex") Integer sex,
|
|
- @RequestParam("phone") String phone, @RequestParam("atime") String atime){
|
|
|
|
|
|
+ @RequestParam("phone") String phone, @RequestParam("atime") String atime, @Param("extend") String extend){
|
|
UserBean userBean = this.getUser();
|
|
UserBean userBean = this.getUser();
|
|
Appointment appointment = familyPeopleService.queryAppointment(id);
|
|
Appointment appointment = familyPeopleService.queryAppointment(id);
|
|
if (appointment == null){
|
|
if (appointment == null){
|
|
@@ -154,6 +154,7 @@ public class AppointmentController extends AbstractController {
|
|
|
|
|
|
appointment.setFid(fid);
|
|
appointment.setFid(fid);
|
|
appointment.setAtime(atime);
|
|
appointment.setAtime(atime);
|
|
|
|
+ appointment.setExtend(extend);
|
|
|
|
|
|
people.setIdcard(idcard);
|
|
people.setIdcard(idcard);
|
|
people.setName(name);
|
|
people.setName(name);
|