| | |
| | | @TableField("pakin_pakout_status") |
| | | private Integer pakinPakoutStatus; |
| | | |
| | | /** |
| | | * 开票客户名称 |
| | | */ |
| | | @ApiModelProperty(value = "开票客户名称") |
| | | @TableField("kp_cstmr_name") |
| | | private String kpCstmrName; |
| | | |
| | | public Order() { |
| | | } |
| | | |
| | |
| | | this.pakinPakoutStatus = pakinPakoutStatus; |
| | | } |
| | | |
| | | public Order(String uuid, String orderNo, String orderTime, Long docType, String itemId, String itemName, String allotItemId, String defNumber, String number, Long cstmr, String cstmrName, String tel, String operMemb, Double totalFee, Double discount, Double discountFee, Double otherFee, Double actFee, Integer payType, String salesman, Integer accountDay, Integer postFeeType, Double postFee, Date payTime, Date sendTime, String shipName, String shipCode, Long settle, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo, Integer pakinPakoutStatus, String kpCstmrName) { |
| | | this.uuid = uuid; |
| | | this.orderNo = orderNo; |
| | | this.orderTime = orderTime; |
| | | this.docType = docType; |
| | | this.itemId = itemId; |
| | | this.itemName = itemName; |
| | | this.allotItemId = allotItemId; |
| | | this.defNumber = defNumber; |
| | | this.number = number; |
| | | this.cstmr = cstmr; |
| | | this.cstmrName = cstmrName; |
| | | this.tel = tel; |
| | | this.operMemb = operMemb; |
| | | this.totalFee = totalFee; |
| | | this.discount = discount; |
| | | this.discountFee = discountFee; |
| | | this.otherFee = otherFee; |
| | | this.actFee = actFee; |
| | | this.payType = payType; |
| | | this.salesman = salesman; |
| | | this.accountDay = accountDay; |
| | | this.postFeeType = postFeeType; |
| | | this.postFee = postFee; |
| | | this.payTime = payTime; |
| | | this.sendTime = sendTime; |
| | | this.shipName = shipName; |
| | | this.shipCode = shipCode; |
| | | this.settle = settle; |
| | | this.status = status; |
| | | this.createBy = createBy; |
| | | this.createTime = createTime; |
| | | this.updateBy = updateBy; |
| | | this.updateTime = updateTime; |
| | | this.memo = memo; |
| | | this.pakinPakoutStatus = pakinPakoutStatus; |
| | | this.kpCstmrName = kpCstmrName; |
| | | } |
| | | |
| | | public Order(Order order) { |
| | | this.uuid = order.getUuid(); |
| | | this.orderNo = order.getOrderNo(); |
| | |
| | | @TableField("pakin_pakout_status") |
| | | private Integer pakinPakoutStatus; |
| | | |
| | | /** |
| | | * 开票客户名称 |
| | | */ |
| | | @ApiModelProperty(value = "开票客户名称") |
| | | @TableField("kp_cstmr_name") |
| | | private String kpCstmrName; |
| | | |
| | | public OrderPakout() {} |
| | | |
| | | public OrderPakout(String uuid, String orderNo, String orderTime, Long docType, String itemId, String itemName, String allotItemId, String defNumber, String number, Long cstmr, String cstmrName, String tel, String operMemb, Double totalFee, Double discount, Double discountFee, Double otherFee, Double actFee, Integer payType, String salesman, Integer accountDay, Integer postFeeType, Double postFee, Date payTime, Date sendTime, String shipName, String shipCode, Long settle, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) { |
| | |
| | | @TableField("box_type3") |
| | | private String boxType3 = ""; |
| | | |
| | | /** |
| | | * 库存 |
| | | */ |
| | | @ApiModelProperty(value = "库存") |
| | | @TableField("stock_num") |
| | | private Double stockNum; |
| | | |
| | | /** |
| | | * 开票客户名称 |
| | | */ |
| | | @ApiModelProperty(value = "开票客户名称") |
| | | @TableField("kp_cstmr_name") |
| | | private String kpCstmrName; |
| | | |
| | | /** |
| | | * 辅库存 |
| | | */ |
| | | @ApiModelProperty(value = "辅库存") |
| | | @TableField("stock_num2") |
| | | private Double stockNum2; |
| | | |
| | | public String getIoTime$() { |
| | | if (Cools.isEmpty(this.ioTime)) { |
| | | return ""; |
| | |
| | | @TableField("box_type3") |
| | | private String boxType3 = ""; |
| | | |
| | | /** |
| | | * 库存 |
| | | */ |
| | | @ApiModelProperty(value = "库存") |
| | | @TableField("stock_num") |
| | | private Double stockNum; |
| | | |
| | | /** |
| | | * 开票客户名称 |
| | | */ |
| | | @ApiModelProperty(value = "开票客户名称") |
| | | @TableField("kp_cstmr_name") |
| | | private String kpCstmrName; |
| | | |
| | | /** |
| | | * 辅库存 |
| | | */ |
| | | @ApiModelProperty(value = "辅库存") |
| | | @TableField("stock_num2") |
| | | private Double stockNum2; |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | return ""; |
| | |
| | | |
| | | private String cstmrName; |
| | | |
| | | private String kpCstmrName; |
| | | |
| | | |
| | | // public static void main(String[] args) { |
| | | // OpenOrderPakoutParam param = new OpenOrderPakoutParam(); |
| | |
| | | DetlDto one = DetlDto.findDto(detlDtos, detlDto); |
| | | assert one != null; |
| | | one.setAnfme(one.getAnfme() + detlDto.getAnfme()); |
| | | one.setWeight(one.getWeight() + detlDto.getWeight()); |
| | | } else { |
| | | detlDtos.add(detlDto); |
| | | } |
| | |
| | | DetlDto one = DetlDto.findDto(detlDtos, detlDto); |
| | | assert one != null; |
| | | one.setAnfme(one.getAnfme() + detlDto.getAnfme()); |
| | | one.setWeight(one.getWeight() + detlDto.getWeight()); |
| | | } else { |
| | | detlDtos.add(detlDto); |
| | | } |
| | |
| | | 9527L, // 修改人员 |
| | | now, // 修改时间 |
| | | null, // 备注 |
| | | 1 |
| | | 1, |
| | | null |
| | | ); |
| | | |
| | | if (!orderService.insert(order)) { |
| | |
| | | 9527L, // 修改人员 |
| | | now, // 修改时间 |
| | | null, // 备注 |
| | | 2 |
| | | 2, |
| | | param.getKpCstmrName() |
| | | ); |
| | | if (!orderService.insert(order)) { |
| | | throw new CoolException("生成单据主档失败,请联系管理员"); |
| | |
| | | , locDto.getStandby1(), locDto.getStandby2(), locDto.getStandby3(), locDto.getBoxType1(), locDto.getBoxType2(), locDto.getBoxType3()); |
| | | |
| | | } |
| | | |
| | | Wrapper<LocDetl> wrapper = new EntityWrapper<LocDetl>() |
| | | .eq("loc_no", wrkMast.getSourceLocNo()) |
| | | .eq("matnr", orderDetlPakout.getMatnr()); |
| | | if (!Cools.isEmpty(locDto.getBatch())) { |
| | | wrapper.eq("batch", locDto.getBatch()); |
| | | } |
| | | if (!Cools.isEmpty(orderDetlPakout.getSpecs())) { |
| | | wrapper.eq("specs", orderDetlPakout.getSpecs()); |
| | | } |
| | | |
| | | LocDetl locDetl = locDetlService.selectOne(wrapper); |
| | | |
| | | WrkDetl wrkDetl = new WrkDetl(); |
| | | wrkDetl.sync(orderDetlPakout); |
| | | wrkDetl.setZpallet(wrkMast.getBarcode()); |
| | |
| | | wrkDetl.setModiUser(userId); |
| | | wrkDetl.setThreeCode(orderDetlPakout.getId() + ""); |
| | | wrkDetl.setSupp(orderPakout.getCstmrName()); |
| | | wrkDetl.setStockNum(locDetl.getAnfme());//库存 |
| | | wrkDetl.setStockNum2(locDetl.getWeight());//辅库存 |
| | | wrkDetl.setKpCstmrName(orderPakout.getKpCstmrName()); |
| | | |
| | | //计算辅数量 |
| | | Double weight = MatUtils.calcWeight(wrkDetl.getMatnr(), wrkDetl.getAnfme()); |
| | |
| | | */ |
| | | private String fhckmc; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private String kpkhbm; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private String kpkhmc; |
| | | |
| | | @Override |
| | | public boolean equals(Object that) { |
| | | if (this == that) { |
| | |
| | | nccSaleXsfhmxWms.setWmsFlag(1); |
| | | param.setOrderNo(nccSaleXsfhmxWms.getVbillcode() + "-" + size); |
| | | param.setCstmrName(nccSaleXsfhmxWms.getKhmc()); |
| | | param.setKpCstmrName(nccSaleXsfhmxWms.getKpkhmc()); |
| | | } |
| | | param.setOrderDetails(orderDetails); |
| | | openService.pakoutOrderCreate(param); |
| | |
| | | <result column="memo" property="memo" /> |
| | | <result column="move_status" property="moveStatus" /> |
| | | <result column="pakin_pakout_status" property="pakinPakoutStatus" /> |
| | | <result column="kp_cstmr_name" property="kpCstmrName" /> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | <result column="memo" property="memo" /> |
| | | <result column="move_status" property="moveStatus" /> |
| | | <result column="pakin_pakout_status" property="pakinPakoutStatus" /> |
| | | <result column="kp_cstmr_name" property="kpCstmrName" /> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | <result column="box_type1" property="boxType1" /> |
| | | <result column="box_type2" property="boxType2" /> |
| | | <result column="box_type3" property="boxType3" /> |
| | | <result column="stock_num" property="stockNum" /> |
| | | <result column="kp_cstmr_name" property="kpCstmrName" /> |
| | | <result column="stock_num2" property="stockNum2" /> |
| | | </resultMap> |
| | | |
| | | <sql id="batchSeq"> |
| | |
| | | <result column="box_type1" property="boxType1" /> |
| | | <result column="box_type2" property="boxType2" /> |
| | | <result column="box_type3" property="boxType3" /> |
| | | <result column="stock_num" property="stockNum" /> |
| | | <result column="kp_cstmr_name" property="kpCstmrName" /> |
| | | <result column="stock_num2" property="stockNum2" /> |
| | | </resultMap> |
| | | |
| | | <sql id="batchSeq"> |
| | |
| | | <result property="kczzmc" column="KCZZMC" /> |
| | | <result property="vnote" column="VNOTE" /> |
| | | <result property="wmsFlag" column="wms_flag" /> |
| | | <result property="kpkhbm" column="KPKHBM" /> |
| | | <result property="kpkhmc" column="KPKHMC" /> |
| | | <result property="wmsMemo" column="wms_memo" /> |
| | | </resultMap> |
| | | |