| | |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import java.util.List; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description 部门管理 |
| | |
| | | if (StringUtils.isEmpty(param.getCode())) { |
| | | return ResponseValue.error("编号为空"); |
| | | } |
| | | FinSysTenantDepartment tenantDepartment = this.departmentService.selectByCode(param.getCode()); |
| | | FinSysTenantDepartment tenantDepartment = this.departmentService.selectByCode(param.getCode(),param.getId()); |
| | | if (tenantDepartment != null) { |
| | | return ResponseValue.error("部门编号已存在"); |
| | | } |
| | |
| | | if (sysInfo == null) { |
| | | return ResponseValue.error("登录用户信息不存在"); |
| | | } |
| | | FinSysTenantDepartment tenantDepartment = this.departmentService.selectByCode(param.getCode()); |
| | | FinSysTenantDepartment tenantDepartment = this.departmentService.selectByCode(param.getCode(),param.getId()); |
| | | if (tenantDepartment != null) { |
| | | return ResponseValue.error("部门编号已存在"); |
| | | } |