管理企业更新

server_five_liuyunhu
YuanYh 2024-03-31 10:12:18 +08:00
parent 2f74b536d9
commit 9b683e6129
7 changed files with 21 additions and 2 deletions

View File

@ -1,9 +1,14 @@
# Tomcat
server:
port: 9200
# Spring
spring:
main:
allow-bean-definition-overriding: true
application:
# 应用名称
name: couplet-auth
@ -16,6 +21,7 @@ spring:
# 服务注册地址
server-addr: 121.89.211.230:8848
namespace: 00004c44-c962-48f0-bc9a-7e589b2881e3
config:
# 配置中心地址
server-addr: 121.89.211.230:8848

View File

@ -1,5 +1,6 @@
package com.couplet.common.system.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.couplet.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
@ -39,6 +40,10 @@ public class SysDept extends BaseEntity {
*/
private Long parentId;
@TableField(exist = false)
private String remark;
/**
*
*/
@ -82,11 +87,13 @@ public class SysDept extends BaseEntity {
/**
*
*/
@TableField(exist = false)
private String parentName;
/**
*
*/
@TableField(exist = false)
private List<SysDept> children = new ArrayList<SysDept>();
public Long getDeptId () {

View File

@ -4,6 +4,8 @@ server:
# Spring
spring:
main:
allow-bean-definition-overriding: true
application:
# 应用名称
name: couplet-gen

View File

@ -4,6 +4,8 @@ server:
# Spring
spring:
main:
allow-bean-definition-overriding: true
application:
# 应用名称
name: couplet-job

View File

@ -66,7 +66,7 @@ public class SysFirmController {
* @param deptId
* @return com.couplet.common.core.domain.Result
**/
@DeleteMapping("delFirm/{deptId}")
@PostMapping("delFirm/{deptId}")
public Result delFirm(@PathVariable Integer deptId){
int i = sysFirmService.delFirm(deptId);
Result<Integer> success = Result.success(i);

View File

@ -224,7 +224,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
* @return
*/
@Override
public int updateDept (SysDept dept) {
public int updateDept (SysDept dept) {
SysDept newParentDept = deptMapper.selectDeptById(dept.getParentId());
SysDept oldDept = deptMapper.selectDeptById(dept.getDeptId());
if (StringUtils.isNotNull(newParentDept) && StringUtils.isNotNull(oldDept)) {

View File

@ -4,6 +4,8 @@ server:
# Spring
spring:
main:
allow-bean-definition-overriding: true
application:
# 应用名称
name: couplet-system