修改模块服务名

This commit is contained in:
tangcy 2026-04-16 13:14:31 +08:00
parent 208d98867f
commit 9679310e5e
13 changed files with 85 additions and 28 deletions

View File

@ -6,7 +6,7 @@ server:
spring:
application:
# 应用名称
name: ruoyi-auth
name: aidmt-auth
profiles:
# 环境配置
active: dev

View File

@ -10,15 +10,15 @@ public class ServiceNameConstants
/**
* 认证服务的serviceid
*/
public static final String AUTH_SERVICE = "ruoyi-auth";
public static final String AUTH_SERVICE = "aidmt-auth";
/**
* 系统模块的serviceid
*/
public static final String SYSTEM_SERVICE = "ruoyi-system";
public static final String SYSTEM_SERVICE = "aidmt-system";
/**
* 文件服务的serviceid
*/
public static final String FILE_SERVICE = "ruoyi-file";
public static final String FILE_SERVICE = "aidmt-file";
}

View File

@ -51,7 +51,7 @@ class SwaggerDocRegister extends Subscriber<InstancesChangeEvent>
@Autowired
private DiscoveryClient discoveryClient;
private final static String[] EXCLUDE_ROUTES = new String[] { "ruoyi-gateway", "ruoyi-auth", "ruoyi-file" };
private final static String[] EXCLUDE_ROUTES = new String[] { "aidmt-gateway", "aidmt-auth", "aidmt-file" };
public SwaggerDocRegister(SwaggerUiConfigProperties swaggerUiConfigProperties, DiscoveryClient discoveryClient)
{

View File

@ -1,40 +1,31 @@
# Tomcat
# Tomcat
server:
port: 8080
# Spring
spring:
spring:
application:
# 应用名称
name: ruoyi-gateway
name: aidmt-gateway
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
sentinel:
# 取消控制台懒加载
eager: true
transport:
# 控制台地址
dashboard: 127.0.0.1:8718
# nacos配置持久化
datasource:
ds1:
nacos:
server-addr: 127.0.0.1:8848
dataId: sentinel-ruoyi-gateway
dataId: sentinel-aidmt-gateway
groupId: DEFAULT_GROUP
data-type: json
rule-type: gw-flow

View File

@ -39,6 +39,8 @@ public class ProjectImplementationController extends BaseController {
startPage();
// 只查询审批通过的项目项目状态为2进行中
workPlan.setProjectStatus("2");
// 查询实施状态非0过滤未实施
workPlan.setImplementationStatusNot("0");
List<WorkPlan> list = workPlanService.selectWorkPlanList(workPlan);
return getDataTable(list);
}

View File

@ -87,6 +87,9 @@ public class WorkPlan extends BaseEntity {
@Schema(description = "实施状态0未实施1实施中2整改中3待完工确认")
private String implementationStatus;
@Schema(description = "实施状态不等于(查询条件)")
private String implementationStatusNot;
@Schema(description = "审批状态0待审核1已通过2已驳回")
private String approvalStatus;

View File

@ -560,8 +560,8 @@ public class WorkPlanServiceImpl implements IWorkPlanService {
}
String approver = SecurityUtils.getUsername();
String approvalTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
// 审批通过更新审批状态为1已通过项目状态改为进行中实施状态设置为1实施中
return workPlanMapper.updateProjectStatusAndApproval(projectId, "2", "1", "1", approver, approvalTime, approvalComment);
// 审批通过更新审批状态为1已通过项目状态改为已提交实施状态设置为1实施中
return workPlanMapper.updateProjectStatusAndApproval(projectId, "1", "1", "1", approver, approvalTime, approvalComment);
}
@Override

View File

@ -6,7 +6,7 @@ server:
spring:
application:
# 应用名称
name: ruoyi-manage
name: aidmt-manage
profiles:
# 环境配置
active: dev

View File

@ -104,6 +104,9 @@
<if test="projectStatus != null and projectStatus != ''">
and project_status = #{projectStatus}
</if>
<if test="implementationStatusNot != null and implementationStatusNot != ''">
and implementation_status != #{implementationStatusNot}
</if>
order by create_time desc
</select>

View File

@ -371,6 +371,25 @@ public class SysDeptServiceImpl implements ISysDeptService
@Override
public int insertDept(SysDept dept)
{
Long parentId = dept.getParentId();
if (parentId == null || parentId == 0L)
{
if (StringUtils.isEmpty(dept.getAuditStatus()))
{
String deptType = dept.getDeptType();
if ("1".equals(deptType) || "2".equals(deptType) || "3".equals(deptType))
{
dept.setAuditStatus("1");
}
else
{
dept.setAuditStatus("0");
}
}
dept.setParentId(0L);
dept.setAncestors("0");
return deptMapper.insertDept(dept);
}
SysDept info = deptMapper.selectDeptById(dept.getParentId());
// 如果父节点不为正常状态,则不允许新增子节点
if (!UserConstants.DEPT_NORMAL.equals(info.getStatus()))
@ -547,9 +566,48 @@ public class SysDeptServiceImpl implements ISysDeptService
throw new ServiceException("部门名称不能为空");
}
if (StringUtils.isEmpty(parentName))
{
dept.setParentId(0L);
dept.setDeptName(deptName);
if (dept.getOrderNum() == null)
{
dept.setOrderNum(0);
}
if (StringUtils.isEmpty(dept.getStatus()))
{
dept.setStatus(UserConstants.DEPT_NORMAL);
}
SysDept topExistDept = deptMapper.checkDeptNameUnique(dept.getDeptName(), dept.getParentId());
if (StringUtils.isNull(topExistDept))
{
dept.setCreateBy(operName);
insertDept(dept);
successNum++;
successMsg.append(System.lineSeparator()).append(successNum).append("、部门 ").append(deptName).append(" 导入成功");
}
else if (updateSupport)
{
dept.setDeptId(topExistDept.getDeptId());
dept.setUpdateBy(operName);
updateDept(dept);
successNum++;
successMsg.append(System.lineSeparator()).append(successNum).append("、部门 ").append(deptName).append(" 更新成功");
}
else
{
failureNum++;
failureMsg.append(System.lineSeparator()).append(failureNum).append("、部门 ").append(deptName).append(" 已存在");
}
continue;
}
SysDept parentQuery = new SysDept();
parentQuery.setDeptName(parentName);
List<SysDept> parentList = deptMapper.selectDeptList(parentQuery);
if (parentList == null || parentList.isEmpty())
{
throw new ServiceException("上级部门不存在: " + parentName);
}
if (parentList.size() > 1)
{
throw new ServiceException("上级部门名称不唯一: " + parentName);
@ -573,7 +631,7 @@ public class SysDeptServiceImpl implements ISysDeptService
dept.setCreateBy(operName);
insertDept(dept);
successNum++;
successMsg.append("<br/>").append(successNum).append("、部门 ").append(deptName).append(" 导入成功");
successMsg.append(System.lineSeparator()).append(successNum).append("、部门 ").append(deptName).append(" 导入成功");
}
else if (updateSupport)
{
@ -581,18 +639,18 @@ public class SysDeptServiceImpl implements ISysDeptService
dept.setUpdateBy(operName);
updateDept(dept);
successNum++;
successMsg.append("<br/>").append(successNum).append("、部门 ").append(deptName).append(" 更新成功");
successMsg.append(System.lineSeparator()).append(successNum).append("、部门 ").append(deptName).append(" 更新成功");
}
else
{
failureNum++;
failureMsg.append("<br/>").append(failureNum).append("、部门 ").append(deptName).append(" 已存在");
failureMsg.append(System.lineSeparator()).append(failureNum).append("、部门 ").append(deptName).append(" 已存在");
}
}
catch (Exception e)
{
failureNum++;
failureMsg.append("<br/>").append(failureNum).append("、部门 ").append(StringUtils.isEmpty(deptName) ? "-" : deptName)
failureMsg.append(System.lineSeparator()).append(failureNum).append("、部门 ").append(StringUtils.isEmpty(deptName) ? "-" : deptName)
.append(" 导入失败:").append(e.getMessage());
}
}

View File

@ -6,7 +6,7 @@ server:
spring:
application:
# 应用名称
name: ruoyi-system
name: aidmt-system
profiles:
# 环境配置
active: dev

View File

@ -6,7 +6,7 @@ server:
spring:
application:
# 应用名称
name: ruoyi-file
name: aidmt-file
profiles:
# 环境配置
active: dev

View File

@ -6,7 +6,7 @@ server:
spring:
application:
# 应用名称
name: ruoyi-job
name: aidmt-job
profiles:
# 环境配置
active: dev