| | |
| | | import com.fgkj.dto.User_jiejiari; |
| | | import com.fgkj.services.User_jiejiariService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("holiday") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "holiday接口") |
| | | public class User_jiejiariController{ |
| | | @Resource |
| | | private User_jiejiariService service; |
| | | |
| | | //4.3节假日管理(增加) |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="节假日管理(增加)") |
| | | public ServiceModel add(@RequestBody User_jiejiari ujjr) { |
| | | ServiceModel model=service.add(ujjr); |
| | | |
| | |
| | | } |
| | | //4.3节假日管理(修改) |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="节假日管理(修改)") |
| | | public ServiceModel update(@RequestBody User_jiejiari ujjr) { |
| | | ServiceModel model=service.update(ujjr); |
| | | |
| | |
| | | |
| | | //4.3节假日管理(删除) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="节假日管理(删除)") |
| | | public ServiceModel delete(@RequestBody User_jiejiari ujjr) { |
| | | ServiceModel model=service.delete(ujjr); |
| | | |
| | |
| | | |
| | | //查询所有节假日 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有节假日") |
| | | public ServiceModel serchAll(){ |
| | | ServiceModel model=service.serchAll(); |
| | | |
| | |
| | | } |
| | | |
| | | //根据公历和农历以及全部查询节假日 |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "",value="公历和农历以及全部查询节假日") |
| | | public ServiceModel serchByCondition(@RequestBody User_jiejiari ujjr){ |
| | | ServiceModel model=service.serchByCondition(ujjr); |
| | | |