src/main/java/com/zy/asrs/entity/Order.java
@@ -221,6 +221,12 @@ private Long settle; /** * 步序 */ @ApiModelProperty(value= "步序") private Integer step; /** * 状态 1: 正常 0: 禁用 */ @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ") src/main/java/com/zy/asrs/mapper/OrderMapper.java
@@ -14,6 +14,9 @@ int updateSettle(@Param("orderId")Long orderId, @Param("settle")Long settle, @Param("userId")Long userId); int updateSettleStep(@Param("orderId")Long orderId, @Param("settle")Long settle, @Param("userId")Long userId, @Param("step")Integer step); List<Order> selectComplete(); List<Order> selectComplete1(); List<Order> selectComplete99(); src/main/java/com/zy/asrs/service/OrderService.java
@@ -18,6 +18,8 @@ boolean updateSettle(Long orderId, Long settle, Long userId); boolean updateSettleStep(Long orderId, Long settle, Long userId, Integer step); void checkComplete(String orderNo); boolean saveHandlerOrder(Boolean pakin, WrkMast wrkMast, List<WrkDetl> wrkDetls); src/main/java/com/zy/asrs/service/impl/OrderServiceImpl.java
@@ -66,6 +66,11 @@ } @Override public boolean updateSettleStep(Long orderId, Long settle, Long userId, Integer step) { return this.baseMapper.updateSettleStep(orderId, settle, userId,step) > 0; } @Override public void checkComplete(String orderNo) { Order order = this.selectByNo(orderNo); if (Cools.isEmpty(order) || order.getSettle() >= 4L) { src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java
@@ -10,12 +10,10 @@ import com.zy.asrs.service.ApiLogService; import com.zy.asrs.service.OrderService; import com.zy.asrs.service.ReportToThirdService; import com.zy.common.utils.Synchro; import com.zy.nc.SendUtil; import com.zy.nc.entity.NccSaleXsfhmxWms; import com.zy.nc.util.NcResultMessage; import com.zy.nc.vo.SaleOutBodyVO; import com.zy.nc.vo.SaleOutHeadVO; import com.zy.nc.vo.*; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; @@ -48,65 +46,101 @@ @Override public void report(Order order, List<OrderDetl> orderDetls, DocType docType) { Boolean http = false; int step = (Cools.isEmpty(order.getStep()) || order.getStep() == 0) ? 0 : order.getStep(); NcResultMessage response = null; Object process1 = null; Object process2 = null; Object process3 = null; try { switch (order.getDocType().toString()) { case "35": //组装对象数据 Map<String, Object> data = new HashMap<String, Object>(); SaleOutHeadVO saleOutHeadVO = new SaleOutHeadVO(); saleOutHeadVO.setPk_org("FYT"); saleOutHeadVO.setCwarehouseid("6101"); SaleOutBodyVO saleOutBodyVO = null; List<SaleOutBodyVO> saleOutBodyVOList = new ArrayList<>(); for (OrderDetl orderDetl : orderDetls) { saleOutBodyVO = new SaleOutBodyVO(); String remark = orderDetl.getRemark(); if (!Cools.isEmpty(remark)) { NccSaleXsfhmxWms nccSaleXsfhmxWms = JSONObject.parseObject(remark, NccSaleXsfhmxWms.class); saleOutBodyVO.setCsourcetype("4331"); saleOutBodyVO.setClocationid("610101"); saleOutBodyVO.setCsourcebillbid(nccSaleXsfhmxWms.getCdeliverybid()); saleOutBodyVO.setCsourcebillhid(nccSaleXsfhmxWms.getCdeliveryid()); saleOutHeadVO.setVdef2(nccSaleXsfhmxWms.getVdef2()); saleOutHeadVO.setVdef3(nccSaleXsfhmxWms.getVdef3()); saleOutHeadVO.setVdef4(nccSaleXsfhmxWms.getVdef4()); saleOutHeadVO.setVdef7(nccSaleXsfhmxWms.getVdef7()); saleOutHeadVO.setVdef8(nccSaleXsfhmxWms.getVdef8()); saleOutHeadVO.setVdef13(nccSaleXsfhmxWms.getVdef13()); saleOutHeadVO.setVdef14(nccSaleXsfhmxWms.getVdef14()); } saleOutBodyVO.setVbatchcode(orderDetl.getBatch()); saleOutBodyVO.setNshouldnum(orderDetl.getAnfme()); saleOutBodyVO.setNnum(orderDetl.getQty()); saleOutBodyVOList.add(saleOutBodyVO); } data.put("SaleOutHeadVO", saleOutHeadVO); data.put("SaleOutBodyVO", saleOutBodyVOList); switch (order.getDocType$().toString()) { case "销售发货": process1 = processXSFH(orderDetls); //发送请求 response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, saveRefDelivery, JSONObject.toJSONString(data)); response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, saveRefDelivery, JSONObject.toJSONString(process1)); if (!Cools.isEmpty(response) && response.isSuccess()) { log.info("response:{}", response); http = true; step = 10; } break; case "产成品入库": case "转库": process1 = processQTRK(orderDetls); //发送请求 response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, saveRefDelivery, JSONObject.toJSONString(process1)); if (!Cools.isEmpty(response) && response.isSuccess()) { log.info("response:{}", response); step = 10; } break; case "辅料采购入库": case "采购到货": process1 = processCGDH(orderDetls); //发送请求 response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, saveRefDelivery, JSONObject.toJSONString(process1)); if (!Cools.isEmpty(response) && response.isSuccess()) { log.info("response:{}", response); step = 10; } break; case "辅料及成品转库": case "产成品入库单": if (step == 2) { process3 = processQTRK(orderDetls); //发送请求 response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, saveRefDelivery, JSONObject.toJSONString(process3)); if (!Cools.isEmpty(response) && response.isSuccess()) { log.info("response:{}", response); step = 10; } } else if (step == 1) { process2 = processGENERALOUT(orderDetls); //发送请求 response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, saveRefDelivery, JSONObject.toJSONString(process2)); if (!Cools.isEmpty(response) && response.isSuccess()) { log.info("response:{}", response); step = 2; } process3 = processQTRK(orderDetls); //发送请求 response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, saveRefDelivery, JSONObject.toJSONString(process3)); if (!Cools.isEmpty(response) && response.isSuccess()) { log.info("response:{}", response); step = 10; } } else if (step == 0) { process1 = processZK(orderDetls); //发送请求 response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, saveRefDelivery, JSONObject.toJSONString(process1)); if (!Cools.isEmpty(response) && response.isSuccess()) { log.info("response:{}", response); step = 1; } process2 = processGENERALOUT(orderDetls); //发送请求 response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, saveRefDelivery, JSONObject.toJSONString(process2)); if (!Cools.isEmpty(response) && response.isSuccess()) { log.info("response:{}", response); step = 2; } process3 = processQTRK(orderDetls); //发送请求 response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, saveRefDelivery, JSONObject.toJSONString(process3)); if (!Cools.isEmpty(response) && response.isSuccess()) { log.info("response:{}", response); step = 10; } } break; case "自动包装入库": break; case "内部调拨": break; // case "内部调拨": // break; default: break; throw new CoolException("不能识别的单据类型"); } if (http) { if (step == 10) { // 修改订单状态 4.完成 ===>> 6.已上报 if (!orderService.updateSettle(order.getId(), 6L, null)) { throw new CoolException("服务器内部错误,请联系管理员"); } } else if (step != 0) { // 修改订单状态 做标记 if (!orderService.updateSettleStep(order.getId(), 6L, null, step)) { throw new CoolException("服务器内部错误,请联系管理员"); } } @@ -119,6 +153,161 @@ } private Object processXSFH(List<OrderDetl> orderDetls) { //组装对象数据 Map<String, Object> data = new HashMap<String, Object>(); SaleOutHeadVO saleOutHeadVO = new SaleOutHeadVO(); saleOutHeadVO.setPk_org("FYT"); saleOutHeadVO.setCwarehouseid("6101"); SaleOutBodyVO saleOutBodyVO = null; List<SaleOutBodyVO> saleOutBodyVOList = new ArrayList<>(); for (OrderDetl orderDetl : orderDetls) { saleOutBodyVO = new SaleOutBodyVO(); String remark = orderDetl.getRemark(); if (!Cools.isEmpty(remark)) { NccSaleXsfhmxWms nccSaleXsfhmxWms = JSONObject.parseObject(remark, NccSaleXsfhmxWms.class); saleOutBodyVO.setCsourcetype("4331"); saleOutBodyVO.setClocationid("610101"); saleOutBodyVO.setCsourcebillbid(nccSaleXsfhmxWms.getCdeliverybid()); saleOutBodyVO.setCsourcebillhid(nccSaleXsfhmxWms.getCdeliveryid()); saleOutHeadVO.setVdef2(nccSaleXsfhmxWms.getVdef2()); saleOutHeadVO.setVdef3(nccSaleXsfhmxWms.getVdef3()); saleOutHeadVO.setVdef4(nccSaleXsfhmxWms.getVdef4()); saleOutHeadVO.setVdef7(nccSaleXsfhmxWms.getVdef7()); saleOutHeadVO.setVdef8(nccSaleXsfhmxWms.getVdef8()); saleOutHeadVO.setVdef13(nccSaleXsfhmxWms.getVdef13()); saleOutHeadVO.setVdef14(nccSaleXsfhmxWms.getVdef14()); } saleOutBodyVO.setVbatchcode(orderDetl.getBatch()); saleOutBodyVO.setNshouldnum(orderDetl.getAnfme()); saleOutBodyVO.setNnum(orderDetl.getQty()); saleOutBodyVOList.add(saleOutBodyVO); } data.put("SaleOutHeadVO", saleOutHeadVO); data.put("SaleOutBodyVO", saleOutBodyVOList); return data; } private Object processQTRK(List<OrderDetl> orderDetls) { //组装对象数据 Map<String, Object> data = new HashMap<String, Object>(); GeneralInHeadVO generalInHeadVO = new GeneralInHeadVO(); generalInHeadVO.setPk_org("FYT"); generalInHeadVO.setCwarehouseid("6101"); GeneralInBodyVO generalInBodyVO = null; List<GeneralInBodyVO> generalInBodyVOS = new ArrayList<>(); for (OrderDetl orderDetl : orderDetls) { generalInBodyVO = new GeneralInBodyVO(); String remark = orderDetl.getRemark(); if (!Cools.isEmpty(remark)) { NccSaleXsfhmxWms nccSaleXsfhmxWms = JSONObject.parseObject(remark, NccSaleXsfhmxWms.class); generalInBodyVO.setCsourcetype("4331"); generalInBodyVO.setClocationid("610101"); generalInBodyVO.setCsourcebillbid(nccSaleXsfhmxWms.getCdeliverybid()); generalInBodyVO.setCsourcebillhid(nccSaleXsfhmxWms.getCdeliveryid()); generalInBodyVO.setNnum(orderDetl.getQty()); generalInBodyVO.setVbatchcode(orderDetl.getBatch()); generalInBodyVO.setCmaterialoid(orderDetl.getMatnr()); } generalInBodyVOS.add(generalInBodyVO); } data.put("GeneralInHeadVO", generalInHeadVO); data.put("GeneralInBodyVO", generalInBodyVOS); return data; } private Object processZK(List<OrderDetl> orderDetls) { //组装对象数据 Map<String, Object> data = new HashMap<String, Object>(); WhsTransBillHeaderVO whsTransBillHeaderVO = new WhsTransBillHeaderVO(); whsTransBillHeaderVO.setPk_org("FYT"); whsTransBillHeaderVO.setCwarehouseid("6101"); WhsTransBillBodyVO whsTransBillBodyVO = null; List<WhsTransBillBodyVO> whsTransBillBodyVOS = new ArrayList<>(); for (OrderDetl orderDetl : orderDetls) { whsTransBillBodyVO = new WhsTransBillBodyVO(); String remark = orderDetl.getRemark(); if (!Cools.isEmpty(remark)) { NccSaleXsfhmxWms nccSaleXsfhmxWms = JSONObject.parseObject(remark, NccSaleXsfhmxWms.class); whsTransBillBodyVO.setCsourcetype("4331"); whsTransBillBodyVO.setClocationid("610101"); whsTransBillBodyVO.setCsourcebillbid(nccSaleXsfhmxWms.getCdeliverybid()); whsTransBillBodyVO.setCsourcebillhid(nccSaleXsfhmxWms.getCdeliveryid()); whsTransBillBodyVO.setNnum(orderDetl.getQty()); whsTransBillBodyVO.setVbatchcode(orderDetl.getBatch()); whsTransBillBodyVO.setCmaterialoid(orderDetl.getMatnr()); } whsTransBillBodyVOS.add(whsTransBillBodyVO); } data.put("WhsTransBillHeaderVO", whsTransBillHeaderVO); data.put("WhsTransBillBodyVO", whsTransBillBodyVOS); return data; } private Object processCGDH(List<OrderDetl> orderDetls) { //组装对象数据 Map<String, Object> data = new HashMap<String, Object>(); ic_purchasein_h ic_purchasein_h = new ic_purchasein_h(); ic_purchasein_h.setPk_org("FYT"); ic_purchasein_h.setCwarehouseid("6101"); ic_purchasein_b ic_purchasein_b = null; List<ic_purchasein_b> ic_purchasein_bs = new ArrayList<>(); for (OrderDetl orderDetl : orderDetls) { ic_purchasein_b = new ic_purchasein_b(); String remark = orderDetl.getRemark(); if (!Cools.isEmpty(remark)) { NccSaleXsfhmxWms nccSaleXsfhmxWms = JSONObject.parseObject(remark, NccSaleXsfhmxWms.class); ic_purchasein_b.setVdef2(nccSaleXsfhmxWms.getVdef2()); ic_purchasein_b.setVdef3(nccSaleXsfhmxWms.getVdef3()); ic_purchasein_b.setVdef4(nccSaleXsfhmxWms.getVdef4()); ic_purchasein_b.setVdef7(nccSaleXsfhmxWms.getVdef7()); ic_purchasein_b.setVdef8(nccSaleXsfhmxWms.getVdef8()); ic_purchasein_b.setVdef13(nccSaleXsfhmxWms.getVdef13()); ic_purchasein_b.setVdef14(nccSaleXsfhmxWms.getVdef14()); } ic_purchasein_bs.add(ic_purchasein_b); } data.put("ic_purchasein_h", ic_purchasein_h); data.put("ic_purchasein_b", ic_purchasein_b); return data; } /** * @param orderDetls * @return */ private Object processGENERALOUT(List<OrderDetl> orderDetls) { //组装对象数据 Map<String, Object> data = new HashMap<String, Object>(); ic_purchasein_h ic_purchasein_h = new ic_purchasein_h(); ic_purchasein_h.setPk_org("FYT"); ic_purchasein_h.setCwarehouseid("6101"); ic_purchasein_b ic_purchasein_b = null; List<ic_purchasein_b> ic_purchasein_bs = new ArrayList<>(); for (OrderDetl orderDetl : orderDetls) { ic_purchasein_b = new ic_purchasein_b(); String remark = orderDetl.getRemark(); if (!Cools.isEmpty(remark)) { NccSaleXsfhmxWms nccSaleXsfhmxWms = JSONObject.parseObject(remark, NccSaleXsfhmxWms.class); ic_purchasein_b.setVdef2(nccSaleXsfhmxWms.getVdef2()); ic_purchasein_b.setVdef3(nccSaleXsfhmxWms.getVdef3()); ic_purchasein_b.setVdef4(nccSaleXsfhmxWms.getVdef4()); ic_purchasein_b.setVdef7(nccSaleXsfhmxWms.getVdef7()); ic_purchasein_b.setVdef8(nccSaleXsfhmxWms.getVdef8()); ic_purchasein_b.setVdef13(nccSaleXsfhmxWms.getVdef13()); ic_purchasein_b.setVdef14(nccSaleXsfhmxWms.getVdef14()); } ic_purchasein_bs.add(ic_purchasein_b); } data.put("ic_purchasein_h", ic_purchasein_h); data.put("ic_purchasein_b", ic_purchasein_b); return data; } private Boolean reportApiLog(Object data, String docType, String url, String path) { String response = ""; boolean success = false; src/main/java/com/zy/nc/vo/GeneralInBodyVO.java
New file @@ -0,0 +1,617 @@ package com.zy.nc.vo; import lombok.Data; /** * 入库单表体实体类 */ @Data public class GeneralInBodyVO { /** * 来源单据表体主键(必填) */ private String csourcebillbid; /** * 来源单据主键(必填) */ private String csourcebillhid; /** * 来源单据类型(必填) */ private String csourcetype; /** * 实收主数量(必填) */ private Double nnum; /** * 应收主数量(必填) */ private Double nshouldnum; /** * 单据行是否条码关闭 */ private Boolean bbarcodeclose; /** * 批次是否封存 */ private Boolean bcseal; /** * 是否已传存货核算 */ private Boolean bhasiabill; /** * 是否在途 */ private Boolean bonroadflag; /** * 客户 */ private String casscustid; /** * 单位 */ private String castunitid; /** * 出入库类型 */ private String cbodytranstypecode; /** * 库存仓库 */ private String cbodywarehouseid; /** * 对应入库单表体主键 */ private String ccorrespondbid; /** * 对应入库单单据号 */ private String ccorrespondcode; /** * 对应入库单主键 */ private String ccorrespondhid; /** * 对应入库单行号 */ private String ccorrespondrowno; /** * 对应入库单交易类型 */ private String ccorrespondtranstype; /** * 对应入库单类型 */ private String ccorrespondtype; /** * 特征码 */ private String cffileid; /** * 源头单据表体主键 */ private String cfirstbillbid; /** * 源头单据表头主键 */ private String cfirstbillhid; /** * 源头单据交易类型 */ private String cfirsttranstype; /** * 源头单据类型 */ private String cfirsttype; /** * 入库单表体主键 */ private String cgeneralbid; /** * 入库利润中心 */ private String cliabilityoid; /** * 入库利润中心 */ private String cliabilityvid; /** * 货位 */ private String clocationid; /** * 物料 */ private String cmaterialoid; /** * 物料编码 */ private String cmaterialvid; /** * 公司最新版本 */ private String corpoid; /** * 公司 */ private String corpvid; /** * 生产厂商 */ private String cproductorid; /** * 项目 */ private String cprojectid; /** * 质量等级 */ private String cqualitylevelid; /** * 行号 */ private String crowno; /** * 选择拆解单位 */ private String cselastunitid; /** * 序列号质量等级 */ private String csnqualitylevelid; /** * 序列号单位 */ private String csnunitid; /** * 来源单据交易类型 */ private String csourcetranstype; /** * 其他来源单行主键 */ private String csrc2billbid; /** * 其他来源单主键 */ private String csrc2billhid; /** * 其他来源单据类型编码 */ private String csrc2billtype; /** * 其他来源交易类型编码 */ private String csrc2transtype; /** * 库存状态 */ private String cstateid; /** * 货主客户 */ private String ctplcustomerid; /** * 主单位 */ private String cunitid; /** * 供应商 */ private String cvendorid; /** * 寄存供应商 */ private String cvmivenderid; /** * 入库日期 */ private String dbizdate; /** * 首次入库日期 */ private String dinbounddate; /** * 生产日期 */ private String dproducedate; /** * 失效日期 */ private String dvalidate; /** * 批次版本号 */ private Integer ibcversion; /** * 拆解类型 */ private Integer idesatype; /** * 实收数量 */ private Double nassistnum; /** * 条码主数量 */ private Double nbarcodenum; /** * 累计出库数量 */ private Double ncorrespondastnum; /** * 累计出库毛重主数量 */ private Double ncorrespondgrsnum; /** * 累计出库主数量 */ private Double ncorrespondnum; /** * 金额 */ private Double ncostmny; /** * 单价 */ private Double ncostprice; /** * 箱数 */ private Double ncountnum; /** * 费用结算次数 */ private Integer nfeesettlecount; /** * 毛重主数量 */ private Double ngrossnum; /** * 件数 */ private Double npiece; /** * 计划金额 */ private Double nplannedmny; /** * 计划单价 */ private Double nplannedprice; /** * 应收数量 */ private Double nshouldassistnum; /** * 皮重主数量 */ private Double ntarenum; /** * 累计拣配主数量 */ private Double ntotalpicknum; /** * 体积 */ private Double nvolume; /** * 重量 */ private Double nweight; /** * 批次主键 */ private String pk_batchcode; /** * 集团 */ private String pk_group; /** * 计量器具 */ private String pk_measware; /** * 库存组织最新版本 */ private String pk_org; /** * 库存组织 */ private String pk_org_v; /** * 包装类型 */ private String pk_packsort; /** * 序列号主键 */ private String pk_serialcode; /** * 批次时间戳 */ private String tbcts; /** * 检验时间 */ private String tchecktime; /** * 来源表体时间戳 */ private String tsourcebodyts; /** * 来源表头时间戳 */ private String tsourceheadts; /** * 批次号 */ private String vbatchcode; /** * 批次备注 */ private String vbatchcodenote; // 批次自定义项(vbcdef1 - vbcdef20) private String vbcdef1; private String vbcdef2; private String vbcdef3; private String vbcdef4; private String vbcdef5; private String vbcdef6; private String vbcdef7; private String vbcdef8; private String vbcdef9; private String vbcdef10; private String vbcdef11; private String vbcdef12; private String vbcdef13; private String vbcdef14; private String vbcdef15; private String vbcdef16; private String vbcdef17; private String vbcdef18; private String vbcdef19; private String vbcdef20; // 表体自定义项(vbdef1 - vbdef20) private String vbdef1; private String vbdef2; private String vbdef3; private String vbdef4; private String vbdef5; private String vbdef6; private String vbdef7; private String vbdef8; private String vbdef9; private String vbdef10; private String vbdef11; private String vbdef12; private String vbdef13; private String vbdef14; private String vbdef15; private String vbdef16; private String vbdef17; private String vbdef18; private String vbdef19; private String vbdef20; /** * 单据条码 */ private String vbillbarcode; /** * 来自于零售之单据类型 */ private String vbilltypeu8rm; /** * 换算率 */ private String vchangerate; /** * 源头单据号 */ private String vfirstbillcode; /** * 源头单据行号 */ private String vfirstrowno; // 自由辅助属性(vfree1 - vfree10) private String vfree1; private String vfree2; private String vfree3; private String vfree4; private String vfree5; private String vfree6; private String vfree7; private String vfree8; private String vfree9; private String vfree10; /** * 行备注 */ private String vnotebody; /** * 序列号 */ private String vserialcode; // 序列号自定义项(vsndef1 - vsndef40) private String vsndef1; private String vsndef2; private String vsndef3; private String vsndef4; private String vsndef5; private String vsndef6; private String vsndef7; private String vsndef8; private String vsndef9; private String vsndef10; private String vsndef11; private String vsndef12; private String vsndef13; private String vsndef14; private String vsndef15; private String vsndef16; private String vsndef17; private String vsndef18; private String vsndef19; private String vsndef20; private String vsndef21; private String vsndef22; private String vsndef23; private String vsndef24; private String vsndef25; private String vsndef26; private String vsndef27; private String vsndef28; private String vsndef29; private String vsndef30; private String vsndef31; private String vsndef32; private String vsndef33; private String vsndef34; private String vsndef35; private String vsndef36; private String vsndef37; private String vsndef38; private String vsndef39; private String vsndef40; /** * 来源单据号 */ private String vsourcebillcode; /** * 来源单据行号 */ private String vsourcerowno; /** * 其他来源单据号 */ private String vsrc2billcode; /** * 其他来源单行号 */ private String vsrc2billrowno; /** * 收货车号 */ private String vtransfercode; /** * 来自于零售之交易类型 */ private String vtranstypeu8rm; /** * 运输工具号 */ private String vvehiclecode; /** * 供应商批次号 */ private String vvendbatchcode; } src/main/java/com/zy/nc/vo/GeneralInHeadVO.java
New file @@ -0,0 +1,205 @@ package com.zy.nc.vo; import lombok.Data; /** * 入库单实体类 */ @Data public class GeneralInHeadVO { /** * 库存组织最新版本(必填) */ private String pk_org; /** * 仓库(必填) */ private String cwarehouseid; /** * 签字人 */ private String approver; /** * 制单人 */ private String billmaker; /** * 业务员 */ private String cbizid; /** * 部门最新版本 */ private String cdptid; /** * 部门 */ private String cdptvid; /** * 入库单表头主键 */ private String cgeneralhid; /** * 公司最新版本 */ private String corpoid; /** * 公司 */ private String corpvid; /** * 出库库存组织 */ private String cothercalbodyoid; /** * 出库库存组织版本 */ private String cothercalbodyvid; /** * 出库仓库 */ private String cotherwhid; /** * 创建时间 */ private String creationtime; /** * 创建人 */ private String creator; /** * 出入库类型 */ private String ctrantypeid; /** * 库管员 */ private String cwhsmanagerid; /** * 单据日期 */ private String dbilldate; /** * 制单日期 */ private String dmakedate; /** * 单据状态 */ private Integer fbillflag; /** * 打印次数 */ private Integer iprintcount; /** * 最后修改时间 */ private String modifiedtime; /** * 最后修改人 */ private String modifier; /** * 总数量 */ private Double ntotalnum; /** * 总件数 */ private Double ntotalpiece; /** * 总体积 */ private Double ntotalvolume; /** * 总重量 */ private Double ntotalweight; /** * 集团 */ private String pk_group; /** * 计量器具 */ private String pk_measware; /** * 库存组织 */ private String pk_org_v; /** * 签字日期 */ private String taudittime; /** * 单据号 */ private String vbillcode; // 表头自定义项(vdef1 - vdef20) private String vdef1; private String vdef2; private String vdef3; private String vdef4; private String vdef5; private String vdef6; private String vdef7; private String vdef8; private String vdef9; private String vdef10; private String vdef11; private String vdef12; private String vdef13; private String vdef14; private String vdef15; private String vdef16; private String vdef17; private String vdef18; private String vdef19; private String vdef20; /** * 备注 */ private String vnote; /** * 出入库类型编码 */ private String vtrantypecode; } src/main/java/com/zy/nc/vo/WhsTransBillBodyVO.java
New file @@ -0,0 +1,337 @@ package com.zy.nc.vo; import lombok.Data; /** * 转库单表体实体类 */ @Data public class WhsTransBillBodyVO { /** * 客户 */ private String casscustid; /** * 单位 */ private String castunitid; /** * 库存仓库 */ private String cbodywarehouseid; /** * 特征码 */ private String cffileid; /** * 源头单据表体 */ private String cfirstbillbid; /** * 源头单据表头 */ private String cfirstbillhid; /** * 源头交易类型 */ private String cfirsttranstype; /** * 源头单据类型 */ private String cfirsttype; /** * 货位 */ private String clocationid; /** * 物料(必填) */ private String cmaterialoid; /** * 物料编码 */ private String cmaterialvid; /** * 公司最新版本 */ private String corpoid; /** * 公司 */ private String corpvid; /** * 生产厂商 */ private String cproductorid; /** * 项目 */ private String cprojectid; /** * 质量等级 */ private String cqualitylevelid; /** * 行号 */ private String crowno; /** * 来源单据表体行主键 */ private String csourcebillbid; /** * 来源单据表头主键 */ private String csourcebillhid; /** * 来源交易类型 */ private String csourcetranstype; /** * 来源单据类型 */ private String csourcetype; /** * 转库单表体主键 */ private String cspecialbid; /** * 库存状态 */ private String cstateid; /** * 货主客户 */ private String ctplcustomerid; /** * 主单位 */ private String cunitid; /** * 供应商 */ private String cvendorid; /** * 寄存供应商 */ private String cvmivenderid; /** * 生产日期 */ private String dproducedate; /** * 失效日期 */ private String dvalidate; /** * 应转数量 */ private Double nassistnum; /** * 金额 */ private Double ncostmny; /** * 单价 */ private Double ncostprice; /** * 应转出毛重数量 */ private Double ngrossnum; /** * 应转主数量(必填) */ private Double nnum; /** * 在途主数量 */ private Double nonroadnum; /** * 累计入库毛重数量 */ private Double ntransingrossnum; /** * 累计入库主数量 */ private Double ntransinnum; /** * 累计出库毛重数量 */ private Double ntransoutgrossnum; /** * 累计出库主数量 */ private Double ntransoutnum; /** * 批次主键 */ private String pk_batchcode; /** * 集团 */ private String pk_group; /** * 库存组织最新版本 */ private String pk_org; /** * 库存组织 */ private String pk_org_v; /** * 检验时间 */ private String tchecktime; /** * 批次号 */ private String vbatchcode; /** * 批次备注 */ private String vbatchcodenote; // 批次自定义项(vbcdef1 - vbcdef20) private String vbcdef1; private String vbcdef2; private String vbcdef3; private String vbcdef4; private String vbcdef5; private String vbcdef6; private String vbcdef7; private String vbcdef8; private String vbcdef9; private String vbcdef10; private String vbcdef11; private String vbcdef12; private String vbcdef13; private String vbcdef14; private String vbcdef15; private String vbcdef16; private String vbcdef17; private String vbcdef18; private String vbcdef19; private String vbcdef20; // 表体自定义项(vbdef1 - vbdef20) private String vbdef1; private String vbdef2; private String vbdef3; private String vbdef4; private String vbdef5; private String vbdef6; private String vbdef7; private String vbdef8; private String vbdef9; private String vbdef10; private String vbdef11; private String vbdef12; private String vbdef13; private String vbdef14; private String vbdef15; private String vbdef16; private String vbdef17; private String vbdef18; private String vbdef19; private String vbdef20; /** * 换算率 */ private String vchangerate; /** * 源头单据号 */ private String vfirstbillcode; /** * 源头单据行号 */ private String vfirstrowno; // 自由辅助属性(vfree1 - vfree10) private String vfree1; private String vfree2; private String vfree3; private String vfree4; private String vfree5; private String vfree6; private String vfree7; private String vfree8; private String vfree9; private String vfree10; /** * 行备注 */ private String vnotebody; /** * 来源单据号 */ private String vsourcebillcode; /** * 来源单据行号 */ private String vsourcerowno; /** * 供应商批次号 */ private String vvendorbatchcode; // 以下为getter和setter方法,构造函数等可以根据需求生成 } src/main/java/com/zy/nc/vo/WhsTransBillHeaderVO.java
New file @@ -0,0 +1,207 @@ package com.zy.nc.vo; import lombok.Data; /** * 转库单实体类 */ @Data public class WhsTransBillHeaderVO { /** * 审核人 */ private String approver; /** * 制单人 */ private String billmaker; /** * 待审批 */ private String bwaitaudit; /** * 转出人 */ private String cauditorid; /** * 出库业务员 */ private String cbizid; /** * 出库部门最新版本 */ private String cdptid; /** * 出库部门 */ private String cdptvid; /** * 公司最新版本 */ private String corpoid; /** * 公司 */ private String corpvid; /** * 入库业务员 */ private String cotherbizid; /** * 入库部门最新版本 */ private String cotherdptid; /** * 入库部门 */ private String cotherdptvid; /** * 入库仓库(必填) */ private String cotherwhid; /** * 创建时间 */ private String creationtime; /** * 创建人 */ private String creator; /** * 转库单主键 */ private String cspécialhid; /** * 转库类型(必填) */ private String ctrantypeid; /** * 出库仓库(必填) */ private String cwarehouseid; /** * 单据日期 */ private String dbilldate; /** * 制单日期 */ private String dmakedate; /** * 应到货日期 */ private String dshldarrivedate; /** * 应发货日期 */ private String dshlddiliverdate; /** * 单据状态 */ private Integer fbillflag; /** * 打印次数 */ private Integer iprintcount; /** * 是否退料 */ private String isbackdeliver; /** * 最后修改时间 */ private String modifiedtime; /** * 最后修改人 */ private String modifier; /** * 总数量 */ private Double ntotalnum; /** * 集团 */ private String pk_group; /** * 库存组织最新版本(必填) */ private String pk_org; /** * 库存组织 */ private String pk_org_v; /** * 审核日期 */ private String taudittime; /** * 转入人 */ private String vadjuster; /** * 单据号 */ private String vbillcode; /** * 表头自定义项1 */ private String vdef1; /** * 表头自定义项2 */ private String vdef2; // 此处省略了vdef3至vdef20的字段,根据需要添加 /** * 备注 */ private String vnote; /** * 转库类型编码 */ private String vtrantypecode; // 以下为getter和setter方法,构造函数等可以根据需求生成 } src/main/java/com/zy/nc/vo/ic_generalout_b.java
New file @@ -0,0 +1,4 @@ package com.zy.nc.vo; public class ic_generalout_b { } src/main/java/com/zy/nc/vo/ic_generalout_h.java
New file @@ -0,0 +1,859 @@ package com.zy.nc.vo; import lombok.Data; import java.util.Date; /** * 普通出库单表体实体类 */ @Data public class ic_generalout_h { /** * 库存组织最新版本(必填) */ private String pk_org; /** * 仓库(必填) */ private String cwarehouseid; /** * 签字人 */ private String approver; /** * 制单人 */ private String billmaker; /** * 业务员 */ private String cbizid; /** * 运输方式 */ private String cdilivertypeid; /** * 部门最新版本 */ private String cdptid; /** * 部门 */ private String cdptvid; /** * 普通出库单表体主键 */ private String cgeneralbid; /** * 普通出库单表头主键 */ private String cgeneralhid; /** * 公司最新版本 */ private String corpoid; /** * 公司 */ private String corpvid; /** * 入库库存组织最新版本 */ private String cothercalbodyoid; /** * 入库库存组织 */ private String cothercalbodyvid; /** * 入库仓库 */ private String cotherwhid; /** * 创建时间 */ private Date creationtime; /** * 创建人 */ private String creator; /** * 出入库类型 */ private String ctrantypeid; /** * 库管员 */ private String cwhsmanagerid; /** * 单据日期 */ private Date dbilldate; /** * 制单日期 */ private Date dmakedate; /** * 单据状态 */ private Boolean fbillflag; /** * 打印次数 */ private Integer iprintcount; /** * 最后修改时间 */ private Date modifiedtime; /** * 最后修改人 */ private String modifier; /** * 总数量 */ private Double ntotalnum; /** * 总件数 */ private Double ntotalpiece; /** * 总体积 */ private Double ntotalvolume; /** * 总重量 */ private Double ntotalweight; /** * 集团 */ private String pk_group; /** * 计量器具 */ private String pk_measware; /** * 库存组织 */ private String pk_org_v; /** * 签字日期 */ private Date taudittime; /** * 物流组织最新版本 */ private String trafficorgoid; /** * 物流组织 */ private String trafficorgvid; /** * 单据号 */ private String vbillcode; // 表头自定义项(vdef1 - vdef20) private String vdef1; private String vdef2; private String vdef3; private String vdef4; private String vdef5; private String vdef6; private String vdef7; private String vdef8; private String vdef9; private String vdef10; private String vdef11; private String vdef12; private String vdef13; private String vdef14; private String vdef15; private String vdef16; private String vdef17; private String vdef18; private String vdef19; private String vdef20; /** * 运输地址 */ private String vdiliveraddress; /** * 备注 */ private String vnote; /** * 出入库类型编码 */ private String vtrantypecode; /** * 物料编码(必填) */ private String cmaterialvid; /** * 货位(必填) */ private String clocationid; /** * 应发数量(必填) */ private Double nshouldassistnum; /** * 单据行是否条码关闭 */ private Boolean bbarcodeclose; /** * 是否在途 */ private Boolean bonroadflag; /** * 客户 */ private String casscustid; /** * 单位 */ private String castunitid; /** * 出入库类型 */ private String cbodytranstypecode; /** * 库存仓库 */ private String cbodywarehouseid; /** * 对应入库单表体主键 */ private String ccorrespondbid; /** * 对应入库单号 */ private String ccorrespondcode; /** * 对应入库单表头主键 */ private String ccorrespondhid; /** * 对应入库单行号 */ private String ccorrespondrowno; /** * 对应入库单交易类型 */ private String ccorrespondtranstype; /** * 对应入库单类型 */ private String ccorrespondtype; /** * 成本对象 */ private String ccostobject; /** * 特征码 */ private String cffileid; /** * 源头单据表体主键 */ private String cfirstbillbid; /** * 源头单据表头主键 */ private String cfirstbillhid; /** * 源头单据交易类型 */ private String cfirsttranstype; /** * 源头单据类型 */ private String cfirsttype; /** * 普通出库单货位单品表主键 */ private String cgenerallid; /** * 出库利润中心 */ private String cliabilityoid; /** * 出库利润中心 */ private String cliabilityvid; /** * 物料 */ private String cmaterialoid; /** * 成本要素 */ private String costclsidreason; /** * 生产厂商 */ private String cproductorid; /** * 项目 */ private String cprojectid; /** * 项目任务 */ private String cprojecttaskid; /** * 质量等级 */ private String cqualitylevelid; /** * 收货客户 */ private String creceieveid; /** * 收货地区 */ private String creceiveareaid; /** * 收货地点 */ private String creceivepointid; /** * 行号 */ private String crowno; /** * 选择拆解单位 */ private String cselastunitid; /** * 序列号质量等级 */ private String csnqualitylevelid; /** * 序列号单位 */ private String csnunitid; /** * 来源单据表体主键 */ private String csourcebillbid; /** * 来源单据表头主键 */ private String csourcebillhid; /** * 来源单据交易类型 */ private String csourcetranstype; /** * 来源单据类型 */ private String csourcetype; /** * 其他来源单行主键 */ private String csrc2billbid; /** * 其他来源单主键 */ private String csrc2billhid; /** * 其他来源单据类型编码 */ private String csrc2billtype; /** * 其他来源交易类型编码 */ private String csrc2transtype; /** * 库存状态 */ private String cstateid; /** * VMI汇总 */ private String csumid; /** * 货主客户 */ private String ctplcustomerid; /** * 主单位 */ private String cunitid; /** * 供应商 */ private String cvendorid; /** * 寄存供应商 */ private String cvmivenderid; /** * 出库日期 */ private Date dbizdate; /** * 首次入库日期 */ private Date dinbounddate; /** * 生产日期 */ private Date dproducedate; /** * 失效日期 */ private Date dvalidate; /** * 批次版本号 */ private Integer ibcversion; /** * 拆解类型 */ private Integer idesatype; /** * 累计汇总匹配主数量 */ private Double naccumvminum; /** * 实发数量 */ private Double nassistnum; /** * 条码数量 */ private Double nbarcodenum; /** * 累计出库数量 */ private Double ncorrespondastnum; /** * 累计出库毛重主数量 */ private Double ncorrespondgrsnum; /** * 累计出库主数量 */ private Double ncorrespondnum; /** * 金额 */ private Double ncostmny; /** * 单价 */ private Double ncostprice; /** * 箱数 */ private Double ncountnum; /** * 毛重主数量 */ private Double ngrossnum; /** * 实发主数量 */ private Double nnum; /** * 件数 */ private Double npiece; /** * 计划金额 */ private Double nplannedmny; /** * 计划单价 */ private Double nplannedprice; /** * 应发主数量 */ private Double nshouldnum; /** * 皮重主数量 */ private Double ntarenum; /** * 累计运输主数量 */ private Double ntotaltrannum; /** * 体积 */ private Double nvolume; /** * 重量 */ private Double nweight; /** * 批次主键 */ private String pk_batchcode; /** * 包装类型 */ private String pk_packsort; /** * 序列号主键 */ private String pk_serialcode; /** * 检验时间 */ private Date tchecktime; /** * 来源表体时间戳 */ private Date tsourcebodyts; /** * 来源表头时间戳 */ private Date tsourceheadts; /** * 批次号 */ private String vbatchcode; /** * 批次备注 */ private String vbatchcodenote; // 批次自定义项(vbcdef1 - vbcdef20) private String vbcdef1; private String vbcdef2; private String vbcdef3; private String vbcdef4; private String vbcdef5; private String vbcdef6; private String vbcdef7; private String vbcdef8; private String vbcdef9; private String vbcdef10; private String vbcdef11; private String vbcdef12; private String vbcdef13; private String vbcdef14; private String vbcdef15; private String vbcdef16; private String vbcdef17; private String vbcdef18; private String vbcdef19; private String vbcdef20; // 表体自定义项(vbdef1 - vbdef20) private String vbdef1; private String vbdef2; private String vbdef3; private String vbdef4; private String vbdef5; private String vbdef6; private String vbdef7; private String vbdef8; private String vbdef9; private String vbdef10; private String vbdef11; private String vbdef12; private String vbdef13; private String vbdef14; private String vbdef15; private String vbdef16; private String vbdef17; private String vbdef18; private String vbdef19; private String vbdef20; /** * 单据条码 */ private String vbillbarcode; /** * 来自于零售之单据类型 */ private String vbilltypeu8rm; /** * 换算率 */ private String vchangerate; /** * 紧急放行申请单行主键 */ private String vexigencybid; /** * 紧急放行申请单号 */ private String vexigencycode; /** * 紧急放行申请单主键 */ private String vexigencyhid; /** * 紧急放行申请单行号 */ private String vexigencyrowno; /** * 紧急放行单据类型 */ private String vexigencytype; /** * 源头单据号 */ private String vfirstbillcode; /** * 源头单据行号 */ private String vfirstrowno; // 自由辅助属性(vfree1 - vfree10) private String vfree1; private String vfree2; private String vfree3; private String vfree4; private String vfree5; private String vfree6; private String vfree7; private String vfree8; private String vfree9; private String vfree10; /** * 行备注 */ private String vnotebody; /** * 生产订单号 */ private String vproductbatch; /** * 收货地址 */ private String vreceiveaddress; /** * 序列号 */ private String vserialcode; // 序列号自定义项(vsndef1 - vsndef40) private String vsndef1; private String vsndef2; private String vsndef3; private String vsndef4; private String vsndef5; private String vsndef6; private String vsndef7; private String vsndef8; private String vsndef9; private String vsndef10; private String vsndef11; private String vsndef12; private String vsndef13; private String vsndef14; private String vsndef15; private String vsndef16; private String vsndef17; private String vsndef18; private String vsndef19; private String vsndef20; private String vsndef21; private String vsndef22; private String vsndef23; private String vsndef24; private String vsndef25; private String vsndef26; private String vsndef27; private String vsndef28; private String vsndef29; private String vsndef30; private String vsndef31; private String vsndef32; private String vsndef33; private String vsndef34; private String vsndef35; private String vsndef36; private String vsndef37; private String vsndef38; private String vsndef39; private String vsndef40; /** * 来源单据号 */ private String vsourcebillcode; /** * 来源单据行号 */ private String vsourcerowno; /** * 其他来源单据号 */ private String vsrc2billcode; /** * 其他来源单行号 */ private String vsrc2billrowno; /** * 收货车号 */ private String vtransfercode; /** * 来自于零售之交易类型 */ private String vtranstypeu8rm; /** * 运输工具号 */ private String vvehiclecode; /** * 供应商批次号 */ private String vvendbatchcode; } src/main/java/com/zy/nc/vo/ic_purchasein_b.java
New file @@ -0,0 +1,297 @@ package com.zy.nc.vo; import lombok.Data; import java.util.Date; /** * 入库单表体实体类 */ @Data public class ic_purchasein_b { /** * 库存组织最新版本(必填) */ private String pk_org; /** * 仓库(必填) */ private String cwarehouseid; /** * 签字人 */ private String approver; /** * 制单人 */ private String billmaker; /** * 进口入库单 */ private String bitinbill; /** * 三角贸易 */ private String btriatradeflag; /** * 采购员 */ private String cbizid; /** * 业务流程 */ private String cbiztype; /** * 结算成本域 */ private String ccostdomainid; /** * 收货客户 */ private String ccustomerid; /** * 采购部门最新版本 */ private String cdptid; /** * 采购部门 */ private String cdptvid; /** * 结算财务组织最新版本 */ private String cfanaceorgoid; /** * 结算财务组织 */ private String cfanaceorgvid; /** * 入库单表体主键 */ private String cgeneralbid; /** * 入库单表头主键 */ private String cgeneralhid; /** * 公司最新版本 */ private String corpoid; /** * 公司 */ private String corpvid; /** * 应付财务组织最新版本 */ private String cpayfinorgoid; /** * 应付财务组织 */ private String cpayfinorgvid; /** * 采购组织 */ private String cpurorgoid; /** * 采购组织最新版本 */ private String cpurorgvid; /** * 创建时间 */ private Date creationtime; /** * 创建人 */ private String creator; /** * 收货国 */ private String crececountryid; /** * 发货国 */ private String csendcountryid; /** * 运输方式 */ private String csendtypeid; /** * 报税国 */ private String ctaxcountryid; /** * 贸易术语 */ private String ctradewordid; /** * 出入库类型 */ private String ctrantypeid; /** * 供应商 */ private String cvendorid; /** * 库管员 */ private String cwhsmanagerid; /** * 单据日期 */ private Date dbilldate; /** * 制单日期 */ private Date dmakedate; /** * 单据状态 */ private Boolean fbillflag; /** * 购销类型 */ private Boolean fbuysellflag; /** * 采购退库 */ private Boolean freplenishflag; /** * 打印次数 */ private Integer iprintcount; /** * 最后修改时间 */ private Date modifiedtime; /** * 最后修改人 */ private String modifier; /** * 总数量 */ private Double ntotalnum; /** * 总件数 */ private Double ntotalpiece; /** * 总体积 */ private Double ntotalvolume; /** * 总重量 */ private Double ntotalweight; /** * 集团 */ private String pk_group; /** * 计量器具 */ private String pk_measware; /** * 库存组织 */ private String pk_org_v; /** * 签字日期 */ private Date taudittime; /** * 单据号 */ private String vbillcode; // 表头自定义项(vdef1 - vdef20) private String vdef1; private String vdef2; private String vdef3; private String vdef4; private String vdef5; private String vdef6; private String vdef7; private String vdef8; private String vdef9; private String vdef10; private String vdef11; private String vdef12; private String vdef13; private String vdef14; private String vdef15; private String vdef16; private String vdef17; private String vdef18; private String vdef19; private String vdef20; /** * 备注 */ private String vnote; /** * 退库理由 */ private String vreturnreason; /** * 出入库类型编码 */ private String vtrantypecode; } src/main/java/com/zy/nc/vo/ic_purchasein_h.java
New file @@ -0,0 +1,300 @@ package com.zy.nc.vo; import lombok.Data; import java.util.Date; /** * 入库单实体类 */ @Data public class ic_purchasein_h { /** * 库存组织最新版本(必填) */ private String pk_org; /** * 仓库(必填) */ private String cwarehouseid; /** * 签字人 */ private String approver; /** * 制单人 */ private String billmaker; /** * 进口入库单 */ private String bitinbill; /** * 三角贸易 */ private String btriatradeflag; /** * 采购员 */ private String cbizid; /** * 业务流程 */ private String cbiztype; /** * 结算成本域 */ private String ccostdomainid; /** * 收货客户 */ private String ccustomerid; /** * 采购部门最新版本 */ private String cdptid; /** * 采购部门 */ private String cdptvid; /** * 结算财务组织最新版本 */ private String cfanaceorgoid; /** * 结算财务组织 */ private String cfanaceorgvid; /** * 入库单表体主键 */ private String cgeneralbid; /** * 入库单表头主键 */ private String cgeneralhid; /** * 公司最新版本 */ private String corpoid; /** * 公司 */ private String corpvid; /** * 应付财务组织最新版本 */ private String cpayfinorgoid; /** * 应付财务组织 */ private String cpayfinorgvid; /** * 采购组织 */ private String cpurorgoid; /** * 采购组织最新版本 */ private String cpurorgvid; /** * 创建时间 */ private Date creationtime; /** * 创建人 */ private String creator; /** * 收货国 */ private String crececountryid; /** * 发货国 */ private String csendcountryid; /** * 运输方式 */ private String csendtypeid; /** * 报税国 */ private String ctaxcountryid; /** * 贸易术语 */ private String ctradewordid; /** * 出入库类型 */ private String ctrantypeid; /** * 供应商 */ private String cvendorid; /** * 库管员 */ private String cwhsmanagerid; /** * 单据日期 */ private Date dbilldate; /** * 制单日期 */ private Date dmakedate; /** * 单据状态 */ private String fbillflag; /** * 购销类型 */ private String fbuysellflag; /** * 采购退库 */ private String freplenishflag; /** * 打印次数 */ private Integer iprintcount; /** * 最后修改时间 */ private Date modifiedtime; /** * 最后修改人 */ private String modifier; /** * 总数量 */ private Double ntotalnum; /** * 总件数 */ private Double ntotalpiece; /** * 总体积 */ private Double ntotalvolume; /** * 总重量 */ private Double ntotalweight; /** * 集团 */ private String pk_group; /** * 计量器具 */ private String pk_measware; /** * 库存组织 */ private String pk_org_v; /** * 签字日期 */ private Date taudittime; /** * 单据号 */ private String vbillcode; // 表头自定义项(vdef1 - vdef20) private String vdef1; private String vdef2; private String vdef3; private String vdef4; private String vdef5; private String vdef6; private String vdef7; private String vdef8; private String vdef9; private String vdef10; private String vdef11; private String vdef12; private String vdef13; private String vdef14; private String vdef15; private String vdef16; private String vdef17; private String vdef18; private String vdef19; private String vdef20; /** * 备注 */ private String vnote; /** * 退库理由 */ private String vreturnreason; /** * 出入库类型编码 */ private String vtrantypecode; // 以下为getter和setter方法,构造函数等可以根据需求生成 } src/main/resources/mapper/asrs/OrderMapper.xml
@@ -55,6 +55,18 @@ and id = #{orderId} </update> <update id="updateSettleStep"> update man_order set settle = #{settle} ,update_time = getdate() ,step = #{step} <if test="userId != null"> ,update_by = #{userId} </if> where 1=1 and id = #{orderId} </update> <select id="selectComplete" resultMap="BaseResultMap"> select top 5 * from man_order