| | |
| | | package com.jilongda.manage.controller; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.jilongda.common.basic.ApiResult; |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TLineUp; |
| | | import com.jilongda.manage.query.TLineUpQuery; |
| | | import com.jilongda.manage.query.TOrderAccountingQuery; |
| | | import com.jilongda.manage.service.TOrderAccountingService; |
| | | import com.jilongda.manage.service.TOrderService; |
| | | import com.jilongda.manage.service.TStoreService; |
| | | import com.jilongda.manage.vo.TOrderVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @since 2024-12-09 |
| | | */ |
| | | @RestController |
| | | @Api(tags = "订单核算") |
| | | @RequestMapping("/t-order-accounting") |
| | | public class TOrderAccountingController { |
| | | @Autowired |
| | | private TStoreService storeService; |
| | | @Autowired |
| | | private TOrderService orderService; |
| | | @Autowired |
| | | private TOrderAccountingService orderAccountingService; |
| | | @ApiOperation(value = "核算订单分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public ApiResult<PageInfo<TOrderVO>> pageList(@RequestBody TOrderAccountingQuery query) { |
| | | if (StringUtils.hasLength(query.getStartTime())){ |
| | | query.setStartTime(query.getStartTime()+" 00:00:00"); |
| | | query.setEndTime(query.getEndTime()+" 23:59:59"); |
| | | } |
| | | PageInfo<TOrderVO> res = orderAccountingService.pageList(query); |
| | | return ApiResult.success(res); |
| | | } |
| | | @ApiOperation(value = "核算详情页面") |
| | | @GetMapping(value = "/detail") |
| | | public ApiResult detail(Integer id) { |
| | | |
| | | return ApiResult.success(); |
| | | } |
| | | @ApiOperation(value = "确认核算操作") |
| | | @PostMapping(value = "/confirm") |
| | | public ApiResult confirm(@RequestBody TOrderAccountingQuery query) { |
| | | if (StringUtils.hasLength(query.getStartTime())){ |
| | | query.setStartTime(query.getStartTime()+" 00:00:00"); |
| | | query.setEndTime(query.getEndTime()+" 23:59:59"); |
| | | } |
| | | PageInfo<TOrderVO> res = orderAccountingService.pageList(query); |
| | | return ApiResult.success(res); |
| | | } |
| | | } |
| | | |