Browse Source

工单选中导出

fix-sign
汤建军 5 months ago
parent
commit
98aa8a10a2
  1. 5
      blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesAbnormalPackageEntity.java
  2. 18
      blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesWorkOrderEntity.java
  3. 72
      blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/vo/AftersalesNewWorkOrderVO.java
  4. 10
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java
  5. 2
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.java
  6. 6
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml
  7. 5
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java

5
blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesAbnormalPackageEntity.java

@ -139,6 +139,11 @@ public class AftersalesAbnormalPackageEntity extends TenantEntity {
*/
@ApiModelProperty(value = "二级品")
private String secondary;
/**
* 三级品
*/
@ApiModelProperty(value = "三级品")
private String thirdProduct;
/**
* 入库批次号库存品)
*/

18
blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesWorkOrderEntity.java

@ -217,6 +217,12 @@ public class AftersalesWorkOrderEntity extends TenantEntity {
*/
@ApiModelProperty(value = "仓库ID")
private Long warehouseId;
/**
* 仓库名称
*/
@ApiModelProperty(value = "仓库名称")
private String warehouseName;
/**
* 责任人 库内作业环节
*/
@ -290,6 +296,18 @@ public class AftersalesWorkOrderEntity extends TenantEntity {
*/
@ApiModelProperty(value = "提交人 ")
private String ceator;
/**
* 仓库客服
*/
@ApiModelProperty(value = "仓库客服 ")
private String warehouseServiceName;
/**
* 职能客服
*/
@ApiModelProperty(value = "职能客服 ")
private String headquartersName;
/**
* 处理仓库ID
*/

72
blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/vo/AftersalesNewWorkOrderVO.java

@ -0,0 +1,72 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.logpm.aftersales.vo;
import com.logpm.aftersales.entity.AftersaleSurveyRecordEntity;
import com.logpm.aftersales.entity.AftersalesCompletionRecipientEntity;
import com.logpm.aftersales.entity.AftersalesCompletionRecordEntity;
import com.logpm.aftersales.entity.AftersalesWorkOrderEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.List;
/**
* 客服异常工单 视图实体类
*
* @author BladeX
* @since 2023-11-17
*/
@Data
public class AftersalesNewWorkOrderVO implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
private Integer workOrderType;
private Integer discoveryNode;
private String warehouseName;
private Integer workOrderStatus;
private String workOrderNumber;
private String waybillNumber;
private String orderCode;
private String packageCode;
private String brandName;
private String waybillMall;
private String first;
private String processedBy;
private String businessNames;
private String createTime;
private String overTime;
private String updateTime;
private String resultTypes;
private String totalAmountNum;
private String ceator;
private String endTime;
private String warehouseServiceName;
private String headquartersName;
private String isAppeal;
private String processNumber;
private String appealResult;
}

10
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java

@ -124,16 +124,6 @@ public class AftersalesWorkOrderController extends BladeController {
log.info("异常工单查询参数》》》{}",aftersalesWorkOrder);
try{
IPage<AftersalesWorkOrderVO> pages = aftersalesWorkOrderService.pageListOwn(aftersalesWorkOrder, Condition.getPage(query));
// R<IPage<AftersalesWorkOrderVO>> data = R.data(AftersalesWorkOrderWrapper.build().pageVO(pages));
// BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse();
// if (ObjectUtils.isNotNull(myCurrentWarehouse)){
// data.getData().getRecords().forEach(item -> {
// item.setTotalAmount(aftersalesCompletionRecordService.getTotalMoney(item,myCurrentWarehouse.getId()));
// });
// }else{
// log.info("查询人不属于某个仓库");
// }
return R.data(pages);
}catch (Exception e){
log.error("工单查询系统异常》》》{}",e.getMessage());

2
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.java

@ -116,5 +116,5 @@ public interface AftersalesWorkOrderMapper extends BaseMapper<AftersalesWorkOrde
* @param workOrderEntity
* @return
*/
List<AftersalesWorkOrderExcel> exportAllListOwn(@Param("param")AftersalesWorkOrderEntity workOrderEntity);
List<AftersalesWorkOrderExcel> exportAllListOwn(@Param("param")AftersalesWorkOrderEntity workOrderEntity,@Param("ids")List<Long> ids);
}

6
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml

@ -925,6 +925,12 @@
LEFT JOIN logpm_aftersales_person_responsible AS laprr ON laprr.word_order_id = lawo.id
<where>
lawo.is_deleted = 0
<if test="ids != null">
AND lawo.id IN
<foreach collection="ids" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="param.workOrderStatusNameS != null and param.workOrderStatusNameS != '' ">and lawo.work_order_status = #{param.workOrderStatusNameS } </if>
<if test="param.id != null and param.id != '' ">and lawo.id = #{param.id } </if>
<if test="param.workOrderType != null and param.workOrderType != '' ">and lawo.work_order_type = #{param.workOrderType } </if>

5
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java

@ -2580,8 +2580,9 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
@Override
public List<AftersalesWorkOrderExcel> exportWorkOrder(Map<String, Object> aftersalesWorkOrder) {
String o = (String) aftersalesWorkOrder.get("ids");
List<Long> ids = null;
if (!Objects.isNull(o)) {
aftersalesWorkOrder.put("ids", o);
ids = Func.toLongList((String) aftersalesWorkOrder.get("ids"));
}
//查询用户角色信息
BladeUser user = AuthUtil.getUser();
@ -2625,7 +2626,7 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
AftersalesWorkOrderEntity workOrderEntity = JSONObject.parseObject(JSONObject.toJSONString(aftersalesWorkOrder), AftersalesWorkOrderEntity.class);
List<AftersalesWorkOrderExcel> list = baseMapper.exportAllListOwn(workOrderEntity);
List<AftersalesWorkOrderExcel> list = baseMapper.exportAllListOwn(workOrderEntity,ids);
return list;

Loading…
Cancel
Save