diff --git a/xinnengyuan/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/CacheNames.java b/xinnengyuan/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/CacheNames.java index bf8efc55..2db623a3 100644 --- a/xinnengyuan/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/CacheNames.java +++ b/xinnengyuan/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/CacheNames.java @@ -80,4 +80,9 @@ public interface CacheNames { */ String ONLINE_TOKEN = "online_tokens"; + /** + * 项目名称 + */ + String PROJECT_NAME = "project_name#30d"; + } diff --git a/xinnengyuan/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/service/ProjectService.java b/xinnengyuan/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/service/ProjectService.java new file mode 100644 index 00000000..8d134236 --- /dev/null +++ b/xinnengyuan/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/service/ProjectService.java @@ -0,0 +1,17 @@ +package org.dromara.common.core.service; + +/** + * @author lilemy + * @date 2025-09-10 16:15 + */ +public interface ProjectService { + + /** + * 通过项目ID查询项目名称 + * + * @param projectId 项目ID + * @return 项目名称 + */ + String selectProjectNameById(Long projectId); + +} diff --git a/xinnengyuan/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/constant/TransConstant.java b/xinnengyuan/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/constant/TransConstant.java index c084ea1a..0823fb42 100644 --- a/xinnengyuan/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/constant/TransConstant.java +++ b/xinnengyuan/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/constant/TransConstant.java @@ -32,4 +32,9 @@ public interface TransConstant { */ String OSS_ID_TO_URL = "oss_id_to_url"; + /** + * 项目id转名称 + */ + String PROJECT_ID_TO_NAME = "project_id_to_name"; + } diff --git a/xinnengyuan/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/ProjectNameTranslationImpl.java b/xinnengyuan/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/ProjectNameTranslationImpl.java new file mode 100644 index 00000000..64bf9e5e --- /dev/null +++ b/xinnengyuan/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/ProjectNameTranslationImpl.java @@ -0,0 +1,35 @@ +package org.dromara.common.translation.core.impl; + +import jakarta.annotation.Resource; +import lombok.AllArgsConstructor; +import org.dromara.common.core.service.ProjectService; +import org.dromara.common.translation.annotation.TranslationType; +import org.dromara.common.translation.constant.TransConstant; +import org.dromara.common.translation.core.TranslationInterface; + +/** + * @author lilemy + * @date 2025-09-10 16:13 + */ +@AllArgsConstructor +@TranslationType(type = TransConstant.PROJECT_ID_TO_NAME) +public class ProjectNameTranslationImpl implements TranslationInterface { + + @Resource + private ProjectService projectService; + + /** + * 翻译 + * + * @param key 需要被翻译的键(不为空) + * @param other 其他参数 + * @return 返回键对应的值 + */ + @Override + public String translation(Object key, String other) { + if (key instanceof Long id) { + return projectService.selectProjectNameById(id); + } + return null; + } +} diff --git a/xinnengyuan/ruoyi-common/ruoyi-common-translation/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/xinnengyuan/ruoyi-common/ruoyi-common-translation/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports index ad40205e..5b50702d 100644 --- a/xinnengyuan/ruoyi-common/ruoyi-common-translation/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports +++ b/xinnengyuan/ruoyi-common/ruoyi-common-translation/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -4,3 +4,4 @@ org.dromara.common.translation.core.impl.DictTypeTranslationImpl org.dromara.common.translation.core.impl.OssUrlTranslationImpl org.dromara.common.translation.core.impl.UserNameTranslationImpl org.dromara.common.translation.core.impl.NicknameTranslationImpl +org.dromara.common.translation.core.impl.ProjectNameTranslationImpl diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/vo/ys7device/OthYs7DeviceVo.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/vo/ys7device/OthYs7DeviceVo.java index f9fd2465..be79e0bf 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/vo/ys7device/OthYs7DeviceVo.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/vo/ys7device/OthYs7DeviceVo.java @@ -4,6 +4,8 @@ import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; import com.alibaba.excel.annotation.ExcelProperty; import io.github.linpeilie.annotations.AutoMapper; import lombok.Data; +import org.dromara.common.translation.annotation.Translation; +import org.dromara.common.translation.constant.TransConstant; import org.dromara.other.domain.OthYs7Device; import java.io.Serial; @@ -40,6 +42,7 @@ public class OthYs7DeviceVo implements Serializable { /** * 项目名称 */ + @Translation(type = TransConstant.PROJECT_ID_TO_NAME, mapper = "projectId") private String projectName; /** diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/service/impl/OthYs7DeviceServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/service/impl/OthYs7DeviceServiceImpl.java index 64f9b19f..f1a7beb3 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/service/impl/OthYs7DeviceServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/service/impl/OthYs7DeviceServiceImpl.java @@ -262,11 +262,6 @@ public class OthYs7DeviceServiceImpl extends ServiceImpl projectIdList = ys7DeviceList.stream().map(OthYs7Device::getProjectId).collect(Collectors.toSet()); - List projectList = projectService.lambdaQuery() - .select(BusProject::getId, BusProject::getProjectName) - .in(BusProject::getId, projectIdList) - .list(); - Map projectMap = projectList.stream().collect(Collectors.toMap(BusProject::getId, project -> project)); // 对象列表 => 封装对象列表 List ys7DeviceVoList = ys7DeviceList.stream().map(ys7Device -> { OthYs7DeviceVo ys7DeviceVo = new OthYs7DeviceVo(); BeanUtils.copyProperties(ys7Device, ys7DeviceVo); - Long projectId = ys7Device.getProjectId(); - if (projectId != null && !projectId.equals(0L)) { - BusProject project = projectMap.get(projectId); - ys7DeviceVo.setProjectName(project.getProjectName()); - } return ys7DeviceVo; }).toList(); ys7DeviceVoPage.setRecords(ys7DeviceVoList); diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/PgsProgressPlanDetailController.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/PgsProgressPlanDetailController.java index 8d8c4876..314fd9e1 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/PgsProgressPlanDetailController.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/PgsProgressPlanDetailController.java @@ -55,8 +55,8 @@ public class PgsProgressPlanDetailController extends BaseController { @SaCheckPermission("progress:progressPlanDetail:insertPercentage") @RepeatSubmit() @PostMapping("/insert/percentage") - public R insertPercentageDetail(@Validated @RequestBody PgsProgressPlanDetailPercentageCreateReq req) { - return toAjax(pgsProgressPlanDetailService.insertPercentageDetail(req)); + public R insertPercentageDetail(@Validated @RequestBody PgsProgressPlanDetailCreateReq req) { + return toAjax(pgsProgressPlanDetailService.insertPercentageNumberDetail(req)); } /** diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/app/PgsProgressPlanAppController.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/app/PgsProgressPlanAppController.java index 1f2b22d5..e0f3baee 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/app/PgsProgressPlanAppController.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/app/PgsProgressPlanAppController.java @@ -1,7 +1,7 @@ package org.dromara.progress.controller.app; -import cn.dev33.satoken.annotation.SaCheckPermission; import jakarta.annotation.Resource; +import jakarta.validation.constraints.NotNull; import org.dromara.common.core.domain.R; import org.dromara.common.idempotent.annotation.RepeatSubmit; import org.dromara.common.log.annotation.Log; @@ -38,6 +38,17 @@ public class PgsProgressPlanAppController extends BaseController { return progressPlanService.queryPageList(req, pageQuery); } + /** + * 获取进度计划详细信息 + * + * @param id 主键 + */ + @GetMapping("/{id}") + public R getInfo(@NotNull(message = "主键不能为空") + @PathVariable Long id) { + return R.ok(progressPlanService.queryById(id)); + } + /** * 新增进度计划 */ diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/app/PgsProgressPlanDetailAppController.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/app/PgsProgressPlanDetailAppController.java index 3c4a3f50..70c4bec6 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/app/PgsProgressPlanDetailAppController.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/controller/app/PgsProgressPlanDetailAppController.java @@ -7,14 +7,19 @@ import org.dromara.common.idempotent.annotation.RepeatSubmit; import org.dromara.common.mybatis.core.page.PageQuery; import org.dromara.common.mybatis.core.page.TableDataInfo; import org.dromara.common.web.core.BaseController; +import org.dromara.progress.domain.dto.progressplandetail.PgsProgressPlanDetailCreateReq; import org.dromara.progress.domain.dto.progressplandetail.PgsProgressPlanDetailFinishedCreateReq; +import org.dromara.progress.domain.dto.progressplandetail.PgsProgressPlanDetailQueryReq; import org.dromara.progress.domain.dto.progressplandetail.PgsProgressPlanDetailRemoveReq; import org.dromara.progress.domain.vo.progressplandetail.PgsProgressPlanDetailFinishedVo; +import org.dromara.progress.domain.vo.progressplandetail.PgsProgressPlanDetailNumVo; import org.dromara.progress.domain.vo.progressplandetail.PgsProgressPlanDetailUnFinishVo; import org.dromara.progress.service.IPgsProgressPlanDetailService; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; +import java.util.List; + /** * 进度计划详情 app 接口 * @@ -29,6 +34,14 @@ public class PgsProgressPlanDetailAppController extends BaseController { @Resource private IPgsProgressPlanDetailService progressPlanDetailService; + /** + * 查询进度计划详情列表 + */ + @GetMapping("/list") + public R> list(PgsProgressPlanDetailQueryReq req) { + return R.ok(progressPlanDetailService.queryNumberList(req)); + } + /** * 新增进度计划详情(普通设施) */ @@ -38,6 +51,15 @@ public class PgsProgressPlanDetailAppController extends BaseController { return toAjax(progressPlanDetailService.insertFinishedDetail(req)); } + /** + * 新增进度计划详情(百分比、数量设施) + */ + @RepeatSubmit() + @PostMapping("/insert") + public R insertDetail(@Validated @RequestBody PgsProgressPlanDetailCreateReq req) { + return toAjax(progressPlanDetailService.insertPercentageNumberDetail(req)); + } + /** * 获取进度计划详情已完成设施详细信息 * diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/dto/progressplandetail/PgsProgressPlanDetailPercentageCreateReq.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/dto/progressplandetail/PgsProgressPlanDetailCreateReq.java similarity index 84% rename from xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/dto/progressplandetail/PgsProgressPlanDetailPercentageCreateReq.java rename to xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/dto/progressplandetail/PgsProgressPlanDetailCreateReq.java index 9beef978..79aa458f 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/dto/progressplandetail/PgsProgressPlanDetailPercentageCreateReq.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/dto/progressplandetail/PgsProgressPlanDetailCreateReq.java @@ -11,7 +11,7 @@ import java.math.BigDecimal; * @date 2025/5/28 16:06 */ @Data -public class PgsProgressPlanDetailPercentageCreateReq implements Serializable { +public class PgsProgressPlanDetailCreateReq implements Serializable { @Serial private static final long serialVersionUID = -2987044313320050949L; diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/dto/progressplandetail/PgsProgressPlanDetailNumberCreateReq.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/dto/progressplandetail/PgsProgressPlanDetailNumberCreateReq.java deleted file mode 100644 index 7e6a1e84..00000000 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/dto/progressplandetail/PgsProgressPlanDetailNumberCreateReq.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.dromara.progress.domain.dto.progressplandetail; - -import jakarta.validation.constraints.NotNull; -import lombok.Data; - -import java.io.Serial; -import java.io.Serializable; -import java.math.BigDecimal; - -/** - * @author lilemy - * @date 2025-09-09 18:06 - */ -@Data -public class PgsProgressPlanDetailNumberCreateReq implements Serializable { - - @Serial - private static final long serialVersionUID = 6264982582390127674L; - - /** - * 主键id - */ - @NotNull(message = "主键id不能为空") - private Long id; - - /** - * 完成数量 - */ - @NotNull(message = "完成数量不能为空") - private BigDecimal finishedNumber; -} diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/vo/progressplan/PgsProgressPlanVo.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/vo/progressplan/PgsProgressPlanVo.java index 6fcd9640..20f8854e 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/vo/progressplan/PgsProgressPlanVo.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/vo/progressplan/PgsProgressPlanVo.java @@ -96,6 +96,21 @@ public class PgsProgressPlanVo implements Serializable { */ private BigDecimal aiFill; + /** + * 计量方式(0无 1数量 2百分比) + */ + private String unitType; + + /** + * 工作类型 + */ + private String workType; + + /** + * 关联结构(1子项目 2方阵) + */ + private String relevancyStructure; + /** * 进度计划详情 */ diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/vo/progressplandetail/PgsProgressPlanDetailNumVo.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/vo/progressplandetail/PgsProgressPlanDetailNumVo.java index 2c34d2b5..5c6a291a 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/vo/progressplandetail/PgsProgressPlanDetailNumVo.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/domain/vo/progressplandetail/PgsProgressPlanDetailNumVo.java @@ -41,4 +41,19 @@ public class PgsProgressPlanDetailNumVo { */ private BigDecimal aiFill; + /** + * 计量方式(0无 1数量 2百分比) + */ + private String unitType; + + /** + * 工作类型 + */ + private String workType; + + /** + * 关联结构(1子项目 2方阵) + */ + private String relevancyStructure; + } diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/IPgsProgressPlanDetailService.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/IPgsProgressPlanDetailService.java index ff287a2c..cc3a49c9 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/IPgsProgressPlanDetailService.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/IPgsProgressPlanDetailService.java @@ -7,7 +7,7 @@ import org.dromara.common.mybatis.core.page.PageQuery; import org.dromara.common.mybatis.core.page.TableDataInfo; import org.dromara.progress.domain.PgsProgressPlanDetail; import org.dromara.progress.domain.dto.progressplandetail.PgsProgressPlanDetailFinishedCreateReq; -import org.dromara.progress.domain.dto.progressplandetail.PgsProgressPlanDetailPercentageCreateReq; +import org.dromara.progress.domain.dto.progressplandetail.PgsProgressPlanDetailCreateReq; import org.dromara.progress.domain.dto.progressplandetail.PgsProgressPlanDetailQueryReq; import org.dromara.progress.domain.dto.progressplandetail.PgsProgressPlanDetailRemoveReq; import org.dromara.progress.domain.vo.progressplandetail.PgsProgressPlanDetailFinishedVo; @@ -49,7 +49,7 @@ public interface IPgsProgressPlanDetailService extends IService queryNumberList(PgsProgressPlanDetailQueryReq req); } diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressCategoryServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressCategoryServiceImpl.java index c5b1602c..101dd037 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressCategoryServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressCategoryServiceImpl.java @@ -174,13 +174,14 @@ public class PgsProgressCategoryServiceImpl extends ServiceImpl getNumVoList(List progressPlanDetailList) { + List categoryIds = progressPlanDetailList.stream() + .map(PgsProgressPlanDetail::getProgressCategoryId).distinct().toList(); + List categoryList = progressCategoryService.listByIds(categoryIds); + Map categoryMap = categoryList.stream() + .collect(Collectors.toMap(PgsProgressCategory::getId, v -> v)); return progressPlanDetailList.stream().map(progressPlanDetail -> { PgsProgressPlanDetailNumVo progressPlanDetailNumVo = new PgsProgressPlanDetailNumVo(); BeanUtils.copyProperties(progressPlanDetail, progressPlanDetailNumVo); + if (categoryMap.containsKey(progressPlanDetail.getProgressCategoryId())) { + PgsProgressCategory category = categoryMap.get(progressPlanDetail.getProgressCategoryId()); + progressPlanDetailNumVo.setUnitType(category.getUnitType()); + progressPlanDetailNumVo.setWorkType(category.getWorkType()); + progressPlanDetailNumVo.setRelevancyStructure(category.getRelevancyStructure()); + } return progressPlanDetailNumVo; }).toList(); } @@ -814,7 +825,7 @@ public class PgsProgressPlanDetailServiceImpl extends ServiceImpl queryNumberList(PgsProgressPlanDetailQueryReq req) { + LambdaQueryWrapper lqw = this.buildQueryWrapper(req); + List progressPlanDetailList = this.list(lqw); + return getNumVoList(progressPlanDetailList); + } + /** * 分页 * diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanServiceImpl.java index 1e56bd16..8615009e 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanServiceImpl.java @@ -124,6 +124,10 @@ public class PgsProgressPlanServiceImpl extends ServiceImpl progressCategoryIdList = progressPlanList.stream() + .map(PgsProgressPlan::getProgressCategoryId) + .distinct() + .toList(); + List progressCategoryList = progressCategoryService.listByIds(progressCategoryIdList); + Map progressCategoryMap = progressCategoryList.stream() + .collect(Collectors.toMap(PgsProgressCategory::getId, category -> category)); // 获取详情列表 List idList = progressPlanList.stream().map(PgsProgressPlan::getId).toList(); List detailList = progressPlanDetailService.lambdaQuery() @@ -304,6 +323,7 @@ public class PgsProgressPlanServiceImpl extends ServiceImpl numDetailList = new ArrayList<>(); BigDecimal aiFill = BigDecimal.ZERO; if (detailMap.containsKey(id)) { @@ -312,6 +332,12 @@ public class PgsProgressPlanServiceImpl extends ServiceImpl wrapper + .le(PgsProgressPlan::getStartDate, endDate) // 数据库中的开始 <= 新增的结束 + .ge(PgsProgressPlan::getEndDate, startDate) // 数据库中的结束 >= 新增的开始 + ) + .exists(); // 是否存在 + } } diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/service/impl/BusProjectServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/service/impl/BusProjectServiceImpl.java index c827f359..ef95922b 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/service/impl/BusProjectServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/project/service/impl/BusProjectServiceImpl.java @@ -14,11 +14,13 @@ import com.github.benmanes.caffeine.cache.Cache; import com.github.benmanes.caffeine.cache.Caffeine; import jakarta.annotation.Resource; import lombok.extern.slf4j.Slf4j; +import org.dromara.common.core.constant.CacheNames; import org.dromara.common.core.constant.HttpStatus; import org.dromara.common.core.constant.SystemConstants; import org.dromara.common.core.domain.model.LoginUser; import org.dromara.common.core.domain.vo.IdAndNameVO; import org.dromara.common.core.exception.ServiceException; +import org.dromara.common.core.service.ProjectService; import org.dromara.common.core.utils.DateUtils; import org.dromara.common.core.utils.ObjectUtils; import org.dromara.common.core.utils.StringUtils; @@ -51,6 +53,7 @@ import org.dromara.quality.service.IQltKnowledgeDocumentService; import org.dromara.safety.service.IHseKnowledgeDocumentService; import org.dromara.workflow.service.IFlwDefinitionService; import org.springframework.beans.BeanUtils; +import org.springframework.cache.annotation.Cacheable; import org.springframework.context.annotation.Lazy; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.data.redis.core.ValueOperations; @@ -75,7 +78,7 @@ import static org.dromara.common.satoken.utils.LoginHelper.LOGIN_USER_KEY; @Slf4j @Service public class BusProjectServiceImpl extends ServiceImpl - implements IBusProjectService { + implements IBusProjectService, ProjectService { @Lazy @Resource @@ -1137,4 +1140,22 @@ public class BusProjectServiceImpl extends ServiceImpl