| | |
| | | * */ |
| | | @PostMapping |
| | | public R add(@RequestBody ComMediateTypeDTO comMediateTypeDTO){ |
| | | comMediateTypeDTO.setCreateUser(this.getLoginUserInfo().getUserId()); |
| | | //comMediateTypeDTO.setCreateUser(this.getLoginUserInfo().getUserId()); |
| | | return commediateTypeService.addOrUpdate(comMediateTypeDTO); |
| | | } |
| | | |
| | |
| | | * */ |
| | | @PutMapping |
| | | public R update(@RequestBody ComMediateTypeDTO comMediateTypeDTO){ |
| | | comMediateTypeDTO.setModifyUser(this.getLoginUserInfo().getUserId()); |
| | | //comMediateTypeDTO.setModifyUser(this.getLoginUserInfo().getUserId()); |
| | | return commediateTypeService.addOrUpdate(comMediateTypeDTO); |
| | | } |
| | | |
| | |
| | | ComMediateType comMediateType = commediateTypeService.getById(id); |
| | | comMediateType.setDeleteFlag(true); |
| | | comMediateType.setEnabled(false); |
| | | comMediateType.setModifyUser(this.getLoginUserInfo().getUserId()); |
| | | //comMediateType.setModifyUser(this.getLoginUserInfo().getUserId()); |
| | | return R.ok(commediateTypeService.updateById(comMediateType)); |
| | | } |
| | | } |