|
|
@ -3,6 +3,9 @@ package com.win.module.wms.controller.deliverJob; |
|
|
|
import com.win.framework.common.pojo.CustomConditions; |
|
|
|
import com.win.module.system.api.user.AdminUserApi; |
|
|
|
import com.win.module.system.api.user.dto.AdminUserRespDTO; |
|
|
|
import com.win.module.wms.convert.deliverJob.DeliverJobDetailConvert; |
|
|
|
import com.win.module.wms.dal.dataobject.deliverJob.DeliverJobDetailDO; |
|
|
|
import com.win.module.wms.service.deliverJob.DeliverJobDetailService; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import javax.annotation.Resource; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
@ -39,6 +42,9 @@ public class DeliverJobMainController { |
|
|
|
@Resource |
|
|
|
private DeliverJobMainService deliverJobMainService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
private DeliverJobDetailService deliverJobDetailService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
private AdminUserApi userApi; |
|
|
|
|
|
|
@ -121,4 +127,22 @@ public class DeliverJobMainController { |
|
|
|
ExcelUtils.write(response, "发货任务主.xls", "数据", DeliverJobMainExcelVO.class, datas); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/getDeliverJobById") |
|
|
|
@Operation(summary = "APP获得发货任务主子表明细列表") |
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|
|
|
@PreAuthorize("@ss.hasPermission('wms:deliver-job-main:query')") |
|
|
|
public CommonResult<DeliverJobMainRespVO> getDeliverJobById(@RequestParam("id") Long id) { |
|
|
|
DeliverJobMainDO deliverJobMain = deliverJobMainService.getDeliverJobMain(id); |
|
|
|
DeliverJobMainRespVO result = DeliverJobMainConvert.INSTANCE.convert(deliverJobMain); |
|
|
|
if(result==null) { |
|
|
|
return success(result); |
|
|
|
}; |
|
|
|
DeliverJobDetailExportReqVO exportReqVO = new DeliverJobDetailExportReqVO(); |
|
|
|
exportReqVO.setMasterId(result.getId()); |
|
|
|
List<DeliverJobDetailDO> deliverJobDetailList = deliverJobDetailService.getDeliverJobDetailList(exportReqVO); |
|
|
|
List<DeliverJobDetailExcelVO> deliverJobDetailExcelVOS = DeliverJobDetailConvert.INSTANCE.convertList02(deliverJobDetailList); |
|
|
|
result.setSubList(deliverJobDetailExcelVOS); |
|
|
|
return success(result); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|