管理企业更新

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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