|
@@ -10,6 +10,7 @@ import com.hwrj.cloud.common.exception.GlobalException;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -37,7 +38,13 @@ public class OmsPreItemServiceImpl implements OmsPreItemService {
|
|
|
public List<OmsPreItem> weblist(PreItemWebPageParm preItemWebPageParm){
|
|
|
PageHelper.startPage(preItemWebPageParm.getPageNo(),preItemWebPageParm.getPageSize());
|
|
|
Long compId = CurrUserUtil.getCompIdInfo();
|
|
|
- preItemWebPageParm.setCompId(compId);
|
|
|
+ if(!StringUtils.isEmpty(compId)) {
|
|
|
+ preItemWebPageParm.setCompId(compId);
|
|
|
+
|
|
|
+ }
|
|
|
+ if(!StringUtils.isEmpty(preItemWebPageParm.getCompId())) {
|
|
|
+ preItemWebPageParm.setCompId(preItemWebPageParm.getCompId());
|
|
|
+ }
|
|
|
List<OmsPreItem> list = omsPreItemDao.weblist(preItemWebPageParm);
|
|
|
return list;
|
|
|
}
|