package com.order.erp.controller; import com.order.erp.common.constant.ServerResult; import com.order.erp.common.jsr303.OperateGroup; import com.order.erp.domain.vo.order.OrderUpdateLogQueryVO; import com.order.erp.domain.vo.order.OrderUpdateLogVO; import com.order.erp.service.order.OrderUpdateLogService; import org.springframework.validation.annotation.Validated; 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 javax.annotation.Resource; /** * 订单更新日志表(OrderUpdateLog)表控制层 * * @author makejava * @since 2024-07-03 17:30:32 */ @RestController @RequestMapping("/order/erp/update_log") public class OrderUpdateLogController { /** * 服务对象 */ @Resource private OrderUpdateLogService orderUpdateLogService; /** * 分页查询 * * @param orderUpdateLogQueryVO 查询条件 * @return 查询结果 */ @PostMapping("/list") public ServerResult list(@RequestBody @Validated({OperateGroup.List.class}) OrderUpdateLogQueryVO orderUpdateLogQueryVO) { return orderUpdateLogService.list(orderUpdateLogQueryVO); } /** * 新增数据 * * @param orderUpdateLogVO 数据VO * @return 新增结果 */ @PostMapping("/add") public ServerResult add(@RequestBody OrderUpdateLogVO orderUpdateLogVO) { return orderUpdateLogService.add(orderUpdateLogVO); } /** * 编辑数据 * * @param orderUpdateLogVO 数据VO * @return 编辑结果 */ @PostMapping("/edit") public ServerResult edit(@RequestBody OrderUpdateLogVO orderUpdateLogVO) { return orderUpdateLogService.edit(orderUpdateLogVO); } /** * 删除数据 * * @param orderUpdateLogQueryVO 查询条件 * @return 删除是否成功 */ @PostMapping("/delete_by_id") public ServerResult deleteById(@RequestBody OrderUpdateLogQueryVO orderUpdateLogQueryVO) { return orderUpdateLogService.deleteById(orderUpdateLogQueryVO); } }