修改模块服务名
This commit is contained in:
parent
208d98867f
commit
9679310e5e
|
|
@ -6,7 +6,7 @@ server:
|
|||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: ruoyi-auth
|
||||
name: aidmt-auth
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ server:
|
|||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: ruoyi-manage
|
||||
name: aidmt-manage
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ server:
|
|||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: ruoyi-system
|
||||
name: aidmt-system
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ server:
|
|||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: ruoyi-file
|
||||
name: aidmt-file
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ server:
|
|||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: ruoyi-job
|
||||
name: aidmt-job
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
|
|
|
|||
Loading…
Reference in New Issue