| | |
| | | } |
| | | |
| | | /** |
| | | * 修改启用禁用状态 |
| | | * |
| | | * @return |
| | | */ |
| | | @PostMapping("/editState") |
| | | public ResponseValue editState() { |
| | | FinSysTenant param = CommonUtil.getObjFromReqBody(FinSysTenant.class); |
| | | FinSysTenant selFinSysTenant = finSysTenantService.selectById(param.getId()); |
| | | selFinSysTenant.setStatus(param.getStatus()); |
| | | //FinSysTenant finSysTenant = new FinSysTenant(); |
| | | param = selFinSysTenant; |
| | | Long id = param.getId(); |
| | | if (id == null || id.longValue() <= 0) { |
| | | return ResponseValue.error("编辑的机构不存在"); |
| | | } |
| | | FinSysTenantUser sysInfo = getSysInfo(); |
| | | if (sysInfo == null) { |
| | | return ResponseValue.error("登录用户信息不存在"); |
| | | } |
| | | int num = this.finSysTenantService.updateFinSysTenant(param, this.getSysInfo()); |
| | | return num > 0 ? ResponseValue.success(1) : ResponseValue.error("编辑失败!"); |
| | | } |
| | | |
| | | /** |
| | | * @Description 根据OrgCode获取上级及本级人员ID。可能是省市县 |
| | | * @Author wh |
| | | * @Date 2023/10/4 15:37 |