package com.thhy.materials.modules.biz.concret.controller; import com.thhy.general.common.BasicResult; import com.thhy.materials.modules.biz.concret.service.TSteelNeedYearService; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import java.util.Map; @RestController @RequestMapping("/needYear") public class TSteelNeedYearController { @Resource private TSteelNeedYearService yearService; //钢筋需求计划添加 @PostMapping("/needYearInsert") public BasicResult needYearInsert(@RequestBody Map values){ return yearService.needYearInsert(values); } //钢筋需求计划列表 @PostMapping("/needYearList") public BasicResult needYearList(@RequestBody Map values){ return yearService.needYearList(values); } //钢筋需求计划删除 @GetMapping("/needYearDel") public BasicResult needYearDel(@RequestParam String steelNeedId){ return yearService.needYearDel(steelNeedId); } //钢筋需求计划详情 @GetMapping("/needYearInfo") public BasicResult needYearInfo(@RequestParam String steelNeedId){ return yearService.needYearInfo(steelNeedId); } //钢筋需求计划修改 @PostMapping("/needYearUpdate") public BasicResult needYearUpdate(@RequestBody Map values){ return yearService.needYearUpdate(values); } }