mirror of
https://gitee.com/elegant_wings/xiongan-meeting.git
synced 2025-06-21 03:49:36 +08:00
新增初始化项目
This commit is contained in:
parent
2be79492c5
commit
853f0d32ea
@ -0,0 +1,76 @@
|
|||||||
|
package com.ics.admin.controller.meeting;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.ics.common.core.domain.R;
|
||||||
|
import com.ics.common.core.controller.BaseController;
|
||||||
|
import com.ics.admin.domain.meeting.CustomerTicket;
|
||||||
|
import com.ics.admin.service.meeting.ICustomerTicketService;
|
||||||
|
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业优惠卷关联 提供者
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/meeting/customerTicket")
|
||||||
|
public class CustomerTicketController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ICustomerTicketService customerTicketService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询企业优惠卷关联
|
||||||
|
*/
|
||||||
|
@GetMapping("get/{id}")
|
||||||
|
public CustomerTicket get(@PathVariable("id") Long id) {
|
||||||
|
return customerTicketService.selectCustomerTicketById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询企业优惠卷关联列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:customerTicket:list")
|
||||||
|
@GetMapping("list")
|
||||||
|
public R list(CustomerTicket customerTicket) {
|
||||||
|
startPage();
|
||||||
|
return result(customerTicketService.selectCustomerTicketList(customerTicket));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存企业优惠卷关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:customerTicket:add")
|
||||||
|
@PostMapping("save")
|
||||||
|
public R addSave(@RequestBody CustomerTicket customerTicket) {
|
||||||
|
return toAjax(customerTicketService.insertCustomerTicket(customerTicket));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存企业优惠卷关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:customerTicket:edit")
|
||||||
|
@PostMapping("update")
|
||||||
|
public R editSave(@RequestBody CustomerTicket customerTicket) {
|
||||||
|
return toAjax(customerTicketService.updateCustomerTicket(customerTicket));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除企业优惠卷关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:customerTicket:remove")
|
||||||
|
@PostMapping("remove")
|
||||||
|
public R remove(String ids) {
|
||||||
|
return toAjax(customerTicketService.deleteCustomerTicketByIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.ics.admin.controller.meeting;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.ics.common.core.domain.R;
|
||||||
|
import com.ics.common.core.controller.BaseController;
|
||||||
|
import com.ics.admin.domain.meeting.Equipment;
|
||||||
|
import com.ics.admin.service.meeting.IEquipmentService;
|
||||||
|
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备 提供者
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/meeting/equipment")
|
||||||
|
public class EquipmentController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IEquipmentService equipmentService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询设备
|
||||||
|
*/
|
||||||
|
@GetMapping("get/{id}")
|
||||||
|
public Equipment get(@PathVariable("id") Long id) {
|
||||||
|
return equipmentService.selectEquipmentById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询设备列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:equipment:list")
|
||||||
|
@GetMapping("list")
|
||||||
|
public R list(Equipment equipment) {
|
||||||
|
startPage();
|
||||||
|
return result(equipmentService.selectEquipmentList(equipment));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存设备
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:equipment:add")
|
||||||
|
@PostMapping("save")
|
||||||
|
public R addSave(@RequestBody Equipment equipment) {
|
||||||
|
return toAjax(equipmentService.insertEquipment(equipment));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存设备
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:equipment:edit")
|
||||||
|
@PostMapping("update")
|
||||||
|
public R editSave(@RequestBody Equipment equipment) {
|
||||||
|
return toAjax(equipmentService.updateEquipment(equipment));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除设备
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:equipment:remove")
|
||||||
|
@PostMapping("remove")
|
||||||
|
public R remove(String ids) {
|
||||||
|
return toAjax(equipmentService.deleteEquipmentByIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.ics.admin.controller.meeting;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.ics.common.core.domain.R;
|
||||||
|
import com.ics.common.core.controller.BaseController;
|
||||||
|
import com.ics.admin.domain.meeting.Order;
|
||||||
|
import com.ics.admin.service.meeting.IOrderService;
|
||||||
|
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单 提供者
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/meeting/order")
|
||||||
|
public class OrderController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IOrderService orderService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询订单
|
||||||
|
*/
|
||||||
|
@GetMapping("get/{id}")
|
||||||
|
public Order get(@PathVariable("id") Long id) {
|
||||||
|
return orderService.selectOrderById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询订单列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:order:list")
|
||||||
|
@GetMapping("list")
|
||||||
|
public R list(Order order) {
|
||||||
|
startPage();
|
||||||
|
return result(orderService.selectOrderList(order));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存订单
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:order:add")
|
||||||
|
@PostMapping("save")
|
||||||
|
public R addSave(@RequestBody Order order) {
|
||||||
|
return toAjax(orderService.insertOrder(order));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存订单
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:order:edit")
|
||||||
|
@PostMapping("update")
|
||||||
|
public R editSave(@RequestBody Order order) {
|
||||||
|
return toAjax(orderService.updateOrder(order));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除订单
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:order:remove")
|
||||||
|
@PostMapping("remove")
|
||||||
|
public R remove(String ids) {
|
||||||
|
return toAjax(orderService.deleteOrderByIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.ics.admin.controller.meeting;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.ics.common.core.domain.R;
|
||||||
|
import com.ics.common.core.controller.BaseController;
|
||||||
|
import com.ics.admin.domain.meeting.Reservation;
|
||||||
|
import com.ics.admin.service.meeting.IReservationService;
|
||||||
|
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预约记录 提供者
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/meeting/reservation")
|
||||||
|
public class ReservationController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IReservationService reservationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约记录
|
||||||
|
*/
|
||||||
|
@GetMapping("get/{id}")
|
||||||
|
public Reservation get(@PathVariable("id") Long id) {
|
||||||
|
return reservationService.selectReservationById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约记录列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:reservation:list")
|
||||||
|
@GetMapping("list")
|
||||||
|
public R list(Reservation reservation) {
|
||||||
|
startPage();
|
||||||
|
return result(reservationService.selectReservationList(reservation));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存预约记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:reservation:add")
|
||||||
|
@PostMapping("save")
|
||||||
|
public R addSave(@RequestBody Reservation reservation) {
|
||||||
|
return toAjax(reservationService.insertReservation(reservation));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存预约记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:reservation:edit")
|
||||||
|
@PostMapping("update")
|
||||||
|
public R editSave(@RequestBody Reservation reservation) {
|
||||||
|
return toAjax(reservationService.updateReservation(reservation));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预约记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:reservation:remove")
|
||||||
|
@PostMapping("remove")
|
||||||
|
public R remove(String ids) {
|
||||||
|
return toAjax(reservationService.deleteReservationByIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.ics.admin.controller.meeting;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.ics.common.core.domain.R;
|
||||||
|
import com.ics.common.core.controller.BaseController;
|
||||||
|
import com.ics.admin.domain.meeting.ReservationPerson;
|
||||||
|
import com.ics.admin.service.meeting.IReservationPersonService;
|
||||||
|
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预约参观人员 提供者
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/meeting/reservationPerson")
|
||||||
|
public class ReservationPersonController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IReservationPersonService reservationPersonService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约参观人员
|
||||||
|
*/
|
||||||
|
@GetMapping("get/{id}")
|
||||||
|
public ReservationPerson get(@PathVariable("id") Long id) {
|
||||||
|
return reservationPersonService.selectReservationPersonById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约参观人员列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:person:list")
|
||||||
|
@GetMapping("list")
|
||||||
|
public R list(ReservationPerson reservationPerson) {
|
||||||
|
startPage();
|
||||||
|
return result(reservationPersonService.selectReservationPersonList(reservationPerson));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存预约参观人员
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:person:add")
|
||||||
|
@PostMapping("save")
|
||||||
|
public R addSave(@RequestBody ReservationPerson reservationPerson) {
|
||||||
|
return toAjax(reservationPersonService.insertReservationPerson(reservationPerson));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存预约参观人员
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:person:edit")
|
||||||
|
@PostMapping("update")
|
||||||
|
public R editSave(@RequestBody ReservationPerson reservationPerson) {
|
||||||
|
return toAjax(reservationPersonService.updateReservationPerson(reservationPerson));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预约参观人员
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:person:remove")
|
||||||
|
@PostMapping("remove")
|
||||||
|
public R remove(String ids) {
|
||||||
|
return toAjax(reservationPersonService.deleteReservationPersonByIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.ics.admin.controller.meeting;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.ics.common.core.domain.R;
|
||||||
|
import com.ics.common.core.controller.BaseController;
|
||||||
|
import com.ics.admin.domain.meeting.RoomEquipment;
|
||||||
|
import com.ics.admin.service.meeting.IRoomEquipmentService;
|
||||||
|
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间和设备关联 提供者
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/meeting/roomEquipment")
|
||||||
|
public class RoomEquipmentController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IRoomEquipmentService roomEquipmentService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间和设备关联
|
||||||
|
*/
|
||||||
|
@GetMapping("get/{id}")
|
||||||
|
public RoomEquipment get(@PathVariable("id") Long id) {
|
||||||
|
return roomEquipmentService.selectRoomEquipmentById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间和设备关联列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:roomEquipment:list")
|
||||||
|
@GetMapping("list")
|
||||||
|
public R list(RoomEquipment roomEquipment) {
|
||||||
|
startPage();
|
||||||
|
return result(roomEquipmentService.selectRoomEquipmentList(roomEquipment));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存房间和设备关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:roomEquipment:add")
|
||||||
|
@PostMapping("save")
|
||||||
|
public R addSave(@RequestBody RoomEquipment roomEquipment) {
|
||||||
|
return toAjax(roomEquipmentService.insertRoomEquipment(roomEquipment));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存房间和设备关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:roomEquipment:edit")
|
||||||
|
@PostMapping("update")
|
||||||
|
public R editSave(@RequestBody RoomEquipment roomEquipment) {
|
||||||
|
return toAjax(roomEquipmentService.updateRoomEquipment(roomEquipment));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间和设备关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:roomEquipment:remove")
|
||||||
|
@PostMapping("remove")
|
||||||
|
public R remove(String ids) {
|
||||||
|
return toAjax(roomEquipmentService.deleteRoomEquipmentByIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.ics.admin.controller.meeting;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.ics.common.core.domain.R;
|
||||||
|
import com.ics.common.core.controller.BaseController;
|
||||||
|
import com.ics.admin.domain.meeting.RoomItemByRoom;
|
||||||
|
import com.ics.admin.service.meeting.IRoomItemByRoomService;
|
||||||
|
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间物品关联 提供者
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/meeting/roomItemByRoom")
|
||||||
|
public class RoomItemByRoomController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IRoomItemByRoomService roomItemByRoomService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间物品关联
|
||||||
|
*/
|
||||||
|
@GetMapping("get/{id}")
|
||||||
|
public RoomItemByRoom get(@PathVariable("id") Long id) {
|
||||||
|
return roomItemByRoomService.selectRoomItemByRoomById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间物品关联列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:roomItemByRoomList:list")
|
||||||
|
@GetMapping("list")
|
||||||
|
public R list(RoomItemByRoom roomItemByRoom) {
|
||||||
|
startPage();
|
||||||
|
return result(roomItemByRoomService.selectRoomItemByRoomList(roomItemByRoom));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存房间物品关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:roomItemByRoom:add")
|
||||||
|
@PostMapping("save")
|
||||||
|
public R addSave(@RequestBody RoomItemByRoom roomItemByRoom) {
|
||||||
|
return toAjax(roomItemByRoomService.insertRoomItemByRoom(roomItemByRoom));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存房间物品关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:roomItemByRoom:edit")
|
||||||
|
@PostMapping("update")
|
||||||
|
public R editSave(@RequestBody RoomItemByRoom roomItemByRoom) {
|
||||||
|
return toAjax(roomItemByRoomService.updateRoomItemByRoom(roomItemByRoom));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间物品关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:roomItemByRoom:remove")
|
||||||
|
@PostMapping("remove")
|
||||||
|
public R remove(String ids) {
|
||||||
|
return toAjax(roomItemByRoomService.deleteRoomItemByRoomByIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -21,7 +21,7 @@ import org.wf.jwtp.annotation.RequiresPermissions;
|
|||||||
* @date 2024-02-23
|
* @date 2024-02-23
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("item")
|
@RequestMapping("/meeting/roomItem")
|
||||||
public class RoomItemController extends BaseController {
|
public class RoomItemController extends BaseController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.ics.admin.controller.meeting;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.ics.common.core.domain.R;
|
||||||
|
import com.ics.common.core.controller.BaseController;
|
||||||
|
import com.ics.admin.domain.meeting.RoomServeByRoom;
|
||||||
|
import com.ics.admin.service.meeting.IRoomServeByRoomService;
|
||||||
|
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间主体和服务关联 提供者
|
||||||
|
*
|
||||||
|
* @author ics
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/meeting/roomServeByRoom")
|
||||||
|
public class RoomServeByRoomController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IRoomServeByRoomService roomServeByRoomService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间主体和服务关联
|
||||||
|
*/
|
||||||
|
@GetMapping("get/{id}")
|
||||||
|
public RoomServeByRoom get(@PathVariable("id") Long id) {
|
||||||
|
return roomServeByRoomService.selectRoomServeByRoomById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间主体和服务关联列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:roomServeByRoom:list")
|
||||||
|
@GetMapping("list")
|
||||||
|
public R list(RoomServeByRoom roomServeByRoom) {
|
||||||
|
startPage();
|
||||||
|
return result(roomServeByRoomService.selectRoomServeByRoomList(roomServeByRoom));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存房间主体和服务关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:roomServeByRoom:add")
|
||||||
|
@PostMapping("save")
|
||||||
|
public R addSave(@RequestBody RoomServeByRoom roomServeByRoom) {
|
||||||
|
return toAjax(roomServeByRoomService.insertRoomServeByRoom(roomServeByRoom));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存房间主体和服务关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:roomServeByRoom:edit")
|
||||||
|
@PostMapping("update")
|
||||||
|
public R editSave(@RequestBody RoomServeByRoom roomServeByRoom) {
|
||||||
|
return toAjax(roomServeByRoomService.updateRoomServeByRoom(roomServeByRoom));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间主体和服务关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:roomServeByRoom:remove")
|
||||||
|
@PostMapping("remove")
|
||||||
|
public R remove(String ids) {
|
||||||
|
return toAjax(roomServeByRoomService.deleteRoomServeByRoomByIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.ics.admin.controller.meeting;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.ics.common.core.domain.R;
|
||||||
|
import com.ics.common.core.controller.BaseController;
|
||||||
|
import com.ics.admin.domain.meeting.RoomServe;
|
||||||
|
import com.ics.admin.service.meeting.IRoomServeService;
|
||||||
|
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务 提供者
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/meeting/roomServe")
|
||||||
|
public class RoomServeController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IRoomServeService roomServeService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询服务
|
||||||
|
*/
|
||||||
|
@GetMapping("get/{id}")
|
||||||
|
public RoomServe get(@PathVariable("id") Long id) {
|
||||||
|
return roomServeService.selectRoomServeById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询服务列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:serve:list")
|
||||||
|
@GetMapping("list")
|
||||||
|
public R list(RoomServe roomServe) {
|
||||||
|
startPage();
|
||||||
|
return result(roomServeService.selectRoomServeList(roomServe));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存服务
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:serve:add")
|
||||||
|
@PostMapping("save")
|
||||||
|
public R addSave(@RequestBody RoomServe roomServe) {
|
||||||
|
return toAjax(roomServeService.insertRoomServe(roomServe));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存服务
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:serve:edit")
|
||||||
|
@PostMapping("update")
|
||||||
|
public R editSave(@RequestBody RoomServe roomServe) {
|
||||||
|
return toAjax(roomServeService.updateRoomServe(roomServe));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除服务
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:serve:remove")
|
||||||
|
@PostMapping("remove")
|
||||||
|
public R remove(String ids) {
|
||||||
|
return toAjax(roomServeService.deleteRoomServeByIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.ics.admin.controller.meeting;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.ics.common.core.domain.R;
|
||||||
|
import com.ics.common.core.controller.BaseController;
|
||||||
|
import com.ics.admin.domain.meeting.Ticket;
|
||||||
|
import com.ics.admin.service.meeting.ITicketService;
|
||||||
|
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠卷 提供者
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/meeting/ticket")
|
||||||
|
public class TicketController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ITicketService ticketService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询优惠卷
|
||||||
|
*/
|
||||||
|
@GetMapping("get/{id}")
|
||||||
|
public Ticket get(@PathVariable("id") Long id) {
|
||||||
|
return ticketService.selectTicketById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询优惠卷列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:ticket:list")
|
||||||
|
@GetMapping("list")
|
||||||
|
public R list(Ticket ticket) {
|
||||||
|
startPage();
|
||||||
|
return result(ticketService.selectTicketList(ticket));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存优惠卷
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:ticket:add")
|
||||||
|
@PostMapping("save")
|
||||||
|
public R addSave(@RequestBody Ticket ticket) {
|
||||||
|
return toAjax(ticketService.insertTicket(ticket));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存优惠卷
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:ticket:edit")
|
||||||
|
@PostMapping("update")
|
||||||
|
public R editSave(@RequestBody Ticket ticket) {
|
||||||
|
return toAjax(ticketService.updateTicket(ticket));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除优惠卷
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:ticket:remove")
|
||||||
|
@PostMapping("remove")
|
||||||
|
public R remove(String ids) {
|
||||||
|
return toAjax(ticketService.deleteTicketByIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.ics.admin.controller.meeting;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.ics.common.core.domain.R;
|
||||||
|
import com.ics.common.core.controller.BaseController;
|
||||||
|
import com.ics.admin.domain.meeting.UserEquipment;
|
||||||
|
import com.ics.admin.service.meeting.IUserEquipmentService;
|
||||||
|
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户设备关联 提供者
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/meeting/userEquipment")
|
||||||
|
public class UserEquipmentController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IUserEquipmentService userEquipmentService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询用户设备关联
|
||||||
|
*/
|
||||||
|
@GetMapping("get/{id}")
|
||||||
|
public UserEquipment get(@PathVariable("id") Long id) {
|
||||||
|
return userEquipmentService.selectUserEquipmentById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询用户设备关联列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:userEquipment:list")
|
||||||
|
@GetMapping("list")
|
||||||
|
public R list(UserEquipment userEquipment) {
|
||||||
|
startPage();
|
||||||
|
return result(userEquipmentService.selectUserEquipmentList(userEquipment));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存用户设备关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:userEquipment:add")
|
||||||
|
@PostMapping("save")
|
||||||
|
public R addSave(@RequestBody UserEquipment userEquipment) {
|
||||||
|
return toAjax(userEquipmentService.insertUserEquipment(userEquipment));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存用户设备关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:userEquipment:edit")
|
||||||
|
@PostMapping("update")
|
||||||
|
public R editSave(@RequestBody UserEquipment userEquipment) {
|
||||||
|
return toAjax(userEquipmentService.updateUserEquipment(userEquipment));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除用户设备关联
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("meeting:userEquipment:remove")
|
||||||
|
@PostMapping("remove")
|
||||||
|
public R remove(String ids) {
|
||||||
|
return toAjax(userEquipmentService.deleteUserEquipmentByIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.ics.admin.domain.meeting;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ics.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业优惠卷关联对象 tb_customer_ticket
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("tb_customer_ticket")
|
||||||
|
public class CustomerTicket extends BaseEntity<CustomerTicket> {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 企业id */
|
||||||
|
private Long customerId;
|
||||||
|
|
||||||
|
/** 优惠卷id */
|
||||||
|
private Long ticketId;
|
||||||
|
|
||||||
|
/** 数量 */
|
||||||
|
private Integer num;
|
||||||
|
|
||||||
|
/** 是否已经核销 */
|
||||||
|
private Integer isVerification;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,37 @@
|
|||||||
|
package com.ics.admin.domain.meeting;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ics.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备对象 tb_equipment
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("tb_equipment")
|
||||||
|
public class Equipment extends BaseEntity<Equipment> {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 设备分类 */
|
||||||
|
private Long type;
|
||||||
|
|
||||||
|
/** 设备名称 */
|
||||||
|
private String equipmentName;
|
||||||
|
|
||||||
|
/** 设备状态 0在线 1损坏 2离线 */
|
||||||
|
private Long status;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
private Date createDate;
|
||||||
|
|
||||||
|
/** 设备编号 */
|
||||||
|
private String equipmentNum;
|
||||||
|
|
||||||
|
/** 设备图片 */
|
||||||
|
private String pic;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ics.admin.domain.meeting;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ics.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单对象 tb_order
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("tb_order")
|
||||||
|
public class Order extends BaseEntity<Order> {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 会议主体id */
|
||||||
|
private Long roomContentId;
|
||||||
|
|
||||||
|
/** 用户id */
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
/** 预约记录id */
|
||||||
|
private Long reservationId;
|
||||||
|
|
||||||
|
/** 订单价格 */
|
||||||
|
private String orderMoney;
|
||||||
|
|
||||||
|
/** 订单状态 */
|
||||||
|
private Integer orderStauts;
|
||||||
|
|
||||||
|
/** 订单号 */
|
||||||
|
private Long outTradeNo;
|
||||||
|
|
||||||
|
/** 是否申请售后0否1是 */
|
||||||
|
private String isAfterSale;
|
||||||
|
|
||||||
|
/** 订单取消时间 */
|
||||||
|
private Date cancelTime;
|
||||||
|
|
||||||
|
/** 订单取消原因 */
|
||||||
|
private String cancelResaon;
|
||||||
|
|
||||||
|
/** 售后单号 */
|
||||||
|
private String afterNumber;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remake;
|
||||||
|
|
||||||
|
/** 商户id */
|
||||||
|
private Long mchid;
|
||||||
|
|
||||||
|
/** 商品描述 */
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
/** 预支付交易会话id */
|
||||||
|
private Long prepayId;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.ics.admin.domain.meeting;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ics.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预约记录对象 tb_reservation
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("tb_reservation")
|
||||||
|
public class Reservation extends BaseEntity<Reservation> {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 会议主体id */
|
||||||
|
private Long roomContentId;
|
||||||
|
|
||||||
|
/** 用户id */
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
/** 优惠卷id */
|
||||||
|
private Long ticketId;
|
||||||
|
|
||||||
|
/** 企业id */
|
||||||
|
private Long customerId;
|
||||||
|
|
||||||
|
/** 主题(会议主题、展厅主题) */
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/** 预约状态 */
|
||||||
|
private Integer stauts;
|
||||||
|
|
||||||
|
/** 是否申请售后0否1是 */
|
||||||
|
private String isAfterSale;
|
||||||
|
|
||||||
|
/** 订单号 */
|
||||||
|
private String oderNumber;
|
||||||
|
|
||||||
|
/** 订单价格 */
|
||||||
|
private String orderMoney;
|
||||||
|
|
||||||
|
/** 订单取消时间 */
|
||||||
|
private Date cancelTime;
|
||||||
|
|
||||||
|
/** 订单取消原因 */
|
||||||
|
private String cancelResaon;
|
||||||
|
|
||||||
|
/** 参观目的:1领导视察,2参观学习,3合作调研,4同行交流 */
|
||||||
|
private String visitType;
|
||||||
|
|
||||||
|
/** 讲解需求:1需要,0不需要 */
|
||||||
|
private String explainNeedType;
|
||||||
|
|
||||||
|
/** 会议室需求:1需要,0不需要 */
|
||||||
|
private String meetingNeedType;
|
||||||
|
|
||||||
|
/** 会议室id */
|
||||||
|
private Long meetingId;
|
||||||
|
|
||||||
|
/** 摄影需求:1需要,0不需要 */
|
||||||
|
private String photographType;
|
||||||
|
|
||||||
|
/** 预约-开始时间 */
|
||||||
|
private Date startTime;
|
||||||
|
|
||||||
|
/** 预约-结束时间 */
|
||||||
|
// private Date endTime;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remake;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
package com.ics.admin.domain.meeting;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ics.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预约参观人员对象 tb_reservation_person
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("tb_reservation_person")
|
||||||
|
public class ReservationPerson extends BaseEntity<ReservationPerson> {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 用户id */
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
/** 预约记录id */
|
||||||
|
private Long reservationId;
|
||||||
|
|
||||||
|
/** 姓名 */
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 手机号 */
|
||||||
|
private Integer phone;
|
||||||
|
|
||||||
|
/** 加入时间 */
|
||||||
|
private Date joinTime;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.ics.admin.domain.meeting;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ics.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间和设备关联对象 tb_room_equipment
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("tb_room_equipment")
|
||||||
|
public class RoomEquipment extends BaseEntity<RoomEquipment> {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 设备id */
|
||||||
|
private Long equipmentId;
|
||||||
|
|
||||||
|
/** 房间id */
|
||||||
|
private Long roomId;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package com.ics.admin.domain.meeting;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ics.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间物品关联对象 tb_room_item_by_room
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("tb_room_item_by_room")
|
||||||
|
public class RoomItemByRoom extends BaseEntity<RoomItemByRoom> {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 房间主体id */
|
||||||
|
private Long roomContentId;
|
||||||
|
|
||||||
|
/** 物品id */
|
||||||
|
private Long itemId;
|
||||||
|
|
||||||
|
/** 数量 */
|
||||||
|
private Integer num;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.ics.admin.domain.meeting;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ics.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务对象 tb_room_serve
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("tb_room_serve")
|
||||||
|
public class RoomServe extends BaseEntity<RoomServe> {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 服务名称 */
|
||||||
|
private String serveName;
|
||||||
|
|
||||||
|
/** 服务类型(会务服务、其他服务) */
|
||||||
|
private Integer serveType;
|
||||||
|
|
||||||
|
/** 服务时间30分钟起步 */
|
||||||
|
private String serveTime;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remake;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.ics.admin.domain.meeting;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ics.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间主体和服务关联对象 tb_room_serve_by_room
|
||||||
|
*
|
||||||
|
* @author ics
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("tb_room_serve_by_room")
|
||||||
|
public class RoomServeByRoom extends BaseEntity<RoomServeByRoom> {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 服务id */
|
||||||
|
private Long serveId;
|
||||||
|
|
||||||
|
/** 房间主体id */
|
||||||
|
private Long romeContentId;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,52 @@
|
|||||||
|
package com.ics.admin.domain.meeting;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ics.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠卷对象 tb_ticket
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("tb_ticket")
|
||||||
|
public class Ticket extends BaseEntity<Ticket> {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/** 描述 */
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
/** 类型 */
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
/** 金额 */
|
||||||
|
private String money;
|
||||||
|
|
||||||
|
/** 地址 */
|
||||||
|
private String address;
|
||||||
|
|
||||||
|
/** 是否需要核销 */
|
||||||
|
private Integer isVerification;
|
||||||
|
|
||||||
|
/** 是否需要展示 */
|
||||||
|
private Integer isShow;
|
||||||
|
|
||||||
|
/** 开始时间 */
|
||||||
|
private Date startTime;
|
||||||
|
|
||||||
|
/** 结束时间 */
|
||||||
|
private String endTime;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/** 是否默认 */
|
||||||
|
private String isDefault;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.ics.admin.domain.meeting;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ics.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户设备关联对象 tb_user_equipment
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("tb_user_equipment")
|
||||||
|
public class UserEquipment extends BaseEntity<UserEquipment> {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 用户id */
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
/** 设备id */
|
||||||
|
private Long equipmentId;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package com.ics.admin.mapper.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.CustomerTicket;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业优惠卷关联Mapper接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface CustomerTicketMapper extends BaseMapper<CustomerTicket> {
|
||||||
|
/**
|
||||||
|
* 查询企业优惠卷关联
|
||||||
|
*
|
||||||
|
* @param id 企业优惠卷关联ID
|
||||||
|
* @return 企业优惠卷关联
|
||||||
|
*/
|
||||||
|
CustomerTicket selectCustomerTicketById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询企业优惠卷关联列表
|
||||||
|
*
|
||||||
|
* @param customerTicket 企业优惠卷关联
|
||||||
|
* @return 企业优惠卷关联集合
|
||||||
|
*/
|
||||||
|
List<CustomerTicket> selectCustomerTicketList(CustomerTicket customerTicket);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增企业优惠卷关联
|
||||||
|
*
|
||||||
|
* @param customerTicket 企业优惠卷关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertCustomerTicket(CustomerTicket customerTicket);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改企业优惠卷关联
|
||||||
|
*
|
||||||
|
* @param customerTicket 企业优惠卷关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateCustomerTicket(CustomerTicket customerTicket);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除企业优惠卷关联
|
||||||
|
*
|
||||||
|
* @param id 企业优惠卷关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteCustomerTicketById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除企业优惠卷关联
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteCustomerTicketByIds(String[] ids);
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package com.ics.admin.mapper.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.Equipment;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备Mapper接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface EquipmentMapper extends BaseMapper<Equipment> {
|
||||||
|
/**
|
||||||
|
* 查询设备
|
||||||
|
*
|
||||||
|
* @param id 设备ID
|
||||||
|
* @return 设备
|
||||||
|
*/
|
||||||
|
Equipment selectEquipmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询设备列表
|
||||||
|
*
|
||||||
|
* @param equipment 设备
|
||||||
|
* @return 设备集合
|
||||||
|
*/
|
||||||
|
List<Equipment> selectEquipmentList(Equipment equipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增设备
|
||||||
|
*
|
||||||
|
* @param equipment 设备
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertEquipment(Equipment equipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改设备
|
||||||
|
*
|
||||||
|
* @param equipment 设备
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateEquipment(Equipment equipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除设备
|
||||||
|
*
|
||||||
|
* @param id 设备ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteEquipmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除设备
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteEquipmentByIds(String[] ids);
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package com.ics.admin.mapper.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.Order;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单Mapper接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface OrderMapper extends BaseMapper<Order> {
|
||||||
|
/**
|
||||||
|
* 查询订单
|
||||||
|
*
|
||||||
|
* @param id 订单ID
|
||||||
|
* @return 订单
|
||||||
|
*/
|
||||||
|
Order selectOrderById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询订单列表
|
||||||
|
*
|
||||||
|
* @param order 订单
|
||||||
|
* @return 订单集合
|
||||||
|
*/
|
||||||
|
List<Order> selectOrderList(Order order);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增订单
|
||||||
|
*
|
||||||
|
* @param order 订单
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertOrder(Order order);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改订单
|
||||||
|
*
|
||||||
|
* @param order 订单
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateOrder(Order order);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除订单
|
||||||
|
*
|
||||||
|
* @param id 订单ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteOrderById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除订单
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteOrderByIds(String[] ids);
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package com.ics.admin.mapper.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.Reservation;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预约记录Mapper接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface ReservationMapper extends BaseMapper<Reservation> {
|
||||||
|
/**
|
||||||
|
* 查询预约记录
|
||||||
|
*
|
||||||
|
* @param id 预约记录ID
|
||||||
|
* @return 预约记录
|
||||||
|
*/
|
||||||
|
Reservation selectReservationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约记录列表
|
||||||
|
*
|
||||||
|
* @param reservation 预约记录
|
||||||
|
* @return 预约记录集合
|
||||||
|
*/
|
||||||
|
List<Reservation> selectReservationList(Reservation reservation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增预约记录
|
||||||
|
*
|
||||||
|
* @param reservation 预约记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertReservation(Reservation reservation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改预约记录
|
||||||
|
*
|
||||||
|
* @param reservation 预约记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateReservation(Reservation reservation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预约记录
|
||||||
|
*
|
||||||
|
* @param id 预约记录ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteReservationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除预约记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteReservationByIds(String[] ids);
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package com.ics.admin.mapper.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.ReservationPerson;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预约参观人员Mapper接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface ReservationPersonMapper extends BaseMapper<ReservationPerson> {
|
||||||
|
/**
|
||||||
|
* 查询预约参观人员
|
||||||
|
*
|
||||||
|
* @param id 预约参观人员ID
|
||||||
|
* @return 预约参观人员
|
||||||
|
*/
|
||||||
|
ReservationPerson selectReservationPersonById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约参观人员列表
|
||||||
|
*
|
||||||
|
* @param reservationPerson 预约参观人员
|
||||||
|
* @return 预约参观人员集合
|
||||||
|
*/
|
||||||
|
List<ReservationPerson> selectReservationPersonList(ReservationPerson reservationPerson);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增预约参观人员
|
||||||
|
*
|
||||||
|
* @param reservationPerson 预约参观人员
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertReservationPerson(ReservationPerson reservationPerson);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改预约参观人员
|
||||||
|
*
|
||||||
|
* @param reservationPerson 预约参观人员
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateReservationPerson(ReservationPerson reservationPerson);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预约参观人员
|
||||||
|
*
|
||||||
|
* @param id 预约参观人员ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteReservationPersonById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除预约参观人员
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteReservationPersonByIds(String[] ids);
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package com.ics.admin.mapper.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.RoomEquipment;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间和设备关联Mapper接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface RoomEquipmentMapper extends BaseMapper<RoomEquipment> {
|
||||||
|
/**
|
||||||
|
* 查询房间和设备关联
|
||||||
|
*
|
||||||
|
* @param id 房间和设备关联ID
|
||||||
|
* @return 房间和设备关联
|
||||||
|
*/
|
||||||
|
RoomEquipment selectRoomEquipmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间和设备关联列表
|
||||||
|
*
|
||||||
|
* @param roomEquipment 房间和设备关联
|
||||||
|
* @return 房间和设备关联集合
|
||||||
|
*/
|
||||||
|
List<RoomEquipment> selectRoomEquipmentList(RoomEquipment roomEquipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增房间和设备关联
|
||||||
|
*
|
||||||
|
* @param roomEquipment 房间和设备关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertRoomEquipment(RoomEquipment roomEquipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改房间和设备关联
|
||||||
|
*
|
||||||
|
* @param roomEquipment 房间和设备关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateRoomEquipment(RoomEquipment roomEquipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间和设备关联
|
||||||
|
*
|
||||||
|
* @param id 房间和设备关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomEquipmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除房间和设备关联
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomEquipmentByIds(String[] ids);
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package com.ics.admin.mapper.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.RoomItemByRoom;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间物品关联Mapper接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface RoomItemByRoomMapper extends BaseMapper<RoomItemByRoom> {
|
||||||
|
/**
|
||||||
|
* 查询房间物品关联
|
||||||
|
*
|
||||||
|
* @param id 房间物品关联ID
|
||||||
|
* @return 房间物品关联
|
||||||
|
*/
|
||||||
|
RoomItemByRoom selectRoomItemByRoomById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间物品关联列表
|
||||||
|
*
|
||||||
|
* @param roomItemByRoom 房间物品关联
|
||||||
|
* @return 房间物品关联集合
|
||||||
|
*/
|
||||||
|
List<RoomItemByRoom> selectRoomItemByRoomList(RoomItemByRoom roomItemByRoom);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增房间物品关联
|
||||||
|
*
|
||||||
|
* @param roomItemByRoom 房间物品关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertRoomItemByRoom(RoomItemByRoom roomItemByRoom);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改房间物品关联
|
||||||
|
*
|
||||||
|
* @param roomItemByRoom 房间物品关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateRoomItemByRoom(RoomItemByRoom roomItemByRoom);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间物品关联
|
||||||
|
*
|
||||||
|
* @param id 房间物品关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomItemByRoomById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除房间物品关联
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomItemByRoomByIds(String[] ids);
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package com.ics.admin.mapper.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.RoomServeByRoom;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间主体和服务关联Mapper接口
|
||||||
|
*
|
||||||
|
* @author ics
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface RoomServeByRoomMapper extends BaseMapper<RoomServeByRoom> {
|
||||||
|
/**
|
||||||
|
* 查询房间主体和服务关联
|
||||||
|
*
|
||||||
|
* @param id 房间主体和服务关联ID
|
||||||
|
* @return 房间主体和服务关联
|
||||||
|
*/
|
||||||
|
RoomServeByRoom selectRoomServeByRoomById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间主体和服务关联列表
|
||||||
|
*
|
||||||
|
* @param roomServeByRoom 房间主体和服务关联
|
||||||
|
* @return 房间主体和服务关联集合
|
||||||
|
*/
|
||||||
|
List<RoomServeByRoom> selectRoomServeByRoomList(RoomServeByRoom roomServeByRoom);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增房间主体和服务关联
|
||||||
|
*
|
||||||
|
* @param roomServeByRoom 房间主体和服务关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertRoomServeByRoom(RoomServeByRoom roomServeByRoom);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改房间主体和服务关联
|
||||||
|
*
|
||||||
|
* @param roomServeByRoom 房间主体和服务关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateRoomServeByRoom(RoomServeByRoom roomServeByRoom);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间主体和服务关联
|
||||||
|
*
|
||||||
|
* @param id 房间主体和服务关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomServeByRoomById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除房间主体和服务关联
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomServeByRoomByIds(String[] ids);
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package com.ics.admin.mapper.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.RoomServe;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务Mapper接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface RoomServeMapper extends BaseMapper<RoomServe> {
|
||||||
|
/**
|
||||||
|
* 查询服务
|
||||||
|
*
|
||||||
|
* @param id 服务ID
|
||||||
|
* @return 服务
|
||||||
|
*/
|
||||||
|
RoomServe selectRoomServeById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询服务列表
|
||||||
|
*
|
||||||
|
* @param roomServe 服务
|
||||||
|
* @return 服务集合
|
||||||
|
*/
|
||||||
|
List<RoomServe> selectRoomServeList(RoomServe roomServe);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增服务
|
||||||
|
*
|
||||||
|
* @param roomServe 服务
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertRoomServe(RoomServe roomServe);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改服务
|
||||||
|
*
|
||||||
|
* @param roomServe 服务
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateRoomServe(RoomServe roomServe);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除服务
|
||||||
|
*
|
||||||
|
* @param id 服务ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomServeById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除服务
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomServeByIds(String[] ids);
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package com.ics.admin.mapper.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.Ticket;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠卷Mapper接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface TicketMapper extends BaseMapper<Ticket> {
|
||||||
|
/**
|
||||||
|
* 查询优惠卷
|
||||||
|
*
|
||||||
|
* @param id 优惠卷ID
|
||||||
|
* @return 优惠卷
|
||||||
|
*/
|
||||||
|
Ticket selectTicketById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询优惠卷列表
|
||||||
|
*
|
||||||
|
* @param ticket 优惠卷
|
||||||
|
* @return 优惠卷集合
|
||||||
|
*/
|
||||||
|
List<Ticket> selectTicketList(Ticket ticket);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增优惠卷
|
||||||
|
*
|
||||||
|
* @param ticket 优惠卷
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertTicket(Ticket ticket);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改优惠卷
|
||||||
|
*
|
||||||
|
* @param ticket 优惠卷
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateTicket(Ticket ticket);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除优惠卷
|
||||||
|
*
|
||||||
|
* @param id 优惠卷ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteTicketById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除优惠卷
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteTicketByIds(String[] ids);
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package com.ics.admin.mapper.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.UserEquipment;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户设备关联Mapper接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface UserEquipmentMapper extends BaseMapper<UserEquipment> {
|
||||||
|
/**
|
||||||
|
* 查询用户设备关联
|
||||||
|
*
|
||||||
|
* @param id 用户设备关联ID
|
||||||
|
* @return 用户设备关联
|
||||||
|
*/
|
||||||
|
UserEquipment selectUserEquipmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询用户设备关联列表
|
||||||
|
*
|
||||||
|
* @param userEquipment 用户设备关联
|
||||||
|
* @return 用户设备关联集合
|
||||||
|
*/
|
||||||
|
List<UserEquipment> selectUserEquipmentList(UserEquipment userEquipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增用户设备关联
|
||||||
|
*
|
||||||
|
* @param userEquipment 用户设备关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertUserEquipment(UserEquipment userEquipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改用户设备关联
|
||||||
|
*
|
||||||
|
* @param userEquipment 用户设备关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateUserEquipment(UserEquipment userEquipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除用户设备关联
|
||||||
|
*
|
||||||
|
* @param id 用户设备关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteUserEquipmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除用户设备关联
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteUserEquipmentByIds(String[] ids);
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.ics.admin.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ics.admin.mapper.meeting.RoomEquipmentMapper;
|
||||||
|
import com.ics.admin.domain.meeting.RoomEquipment;
|
||||||
|
import com.ics.admin.service.meeting.IRoomEquipmentService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间和设备关联Service业务层处理
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class RoomEquipmentServiceImpl extends ServiceImpl<RoomEquipmentMapper, RoomEquipment> implements IRoomEquipmentService {
|
||||||
|
@Autowired
|
||||||
|
private RoomEquipmentMapper roomEquipmentMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间和设备关联
|
||||||
|
*
|
||||||
|
* @param id 房间和设备关联ID
|
||||||
|
* @return 房间和设备关联
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public RoomEquipment selectRoomEquipmentById(Long id) {
|
||||||
|
return roomEquipmentMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间和设备关联列表
|
||||||
|
*
|
||||||
|
* @param roomEquipment 房间和设备关联
|
||||||
|
* @return 房间和设备关联
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<RoomEquipment> selectRoomEquipmentList(RoomEquipment roomEquipment) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
|
return roomEquipmentMapper.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增房间和设备关联
|
||||||
|
*
|
||||||
|
* @param roomEquipment 房间和设备关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertRoomEquipment(RoomEquipment roomEquipment) {
|
||||||
|
return roomEquipmentMapper.insert(roomEquipment);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改房间和设备关联
|
||||||
|
*
|
||||||
|
* @param roomEquipment 房间和设备关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateRoomEquipment(RoomEquipment roomEquipment) {
|
||||||
|
return roomEquipmentMapper.updateById(roomEquipment);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间和设备关联对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRoomEquipmentByIds(String ids) {
|
||||||
|
String[] idsArray = StrUtil.split(ids,",");
|
||||||
|
return roomEquipmentMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间和设备关联信息
|
||||||
|
*
|
||||||
|
* @param id 房间和设备关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRoomEquipmentById(Long id) {
|
||||||
|
return roomEquipmentMapper.deleteRoomEquipmentById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.ics.admin.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ics.admin.mapper.meeting.RoomServeByRoomMapper;
|
||||||
|
import com.ics.admin.domain.meeting.RoomServeByRoom;
|
||||||
|
import com.ics.admin.service.meeting.IRoomServeByRoomService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间主体和服务关联Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ics
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class RoomServeByRoomServiceImpl extends ServiceImpl<RoomServeByRoomMapper, RoomServeByRoom> implements IRoomServeByRoomService {
|
||||||
|
@Autowired
|
||||||
|
private RoomServeByRoomMapper roomServeByRoomMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间主体和服务关联
|
||||||
|
*
|
||||||
|
* @param id 房间主体和服务关联ID
|
||||||
|
* @return 房间主体和服务关联
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public RoomServeByRoom selectRoomServeByRoomById(Long id) {
|
||||||
|
return roomServeByRoomMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间主体和服务关联列表
|
||||||
|
*
|
||||||
|
* @param roomServeByRoom 房间主体和服务关联
|
||||||
|
* @return 房间主体和服务关联
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<RoomServeByRoom> selectRoomServeByRoomList(RoomServeByRoom roomServeByRoom) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
|
return roomServeByRoomMapper.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增房间主体和服务关联
|
||||||
|
*
|
||||||
|
* @param roomServeByRoom 房间主体和服务关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertRoomServeByRoom(RoomServeByRoom roomServeByRoom) {
|
||||||
|
return roomServeByRoomMapper.insert(roomServeByRoom);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改房间主体和服务关联
|
||||||
|
*
|
||||||
|
* @param roomServeByRoom 房间主体和服务关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateRoomServeByRoom(RoomServeByRoom roomServeByRoom) {
|
||||||
|
return roomServeByRoomMapper.updateById(roomServeByRoom);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间主体和服务关联对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRoomServeByRoomByIds(String ids) {
|
||||||
|
String[] idsArray = StrUtil.split(ids,",");
|
||||||
|
return roomServeByRoomMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间主体和服务关联信息
|
||||||
|
*
|
||||||
|
* @param id 房间主体和服务关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRoomServeByRoomById(Long id) {
|
||||||
|
return roomServeByRoomMapper.deleteRoomServeByRoomById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.ics.admin.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ics.admin.mapper.meeting.RoomServeMapper;
|
||||||
|
import com.ics.admin.domain.meeting.RoomServe;
|
||||||
|
import com.ics.admin.service.meeting.IRoomServeService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务Service业务层处理
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class RoomServeServiceImpl extends ServiceImpl<RoomServeMapper, RoomServe> implements IRoomServeService {
|
||||||
|
@Autowired
|
||||||
|
private RoomServeMapper roomServeMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询服务
|
||||||
|
*
|
||||||
|
* @param id 服务ID
|
||||||
|
* @return 服务
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public RoomServe selectRoomServeById(Long id) {
|
||||||
|
return roomServeMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询服务列表
|
||||||
|
*
|
||||||
|
* @param roomServe 服务
|
||||||
|
* @return 服务
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<RoomServe> selectRoomServeList(RoomServe roomServe) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
|
return roomServeMapper.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增服务
|
||||||
|
*
|
||||||
|
* @param roomServe 服务
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertRoomServe(RoomServe roomServe) {
|
||||||
|
return roomServeMapper.insert(roomServe);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改服务
|
||||||
|
*
|
||||||
|
* @param roomServe 服务
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateRoomServe(RoomServe roomServe) {
|
||||||
|
return roomServeMapper.updateById(roomServe);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除服务对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRoomServeByIds(String ids) {
|
||||||
|
String[] idsArray = StrUtil.split(ids,",");
|
||||||
|
return roomServeMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除服务信息
|
||||||
|
*
|
||||||
|
* @param id 服务ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRoomServeById(Long id) {
|
||||||
|
return roomServeMapper.deleteRoomServeById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.ics.admin.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ics.admin.mapper.meeting.TicketMapper;
|
||||||
|
import com.ics.admin.domain.meeting.Ticket;
|
||||||
|
import com.ics.admin.service.meeting.ITicketService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠卷Service业务层处理
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TicketServiceImpl extends ServiceImpl<TicketMapper, Ticket> implements ITicketService {
|
||||||
|
@Autowired
|
||||||
|
private TicketMapper ticketMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询优惠卷
|
||||||
|
*
|
||||||
|
* @param id 优惠卷ID
|
||||||
|
* @return 优惠卷
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Ticket selectTicketById(Long id) {
|
||||||
|
return ticketMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询优惠卷列表
|
||||||
|
*
|
||||||
|
* @param ticket 优惠卷
|
||||||
|
* @return 优惠卷
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<Ticket> selectTicketList(Ticket ticket) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
|
return ticketMapper.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增优惠卷
|
||||||
|
*
|
||||||
|
* @param ticket 优惠卷
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertTicket(Ticket ticket) {
|
||||||
|
return ticketMapper.insert(ticket);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改优惠卷
|
||||||
|
*
|
||||||
|
* @param ticket 优惠卷
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateTicket(Ticket ticket) {
|
||||||
|
return ticketMapper.updateById(ticket);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除优惠卷对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTicketByIds(String ids) {
|
||||||
|
String[] idsArray = StrUtil.split(ids,",");
|
||||||
|
return ticketMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除优惠卷信息
|
||||||
|
*
|
||||||
|
* @param id 优惠卷ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTicketById(Long id) {
|
||||||
|
return ticketMapper.deleteTicketById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.ics.admin.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ics.admin.mapper.meeting.UserEquipmentMapper;
|
||||||
|
import com.ics.admin.domain.meeting.UserEquipment;
|
||||||
|
import com.ics.admin.service.meeting.IUserEquipmentService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户设备关联Service业务层处理
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class UserEquipmentServiceImpl extends ServiceImpl<UserEquipmentMapper, UserEquipment> implements IUserEquipmentService {
|
||||||
|
@Autowired
|
||||||
|
private UserEquipmentMapper userEquipmentMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询用户设备关联
|
||||||
|
*
|
||||||
|
* @param id 用户设备关联ID
|
||||||
|
* @return 用户设备关联
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UserEquipment selectUserEquipmentById(Long id) {
|
||||||
|
return userEquipmentMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询用户设备关联列表
|
||||||
|
*
|
||||||
|
* @param userEquipment 用户设备关联
|
||||||
|
* @return 用户设备关联
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<UserEquipment> selectUserEquipmentList(UserEquipment userEquipment) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
|
return userEquipmentMapper.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增用户设备关联
|
||||||
|
*
|
||||||
|
* @param userEquipment 用户设备关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertUserEquipment(UserEquipment userEquipment) {
|
||||||
|
return userEquipmentMapper.insert(userEquipment);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改用户设备关联
|
||||||
|
*
|
||||||
|
* @param userEquipment 用户设备关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateUserEquipment(UserEquipment userEquipment) {
|
||||||
|
return userEquipmentMapper.updateById(userEquipment);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除用户设备关联对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteUserEquipmentByIds(String ids) {
|
||||||
|
String[] idsArray = StrUtil.split(ids,",");
|
||||||
|
return userEquipmentMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除用户设备关联信息
|
||||||
|
*
|
||||||
|
* @param id 用户设备关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteUserEquipmentById(Long id) {
|
||||||
|
return userEquipmentMapper.deleteUserEquipmentById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.ics.admin.service.impl.meeting;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ics.admin.mapper.meeting.CustomerTicketMapper;
|
||||||
|
import com.ics.admin.domain.meeting.CustomerTicket;
|
||||||
|
import com.ics.admin.service.meeting.ICustomerTicketService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业优惠卷关联Service业务层处理
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class CustomerTicketServiceImpl extends ServiceImpl<CustomerTicketMapper, CustomerTicket> implements ICustomerTicketService {
|
||||||
|
@Autowired
|
||||||
|
private CustomerTicketMapper customerTicketMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询企业优惠卷关联
|
||||||
|
*
|
||||||
|
* @param id 企业优惠卷关联ID
|
||||||
|
* @return 企业优惠卷关联
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CustomerTicket selectCustomerTicketById(Long id) {
|
||||||
|
return customerTicketMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询企业优惠卷关联列表
|
||||||
|
*
|
||||||
|
* @param customerTicket 企业优惠卷关联
|
||||||
|
* @return 企业优惠卷关联
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<CustomerTicket> selectCustomerTicketList(CustomerTicket customerTicket) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
|
return customerTicketMapper.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增企业优惠卷关联
|
||||||
|
*
|
||||||
|
* @param customerTicket 企业优惠卷关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertCustomerTicket(CustomerTicket customerTicket) {
|
||||||
|
return customerTicketMapper.insert(customerTicket);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改企业优惠卷关联
|
||||||
|
*
|
||||||
|
* @param customerTicket 企业优惠卷关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateCustomerTicket(CustomerTicket customerTicket) {
|
||||||
|
return customerTicketMapper.updateById(customerTicket);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除企业优惠卷关联对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteCustomerTicketByIds(String ids) {
|
||||||
|
String[] idsArray = StrUtil.split(ids,",");
|
||||||
|
return customerTicketMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除企业优惠卷关联信息
|
||||||
|
*
|
||||||
|
* @param id 企业优惠卷关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteCustomerTicketById(Long id) {
|
||||||
|
return customerTicketMapper.deleteCustomerTicketById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.ics.admin.service.impl.meeting;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ics.admin.mapper.meeting.EquipmentMapper;
|
||||||
|
import com.ics.admin.domain.meeting.Equipment;
|
||||||
|
import com.ics.admin.service.meeting.IEquipmentService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备Service业务层处理
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class EquipmentServiceImpl extends ServiceImpl<EquipmentMapper, Equipment> implements IEquipmentService {
|
||||||
|
@Autowired
|
||||||
|
private EquipmentMapper equipmentMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询设备
|
||||||
|
*
|
||||||
|
* @param id 设备ID
|
||||||
|
* @return 设备
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Equipment selectEquipmentById(Long id) {
|
||||||
|
return equipmentMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询设备列表
|
||||||
|
*
|
||||||
|
* @param equipment 设备
|
||||||
|
* @return 设备
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<Equipment> selectEquipmentList(Equipment equipment) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
|
return equipmentMapper.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增设备
|
||||||
|
*
|
||||||
|
* @param equipment 设备
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertEquipment(Equipment equipment) {
|
||||||
|
return equipmentMapper.insert(equipment);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改设备
|
||||||
|
*
|
||||||
|
* @param equipment 设备
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateEquipment(Equipment equipment) {
|
||||||
|
return equipmentMapper.updateById(equipment);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除设备对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEquipmentByIds(String ids) {
|
||||||
|
String[] idsArray = StrUtil.split(ids,",");
|
||||||
|
return equipmentMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除设备信息
|
||||||
|
*
|
||||||
|
* @param id 设备ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEquipmentById(Long id) {
|
||||||
|
return equipmentMapper.deleteEquipmentById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.ics.admin.service.impl.meeting;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ics.admin.mapper.meeting.OrderMapper;
|
||||||
|
import com.ics.admin.domain.meeting.Order;
|
||||||
|
import com.ics.admin.service.meeting.IOrderService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单Service业务层处理
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements IOrderService {
|
||||||
|
@Autowired
|
||||||
|
private OrderMapper orderMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询订单
|
||||||
|
*
|
||||||
|
* @param id 订单ID
|
||||||
|
* @return 订单
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Order selectOrderById(Long id) {
|
||||||
|
return orderMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询订单列表
|
||||||
|
*
|
||||||
|
* @param order 订单
|
||||||
|
* @return 订单
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<Order> selectOrderList(Order order) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
|
return orderMapper.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增订单
|
||||||
|
*
|
||||||
|
* @param order 订单
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertOrder(Order order) {
|
||||||
|
return orderMapper.insert(order);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改订单
|
||||||
|
*
|
||||||
|
* @param order 订单
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateOrder(Order order) {
|
||||||
|
return orderMapper.updateById(order);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除订单对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteOrderByIds(String ids) {
|
||||||
|
String[] idsArray = StrUtil.split(ids,",");
|
||||||
|
return orderMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除订单信息
|
||||||
|
*
|
||||||
|
* @param id 订单ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteOrderById(Long id) {
|
||||||
|
return orderMapper.deleteOrderById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.ics.admin.service.impl.meeting;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ics.admin.mapper.meeting.ReservationPersonMapper;
|
||||||
|
import com.ics.admin.domain.meeting.ReservationPerson;
|
||||||
|
import com.ics.admin.service.meeting.IReservationPersonService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预约参观人员Service业务层处理
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ReservationPersonServiceImpl extends ServiceImpl<ReservationPersonMapper, ReservationPerson> implements IReservationPersonService {
|
||||||
|
@Autowired
|
||||||
|
private ReservationPersonMapper reservationPersonMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约参观人员
|
||||||
|
*
|
||||||
|
* @param id 预约参观人员ID
|
||||||
|
* @return 预约参观人员
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ReservationPerson selectReservationPersonById(Long id) {
|
||||||
|
return reservationPersonMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约参观人员列表
|
||||||
|
*
|
||||||
|
* @param reservationPerson 预约参观人员
|
||||||
|
* @return 预约参观人员
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ReservationPerson> selectReservationPersonList(ReservationPerson reservationPerson) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
|
return reservationPersonMapper.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增预约参观人员
|
||||||
|
*
|
||||||
|
* @param reservationPerson 预约参观人员
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertReservationPerson(ReservationPerson reservationPerson) {
|
||||||
|
return reservationPersonMapper.insert(reservationPerson);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改预约参观人员
|
||||||
|
*
|
||||||
|
* @param reservationPerson 预约参观人员
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateReservationPerson(ReservationPerson reservationPerson) {
|
||||||
|
return reservationPersonMapper.updateById(reservationPerson);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预约参观人员对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteReservationPersonByIds(String ids) {
|
||||||
|
String[] idsArray = StrUtil.split(ids,",");
|
||||||
|
return reservationPersonMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预约参观人员信息
|
||||||
|
*
|
||||||
|
* @param id 预约参观人员ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteReservationPersonById(Long id) {
|
||||||
|
return reservationPersonMapper.deleteReservationPersonById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.ics.admin.service.impl.meeting;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ics.admin.mapper.meeting.ReservationMapper;
|
||||||
|
import com.ics.admin.domain.meeting.Reservation;
|
||||||
|
import com.ics.admin.service.meeting.IReservationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预约记录Service业务层处理
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ReservationServiceImpl extends ServiceImpl<ReservationMapper, Reservation> implements IReservationService {
|
||||||
|
@Autowired
|
||||||
|
private ReservationMapper reservationMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约记录
|
||||||
|
*
|
||||||
|
* @param id 预约记录ID
|
||||||
|
* @return 预约记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Reservation selectReservationById(Long id) {
|
||||||
|
return reservationMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约记录列表
|
||||||
|
*
|
||||||
|
* @param reservation 预约记录
|
||||||
|
* @return 预约记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<Reservation> selectReservationList(Reservation reservation) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
|
return reservationMapper.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增预约记录
|
||||||
|
*
|
||||||
|
* @param reservation 预约记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertReservation(Reservation reservation) {
|
||||||
|
return reservationMapper.insert(reservation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改预约记录
|
||||||
|
*
|
||||||
|
* @param reservation 预约记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateReservation(Reservation reservation) {
|
||||||
|
return reservationMapper.updateById(reservation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预约记录对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteReservationByIds(String ids) {
|
||||||
|
String[] idsArray = StrUtil.split(ids,",");
|
||||||
|
return reservationMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预约记录信息
|
||||||
|
*
|
||||||
|
* @param id 预约记录ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteReservationById(Long id) {
|
||||||
|
return reservationMapper.deleteReservationById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.ics.admin.service.impl.meeting;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ics.admin.mapper.meeting.RoomItemByRoomMapper;
|
||||||
|
import com.ics.admin.domain.meeting.RoomItemByRoom;
|
||||||
|
import com.ics.admin.service.meeting.IRoomItemByRoomService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间物品关联Service业务层处理
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class RoomItemByRoomServiceImpl extends ServiceImpl<RoomItemByRoomMapper, RoomItemByRoom> implements IRoomItemByRoomService {
|
||||||
|
@Autowired
|
||||||
|
private RoomItemByRoomMapper roomItemByRoomMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间物品关联
|
||||||
|
*
|
||||||
|
* @param id 房间物品关联ID
|
||||||
|
* @return 房间物品关联
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public RoomItemByRoom selectRoomItemByRoomById(Long id) {
|
||||||
|
return roomItemByRoomMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间物品关联列表
|
||||||
|
*
|
||||||
|
* @param roomItemByRoom 房间物品关联
|
||||||
|
* @return 房间物品关联
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<RoomItemByRoom> selectRoomItemByRoomList(RoomItemByRoom roomItemByRoom) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
|
return roomItemByRoomMapper.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增房间物品关联
|
||||||
|
*
|
||||||
|
* @param roomItemByRoom 房间物品关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertRoomItemByRoom(RoomItemByRoom roomItemByRoom) {
|
||||||
|
return roomItemByRoomMapper.insert(roomItemByRoom);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改房间物品关联
|
||||||
|
*
|
||||||
|
* @param roomItemByRoom 房间物品关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateRoomItemByRoom(RoomItemByRoom roomItemByRoom) {
|
||||||
|
return roomItemByRoomMapper.updateById(roomItemByRoom);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间物品关联对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRoomItemByRoomByIds(String ids) {
|
||||||
|
String[] idsArray = StrUtil.split(ids,",");
|
||||||
|
return roomItemByRoomMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间物品关联信息
|
||||||
|
*
|
||||||
|
* @param id 房间物品关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRoomItemByRoomById(Long id) {
|
||||||
|
return roomItemByRoomMapper.deleteRoomItemByRoomById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ics.admin.service.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.CustomerTicket;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 企业优惠卷关联Service接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
public interface ICustomerTicketService extends IService<CustomerTicket> {
|
||||||
|
/**
|
||||||
|
* 查询企业优惠卷关联
|
||||||
|
*
|
||||||
|
* @param id 企业优惠卷关联ID
|
||||||
|
* @return 企业优惠卷关联
|
||||||
|
*/
|
||||||
|
CustomerTicket selectCustomerTicketById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询企业优惠卷关联列表
|
||||||
|
*
|
||||||
|
* @param customerTicket 企业优惠卷关联
|
||||||
|
* @return 企业优惠卷关联集合
|
||||||
|
*/
|
||||||
|
List<CustomerTicket> selectCustomerTicketList(CustomerTicket customerTicket);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增企业优惠卷关联
|
||||||
|
*
|
||||||
|
* @param customerTicket 企业优惠卷关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertCustomerTicket(CustomerTicket customerTicket);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改企业优惠卷关联
|
||||||
|
*
|
||||||
|
* @param customerTicket 企业优惠卷关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateCustomerTicket(CustomerTicket customerTicket);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除企业优惠卷关联
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteCustomerTicketByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除企业优惠卷关联信息
|
||||||
|
*
|
||||||
|
* @param id 企业优惠卷关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteCustomerTicketById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ics.admin.service.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.Equipment;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备Service接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
public interface IEquipmentService extends IService<Equipment> {
|
||||||
|
/**
|
||||||
|
* 查询设备
|
||||||
|
*
|
||||||
|
* @param id 设备ID
|
||||||
|
* @return 设备
|
||||||
|
*/
|
||||||
|
Equipment selectEquipmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询设备列表
|
||||||
|
*
|
||||||
|
* @param equipment 设备
|
||||||
|
* @return 设备集合
|
||||||
|
*/
|
||||||
|
List<Equipment> selectEquipmentList(Equipment equipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增设备
|
||||||
|
*
|
||||||
|
* @param equipment 设备
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertEquipment(Equipment equipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改设备
|
||||||
|
*
|
||||||
|
* @param equipment 设备
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateEquipment(Equipment equipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除设备
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteEquipmentByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除设备信息
|
||||||
|
*
|
||||||
|
* @param id 设备ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteEquipmentById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ics.admin.service.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.Order;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单Service接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
public interface IOrderService extends IService<Order> {
|
||||||
|
/**
|
||||||
|
* 查询订单
|
||||||
|
*
|
||||||
|
* @param id 订单ID
|
||||||
|
* @return 订单
|
||||||
|
*/
|
||||||
|
Order selectOrderById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询订单列表
|
||||||
|
*
|
||||||
|
* @param order 订单
|
||||||
|
* @return 订单集合
|
||||||
|
*/
|
||||||
|
List<Order> selectOrderList(Order order);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增订单
|
||||||
|
*
|
||||||
|
* @param order 订单
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertOrder(Order order);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改订单
|
||||||
|
*
|
||||||
|
* @param order 订单
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateOrder(Order order);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除订单
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteOrderByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除订单信息
|
||||||
|
*
|
||||||
|
* @param id 订单ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteOrderById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ics.admin.service.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.ReservationPerson;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预约参观人员Service接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
public interface IReservationPersonService extends IService<ReservationPerson> {
|
||||||
|
/**
|
||||||
|
* 查询预约参观人员
|
||||||
|
*
|
||||||
|
* @param id 预约参观人员ID
|
||||||
|
* @return 预约参观人员
|
||||||
|
*/
|
||||||
|
ReservationPerson selectReservationPersonById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约参观人员列表
|
||||||
|
*
|
||||||
|
* @param reservationPerson 预约参观人员
|
||||||
|
* @return 预约参观人员集合
|
||||||
|
*/
|
||||||
|
List<ReservationPerson> selectReservationPersonList(ReservationPerson reservationPerson);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增预约参观人员
|
||||||
|
*
|
||||||
|
* @param reservationPerson 预约参观人员
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertReservationPerson(ReservationPerson reservationPerson);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改预约参观人员
|
||||||
|
*
|
||||||
|
* @param reservationPerson 预约参观人员
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateReservationPerson(ReservationPerson reservationPerson);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除预约参观人员
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteReservationPersonByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预约参观人员信息
|
||||||
|
*
|
||||||
|
* @param id 预约参观人员ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteReservationPersonById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ics.admin.service.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.Reservation;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预约记录Service接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
public interface IReservationService extends IService<Reservation> {
|
||||||
|
/**
|
||||||
|
* 查询预约记录
|
||||||
|
*
|
||||||
|
* @param id 预约记录ID
|
||||||
|
* @return 预约记录
|
||||||
|
*/
|
||||||
|
Reservation selectReservationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预约记录列表
|
||||||
|
*
|
||||||
|
* @param reservation 预约记录
|
||||||
|
* @return 预约记录集合
|
||||||
|
*/
|
||||||
|
List<Reservation> selectReservationList(Reservation reservation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增预约记录
|
||||||
|
*
|
||||||
|
* @param reservation 预约记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertReservation(Reservation reservation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改预约记录
|
||||||
|
*
|
||||||
|
* @param reservation 预约记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateReservation(Reservation reservation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除预约记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteReservationByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预约记录信息
|
||||||
|
*
|
||||||
|
* @param id 预约记录ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteReservationById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ics.admin.service.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.RoomEquipment;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间和设备关联Service接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
public interface IRoomEquipmentService extends IService<RoomEquipment> {
|
||||||
|
/**
|
||||||
|
* 查询房间和设备关联
|
||||||
|
*
|
||||||
|
* @param id 房间和设备关联ID
|
||||||
|
* @return 房间和设备关联
|
||||||
|
*/
|
||||||
|
RoomEquipment selectRoomEquipmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间和设备关联列表
|
||||||
|
*
|
||||||
|
* @param roomEquipment 房间和设备关联
|
||||||
|
* @return 房间和设备关联集合
|
||||||
|
*/
|
||||||
|
List<RoomEquipment> selectRoomEquipmentList(RoomEquipment roomEquipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增房间和设备关联
|
||||||
|
*
|
||||||
|
* @param roomEquipment 房间和设备关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertRoomEquipment(RoomEquipment roomEquipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改房间和设备关联
|
||||||
|
*
|
||||||
|
* @param roomEquipment 房间和设备关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateRoomEquipment(RoomEquipment roomEquipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除房间和设备关联
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomEquipmentByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间和设备关联信息
|
||||||
|
*
|
||||||
|
* @param id 房间和设备关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomEquipmentById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ics.admin.service.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.RoomItemByRoom;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间物品关联Service接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
public interface IRoomItemByRoomService extends IService<RoomItemByRoom> {
|
||||||
|
/**
|
||||||
|
* 查询房间物品关联
|
||||||
|
*
|
||||||
|
* @param id 房间物品关联ID
|
||||||
|
* @return 房间物品关联
|
||||||
|
*/
|
||||||
|
RoomItemByRoom selectRoomItemByRoomById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间物品关联列表
|
||||||
|
*
|
||||||
|
* @param roomItemByRoom 房间物品关联
|
||||||
|
* @return 房间物品关联集合
|
||||||
|
*/
|
||||||
|
List<RoomItemByRoom> selectRoomItemByRoomList(RoomItemByRoom roomItemByRoom);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增房间物品关联
|
||||||
|
*
|
||||||
|
* @param roomItemByRoom 房间物品关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertRoomItemByRoom(RoomItemByRoom roomItemByRoom);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改房间物品关联
|
||||||
|
*
|
||||||
|
* @param roomItemByRoom 房间物品关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateRoomItemByRoom(RoomItemByRoom roomItemByRoom);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除房间物品关联
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomItemByRoomByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间物品关联信息
|
||||||
|
*
|
||||||
|
* @param id 房间物品关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomItemByRoomById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ics.admin.service.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.RoomServeByRoom;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 房间主体和服务关联Service接口
|
||||||
|
*
|
||||||
|
* @author ics
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
public interface IRoomServeByRoomService extends IService<RoomServeByRoom> {
|
||||||
|
/**
|
||||||
|
* 查询房间主体和服务关联
|
||||||
|
*
|
||||||
|
* @param id 房间主体和服务关联ID
|
||||||
|
* @return 房间主体和服务关联
|
||||||
|
*/
|
||||||
|
RoomServeByRoom selectRoomServeByRoomById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询房间主体和服务关联列表
|
||||||
|
*
|
||||||
|
* @param roomServeByRoom 房间主体和服务关联
|
||||||
|
* @return 房间主体和服务关联集合
|
||||||
|
*/
|
||||||
|
List<RoomServeByRoom> selectRoomServeByRoomList(RoomServeByRoom roomServeByRoom);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增房间主体和服务关联
|
||||||
|
*
|
||||||
|
* @param roomServeByRoom 房间主体和服务关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertRoomServeByRoom(RoomServeByRoom roomServeByRoom);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改房间主体和服务关联
|
||||||
|
*
|
||||||
|
* @param roomServeByRoom 房间主体和服务关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateRoomServeByRoom(RoomServeByRoom roomServeByRoom);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除房间主体和服务关联
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomServeByRoomByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除房间主体和服务关联信息
|
||||||
|
*
|
||||||
|
* @param id 房间主体和服务关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomServeByRoomById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ics.admin.service.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.RoomServe;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务Service接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
public interface IRoomServeService extends IService<RoomServe> {
|
||||||
|
/**
|
||||||
|
* 查询服务
|
||||||
|
*
|
||||||
|
* @param id 服务ID
|
||||||
|
* @return 服务
|
||||||
|
*/
|
||||||
|
RoomServe selectRoomServeById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询服务列表
|
||||||
|
*
|
||||||
|
* @param roomServe 服务
|
||||||
|
* @return 服务集合
|
||||||
|
*/
|
||||||
|
List<RoomServe> selectRoomServeList(RoomServe roomServe);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增服务
|
||||||
|
*
|
||||||
|
* @param roomServe 服务
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertRoomServe(RoomServe roomServe);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改服务
|
||||||
|
*
|
||||||
|
* @param roomServe 服务
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateRoomServe(RoomServe roomServe);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除服务
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomServeByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除服务信息
|
||||||
|
*
|
||||||
|
* @param id 服务ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteRoomServeById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ics.admin.service.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.Ticket;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠卷Service接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
public interface ITicketService extends IService<Ticket> {
|
||||||
|
/**
|
||||||
|
* 查询优惠卷
|
||||||
|
*
|
||||||
|
* @param id 优惠卷ID
|
||||||
|
* @return 优惠卷
|
||||||
|
*/
|
||||||
|
Ticket selectTicketById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询优惠卷列表
|
||||||
|
*
|
||||||
|
* @param ticket 优惠卷
|
||||||
|
* @return 优惠卷集合
|
||||||
|
*/
|
||||||
|
List<Ticket> selectTicketList(Ticket ticket);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增优惠卷
|
||||||
|
*
|
||||||
|
* @param ticket 优惠卷
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertTicket(Ticket ticket);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改优惠卷
|
||||||
|
*
|
||||||
|
* @param ticket 优惠卷
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateTicket(Ticket ticket);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除优惠卷
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteTicketByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除优惠卷信息
|
||||||
|
*
|
||||||
|
* @param id 优惠卷ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteTicketById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ics.admin.service.meeting;
|
||||||
|
|
||||||
|
import com.ics.admin.domain.meeting.UserEquipment;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户设备关联Service接口
|
||||||
|
*
|
||||||
|
* @author chen
|
||||||
|
* @date 2024-02-25
|
||||||
|
*/
|
||||||
|
public interface IUserEquipmentService extends IService<UserEquipment> {
|
||||||
|
/**
|
||||||
|
* 查询用户设备关联
|
||||||
|
*
|
||||||
|
* @param id 用户设备关联ID
|
||||||
|
* @return 用户设备关联
|
||||||
|
*/
|
||||||
|
UserEquipment selectUserEquipmentById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询用户设备关联列表
|
||||||
|
*
|
||||||
|
* @param userEquipment 用户设备关联
|
||||||
|
* @return 用户设备关联集合
|
||||||
|
*/
|
||||||
|
List<UserEquipment> selectUserEquipmentList(UserEquipment userEquipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增用户设备关联
|
||||||
|
*
|
||||||
|
* @param userEquipment 用户设备关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertUserEquipment(UserEquipment userEquipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改用户设备关联
|
||||||
|
*
|
||||||
|
* @param userEquipment 用户设备关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateUserEquipment(UserEquipment userEquipment);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除用户设备关联
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteUserEquipmentByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除用户设备关联信息
|
||||||
|
*
|
||||||
|
* @param id 用户设备关联ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteUserEquipmentById(Long id);
|
||||||
|
}
|
@ -0,0 +1,74 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ics.admin.mapper.meeting.CustomerTicketMapper">
|
||||||
|
|
||||||
|
<resultMap type="com.ics.admin.domain.meeting.CustomerTicket" id="CustomerTicketResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="customerId" column="customer_id" />
|
||||||
|
<result property="ticketId" column="ticket_id" />
|
||||||
|
<result property="num" column="num" />
|
||||||
|
<result property="isVerification" column="is_verification" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectCustomerTicketVo">
|
||||||
|
SELECT id, customer_id, ticket_id, num, is_verification, create_time FROM tb_customer_ticket
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectCustomerTicketList" parameterType="CustomerTicket" resultMap="CustomerTicketResult">
|
||||||
|
<include refid="selectCustomerTicketVo"/>
|
||||||
|
<where>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectCustomerTicketById" parameterType="Long" resultMap="CustomerTicketResult">
|
||||||
|
<include refid="selectCustomerTicketVo"/>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertCustomerTicket" parameterType="CustomerTicket">
|
||||||
|
INSERT INTO tb_customer_ticket
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">id,</if>
|
||||||
|
<if test="customerId != null ">customer_id,</if>
|
||||||
|
<if test="ticketId != null ">ticket_id,</if>
|
||||||
|
<if test="num != null ">num,</if>
|
||||||
|
<if test="isVerification != null ">is_verification,</if>
|
||||||
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">#{id},</if>
|
||||||
|
<if test="customerId != null ">#{customerId},</if>
|
||||||
|
<if test="ticketId != null ">#{ticketId},</if>
|
||||||
|
<if test="num != null ">#{num},</if>
|
||||||
|
<if test="isVerification != null ">#{isVerification},</if>
|
||||||
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateCustomerTicket" parameterType="CustomerTicket">
|
||||||
|
UPDATE tb_customer_ticket
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="customerId != null ">customer_id = #{customerId},</if>
|
||||||
|
<if test="ticketId != null ">ticket_id = #{ticketId},</if>
|
||||||
|
<if test="num != null ">num = #{num},</if>
|
||||||
|
<if test="isVerification != null ">is_verification = #{isVerification},</if>
|
||||||
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteCustomerTicketById" parameterType="Long">
|
||||||
|
DELETE FROM tb_customer_ticket WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteCustomerTicketByIds" parameterType="String">
|
||||||
|
DELETE FROM tb_customer_ticket where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,99 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ics.admin.mapper.meeting.EquipmentMapper">
|
||||||
|
|
||||||
|
<resultMap type="com.ics.admin.domain.meeting.Equipment" id="EquipmentResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="equipmentName" column="equipment_name" />
|
||||||
|
<result property="status" column="status" />
|
||||||
|
<result property="createDate" column="create_date" />
|
||||||
|
<result property="equipmentNum" column="equipment_num" />
|
||||||
|
<result property="pic" column="pic" />
|
||||||
|
<result property="deleteFlag" column="delete_flag" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectEquipmentVo">
|
||||||
|
SELECT id, type, equipment_name, status, create_date, equipment_num, pic, delete_flag, create_by, create_time, update_by, update_time FROM tb_equipment
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectEquipmentList" parameterType="Equipment" resultMap="EquipmentResult">
|
||||||
|
<include refid="selectEquipmentVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="equipmentName != null and equipmentName != ''"> AND equipment_name LIKE CONCAT('%', #{equipmentName}, '%')</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectEquipmentById" parameterType="Long" resultMap="EquipmentResult">
|
||||||
|
<include refid="selectEquipmentVo"/>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertEquipment" parameterType="Equipment">
|
||||||
|
INSERT INTO tb_equipment
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">id,</if>
|
||||||
|
<if test="type != null ">type,</if>
|
||||||
|
<if test="equipmentName != null and equipmentName != ''">equipment_name,</if>
|
||||||
|
<if test="status != null ">status,</if>
|
||||||
|
<if test="createDate != null ">create_date,</if>
|
||||||
|
<if test="equipmentNum != null and equipmentNum != ''">equipment_num,</if>
|
||||||
|
<if test="pic != null and pic != ''">pic,</if>
|
||||||
|
<if test="deleteFlag != null ">delete_flag,</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||||
|
<if test="updateTime != null ">update_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">#{id},</if>
|
||||||
|
<if test="type != null ">#{type},</if>
|
||||||
|
<if test="equipmentName != null and equipmentName != ''">#{equipmentName},</if>
|
||||||
|
<if test="status != null ">#{status},</if>
|
||||||
|
<if test="createDate != null ">#{createDate},</if>
|
||||||
|
<if test="equipmentNum != null and equipmentNum != ''">#{equipmentNum},</if>
|
||||||
|
<if test="pic != null and pic != ''">#{pic},</if>
|
||||||
|
<if test="deleteFlag != null ">#{deleteFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null ">#{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateEquipment" parameterType="Equipment">
|
||||||
|
UPDATE tb_equipment
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="type != null ">type = #{type},</if>
|
||||||
|
<if test="equipmentName != null and equipmentName != ''">equipment_name = #{equipmentName},</if>
|
||||||
|
<if test="status != null ">status = #{status},</if>
|
||||||
|
<if test="createDate != null ">create_date = #{createDate},</if>
|
||||||
|
<if test="equipmentNum != null and equipmentNum != ''">equipment_num = #{equipmentNum},</if>
|
||||||
|
<if test="pic != null and pic != ''">pic = #{pic},</if>
|
||||||
|
<if test="deleteFlag != null ">delete_flag = #{deleteFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null ">update_time = #{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteEquipmentById" parameterType="Long">
|
||||||
|
DELETE FROM tb_equipment WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteEquipmentByIds" parameterType="String">
|
||||||
|
DELETE FROM tb_equipment where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,130 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ics.admin.mapper.meeting.OrderMapper">
|
||||||
|
|
||||||
|
<resultMap type="com.ics.admin.domain.meeting.Order" id="OrderResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="roomContentId" column="room_content_id" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
<result property="reservationId" column="reservation_id" />
|
||||||
|
<result property="orderMoney" column="order_money" />
|
||||||
|
<result property="orderStauts" column="order_stauts" />
|
||||||
|
<result property="outTradeNo" column="out_trade_no" />
|
||||||
|
<result property="isAfterSale" column="is_after_sale" />
|
||||||
|
<result property="cancelTime" column="cancel_time" />
|
||||||
|
<result property="cancelResaon" column="cancel_resaon" />
|
||||||
|
<result property="afterNumber" column="after_number" />
|
||||||
|
<result property="deleteFlag" column="delete_flag" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="remake" column="remake" />
|
||||||
|
<result property="mchid" column="mchid" />
|
||||||
|
<result property="description" column="description" />
|
||||||
|
<result property="prepayId" column="prepay_id" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectOrderVo">
|
||||||
|
SELECT id, room_content_id, user_id, reservation_id, order_money, order_stauts, out_trade_no, is_after_sale, cancel_time, cancel_resaon, after_number, delete_flag, create_by, create_time, update_by, update_time, remake, mchid, description, prepay_id FROM tb_order
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectOrderList" parameterType="Order" resultMap="OrderResult">
|
||||||
|
<include refid="selectOrderVo"/>
|
||||||
|
<where>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectOrderById" parameterType="Long" resultMap="OrderResult">
|
||||||
|
<include refid="selectOrderVo"/>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertOrder" parameterType="Order">
|
||||||
|
INSERT INTO tb_order
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">id,</if>
|
||||||
|
<if test="roomContentId != null ">room_content_id,</if>
|
||||||
|
<if test="userId != null ">user_id,</if>
|
||||||
|
<if test="reservationId != null ">reservation_id,</if>
|
||||||
|
<if test="orderMoney != null and orderMoney != ''">order_money,</if>
|
||||||
|
<if test="orderStauts != null ">order_stauts,</if>
|
||||||
|
<if test="outTradeNo != null ">out_trade_no,</if>
|
||||||
|
<if test="isAfterSale != null and isAfterSale != ''">is_after_sale,</if>
|
||||||
|
<if test="cancelTime != null ">cancel_time,</if>
|
||||||
|
<if test="cancelResaon != null and cancelResaon != ''">cancel_resaon,</if>
|
||||||
|
<if test="afterNumber != null and afterNumber != ''">after_number,</if>
|
||||||
|
<if test="deleteFlag != null ">delete_flag,</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||||
|
<if test="updateTime != null ">update_time,</if>
|
||||||
|
<if test="remake != null and remake != ''">remake,</if>
|
||||||
|
<if test="mchid != null ">mchid,</if>
|
||||||
|
<if test="description != null and description != ''">description,</if>
|
||||||
|
<if test="prepayId != null ">prepay_id,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">#{id},</if>
|
||||||
|
<if test="roomContentId != null ">#{roomContentId},</if>
|
||||||
|
<if test="userId != null ">#{userId},</if>
|
||||||
|
<if test="reservationId != null ">#{reservationId},</if>
|
||||||
|
<if test="orderMoney != null and orderMoney != ''">#{orderMoney},</if>
|
||||||
|
<if test="orderStauts != null ">#{orderStauts},</if>
|
||||||
|
<if test="outTradeNo != null ">#{outTradeNo},</if>
|
||||||
|
<if test="isAfterSale != null and isAfterSale != ''">#{isAfterSale},</if>
|
||||||
|
<if test="cancelTime != null ">#{cancelTime},</if>
|
||||||
|
<if test="cancelResaon != null and cancelResaon != ''">#{cancelResaon},</if>
|
||||||
|
<if test="afterNumber != null and afterNumber != ''">#{afterNumber},</if>
|
||||||
|
<if test="deleteFlag != null ">#{deleteFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null ">#{updateTime},</if>
|
||||||
|
<if test="remake != null and remake != ''">#{remake},</if>
|
||||||
|
<if test="mchid != null ">#{mchid},</if>
|
||||||
|
<if test="description != null and description != ''">#{description},</if>
|
||||||
|
<if test="prepayId != null ">#{prepayId},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateOrder" parameterType="Order">
|
||||||
|
UPDATE tb_order
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="roomContentId != null ">room_content_id = #{roomContentId},</if>
|
||||||
|
<if test="userId != null ">user_id = #{userId},</if>
|
||||||
|
<if test="reservationId != null ">reservation_id = #{reservationId},</if>
|
||||||
|
<if test="orderMoney != null and orderMoney != ''">order_money = #{orderMoney},</if>
|
||||||
|
<if test="orderStauts != null ">order_stauts = #{orderStauts},</if>
|
||||||
|
<if test="outTradeNo != null ">out_trade_no = #{outTradeNo},</if>
|
||||||
|
<if test="isAfterSale != null and isAfterSale != ''">is_after_sale = #{isAfterSale},</if>
|
||||||
|
<if test="cancelTime != null ">cancel_time = #{cancelTime},</if>
|
||||||
|
<if test="cancelResaon != null and cancelResaon != ''">cancel_resaon = #{cancelResaon},</if>
|
||||||
|
<if test="afterNumber != null and afterNumber != ''">after_number = #{afterNumber},</if>
|
||||||
|
<if test="deleteFlag != null ">delete_flag = #{deleteFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null ">update_time = #{updateTime},</if>
|
||||||
|
<if test="remake != null and remake != ''">remake = #{remake},</if>
|
||||||
|
<if test="mchid != null ">mchid = #{mchid},</if>
|
||||||
|
<if test="description != null and description != ''">description = #{description},</if>
|
||||||
|
<if test="prepayId != null ">prepay_id = #{prepayId},</if>
|
||||||
|
</trim>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteOrderById" parameterType="Long">
|
||||||
|
DELETE FROM tb_order WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteOrderByIds" parameterType="String">
|
||||||
|
DELETE FROM tb_order where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,150 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ics.admin.mapper.meeting.ReservationMapper">
|
||||||
|
|
||||||
|
<resultMap type="com.ics.admin.domain.meeting.Reservation" id="ReservationResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="roomContentId" column="room_content_id" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
<result property="ticketId" column="ticket_id" />
|
||||||
|
<result property="customerId" column="customer_id" />
|
||||||
|
<result property="title" column="title" />
|
||||||
|
<result property="stauts" column="stauts" />
|
||||||
|
<result property="isAfterSale" column="is_after_sale" />
|
||||||
|
<result property="oderNumber" column="oder_number" />
|
||||||
|
<result property="orderMoney" column="order_money" />
|
||||||
|
<result property="cancelTime" column="cancel_time" />
|
||||||
|
<result property="cancelResaon" column="cancel_resaon" />
|
||||||
|
<result property="visitType" column="visit_type" />
|
||||||
|
<result property="explainNeedType" column="explain_need_type" />
|
||||||
|
<result property="meetingNeedType" column="meeting_need_type" />
|
||||||
|
<result property="meetingId" column="meeting_id" />
|
||||||
|
<result property="photographType" column="photograph_type" />
|
||||||
|
<result property="startTime" column="start_time" />
|
||||||
|
<result property="endTime" column="end_time" />
|
||||||
|
<result property="deleteFlag" column="delete_flag" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="remake" column="remake" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectReservationVo">
|
||||||
|
SELECT id, room_content_id, user_id, ticket_id, customer_id, title, stauts, is_after_sale, oder_number, order_money, cancel_time, cancel_resaon, visit_type, explain_need_type, meeting_need_type, meeting_id, photograph_type, start_time, end_time, delete_flag, create_by, create_time, update_by, update_time, remake FROM tb_reservation
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectReservationList" parameterType="Reservation" resultMap="ReservationResult">
|
||||||
|
<include refid="selectReservationVo"/>
|
||||||
|
<where>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectReservationById" parameterType="Long" resultMap="ReservationResult">
|
||||||
|
<include refid="selectReservationVo"/>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertReservation" parameterType="Reservation">
|
||||||
|
INSERT INTO tb_reservation
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">id,</if>
|
||||||
|
<if test="roomContentId != null ">room_content_id,</if>
|
||||||
|
<if test="userId != null ">user_id,</if>
|
||||||
|
<if test="ticketId != null ">ticket_id,</if>
|
||||||
|
<if test="customerId != null ">customer_id,</if>
|
||||||
|
<if test="title != null and title != ''">title,</if>
|
||||||
|
<if test="stauts != null ">stauts,</if>
|
||||||
|
<if test="isAfterSale != null and isAfterSale != ''">is_after_sale,</if>
|
||||||
|
<if test="oderNumber != null and oderNumber != ''">oder_number,</if>
|
||||||
|
<if test="orderMoney != null and orderMoney != ''">order_money,</if>
|
||||||
|
<if test="cancelTime != null ">cancel_time,</if>
|
||||||
|
<if test="cancelResaon != null and cancelResaon != ''">cancel_resaon,</if>
|
||||||
|
<if test="visitType != null and visitType != ''">visit_type,</if>
|
||||||
|
<if test="explainNeedType != null and explainNeedType != ''">explain_need_type,</if>
|
||||||
|
<if test="meetingNeedType != null and meetingNeedType != ''">meeting_need_type,</if>
|
||||||
|
<if test="meetingId != null ">meeting_id,</if>
|
||||||
|
<if test="photographType != null and photographType != ''">photograph_type,</if>
|
||||||
|
<if test="startTime != null ">start_time,</if>
|
||||||
|
<if test="endTime != null ">end_time,</if>
|
||||||
|
<if test="deleteFlag != null ">delete_flag,</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||||
|
<if test="updateTime != null ">update_time,</if>
|
||||||
|
<if test="remake != null and remake != ''">remake,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">#{id},</if>
|
||||||
|
<if test="roomContentId != null ">#{roomContentId},</if>
|
||||||
|
<if test="userId != null ">#{userId},</if>
|
||||||
|
<if test="ticketId != null ">#{ticketId},</if>
|
||||||
|
<if test="customerId != null ">#{customerId},</if>
|
||||||
|
<if test="title != null and title != ''">#{title},</if>
|
||||||
|
<if test="stauts != null ">#{stauts},</if>
|
||||||
|
<if test="isAfterSale != null and isAfterSale != ''">#{isAfterSale},</if>
|
||||||
|
<if test="oderNumber != null and oderNumber != ''">#{oderNumber},</if>
|
||||||
|
<if test="orderMoney != null and orderMoney != ''">#{orderMoney},</if>
|
||||||
|
<if test="cancelTime != null ">#{cancelTime},</if>
|
||||||
|
<if test="cancelResaon != null and cancelResaon != ''">#{cancelResaon},</if>
|
||||||
|
<if test="visitType != null and visitType != ''">#{visitType},</if>
|
||||||
|
<if test="explainNeedType != null and explainNeedType != ''">#{explainNeedType},</if>
|
||||||
|
<if test="meetingNeedType != null and meetingNeedType != ''">#{meetingNeedType},</if>
|
||||||
|
<if test="meetingId != null ">#{meetingId},</if>
|
||||||
|
<if test="photographType != null and photographType != ''">#{photographType},</if>
|
||||||
|
<if test="startTime != null ">#{startTime},</if>
|
||||||
|
<if test="endTime != null ">#{endTime},</if>
|
||||||
|
<if test="deleteFlag != null ">#{deleteFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null ">#{updateTime},</if>
|
||||||
|
<if test="remake != null and remake != ''">#{remake},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateReservation" parameterType="Reservation">
|
||||||
|
UPDATE tb_reservation
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="roomContentId != null ">room_content_id = #{roomContentId},</if>
|
||||||
|
<if test="userId != null ">user_id = #{userId},</if>
|
||||||
|
<if test="ticketId != null ">ticket_id = #{ticketId},</if>
|
||||||
|
<if test="customerId != null ">customer_id = #{customerId},</if>
|
||||||
|
<if test="title != null and title != ''">title = #{title},</if>
|
||||||
|
<if test="stauts != null ">stauts = #{stauts},</if>
|
||||||
|
<if test="isAfterSale != null and isAfterSale != ''">is_after_sale = #{isAfterSale},</if>
|
||||||
|
<if test="oderNumber != null and oderNumber != ''">oder_number = #{oderNumber},</if>
|
||||||
|
<if test="orderMoney != null and orderMoney != ''">order_money = #{orderMoney},</if>
|
||||||
|
<if test="cancelTime != null ">cancel_time = #{cancelTime},</if>
|
||||||
|
<if test="cancelResaon != null and cancelResaon != ''">cancel_resaon = #{cancelResaon},</if>
|
||||||
|
<if test="visitType != null and visitType != ''">visit_type = #{visitType},</if>
|
||||||
|
<if test="explainNeedType != null and explainNeedType != ''">explain_need_type = #{explainNeedType},</if>
|
||||||
|
<if test="meetingNeedType != null and meetingNeedType != ''">meeting_need_type = #{meetingNeedType},</if>
|
||||||
|
<if test="meetingId != null ">meeting_id = #{meetingId},</if>
|
||||||
|
<if test="photographType != null and photographType != ''">photograph_type = #{photographType},</if>
|
||||||
|
<if test="startTime != null ">start_time = #{startTime},</if>
|
||||||
|
<if test="endTime != null ">end_time = #{endTime},</if>
|
||||||
|
<if test="deleteFlag != null ">delete_flag = #{deleteFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null ">update_time = #{updateTime},</if>
|
||||||
|
<if test="remake != null and remake != ''">remake = #{remake},</if>
|
||||||
|
</trim>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteReservationById" parameterType="Long">
|
||||||
|
DELETE FROM tb_reservation WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteReservationByIds" parameterType="String">
|
||||||
|
DELETE FROM tb_reservation where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,75 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ics.admin.mapper.meeting.ReservationPersonMapper">
|
||||||
|
|
||||||
|
<resultMap type="com.ics.admin.domain.meeting.ReservationPerson" id="ReservationPersonResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
<result property="reservationId" column="reservation_id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="phone" column="phone" />
|
||||||
|
<result property="joinTime" column="join_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectReservationPersonVo">
|
||||||
|
SELECT id, user_id, reservation_id, name, phone, join_time FROM tb_reservation_person
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectReservationPersonList" parameterType="ReservationPerson" resultMap="ReservationPersonResult">
|
||||||
|
<include refid="selectReservationPersonVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="name != null and name != ''"> AND name LIKE CONCAT('%', #{name}, '%')</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectReservationPersonById" parameterType="Long" resultMap="ReservationPersonResult">
|
||||||
|
<include refid="selectReservationPersonVo"/>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertReservationPerson" parameterType="ReservationPerson">
|
||||||
|
INSERT INTO tb_reservation_person
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">id,</if>
|
||||||
|
<if test="userId != null ">user_id,</if>
|
||||||
|
<if test="reservationId != null ">reservation_id,</if>
|
||||||
|
<if test="name != null and name != ''">name,</if>
|
||||||
|
<if test="phone != null ">phone,</if>
|
||||||
|
<if test="joinTime != null ">join_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">#{id},</if>
|
||||||
|
<if test="userId != null ">#{userId},</if>
|
||||||
|
<if test="reservationId != null ">#{reservationId},</if>
|
||||||
|
<if test="name != null and name != ''">#{name},</if>
|
||||||
|
<if test="phone != null ">#{phone},</if>
|
||||||
|
<if test="joinTime != null ">#{joinTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateReservationPerson" parameterType="ReservationPerson">
|
||||||
|
UPDATE tb_reservation_person
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="userId != null ">user_id = #{userId},</if>
|
||||||
|
<if test="reservationId != null ">reservation_id = #{reservationId},</if>
|
||||||
|
<if test="name != null and name != ''">name = #{name},</if>
|
||||||
|
<if test="phone != null ">phone = #{phone},</if>
|
||||||
|
<if test="joinTime != null ">join_time = #{joinTime},</if>
|
||||||
|
</trim>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteReservationPersonById" parameterType="Long">
|
||||||
|
DELETE FROM tb_reservation_person WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteReservationPersonByIds" parameterType="String">
|
||||||
|
DELETE FROM tb_reservation_person where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,66 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ics.admin.mapper.meeting.RoomEquipmentMapper">
|
||||||
|
|
||||||
|
<resultMap type="com.ics.admin.domain.meeting.RoomEquipment" id="RoomEquipmentResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="equipmentId" column="equipment_id" />
|
||||||
|
<result property="roomId" column="room_id" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectRoomEquipmentVo">
|
||||||
|
SELECT id, equipment_id, room_id, create_time FROM tb_room_equipment
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectRoomEquipmentList" parameterType="RoomEquipment" resultMap="RoomEquipmentResult">
|
||||||
|
<include refid="selectRoomEquipmentVo"/>
|
||||||
|
<where>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectRoomEquipmentById" parameterType="Long" resultMap="RoomEquipmentResult">
|
||||||
|
<include refid="selectRoomEquipmentVo"/>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertRoomEquipment" parameterType="RoomEquipment">
|
||||||
|
INSERT INTO tb_room_equipment
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">id,</if>
|
||||||
|
<if test="equipmentId != null ">equipment_id,</if>
|
||||||
|
<if test="roomId != null ">room_id,</if>
|
||||||
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">#{id},</if>
|
||||||
|
<if test="equipmentId != null ">#{equipmentId},</if>
|
||||||
|
<if test="roomId != null ">#{roomId},</if>
|
||||||
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateRoomEquipment" parameterType="RoomEquipment">
|
||||||
|
UPDATE tb_room_equipment
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="equipmentId != null ">equipment_id = #{equipmentId},</if>
|
||||||
|
<if test="roomId != null ">room_id = #{roomId},</if>
|
||||||
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteRoomEquipmentById" parameterType="Long">
|
||||||
|
DELETE FROM tb_room_equipment WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteRoomEquipmentByIds" parameterType="String">
|
||||||
|
DELETE FROM tb_room_equipment where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,68 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ics.admin.mapper.meeting.RoomItemByRoomMapper">
|
||||||
|
|
||||||
|
<resultMap type="com.ics.admin.domain.meeting.RoomItemByRoom" id="RoomItemByRoomResult">
|
||||||
|
<result property="roomContentId" column="room_content_id" />
|
||||||
|
<result property="itemId" column="item_id" />
|
||||||
|
<result property="num" column="num" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="id" column="id" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectRoomItemByRoomVo">
|
||||||
|
SELECT room_content_id, item_id, num, create_time, id FROM tb_room_item_by_room
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectRoomItemByRoomList" parameterType="RoomItemByRoom" resultMap="RoomItemByRoomResult">
|
||||||
|
<include refid="selectRoomItemByRoomVo"/>
|
||||||
|
<where>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectRoomItemByRoomById" parameterType="Long" resultMap="RoomItemByRoomResult">
|
||||||
|
<include refid="selectRoomItemByRoomVo"/>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertRoomItemByRoom" parameterType="RoomItemByRoom" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
INSERT INTO tb_room_item_by_room
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="roomContentId != null ">room_content_id,</if>
|
||||||
|
<if test="itemId != null ">item_id,</if>
|
||||||
|
<if test="num != null ">num,</if>
|
||||||
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="roomContentId != null ">#{roomContentId},</if>
|
||||||
|
<if test="itemId != null ">#{itemId},</if>
|
||||||
|
<if test="num != null ">#{num},</if>
|
||||||
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateRoomItemByRoom" parameterType="RoomItemByRoom">
|
||||||
|
UPDATE tb_room_item_by_room
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="roomContentId != null ">room_content_id = #{roomContentId},</if>
|
||||||
|
<if test="itemId != null ">item_id = #{itemId},</if>
|
||||||
|
<if test="num != null ">num = #{num},</if>
|
||||||
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteRoomItemByRoomById" parameterType="Long">
|
||||||
|
DELETE FROM tb_room_item_by_room WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteRoomItemByRoomByIds" parameterType="String">
|
||||||
|
DELETE FROM tb_room_item_by_room where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,64 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ics.admin.mapper.meeting.RoomServeByRoomMapper">
|
||||||
|
|
||||||
|
<resultMap type="com.ics.admin.domain.meeting.RoomServeByRoom" id="RoomServeByRoomResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="serveId" column="serve_id" />
|
||||||
|
<result property="romeContentId" column="rome_content_id" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectRoomServeByRoomVo">
|
||||||
|
SELECT id, serve_id, rome_content_id, create_time FROM tb_room_serve_by_room
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectRoomServeByRoomList" parameterType="RoomServeByRoom" resultMap="RoomServeByRoomResult">
|
||||||
|
<include refid="selectRoomServeByRoomVo"/>
|
||||||
|
<where>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectRoomServeByRoomById" parameterType="Long" resultMap="RoomServeByRoomResult">
|
||||||
|
<include refid="selectRoomServeByRoomVo"/>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertRoomServeByRoom" parameterType="RoomServeByRoom" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
INSERT INTO tb_room_serve_by_room
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="serveId != null ">serve_id,</if>
|
||||||
|
<if test="romeContentId != null ">rome_content_id,</if>
|
||||||
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="serveId != null ">#{serveId},</if>
|
||||||
|
<if test="romeContentId != null ">#{romeContentId},</if>
|
||||||
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateRoomServeByRoom" parameterType="RoomServeByRoom">
|
||||||
|
UPDATE tb_room_serve_by_room
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="serveId != null ">serve_id = #{serveId},</if>
|
||||||
|
<if test="romeContentId != null ">rome_content_id = #{romeContentId},</if>
|
||||||
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteRoomServeByRoomById" parameterType="Long">
|
||||||
|
DELETE FROM tb_room_serve_by_room WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteRoomServeByRoomByIds" parameterType="String">
|
||||||
|
DELETE FROM tb_room_serve_by_room where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,93 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ics.admin.mapper.meeting.RoomServeMapper">
|
||||||
|
|
||||||
|
<resultMap type="com.ics.admin.domain.meeting.RoomServe" id="RoomServeResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="serveName" column="serve_name" />
|
||||||
|
<result property="serveType" column="serve_type" />
|
||||||
|
<result property="serveTime" column="serve_time" />
|
||||||
|
<result property="remake" column="remake" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="version" column="version" />
|
||||||
|
<result property="deleteFlag" column="delete_flag" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectRoomServeVo">
|
||||||
|
SELECT id, serve_name, serve_type, serve_time, remake, create_by, create_time, update_by, update_time, version, delete_flag FROM tb_room_serve
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectRoomServeList" parameterType="RoomServe" resultMap="RoomServeResult">
|
||||||
|
<include refid="selectRoomServeVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="serveName != null and serveName != ''"> AND serve_name LIKE CONCAT('%', #{serveName}, '%')</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectRoomServeById" parameterType="Long" resultMap="RoomServeResult">
|
||||||
|
<include refid="selectRoomServeVo"/>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertRoomServe" parameterType="RoomServe" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
INSERT INTO tb_room_serve
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="serveName != null and serveName != ''">serve_name,</if>
|
||||||
|
<if test="serveType != null ">serve_type,</if>
|
||||||
|
<if test="serveTime != null and serveTime != ''">serve_time,</if>
|
||||||
|
<if test="remake != null and remake != ''">remake,</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||||
|
<if test="updateTime != null ">update_time,</if>
|
||||||
|
<if test="version != null ">version,</if>
|
||||||
|
<if test="deleteFlag != null ">delete_flag,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="serveName != null and serveName != ''">#{serveName},</if>
|
||||||
|
<if test="serveType != null ">#{serveType},</if>
|
||||||
|
<if test="serveTime != null and serveTime != ''">#{serveTime},</if>
|
||||||
|
<if test="remake != null and remake != ''">#{remake},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null ">#{updateTime},</if>
|
||||||
|
<if test="version != null ">#{version},</if>
|
||||||
|
<if test="deleteFlag != null ">#{deleteFlag},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateRoomServe" parameterType="RoomServe">
|
||||||
|
UPDATE tb_room_serve
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="serveName != null and serveName != ''">serve_name = #{serveName},</if>
|
||||||
|
<if test="serveType != null ">serve_type = #{serveType},</if>
|
||||||
|
<if test="serveTime != null and serveTime != ''">serve_time = #{serveTime},</if>
|
||||||
|
<if test="remake != null and remake != ''">remake = #{remake},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null ">update_time = #{updateTime},</if>
|
||||||
|
<if test="version != null ">version = #{version},</if>
|
||||||
|
<if test="deleteFlag != null ">delete_flag = #{deleteFlag},</if>
|
||||||
|
</trim>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteRoomServeById" parameterType="Long">
|
||||||
|
DELETE FROM tb_room_serve WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteRoomServeByIds" parameterType="String">
|
||||||
|
DELETE FROM tb_room_serve where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ics.admin.mapper.meeting.TicketMapper">
|
||||||
|
|
||||||
|
<resultMap type="com.ics.admin.domain.meeting.Ticket" id="TicketResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="title" column="title" />
|
||||||
|
<result property="content" column="content" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="money" column="money" />
|
||||||
|
<result property="address" column="address" />
|
||||||
|
<result property="isVerification" column="is_verification" />
|
||||||
|
<result property="isShow" column="is_show" />
|
||||||
|
<result property="startTime" column="start_time" />
|
||||||
|
<result property="endTime" column="end_time" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="isDefault" column="is_default" />
|
||||||
|
<result property="version" column="version" />
|
||||||
|
<result property="deleteFlag" column="delete_flag" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectTicketVo">
|
||||||
|
SELECT id, title, content, type, money, address, is_verification, is_show, start_time, end_time, remark, is_default, version, delete_flag, create_by, create_time, update_by, update_time FROM tb_ticket
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectTicketList" parameterType="Ticket" resultMap="TicketResult">
|
||||||
|
<include refid="selectTicketVo"/>
|
||||||
|
<where>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectTicketById" parameterType="Long" resultMap="TicketResult">
|
||||||
|
<include refid="selectTicketVo"/>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTicket" parameterType="Ticket" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
INSERT INTO tb_ticket
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="title != null and title != ''">title,</if>
|
||||||
|
<if test="content != null and content != ''">content,</if>
|
||||||
|
<if test="type != null ">type,</if>
|
||||||
|
<if test="money != null and money != ''">money,</if>
|
||||||
|
<if test="address != null and address != ''">address,</if>
|
||||||
|
<if test="isVerification != null ">is_verification,</if>
|
||||||
|
<if test="isShow != null ">is_show,</if>
|
||||||
|
<if test="startTime != null ">start_time,</if>
|
||||||
|
<if test="endTime != null ">end_time,</if>
|
||||||
|
<if test="remark != null and remark != ''">remark,</if>
|
||||||
|
<if test="isDefault != null ">is_default,</if>
|
||||||
|
<if test="version != null ">version,</if>
|
||||||
|
<if test="deleteFlag != null ">delete_flag,</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||||
|
<if test="updateTime != null ">update_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="title != null and title != ''">#{title},</if>
|
||||||
|
<if test="content != null and content != ''">#{content},</if>
|
||||||
|
<if test="type != null ">#{type},</if>
|
||||||
|
<if test="money != null and money != ''">#{money},</if>
|
||||||
|
<if test="address != null and address != ''">#{address},</if>
|
||||||
|
<if test="isVerification != null ">#{isVerification},</if>
|
||||||
|
<if test="isShow != null ">#{isShow},</if>
|
||||||
|
<if test="startTime != null ">#{startTime},</if>
|
||||||
|
<if test="endTime != null ">#{endTime},</if>
|
||||||
|
<if test="remark != null and remark != ''">#{remark},</if>
|
||||||
|
<if test="isDefault != null ">#{isDefault},</if>
|
||||||
|
<if test="version != null ">#{version},</if>
|
||||||
|
<if test="deleteFlag != null ">#{deleteFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null ">#{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateTicket" parameterType="Ticket">
|
||||||
|
UPDATE tb_ticket
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="title != null and title != ''">title = #{title},</if>
|
||||||
|
<if test="content != null and content != ''">content = #{content},</if>
|
||||||
|
<if test="type != null ">type = #{type},</if>
|
||||||
|
<if test="money != null and money != ''">money = #{money},</if>
|
||||||
|
<if test="address != null and address != ''">address = #{address},</if>
|
||||||
|
<if test="isVerification != null ">is_verification = #{isVerification},</if>
|
||||||
|
<if test="isShow != null ">is_show = #{isShow},</if>
|
||||||
|
<if test="startTime != null ">start_time = #{startTime},</if>
|
||||||
|
<if test="endTime != null ">end_time = #{endTime},</if>
|
||||||
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||||
|
<if test="isDefault != null ">is_default = #{isDefault},</if>
|
||||||
|
<if test="version != null ">version = #{version},</if>
|
||||||
|
<if test="deleteFlag != null ">delete_flag = #{deleteFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null ">update_time = #{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteTicketById" parameterType="Long">
|
||||||
|
DELETE FROM tb_ticket WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteTicketByIds" parameterType="String">
|
||||||
|
DELETE FROM tb_ticket where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,66 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ics.admin.mapper.meeting.UserEquipmentMapper">
|
||||||
|
|
||||||
|
<resultMap type="com.ics.admin.domain.meeting.UserEquipment" id="UserEquipmentResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
<result property="equipmentId" column="equipment_id" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectUserEquipmentVo">
|
||||||
|
SELECT id, user_id, equipment_id, create_time FROM tb_user_equipment
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectUserEquipmentList" parameterType="UserEquipment" resultMap="UserEquipmentResult">
|
||||||
|
<include refid="selectUserEquipmentVo"/>
|
||||||
|
<where>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectUserEquipmentById" parameterType="Long" resultMap="UserEquipmentResult">
|
||||||
|
<include refid="selectUserEquipmentVo"/>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertUserEquipment" parameterType="UserEquipment">
|
||||||
|
INSERT INTO tb_user_equipment
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">id,</if>
|
||||||
|
<if test="userId != null ">user_id,</if>
|
||||||
|
<if test="equipmentId != null ">equipment_id,</if>
|
||||||
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null ">#{id},</if>
|
||||||
|
<if test="userId != null ">#{userId},</if>
|
||||||
|
<if test="equipmentId != null ">#{equipmentId},</if>
|
||||||
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateUserEquipment" parameterType="UserEquipment">
|
||||||
|
UPDATE tb_user_equipment
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="userId != null ">user_id = #{userId},</if>
|
||||||
|
<if test="equipmentId != null ">equipment_id = #{equipmentId},</if>
|
||||||
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteUserEquipmentById" parameterType="Long">
|
||||||
|
DELETE FROM tb_user_equipment WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteUserEquipmentByIds" parameterType="String">
|
||||||
|
DELETE FROM tb_user_equipment where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -72,13 +72,15 @@ public class BaseEntity<T> implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 租户Id
|
* 租户Id
|
||||||
*/
|
*/
|
||||||
@TableField(fill = FieldFill.INSERT)
|
// @TableField(fill = FieldFill.INSERT)
|
||||||
|
@TableField(exist = false)
|
||||||
private Long tenantId;
|
private Long tenantId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关联园区ID
|
* 关联园区ID
|
||||||
*/
|
*/
|
||||||
@TableField(fill = FieldFill.INSERT)
|
// @TableField(fill = FieldFill.INSERT,exist = false)
|
||||||
|
@TableField(exist = false)
|
||||||
private Long parkId;
|
private Long parkId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -87,11 +87,11 @@ public class FileUploadUtils {
|
|||||||
int dirLastIndex = uploadDir.lastIndexOf(File.separator) + 1;
|
int dirLastIndex = uploadDir.lastIndexOf(File.separator) + 1;
|
||||||
String currentDir = StringUtils.substring(uploadDir, dirLastIndex);
|
String currentDir = StringUtils.substring(uploadDir, dirLastIndex);
|
||||||
String pathFileName = null;
|
String pathFileName = null;
|
||||||
if (StringUtils.isNotEmpty(currentDir)) {
|
// if (StringUtils.isNotEmpty(currentDir)) {
|
||||||
pathFileName = Constants.RESOURCE_PREFIX + "/" + currentDir + "/" + fileName;
|
// pathFileName = Constants.RESOURCE_PREFIX + "/" + currentDir + "/" + fileName;
|
||||||
} else {
|
// } else {
|
||||||
pathFileName = Constants.RESOURCE_PREFIX + "/" + fileName;
|
pathFileName = Constants.RESOURCE_PREFIX + "/" + fileName;
|
||||||
}
|
// }
|
||||||
return pathFileName;
|
return pathFileName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package ${packageName}.controller;
|
package ${packageName}.controller.meeting;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@ -8,10 +8,10 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import R;
|
import com.ics.common.core.domain.R;
|
||||||
import BaseController;
|
import com.ics.common.core.controller.BaseController;
|
||||||
import ${packageName}.domain.${ClassName};
|
import ${packageName}.domain.meeting.${ClassName};
|
||||||
import ${packageName}.service.I${ClassName}Service;
|
import ${packageName}.service.meeting.I${ClassName}Service;
|
||||||
import org.wf.jwtp.annotation.RequiresPermissions;
|
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package ${packageName}.domain;
|
package ${packageName}.domain.meeting;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package ${packageName}.mapper;
|
package ${packageName}.mapper.meeting;
|
||||||
|
|
||||||
import ${packageName}.domain.${ClassName};
|
import ${packageName}.domain.meeting.${ClassName};
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package ${packageName}.service;
|
package ${packageName}.service.meeting;
|
||||||
|
|
||||||
import ${packageName}.domain.${ClassName};
|
import ${packageName}.domain.meeting.${ClassName};
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
#if($table.tree)
|
#if($table.tree)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package ${packageName}.service.impl;
|
package ${packageName}.service.impl.meeting;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
#if($table.tree)
|
#if($table.tree)
|
||||||
@ -9,9 +9,9 @@ import cn.hutool.core.collection.CollUtil;
|
|||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import ${packageName}.mapper.${ClassName}Mapper;
|
import ${packageName}.mapper.meeting.${ClassName}Mapper;
|
||||||
import ${packageName}.domain.${ClassName};
|
import ${packageName}.domain.meeting.${ClassName};
|
||||||
import ${packageName}.service.I${ClassName}Service;
|
import ${packageName}.service.meeting.I${ClassName}Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ${functionName}Service业务层处理
|
* ${functionName}Service业务层处理
|
||||||
|
@ -59,8 +59,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import {STable} from '@/components'
|
import {STable} from '@/components'
|
||||||
|
|
||||||
import {del${ClassName}} from '@/api/'
|
import {del${ClassName}} from '@/api/admin/meeting/${ClassName}'
|
||||||
import ${ClassName}Modal from './modules/'
|
import ${ClassName}Modal from './modules/${ClassName}Modal.vue'
|
||||||
import {checkPermission} from '@/utils/permissions'
|
import {checkPermission} from '@/utils/permissions'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
</a-modal>
|
</a-modal>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {save${ClassName}} from '@/api/'
|
import {save${ClassName}} from '@/api/admin/meeting/${ClassName}'
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
<!DOCTYPE mapper
|
<!DOCTYPE mapper
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="${packageName}.mapper.${ClassName}Mapper">
|
<mapper namespace="${packageName}.mapper.meeting.${ClassName}Mapper">
|
||||||
|
|
||||||
<resultMap type="${packageName}.domain.${ClassName}" id="${ClassName}Result">
|
<resultMap type="${packageName}.domain.meeting.${ClassName}" id="${ClassName}Result">
|
||||||
#foreach ($column in $columns)
|
#foreach ($column in $columns)
|
||||||
<result property="${column.javaField}" column="${column.columnName}" />
|
<result property="${column.javaField}" column="${column.columnName}" />
|
||||||
#end
|
#end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user