|
@@ -1,6 +1,5 @@
|
|
package com.diagbot.facade;
|
|
package com.diagbot.facade;
|
|
|
|
|
|
-import ch.qos.logback.core.pattern.ConverterUtil;
|
|
|
|
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;
|
|
import com.diagbot.client.UserServiceClient;
|
|
import com.diagbot.client.UserServiceClient;
|
|
@@ -25,11 +24,9 @@ import com.diagbot.vo.AddProductsVO;
|
|
import com.diagbot.vo.LantoneProductSelectVO;
|
|
import com.diagbot.vo.LantoneProductSelectVO;
|
|
import com.diagbot.vo.OppendedProductVO;
|
|
import com.diagbot.vo.OppendedProductVO;
|
|
import com.diagbot.vo.UpdateProductVO;
|
|
import com.diagbot.vo.UpdateProductVO;
|
|
-import com.google.common.collect.Lists;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import java.lang.reflect.Array;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -163,17 +160,6 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
return RespDTO.onSuc(this.productLine(list));
|
|
return RespDTO.onSuc(this.productLine(list));
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 根据产品id查询产品
|
|
|
|
- *
|
|
|
|
- * @param id 产品id
|
|
|
|
- * @return 产品信息
|
|
|
|
- */
|
|
|
|
- public LantoneProduct selectLanProduct(Long id) {
|
|
|
|
- return getById(id);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 根据产品id查询当条产品线下所有订单信息
|
|
* 根据产品id查询当条产品线下所有订单信息
|
|
*
|
|
*
|
|
@@ -184,10 +170,10 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
OpenedProductsIndex openedProductsIndex = new OpenedProductsIndex();
|
|
OpenedProductsIndex openedProductsIndex = new OpenedProductsIndex();
|
|
Long curren = oppendedProductVO.getCurrent();
|
|
Long curren = oppendedProductVO.getCurrent();
|
|
Long size = oppendedProductVO.getSize();
|
|
Long size = oppendedProductVO.getSize();
|
|
- if (curren == null || curren == 0) {
|
|
|
|
|
|
+ if (curren == null || curren==0) {
|
|
oppendedProductVO.setCurrent(1L);
|
|
oppendedProductVO.setCurrent(1L);
|
|
}
|
|
}
|
|
- if (size == null || curren == 0) {
|
|
|
|
|
|
+ if (size == null || curren==0) {
|
|
oppendedProductVO.setSize(10L);
|
|
oppendedProductVO.setSize(10L);
|
|
}
|
|
}
|
|
BeanUtil.copyProperties(oppendedProductVO, openedProductsIndex);
|
|
BeanUtil.copyProperties(oppendedProductVO, openedProductsIndex);
|
|
@@ -207,7 +193,7 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
for (OpendProductWrapper bean : list) {
|
|
for (OpendProductWrapper bean : list) {
|
|
UserOrgDTO uo = dataMap.get(bean.getUserId());
|
|
UserOrgDTO uo = dataMap.get(bean.getUserId());
|
|
if (uo != null) {
|
|
if (uo != null) {
|
|
- BeanUtil.copyProperties(uo, bean);
|
|
|
|
|
|
+ BeanUtil.copyProperties(uo,bean);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return list;
|
|
return list;
|