mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
禅道bug#1563修复
This commit is contained in:
+3
-2
@@ -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}")
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ public interface AssemblyConfigService {
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<AssemblyConfigListRespVO> getOrgAssemblyConfigList();
|
||||
List<AssemblyConfigListRespVO> getOrgAssemblyConfigList(String name);
|
||||
|
||||
/**
|
||||
* 获取装配设置
|
||||
|
||||
+4
-2
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user