Files
scrq-hd/.svn/pristine/e7/e7376347449a10b6eae84b6f3d98bd2ccae5019c.svn-base
2025-07-03 10:34:04 +08:00

40 lines
1.3 KiB
Plaintext

package com.cmeim.basic.controller;
import com.cmeim.basic.po.ProcessQuota;
import com.cmeim.basic.service.IProcessQuotaService;
import com.cmeim.basic.vo.OrderWorkData;
import com.cmeim.common.core.domain.R;
import com.cmeim.common.core.web.controller.GenericController;
import org.springframework.web.bind.annotation.GetMapping;
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;
import java.util.List;
/**
* @author wuyuqi
* @since 2022/9/5 02:14
*/
@RestController
@RequestMapping("/basic/processQuota")
public class ProcessQuotaController extends GenericController {
@Resource
private IProcessQuotaService processQuotaService;
@PostMapping("/getProcessQuota")
public R<List<OrderWorkData>> getProcessQuota(@RequestBody List<String> orderNumbers) {
List<OrderWorkData> orderWorkDataList = processQuotaService.getProcessQuota(orderNumbers);
return R.ok(orderWorkDataList);
}
@GetMapping("/getAllProcessQuota")
public R<List<ProcessQuota>> getAllProcessQuota() {
return R.ok(processQuotaService.list());
}
}