| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.CrossOrigin; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | * @return: |
| | | */ |
| | | @ApiOperation("获取大宗列表") |
| | | @RequestMapping({"getDzListByAdmin.do"}) |
| | | public Result getDzListByAdmin(String keywords) { |
| | | return stockDzService.getDzListByAdmin(keywords); |
| | | @PostMapping({"getDzListByAdmin.do"}) |
| | | public Result getDzListByAdmin(@RequestParam(value = "pageNum", defaultValue = "1") int pageNum, |
| | | @RequestParam(value = "pageSize", defaultValue = "5") int pageSize, |
| | | @RequestParam(value = "keywords")String keywords) { |
| | | return stockDzService.getDzListByAdmin(pageNum, pageSize, keywords); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return: |
| | | */ |
| | | @ApiOperation("新增大宗") |
| | | @RequestMapping({"addByAdmin.do"}) |
| | | @PostMapping({"addByAdmin.do"}) |
| | | public Result addByAdmin(@RequestParam(value = "stockCode") String stockCode, |
| | | @RequestParam(value = "stockNum") String stockNum, |
| | | @RequestParam(value = "password", required = false) String password, |
| | |
| | | * 删除大宗 |
| | | */ |
| | | @ApiOperation("删除大宗") |
| | | @RequestMapping({"deleteByAdmin.do"}) |
| | | @PostMapping({"deleteByAdmin.do"}) |
| | | public Result deleteByAdmin(@RequestParam(value = "id") String id) { |
| | | return stockDzService.deleteByAdmin(id); |
| | | } |
| | |
| | | * 修改大宗 |
| | | */ |
| | | @ApiOperation("修改大宗") |
| | | @RequestMapping({"updateByAdmin.do"}) |
| | | @PostMapping({"updateByAdmin.do"}) |
| | | public Result updateByAdmin(StockDz model) { |
| | | return stockDzService.updByAdmin(model); |
| | | } |