|
|
@ -3,6 +3,9 @@ package com.win.module.wms.controller.inventorymoveJob; |
|
|
|
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.inventorymoveJob.InventorymoveJobDetailConvert; |
|
|
|
import com.win.module.wms.dal.dataobject.inventorymoveJob.InventorymoveJobDetailDO; |
|
|
|
import com.win.module.wms.service.inventorymoveJob.InventorymoveJobDetailService; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import javax.annotation.Resource; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
@ -39,6 +42,9 @@ public class InventorymoveJobMainController { |
|
|
|
@Resource |
|
|
|
private InventorymoveJobMainService inventorymoveJobMainService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
private InventorymoveJobDetailService inventorymoveJobDetailService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
private AdminUserApi userApi; |
|
|
|
|
|
|
@ -123,4 +129,22 @@ public class InventorymoveJobMainController { |
|
|
|
ExcelUtils.write(response, "库存转移任务主.xls", "数据", InventorymoveJobMainExcelVO.class, datas); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/getInventorymoveJobById") |
|
|
|
@Operation(summary = "APP获得库存转移主子表明细列表") |
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|
|
|
@PreAuthorize("@ss.hasPermission('wms:inventorymove-job-main:query')") |
|
|
|
public CommonResult<InventorymoveJobMainRespVO> getInventorymoveJobById(@RequestParam("id") Long id) { |
|
|
|
InventorymoveJobMainDO inventorymoveJobMain = inventorymoveJobMainService.getInventorymoveJobMain(id); |
|
|
|
InventorymoveJobMainRespVO result = InventorymoveJobMainConvert.INSTANCE.convert(inventorymoveJobMain); |
|
|
|
if(result==null) { |
|
|
|
return success(result); |
|
|
|
}; |
|
|
|
InventorymoveJobDetailExportReqVO exportReqVO = new InventorymoveJobDetailExportReqVO(); |
|
|
|
exportReqVO.setMasterId(result.getId()); |
|
|
|
List<InventorymoveJobDetailDO> inventorymoveJobDetailList = inventorymoveJobDetailService.getInventorymoveJobDetailList(exportReqVO); |
|
|
|
List<InventorymoveJobDetailExcelVO> inventorymoveJobDetailExcelVOS = InventorymoveJobDetailConvert.INSTANCE.convertList02(inventorymoveJobDetailList); |
|
|
|
result.setSubList(inventorymoveJobDetailExcelVOS); |
|
|
|
return success(result); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|