From 9af27ed8da6b5710025fb080f96a7dd9e80467a4 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期一, 28 七月 2025 23:24:10 +0800 Subject: [PATCH] update --- src/main/java/org/jeecg/modules/system/controller/SysUserController.java | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jeecg/modules/system/controller/SysUserController.java b/src/main/java/org/jeecg/modules/system/controller/SysUserController.java index a438754..ee03b35 100644 --- a/src/main/java/org/jeecg/modules/system/controller/SysUserController.java +++ b/src/main/java/org/jeecg/modules/system/controller/SysUserController.java @@ -12,6 +12,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; +import liquibase.pro.packaged.I; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; import org.apache.shiro.SecurityUtils; @@ -30,6 +31,8 @@ import org.jeecg.modules.base.service.BaseCommonService; import org.jeecg.modules.base.service.IUserFactoryService; import org.jeecg.modules.base.service.IUserGroupService; +import org.jeecg.modules.mdc.model.ProductionIdModel; +import org.jeecg.modules.mdc.service.IMdcUserProductionService; import org.jeecg.modules.system.entity.*; import org.jeecg.modules.system.model.DepartIdModel; import org.jeecg.modules.base.model.FactoryIdModel; @@ -104,6 +107,9 @@ @Resource private IUserFactoryService userFactoryService; + + @Resource + private IMdcUserProductionService userProductionService; @Resource private IUserGroupService userGroupService; @@ -473,10 +479,10 @@ @AutoLog(value = "鐢ㄦ埛琛�-鏌ヨ鎸囧畾鐢ㄦ埛鍜屼骇绾垮叧鑱旂殑鏁版嵁") @ApiOperation(value = "鐢ㄦ埛琛�-鏌ヨ鎸囧畾鐢ㄦ埛鍜屼骇绾垮叧鑱旂殑鏁版嵁", notes = "鐢ㄦ埛琛�-鏌ヨ鎸囧畾鐢ㄦ埛鍜屼骇绾垮叧鑱旂殑鏁版嵁") @GetMapping(value = "/userProductionList") - public Result<List<FactoryIdModel>> getUserProductionsList(@RequestParam(name = "userId", required = true) String userId) { - Result<List<FactoryIdModel>> result = new Result<>(); + public Result<List<ProductionIdModel>> getUserProductionsList(@RequestParam(name = "userId", required = true) String userId) { + Result<List<ProductionIdModel>> result = new Result<>(); try { - List<FactoryIdModel> proIdModelList = this.userFactoryService.queryFactoryIdsOfUser(userId); + List<ProductionIdModel> proIdModelList = this.userProductionService.queryProductionIdsOfUser(userId); if (proIdModelList != null && !proIdModelList.isEmpty()) { result.setSuccess(true); result.setMessage("鏌ユ壘鎴愬姛"); -- Gitblit v1.9.3