package com.example.erp.controller.pp; import com.example.erp.entity.pp.FlowCard; import com.example.erp.common.Result; import com.example.erp.service.pp.FlowCardService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.sql.Date; @RestController @RequestMapping("/processCard") public class ProcessCardController { @Autowired FlowCardService flowCardService; @PostMapping ("/flowCard/{selectTime1}/{selectTime2}}") public Result DateProcess( @PathVariable Date selectTime1, @PathVariable Date selectTime2, @RequestBody FlowCard flowCard){ return Result.seccess(flowCardService.selectProcessCard(selectTime1,selectTime2,flowCard)); } }