fix():问题修复

master
jiyufei 2 months ago
parent 11015adb3e
commit 1b0e225cec

@ -415,7 +415,7 @@ public class YysBillMaterialServiceImpl extends ServiceImpl<YysBillMaterialMappe
@Override
public List<YysSubsetMaterialEntity> queryByPieceId(YysBillMaterialPagination yysBillMaterialPagination) {
LambdaQueryWrapper<YysSubsetMaterialEntity> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(YysSubsetMaterialEntity::getPieceId, yysBillMaterialPagination.getPieceId());
wrapper.eq(YysSubsetMaterialEntity::getSubsetId, yysBillMaterialPagination.getPieceId());
wrapper.isNull(YysSubsetMaterialEntity::getDeleteMark);
Page<YysSubsetMaterialEntity> page = new Page<>(yysBillMaterialPagination.getCurrentPage(), yysBillMaterialPagination.getPageSize());
IPage<YysSubsetMaterialEntity> userIPage = yysSubsetMaterialService.page(page, wrapper);

@ -180,7 +180,7 @@ public class YysMaterialClassServiceImpl extends ServiceImpl<YysMaterialClassMap
String value = yysMaterialClassPagination.getParentClassification() instanceof List ?
JsonUtil.getObjectToString(yysMaterialClassPagination.getParentClassification()) :
String.valueOf(yysMaterialClassPagination.getParentClassification());
yysMaterialClassQueryWrapper.lambda().like(YysMaterialClassEntity::getParentClassification, value);
yysMaterialClassQueryWrapper.lambda().like(YysMaterialClassEntity::getParentClassname, value);
}

@ -178,7 +178,7 @@ public class YysSupplierClassServiceImpl extends ServiceImpl<YysSupplierClassMap
String value = yysSupplierClassPagination.getParentClassification() instanceof List ?
JsonUtil.getObjectToString(yysSupplierClassPagination.getParentClassification()) :
String.valueOf(yysSupplierClassPagination.getParentClassification());
yysSupplierClassQueryWrapper.lambda().like(YysSupplierClassEntity::getParentClassification, value);
yysSupplierClassQueryWrapper.lambda().like(YysSupplierClassEntity::getParentClassname, value);
}

@ -13,9 +13,11 @@ import jnpf.entity.*;
import jnpf.util.*;
import jnpf.model.yysinventoryquery.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.MapUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.*;
@ -56,6 +58,9 @@ public class YysInventoryQueryController {
@Autowired
private YysInventoryQueryService yysInventoryQueryService;
@Resource
private YysMaterialClassService yysMaterialClassService;
/**
*
@ -68,9 +73,14 @@ public class YysInventoryQueryController {
public ActionResult list(@RequestBody YysInventoryQueryPagination yysInventoryQueryPagination) throws IOException {
List<YysInventoryQueryEntity> list = yysInventoryQueryService.getList(yysInventoryQueryPagination);
List<Map<String, Object>> realList = new ArrayList<>();
List<YysMaterialClassEntity> list1 = yysMaterialClassService.list();
Map<String, String> collect = list1.stream().collect(Collectors.toMap(YysMaterialClassEntity::getClassId, YysMaterialClassEntity::getClassName));
for (YysInventoryQueryEntity entity : list) {
Map<String, Object> yysInventoryQueryMap = JsonUtil.entityToMap(entity);
yysInventoryQueryMap.put("id", yysInventoryQueryMap.get("id"));
if (MapUtils.isNotEmpty(collect) && collect.containsKey(entity.getMaterialClassification())) {
yysInventoryQueryMap.put("materialClassification", collect.get(entity.getMaterialClassification()));
}
//副表数据
//子表数据
realList.add(yysInventoryQueryMap);

@ -15,7 +15,8 @@
</el-col>
<el-col :span="6">
<el-form-item label="单据状态">
<el-input v-model="query.documentStatus" placeholder="请输入" clearable> </el-input>
<JnpfSelect v-model="query.documentStatus" placeholder="请输入" clearable
:options="documentStatusOptions" :props="documentStatusProps"> </JnpfSelect>
</el-form-item>
</el-col>
<el-col :span="6">

@ -15,7 +15,9 @@
</el-col>
<el-col :span="6">
<el-form-item label="启用状态">
<el-input v-model="query.enableStatus" placeholder="请输入" clearable> </el-input>
<JnpfSelect v-model="query.enableStatus" placeholder="请选择启用状态" clearable
:options="enableStatusOptions" :props="enableStatusProps">
</JnpfSelect>
</el-form-item>
</el-col>
<el-col :span="6">

@ -20,10 +20,12 @@
</el-col>
<template v-if="showAll">
<el-col :span="6">
<el-form-item label="启用状态">
<el-input v-model="query.enableStatus" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
<el-form-item label="启用状态">
<JnpfSelect v-model="query.enableStatus" placeholder="请选择启用状态" clearable
:options="enableStatusOptions" :props="enableStatusProps">
</JnpfSelect>
</el-form-item>
</el-col>
</template>
<el-col :span="6">
<el-form-item>

@ -15,7 +15,9 @@
</el-col>
<el-col :span="6">
<el-form-item label="启用状态">
<el-input v-model="query.enableStatus" placeholder="请输入" clearable> </el-input>
<JnpfSelect v-model="query.enableStatus" placeholder="请选择启用状态" clearable
:options="enableStatusOptions" :props="enableStatusProps">
</JnpfSelect>
</el-form-item>
</el-col>
<el-col :span="6">

@ -15,7 +15,9 @@
</el-col>
<el-col :span="6">
<el-form-item label="启用状态">
<el-input v-model="query.enableStatus" placeholder="请输入" clearable> </el-input>
<JnpfSelect v-model="query.enableStatus" placeholder="请选择启用状态" clearable
:options="enableStatusOptions" :props="enableStatusProps">
</JnpfSelect>
</el-form-item>
</el-col>
<el-col :span="6">

@ -10,7 +10,9 @@
</el-col>
<el-col :span="6">
<el-form-item label="启用状态">
<el-input v-model="query.enableStatus" placeholder="请输入" clearable> </el-input>
<JnpfSelect v-model="query.enableStatus" placeholder="请选择启用状态" clearable
:options="enableStatusOptions" :props="enableStatusProps">
</JnpfSelect>
</el-form-item>
</el-col>
<el-col :span="6">

Loading…
Cancel
Save