17 changed files with 616 additions and 1 deletions
@ -0,0 +1,35 @@ |
|||
package org.nl.wms.st.outbill.rest; |
|||
|
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.nl.modules.logging.annotation.Log; |
|||
import org.nl.wms.st.outbill.service.CheckOutBillService; |
|||
import org.nl.wms.st.outbill.service.dto.OutBillDtlQueryParam; |
|||
import org.nl.wms.st.outbill.service.dto.OutBillTaskParam; |
|||
import org.springframework.http.HttpStatus; |
|||
import org.springframework.http.ResponseEntity; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @Author: lyd |
|||
* @Date: 2025/6/11 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/api/checkoutbill") |
|||
@Slf4j |
|||
public class CheckOutBillController { |
|||
@Resource |
|||
private CheckOutBillService checkOutBillService; |
|||
@GetMapping("/getOutBillDtl") |
|||
@Log("查询出库明细") |
|||
public ResponseEntity<Object> getOutBillDtl(OutBillDtlQueryParam param) { |
|||
return new ResponseEntity<>(checkOutBillService.getOutBillDtl(param), HttpStatus.OK); |
|||
} |
|||
@PostMapping("/getOutBillTask2") |
|||
@Log("详情查询出库单分配任务2") |
|||
public ResponseEntity<Object> getOutBillTask2(@RequestBody OutBillTaskParam param) { |
|||
return new ResponseEntity<>(checkOutBillService.getOutBillTask2(param), HttpStatus.OK); |
|||
} |
|||
} |
@ -0,0 +1,28 @@ |
|||
package org.nl.wms.st.outbill.service; |
|||
|
|||
import org.nl.wms.st.outbill.service.dto.OutBillDtlQueryParam; |
|||
import org.nl.wms.st.outbill.service.dto.OutBillTaskParam; |
|||
import org.nl.wms.st.outbill.service.vo.OutBillDtlVo; |
|||
import org.nl.wms.st.outbill.service.vo.OutBillTaskVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author: lyd |
|||
* @Date: 2025/6/11 |
|||
*/ |
|||
public interface CheckOutBillService { |
|||
/** |
|||
* 查询出库明细 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
List<OutBillDtlVo> getOutBillDtl(OutBillDtlQueryParam param); |
|||
|
|||
/** |
|||
* 详情查询出库单分配任务2 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
List<OutBillTaskVo> getOutBillTask2(OutBillTaskParam param); |
|||
} |
@ -0,0 +1,19 @@ |
|||
package org.nl.wms.st.outbill.service.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 出库单明细查询参数类 |
|||
* @Author: lyd |
|||
* @Date: 2025/6/11 |
|||
*/ |
|||
@Data |
|||
public class OutBillDtlQueryParam implements Serializable { |
|||
private String iostorinv_id; |
|||
private String iostorinvdtl_id; |
|||
private String bill_status; |
|||
private String unassign_flag; |
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package org.nl.wms.st.outbill.service.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 出库单任务查询参数 |
|||
* @Author: lyd |
|||
* @Date: 2025/6/11 |
|||
*/ |
|||
@Data |
|||
public class OutBillTaskParam implements Serializable { |
|||
private String iostorinvdtl_id; |
|||
private String iostorinv_id; |
|||
private String is_issued; |
|||
private String struct_id; |
|||
} |
@ -0,0 +1,36 @@ |
|||
package org.nl.wms.st.outbill.service.impl; |
|||
|
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.nl.b_lms.storage_manage.ios.service.iostorInv.IStIvtIostorinvdisService; |
|||
import org.nl.b_lms.storage_manage.ios.service.iostorInv.IStIvtIostorinvdtlService; |
|||
import org.nl.wms.st.outbill.service.CheckOutBillService; |
|||
import org.nl.wms.st.outbill.service.dto.OutBillDtlQueryParam; |
|||
import org.nl.wms.st.outbill.service.dto.OutBillTaskParam; |
|||
import org.nl.wms.st.outbill.service.vo.OutBillDtlVo; |
|||
import org.nl.wms.st.outbill.service.vo.OutBillTaskVo; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author: lyd |
|||
* @Date: 2025/6/11 |
|||
*/ |
|||
@Service |
|||
@Slf4j |
|||
public class CheckOutBillServiceImpl implements CheckOutBillService { |
|||
@Autowired |
|||
private IStIvtIostorinvdtlService iostorinvdtlService; |
|||
@Autowired |
|||
private IStIvtIostorinvdisService iostorinvdisService; |
|||
@Override |
|||
public List<OutBillDtlVo> getOutBillDtl(OutBillDtlQueryParam param) { |
|||
return iostorinvdtlService.getOutBillDtl(param); |
|||
} |
|||
|
|||
@Override |
|||
public List<OutBillTaskVo> getOutBillTask2(OutBillTaskParam param) { |
|||
return iostorinvdisService.getOutBillTask2(param); |
|||
} |
|||
} |
@ -0,0 +1,150 @@ |
|||
package org.nl.wms.st.outbill.service.vo; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 出库单明细vo实体 |
|||
* @Author: lyd |
|||
* @Date: 2025/6/11 |
|||
*/ |
|||
@Data |
|||
public class OutBillDtlVo implements Serializable { |
|||
/** |
|||
* 出入单明细标识 |
|||
*/ |
|||
private String iostorinvdtl_id; |
|||
|
|||
/** |
|||
* 出入单标识 |
|||
*/ |
|||
private String iostorinv_id; |
|||
|
|||
/** |
|||
* 明细序号 |
|||
*/ |
|||
private BigDecimal seq_no; |
|||
|
|||
/** |
|||
* 物料标识 |
|||
*/ |
|||
private Long material_id; |
|||
|
|||
/** |
|||
* 批次 |
|||
*/ |
|||
private String pcsn; |
|||
|
|||
/** |
|||
* 品质类型 |
|||
*/ |
|||
private String quality_scode; |
|||
|
|||
/** |
|||
* 单据明细状态 |
|||
*/ |
|||
private String bill_status; |
|||
|
|||
/** |
|||
* 数量计量单位标识 |
|||
*/ |
|||
private Long qty_unit_id; |
|||
|
|||
/** |
|||
* 数量计量单位名称 |
|||
*/ |
|||
private String qty_unit_name; |
|||
|
|||
/** |
|||
* 计划数量 |
|||
*/ |
|||
private BigDecimal plan_qty; |
|||
|
|||
/** |
|||
* 实际数量 |
|||
*/ |
|||
private BigDecimal real_qty; |
|||
|
|||
/** |
|||
* 来源单据明细标识 |
|||
*/ |
|||
private Long source_billdtl_id; |
|||
|
|||
/** |
|||
* 来源单据类型 |
|||
*/ |
|||
private String source_bill_type; |
|||
|
|||
/** |
|||
* 来源单编号 |
|||
*/ |
|||
private String source_bill_code; |
|||
|
|||
/** |
|||
* 来源单表名 |
|||
*/ |
|||
private String source_bill_table; |
|||
|
|||
/** |
|||
* 基础单据明细标识 |
|||
*/ |
|||
private Long base_billdtl_id; |
|||
|
|||
/** |
|||
* 基础单据类型 |
|||
*/ |
|||
private String base_bill_type; |
|||
|
|||
/** |
|||
* 基础单编号 |
|||
*/ |
|||
private String base_bill_code; |
|||
|
|||
/** |
|||
* 基础单表名 |
|||
*/ |
|||
private String base_bill_table; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
|
|||
/** |
|||
* 已分配数量 |
|||
*/ |
|||
private BigDecimal assign_qty; |
|||
|
|||
/** |
|||
* 未分配数量 |
|||
*/ |
|||
private BigDecimal unassign_qty; |
|||
|
|||
/** |
|||
* 箱号 |
|||
*/ |
|||
private String box_no; |
|||
|
|||
/** |
|||
* 来源交货单 |
|||
*/ |
|||
private String vbeln; |
|||
|
|||
/** |
|||
* 来源交货单行 |
|||
*/ |
|||
private String posnr; |
|||
|
|||
/** |
|||
* 发货幅宽 |
|||
*/ |
|||
private String width; |
|||
private String bill_code; |
|||
private String material_code; |
|||
private String material_name; |
|||
private String material_spec; |
|||
private String material_model; |
|||
private String sap_pcsn; |
|||
} |
@ -0,0 +1,155 @@ |
|||
package org.nl.wms.st.outbill.service.vo; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 出库单任务vo |
|||
* @Author: lyd |
|||
* @Date: 2025/6/11 |
|||
*/ |
|||
@Data |
|||
public class OutBillTaskVo implements Serializable { |
|||
/** |
|||
* 出入单分配标识 |
|||
*/ |
|||
private String iostorinvdis_id; |
|||
|
|||
/** |
|||
* 出入单标识 |
|||
*/ |
|||
private String iostorinv_id; |
|||
|
|||
/** |
|||
* 出入单明细标识 |
|||
*/ |
|||
private String iostorinvdtl_id; |
|||
|
|||
/** |
|||
* 明细序号 |
|||
*/ |
|||
private BigDecimal seq_no; |
|||
|
|||
/** |
|||
* 库区标识 |
|||
*/ |
|||
private String sect_id; |
|||
|
|||
/** |
|||
* 库区编码 |
|||
*/ |
|||
private String sect_code; |
|||
|
|||
/** |
|||
* 库区名称 |
|||
*/ |
|||
private String sect_name; |
|||
|
|||
/** |
|||
* 仓位标识 |
|||
*/ |
|||
private String struct_id; |
|||
|
|||
/** |
|||
* 仓位编码 |
|||
*/ |
|||
private String struct_code; |
|||
|
|||
/** |
|||
* 仓位名称 |
|||
*/ |
|||
private String struct_name; |
|||
|
|||
/** |
|||
* 物料标识 |
|||
*/ |
|||
private String material_id; |
|||
|
|||
/** |
|||
* 批次 |
|||
*/ |
|||
private String pcsn; |
|||
|
|||
/** |
|||
* 品质类型 |
|||
*/ |
|||
private String quality_scode; |
|||
|
|||
/** |
|||
* 执行状态 |
|||
*/ |
|||
private String work_status; |
|||
|
|||
/** |
|||
* 任务标识 |
|||
*/ |
|||
private String task_id; |
|||
|
|||
/** |
|||
* 存储载具标识 |
|||
*/ |
|||
private String storagevehicle_id; |
|||
|
|||
/** |
|||
* 存储载具编码 |
|||
*/ |
|||
private String storagevehicle_code; |
|||
|
|||
/** |
|||
* 是否已下发 |
|||
*/ |
|||
private String is_issued; |
|||
|
|||
/** |
|||
* 数量计量单位标识 |
|||
*/ |
|||
private String qty_unit_id; |
|||
|
|||
/** |
|||
* 数量计量单位名称 |
|||
*/ |
|||
private String qty_unit_name; |
|||
|
|||
/** |
|||
* 计划数量 |
|||
*/ |
|||
private BigDecimal plan_qty; |
|||
|
|||
/** |
|||
* 实际数量 |
|||
*/ |
|||
private BigDecimal real_qty; |
|||
|
|||
/** |
|||
* 出入点位标识 |
|||
*/ |
|||
private String point_id; |
|||
|
|||
/** |
|||
* 箱号 |
|||
*/ |
|||
private String box_no; |
|||
|
|||
/** |
|||
* 是否超期 |
|||
*/ |
|||
private String is_overdue; |
|||
|
|||
/** |
|||
* 入库时间 |
|||
*/ |
|||
private String instorage_time; |
|||
|
|||
/** |
|||
* 是否回传 |
|||
*/ |
|||
private String is_upload; |
|||
private String task_code; |
|||
private String task_type; |
|||
private String task_status; |
|||
private String sap_pcsn; |
|||
private String width_standard; |
|||
private String task_type_name; |
|||
} |
Loading…
Reference in new issue