package com.ruoyi.web.controller.wx; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.system.domain.vo.OrderBillsPlansVo; import com.ruoyi.system.service.IOrderBillsPlansService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("/order-bills-plans") public class OrderBillsPlansController { @Autowired private IOrderBillsPlansService orderBillsPlansService; /** * 查询业务表数据List * * @param orderNo 单号 * @param dataStart 日期起 * @param dataEnd 日期止 * @return 数据list */ @PostMapping("/list") public AjaxResult getOrderBillsPlansList(@RequestBody OrderBillsPlansVo orderBillsPlansVo) { String dataStart = null; String dataEnd = null; if (orderBillsPlansVo.getRange() != null) { dataStart = orderBillsPlansVo.getRange().get(0); dataStart += " 00:00:00"; dataEnd = orderBillsPlansVo.getRange().get(1); dataEnd += " 23:59:59"; } String orderNo = orderBillsPlansVo.getOrderNo(); return AjaxResult.success(orderBillsPlansService.getOrderBillsPlansList(dataStart, dataEnd, orderNo)); } /** * 根据id查询 * @param entityId 主键 * @return 详情 */ @GetMapping("/{id}") public AjaxResult getOrderBillsPlansByid(@PathVariable(value = "entityId") Long entityId) { return AjaxResult.success(orderBillsPlansService.getOrderBillsPlansByid(entityId)); } /** * 报销 * @param entityid entityid * @return 操作结果 */ @GetMapping("/load-fee-items/{entityid}") public AjaxResult updateLoadFeeItems(@PathVariable(value = "entityid") Long entityid) { return orderBillsPlansService.updateLoadFeeItems(entityid); } }