|
|
@ -2,7 +2,6 @@ package com.foreverwin.mesnac.meapi.service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
@ -11,7 +10,6 @@ import com.foreverwin.mesnac.meapi.mapper.ItemMapper;
|
|
|
|
import com.foreverwin.mesnac.meapi.model.Item;
|
|
|
|
import com.foreverwin.mesnac.meapi.model.Item;
|
|
|
|
import com.foreverwin.mesnac.meapi.service.ItemService;
|
|
|
|
import com.foreverwin.mesnac.meapi.service.ItemService;
|
|
|
|
import com.foreverwin.mesnac.meapi.util.StringUtils;
|
|
|
|
import com.foreverwin.mesnac.meapi.util.StringUtils;
|
|
|
|
import com.foreverwin.modular.core.util.CommonMethods;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.context.i18n.LocaleContextHolder;
|
|
|
|
import org.springframework.context.i18n.LocaleContextHolder;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@ -19,6 +17,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Locale;
|
|
|
|
import java.util.Locale;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* <p>
|
|
|
|
* <p>
|
|
|
@ -86,4 +85,11 @@ public class ItemServiceImpl extends ServiceImpl<ItemMapper, Item> implements It
|
|
|
|
public Item selectCurrent(String site, String item) {
|
|
|
|
public Item selectCurrent(String site, String item) {
|
|
|
|
return itemMapper.selectCurrentRevision(site, item);
|
|
|
|
return itemMapper.selectCurrentRevision(site, item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public Map<String, Object> findMapByItemBo(String itemBo) {
|
|
|
|
|
|
|
|
return itemMapper.findMapByItem(itemBo);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|