禅道bug#1563修复

This commit is contained in:
gaoqr
2026-05-22 16:30:49 +08:00
parent 88561efda7
commit d449e26bc6
3 changed files with 8 additions and 5 deletions
@@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@@ -50,8 +51,8 @@ public class AssemblyConfigController {
@GetMapping("/list")
@Operation(summary = "查询组织装配设置列表")
@PreAuthorize("@ss.hasPermission('systemconfig:assemblyconfig:query')")
public CommonResult<List<AssemblyConfigListRespVO>> getAssemblyConfigList() {
return CommonResult.success(assemblyConfigService.getOrgAssemblyConfigList());
public CommonResult<List<AssemblyConfigListRespVO>> getAssemblyConfigList(@RequestParam("name") String name) {
return CommonResult.success(assemblyConfigService.getOrgAssemblyConfigList(name));
}
@GetMapping("/{configId}")
@@ -26,7 +26,7 @@ public interface AssemblyConfigService {
*
* @return
*/
List<AssemblyConfigListRespVO> getOrgAssemblyConfigList();
List<AssemblyConfigListRespVO> getOrgAssemblyConfigList(String name);
/**
* 获取装配设置
@@ -12,6 +12,7 @@ import com.cf.imes.framework.common.exception.ServiceException;
import com.cf.imes.framework.common.pojo.CommonResult;
import com.cf.imes.framework.common.util.Assert.AssertUtils;
import com.cf.imes.framework.common.util.json.JsonUtils;
import com.cf.imes.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.cf.imes.framework.mybatis.core.query.LambdaUpdateWrapperX;
import com.cf.imes.framework.security.core.util.SecurityFrameworkUtils;
import com.cf.imes.module.executor.api.ordercomponent.OrderComponentApi;
@@ -227,12 +228,13 @@ public class AssemblyConfigServiceImpl implements AssemblyConfigService {
}
@Override
public List<AssemblyConfigListRespVO> getOrgAssemblyConfigList() {
public List<AssemblyConfigListRespVO> getOrgAssemblyConfigList(String name) {
Long organId = SecurityFrameworkUtils.getUserOrganId();
List<AssemblyConfigDO> list = assemblyConfigMapper.selectList(
new LambdaQueryWrapper<AssemblyConfigDO>()
new LambdaQueryWrapperX<AssemblyConfigDO>()
.eq(AssemblyConfigDO::getOrganId, organId)
.likeIfPresent(AssemblyConfigDO::getComponentName, name)
.eq(AssemblyConfigDO::getDeleted, DeletedCodeEnum.NOT_DELETED.getStatus())
.select(AssemblyConfigDO::getId, AssemblyConfigDO::getComponentName, AssemblyConfigDO::getStatus, AssemblyConfigDO::getSourceComponentId)
);