| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "DepEntity", value = "字典实体类", dataType = "com.lf.server.entity.data.DepEntity", paramType = "body", example = "") |
| | | }) |
| | | @RequestMapping(value = "/insertDep", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDep(DepEntity depEntity) { |
| | | @PostMapping(value = "/insertDep", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDep( DepEntity depEntity) { |
| | | try { |
| | | int count = depService.insertDep(depEntity); |
| | | |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "DepEntity", value = "字典实体类", dataType = "com.lf.server.entity.data.DepEntity", paramType = "body", example = "") |
| | | }) |
| | | @RequestMapping(value = "/insertDes", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @PostMapping(value = "/insertDes", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDes(@RequestBody List<DepEntity> depEntity) { |
| | | try { |
| | | int count = depService.insertDeps(depEntity); |
| | |
| | | @ApiImplicitParam(name = "depEntity", value = "主键ID集合", dataType = "DepEntity", paramType = "body", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @RequestMapping(value = "/updateDep", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") |
| | | @PostMapping(value = "/updateDep", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> updateDep(DepEntity depEntity) { |
| | | try { |
| | | int count = depService.updateDep(depEntity); |