|
@@ -4,7 +4,9 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.diagbot.client.UserServiceClient;
|
|
|
import com.diagbot.dto.AuthDetailDTO;
|
|
|
+import com.diagbot.dto.OrderDetialsDTO;
|
|
|
import com.diagbot.dto.ProductAuthProgressDTO;
|
|
|
+import com.diagbot.dto.ProductOrderDTO;
|
|
|
import com.diagbot.dto.ProductOrderExportDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.dto.UserOrgDTO;
|
|
@@ -13,7 +15,6 @@ import com.diagbot.entity.OrderDetailStatus;
|
|
|
import com.diagbot.entity.OrderDetails;
|
|
|
import com.diagbot.entity.ProductOrder;
|
|
|
import com.diagbot.entity.ProductOrderIndex;
|
|
|
-import com.diagbot.entity.wrapper.OrderDetailsWapper;
|
|
|
import com.diagbot.entity.wrapper.ProductOrderWrapper;
|
|
|
import com.diagbot.enums.AuditStatusEnum;
|
|
|
import com.diagbot.enums.AuthStatusEnum;
|
|
@@ -224,7 +225,7 @@ public class ProductOrderFacade extends ProductOrderServiceImpl {
|
|
|
* @param productOrderVO (订单编号,机构名称,申请状态)
|
|
|
* @return 所有订单信息
|
|
|
*/
|
|
|
- public RespDTO<IPage<ProductOrderWrapper>> selectAllProductOrder(ProductOrderVO productOrderVO){
|
|
|
+ public RespDTO<IPage<ProductOrderDTO>> selectAllProductOrder(ProductOrderVO productOrderVO){
|
|
|
Page page =new Page();
|
|
|
BeanUtil.copyProperties(productOrderVO,page);
|
|
|
ProductOrderIndex productOrderIndex =new ProductOrderIndex();
|
|
@@ -234,10 +235,10 @@ public class ProductOrderFacade extends ProductOrderServiceImpl {
|
|
|
RespDTO<List<Long>> rlist = userServiceClient.getUserByOrgName(productOrderVO.getOrgName());
|
|
|
productOrderIndex.setUserId(rlist.data);
|
|
|
}
|
|
|
- List<ProductOrderWrapper> list =productOrderFacade.selectAllProductOrder(page,productOrderIndex).getRecords();
|
|
|
+ List<ProductOrderDTO> list =productOrderFacade.selectAllProductOrder(page,productOrderIndex).getRecords();
|
|
|
List<Long> list1 =new ArrayList<>();
|
|
|
List<String> orderNoList =new ArrayList<>();
|
|
|
- for (ProductOrderWrapper productOrderWrapper:list) {
|
|
|
+ for (ProductOrderDTO productOrderWrapper:list) {
|
|
|
Long longs = productOrderWrapper.getUserId();
|
|
|
String orderNo =productOrderWrapper.getNum();
|
|
|
list1.add(longs);
|
|
@@ -245,15 +246,15 @@ public class ProductOrderFacade extends ProductOrderServiceImpl {
|
|
|
}
|
|
|
OrderDetialsVO orderDetialsVO =new OrderDetialsVO();
|
|
|
orderDetialsVO.setOrderNum(orderNoList);
|
|
|
- List<OrderDetailsWapper> orderDetilList = orderDetailsFacade.getAllOrderDetials(orderDetialsVO);
|
|
|
+ List<OrderDetialsDTO> orderDetilList = orderDetailsFacade.getAllOrderDetials(orderDetialsVO);
|
|
|
RespDTO<Map<Long, UserOrgDTO>> mapRespDTO = userServiceClient.getUserAndOrg(list1);
|
|
|
if(mapRespDTO == null || !"0".equals(mapRespDTO.code) ) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
"获取用户和机构信息失败");
|
|
|
}
|
|
|
Map<Long, UserOrgDTO> dataMap = mapRespDTO.data;
|
|
|
- Map<String,List<OrderDetailsWapper>> odMap = EntityUtil.makeEntityListMap(orderDetilList,"orderNum");
|
|
|
- for(ProductOrderWrapper bean : list) {
|
|
|
+ Map<String,List<OrderDetialsDTO>> odMap = EntityUtil.makeEntityListMap(orderDetilList,"orderNum");
|
|
|
+ for(ProductOrderDTO bean : list) {
|
|
|
UserOrgDTO uo = dataMap.get(bean.getUserId());
|
|
|
if(uo != null) {
|
|
|
bean.setUsername(uo.getUsername());
|
|
@@ -325,7 +326,7 @@ public class ProductOrderFacade extends ProductOrderServiceImpl {
|
|
|
Map<String, Object> userMap = new HashMap<String, Object>();
|
|
|
userMap.put("startTime", productOrderExportVO.getStartTime());
|
|
|
userMap.put("endTime", productOrderExportVO.getEndTime());
|
|
|
- RespDTO<IPage<ProductOrderWrapper>> datas = this.selectAllProductOrder(productOrderVO);
|
|
|
+ RespDTO<IPage<ProductOrderDTO>> datas = this.selectAllProductOrder(productOrderVO);
|
|
|
GsonUtil.toJson(datas.data.getRecords());
|
|
|
List<String> listName = new ArrayList<>();
|
|
|
|