mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2024-12-26 01:22:54 +08:00
feat: 解决ERP获取信息错误的问题
This commit is contained in:
parent
e2560506ed
commit
2b8d85a75f
1 changed files with 10 additions and 2 deletions
|
@ -14,6 +14,7 @@ import com.github.pagehelper.Page;
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.skyeye.annotation.service.SkyeyeService;
|
import com.skyeye.annotation.service.SkyeyeService;
|
||||||
import com.skyeye.base.business.service.impl.SkyeyeBusinessServiceImpl;
|
import com.skyeye.base.business.service.impl.SkyeyeBusinessServiceImpl;
|
||||||
|
import com.skyeye.common.constans.CommonCharConstants;
|
||||||
import com.skyeye.common.constans.CommonConstants;
|
import com.skyeye.common.constans.CommonConstants;
|
||||||
import com.skyeye.common.object.InputObject;
|
import com.skyeye.common.object.InputObject;
|
||||||
import com.skyeye.common.object.OutputObject;
|
import com.skyeye.common.object.OutputObject;
|
||||||
|
@ -310,7 +311,12 @@ public class MaterialNormsCodeServiceImpl extends SkyeyeBusinessServiceImpl<Mate
|
||||||
public void queryMaterialNormsCode(InputObject inputObject, OutputObject outputObject) {
|
public void queryMaterialNormsCode(InputObject inputObject, OutputObject outputObject) {
|
||||||
Map<String, Object> params = inputObject.getParams();
|
Map<String, Object> params = inputObject.getParams();
|
||||||
String storeId = params.get("storeId").toString();
|
String storeId = params.get("storeId").toString();
|
||||||
List<String> normsCodeList = JSONUtil.toList(params.get("normsCodeList").toString(), null);
|
List<String> normsCodeList = Arrays.asList(params.get("normsCodeList").toString()
|
||||||
|
.split(CommonCharConstants.COMMA_MARK))
|
||||||
|
.stream().filter(StrUtil::isNotEmpty).distinct().collect(Collectors.toList());
|
||||||
|
if (CollectionUtil.isEmpty(normsCodeList)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
String storeUseState = params.get("storeUseState").toString();
|
String storeUseState = params.get("storeUseState").toString();
|
||||||
|
|
||||||
QueryWrapper<MaterialNormsCode> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<MaterialNormsCode> queryWrapper = new QueryWrapper<>();
|
||||||
|
@ -327,7 +333,9 @@ public class MaterialNormsCodeServiceImpl extends SkyeyeBusinessServiceImpl<Mate
|
||||||
@Override
|
@Override
|
||||||
public void editStoreMaterialNormsCodeUseState(InputObject inputObject, OutputObject outputObject) {
|
public void editStoreMaterialNormsCodeUseState(InputObject inputObject, OutputObject outputObject) {
|
||||||
Map<String, Object> params = inputObject.getParams();
|
Map<String, Object> params = inputObject.getParams();
|
||||||
List<String> ids = JSONUtil.toList(params.get("ids").toString(), null);
|
List<String> ids = Arrays.asList(params.get("ids").toString()
|
||||||
|
.split(CommonCharConstants.COMMA_MARK))
|
||||||
|
.stream().filter(StrUtil::isNotEmpty).distinct().collect(Collectors.toList());
|
||||||
String storeUseState = params.get("storeUseState").toString();
|
String storeUseState = params.get("storeUseState").toString();
|
||||||
UpdateWrapper<MaterialNormsCode> updateWrapper = new UpdateWrapper<>();
|
UpdateWrapper<MaterialNormsCode> updateWrapper = new UpdateWrapper<>();
|
||||||
updateWrapper.in(CommonConstants.ID, ids);
|
updateWrapper.in(CommonConstants.ID, ids);
|
||||||
|
|
Loading…
Reference in a new issue