采购订单,请购单代码

This commit is contained in:
xiang2lin 2025-06-04 08:44:49 +08:00
parent 8f2ea8d28c
commit ed5b67a8d3
21 changed files with 1827 additions and 48 deletions

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.ncc.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.ncc.entity.POrderBEntity;
/**
* @description: 采购订单子表 dao
* @tableName: po_order_b
* @entityName: POrderBEntity
* @author: code_generator
* @history: 1.0
*/
public interface IPOrderBDao extends IBaseDao<POrderBEntity, String> {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.ncc.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.ncc.entity.POrderHEntity;
/**
* @description: 采购订单主表 dao
* @tableName: po_order
* @entityName: POrderHEntity
* @author: code_generator
* @history: 1.0
*/
public interface IPOrderHDao extends IBaseDao<POrderHEntity, String> {
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.plugin.ncc.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.ncc.dao.IPOrderBDao;
import com.hzya.frame.plugin.ncc.entity.POrderBEntity;
import org.springframework.stereotype.Repository;
/**
* @description: 采购订单子表 dao
* @tableName: po_order_b
* @entityName: POrderBEntity
* @author: code_generator
* @history:1.0
*/
@Repository("po_order_bdao")
public class POrderBDaoImpl extends MybatisGenericDao<POrderBEntity, String> implements IPOrderBDao {
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.plugin.ncc.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.ncc.dao.IPOrderHDao;
import com.hzya.frame.plugin.ncc.entity.POrderHEntity;
import org.springframework.stereotype.Repository;
/**
* @description: 采购订单主表 dao
* @tableName: po_order
* @entityName: POrderHEntity
* @author: code_generator
* @history:1.0
*/
@Repository("po_orderdao")
public class POrderHDaoImpl extends MybatisGenericDao<POrderHEntity, String> implements IPOrderHDao {
}

View File

@ -0,0 +1,869 @@
package com.hzya.frame.plugin.ncc.entity;
import com.hzya.frame.web.entity.BaseEntity;
import java.math.BigDecimal;
/**
* @description: 采购订单子表
* @tableName: po_order_b
* @entityName: POrderBEntity
* @author: code_generator
* @history: 1.0
*/
public class POrderBEntity extends BaseEntity {
/** */
private String pk_order;
/** */
private String pk_order_b;
/** 集团 */
private String pk_group;
/** 组织 */
private String pk_org;
/** 行号 */
private String crowno;
/** 物料 */
private String pk_material;
/** 物料编码 */
private String material_code;
/** 物料名称 */
private String material_name;
private String material_class_id;
/** 主单位 */
private String cunitid;
/** 主单位名称 */
private String cunitid_name;
/** 辅单位 */
private String castunitid;
/** 副单位名称 */
private String castunitid_name;
/** 吨数 */
private BigDecimal nnum;
/** 件数 */
private BigDecimal nastnum;
/** 换算率 */
private String vchangerate;
/** 无税单价 */
private BigDecimal norigprice;
/** 含税单价 */
private BigDecimal norigtaxprice;
/** 无税金额 */
private BigDecimal norignetprice;
/** 含税金额 */
private BigDecimal norigtaxnetprice;
/** 税额 */
private BigDecimal ntax;
/** 价税合计 */
private BigDecimal norigtaxmny;
/** 税率 */
private BigDecimal ntaxrate;
/** 币种 */
private String corigcurrencyid;
private String corigcurrencyid_name;
/** 来源单据类型 */
private String csourcetypecode;
/** 来源单据 */
private String csourceid;
/** 来源单据明细 */
private String csourcebid;
/** 源头单据类型 */
private String cfirsttypecode;
/** 源头单据 */
private String cfirstid;
/** 源头单据明细 */
private String cfirstbid;
/** 是否赠品 */
private String blargess;
/** 源头交易类型 */
private String vfirsttrantype;
/** 源头单据号 */
private String vfirstcode;
/** 源头单据行号 */
private String vfirstrowno;
/** 来源交易类型 */
private String vsourcetrantype;
/** 来源单据号 */
private String vsourcecode;
/** 来源单据行号 */
private String vsourcerowno;
/** 自由辅助属性1 */
private String vfree1;
/** 自由辅助属性2 */
private String vfree2;
/** 自由辅助属性3 */
private String vfree3;
/** 自由辅助属性4 */
private String vfree4;
/** 自由辅助属性5 */
private String vfree5;
/** 自由辅助属性6 */
private String vfree6;
private String pk_grade;
/** 自由辅助属性7 */
private String vfree7;
/** FSC/EUDR主键 */
private String pk_vfree8;
/** FSC/EUDR */
private String vfree8;
/** 自由辅助属性9 */
private String vfree9;
/** 品牌主键 */
private String pk_vfree10;
/** 品牌 */
private String vfree10;
/** 自定义项1 */
private String vbdef1;
/** 自定义项2 */
private String vbdef2;
/** 自定义项3 */
private String vbdef3;
/** 自定义项4 */
private String vbdef4;
/** 自定义项5 */
private String vbdef5;
/** 自定义项6 */
private String vbdef6;
/** 自定义项7 */
private String vbdef7;
/** 自定义项8 */
private String vbdef8;
/** 自定义项9 */
private String vbdef9;
/** 自定义项10 */
private String vbdef10;
/** 自定义项11 */
private String vbdef11;
/** 自定义项12 */
private String vbdef12;
/** 自定义项13 */
private String vbdef13;
/** 自定义项14 */
private String vbdef14;
/** 自定义项15 */
private String vbdef15;
/** 自定义项16 */
private String vbdef16;
/** 自定义项17 */
private String vbdef17;
/** 自定义项18 */
private String vbdef18;
/** 自定义项19 */
private String vbdef19;
/** 自定义项20 */
private String vbdef20;
private String vbmemo;
private String external_material_spec;
/** 报价单位 */
private String cqtunitid;
private String cqtunitid_name;
/** 报价数量 */
private BigDecimal nqtunitnum;
/** 折本汇率 */
private BigDecimal nexchangerate;
/** 收货仓库 */
private String pk_recvstordoc;
private String recvstordoc_name;
/** 计划到货日期 */
private String dplanarrvdate;
private String special_type;
private String vbatchcode;
private String ic_id;
private BigDecimal price;
private BigDecimal taxprice;
private String material_id;
public String getPk_order() {
return pk_order;
}
public void setPk_order(String pk_order) {
this.pk_order = pk_order;
}
public String getPk_order_b() {
return pk_order_b;
}
public void setPk_order_b(String pk_order_b) {
this.pk_order_b = pk_order_b;
}
public String getPk_group() {
return pk_group;
}
public void setPk_group(String pk_group) {
this.pk_group = pk_group;
}
public String getPk_org() {
return pk_org;
}
public void setPk_org(String pk_org) {
this.pk_org = pk_org;
}
public String getCrowno() {
return crowno;
}
public void setCrowno(String crowno) {
this.crowno = crowno;
}
public String getPk_material() {
return pk_material;
}
public void setPk_material(String pk_material) {
this.pk_material = pk_material;
}
public String getMaterial_code() {
return material_code;
}
public void setMaterial_code(String material_code) {
this.material_code = material_code;
}
public String getMaterial_name() {
return material_name;
}
public void setMaterial_name(String material_name) {
this.material_name = material_name;
}
public String getMaterial_class_id() {
return material_class_id;
}
public void setMaterial_class_id(String material_class_id) {
this.material_class_id = material_class_id;
}
public String getCunitid() {
return cunitid;
}
public void setCunitid(String cunitid) {
this.cunitid = cunitid;
}
public String getCunitid_name() {
return cunitid_name;
}
public void setCunitid_name(String cunitid_name) {
this.cunitid_name = cunitid_name;
}
public String getCastunitid() {
return castunitid;
}
public void setCastunitid(String castunitid) {
this.castunitid = castunitid;
}
public String getCastunitid_name() {
return castunitid_name;
}
public void setCastunitid_name(String castunitid_name) {
this.castunitid_name = castunitid_name;
}
public BigDecimal getNnum() {
return nnum;
}
public void setNnum(BigDecimal nnum) {
this.nnum = nnum;
}
public BigDecimal getNastnum() {
return nastnum;
}
public void setNastnum(BigDecimal nastnum) {
this.nastnum = nastnum;
}
public String getVchangerate() {
return vchangerate;
}
public void setVchangerate(String vchangerate) {
this.vchangerate = vchangerate;
}
public BigDecimal getNorigprice() {
return norigprice;
}
public void setNorigprice(BigDecimal norigprice) {
this.norigprice = norigprice;
}
public BigDecimal getNorigtaxprice() {
return norigtaxprice;
}
public void setNorigtaxprice(BigDecimal norigtaxprice) {
this.norigtaxprice = norigtaxprice;
}
public BigDecimal getNorignetprice() {
return norignetprice;
}
public void setNorignetprice(BigDecimal norignetprice) {
this.norignetprice = norignetprice;
}
public BigDecimal getNorigtaxnetprice() {
return norigtaxnetprice;
}
public void setNorigtaxnetprice(BigDecimal norigtaxnetprice) {
this.norigtaxnetprice = norigtaxnetprice;
}
public BigDecimal getNtax() {
return ntax;
}
public void setNtax(BigDecimal ntax) {
this.ntax = ntax;
}
public BigDecimal getNorigtaxmny() {
return norigtaxmny;
}
public void setNorigtaxmny(BigDecimal norigtaxmny) {
this.norigtaxmny = norigtaxmny;
}
public BigDecimal getNtaxrate() {
return ntaxrate;
}
public void setNtaxrate(BigDecimal ntaxrate) {
this.ntaxrate = ntaxrate;
}
public String getCorigcurrencyid() {
return corigcurrencyid;
}
public void setCorigcurrencyid(String corigcurrencyid) {
this.corigcurrencyid = corigcurrencyid;
}
public String getCorigcurrencyid_name() {
return corigcurrencyid_name;
}
public void setCorigcurrencyid_name(String corigcurrencyid_name) {
this.corigcurrencyid_name = corigcurrencyid_name;
}
public String getCsourcetypecode() {
return csourcetypecode;
}
public void setCsourcetypecode(String csourcetypecode) {
this.csourcetypecode = csourcetypecode;
}
public String getCsourceid() {
return csourceid;
}
public void setCsourceid(String csourceid) {
this.csourceid = csourceid;
}
public String getCsourcebid() {
return csourcebid;
}
public void setCsourcebid(String csourcebid) {
this.csourcebid = csourcebid;
}
public String getCfirsttypecode() {
return cfirsttypecode;
}
public void setCfirsttypecode(String cfirsttypecode) {
this.cfirsttypecode = cfirsttypecode;
}
public String getCfirstid() {
return cfirstid;
}
public void setCfirstid(String cfirstid) {
this.cfirstid = cfirstid;
}
public String getCfirstbid() {
return cfirstbid;
}
public void setCfirstbid(String cfirstbid) {
this.cfirstbid = cfirstbid;
}
public String getBlargess() {
return blargess;
}
public void setBlargess(String blargess) {
this.blargess = blargess;
}
public String getVfirsttrantype() {
return vfirsttrantype;
}
public void setVfirsttrantype(String vfirsttrantype) {
this.vfirsttrantype = vfirsttrantype;
}
public String getVfirstcode() {
return vfirstcode;
}
public void setVfirstcode(String vfirstcode) {
this.vfirstcode = vfirstcode;
}
public String getVfirstrowno() {
return vfirstrowno;
}
public void setVfirstrowno(String vfirstrowno) {
this.vfirstrowno = vfirstrowno;
}
public String getVsourcetrantype() {
return vsourcetrantype;
}
public void setVsourcetrantype(String vsourcetrantype) {
this.vsourcetrantype = vsourcetrantype;
}
public String getVsourcecode() {
return vsourcecode;
}
public void setVsourcecode(String vsourcecode) {
this.vsourcecode = vsourcecode;
}
public String getVsourcerowno() {
return vsourcerowno;
}
public void setVsourcerowno(String vsourcerowno) {
this.vsourcerowno = vsourcerowno;
}
public String getVfree1() {
return vfree1;
}
public void setVfree1(String vfree1) {
this.vfree1 = vfree1;
}
public String getVfree2() {
return vfree2;
}
public void setVfree2(String vfree2) {
this.vfree2 = vfree2;
}
public String getVfree3() {
return vfree3;
}
public void setVfree3(String vfree3) {
this.vfree3 = vfree3;
}
public String getVfree4() {
return vfree4;
}
public void setVfree4(String vfree4) {
this.vfree4 = vfree4;
}
public String getVfree5() {
return vfree5;
}
public void setVfree5(String vfree5) {
this.vfree5 = vfree5;
}
public String getVfree6() {
return vfree6;
}
public void setVfree6(String vfree6) {
this.vfree6 = vfree6;
}
public String getPk_grade() {
return pk_grade;
}
public void setPk_grade(String pk_grade) {
this.pk_grade = pk_grade;
}
public String getVfree7() {
return vfree7;
}
public void setVfree7(String vfree7) {
this.vfree7 = vfree7;
}
public String getPk_vfree8() {
return pk_vfree8;
}
public void setPk_vfree8(String pk_vfree8) {
this.pk_vfree8 = pk_vfree8;
}
public String getVfree8() {
return vfree8;
}
public void setVfree8(String vfree8) {
this.vfree8 = vfree8;
}
public String getVfree9() {
return vfree9;
}
public void setVfree9(String vfree9) {
this.vfree9 = vfree9;
}
public String getPk_vfree10() {
return pk_vfree10;
}
public void setPk_vfree10(String pk_vfree10) {
this.pk_vfree10 = pk_vfree10;
}
public String getVfree10() {
return vfree10;
}
public void setVfree10(String vfree10) {
this.vfree10 = vfree10;
}
public String getVbdef1() {
return vbdef1;
}
public void setVbdef1(String vbdef1) {
this.vbdef1 = vbdef1;
}
public String getVbdef2() {
return vbdef2;
}
public void setVbdef2(String vbdef2) {
this.vbdef2 = vbdef2;
}
public String getVbdef3() {
return vbdef3;
}
public void setVbdef3(String vbdef3) {
this.vbdef3 = vbdef3;
}
public String getVbdef4() {
return vbdef4;
}
public void setVbdef4(String vbdef4) {
this.vbdef4 = vbdef4;
}
public String getVbdef5() {
return vbdef5;
}
public void setVbdef5(String vbdef5) {
this.vbdef5 = vbdef5;
}
public String getVbdef6() {
return vbdef6;
}
public void setVbdef6(String vbdef6) {
this.vbdef6 = vbdef6;
}
public String getVbdef7() {
return vbdef7;
}
public void setVbdef7(String vbdef7) {
this.vbdef7 = vbdef7;
}
public String getVbdef8() {
return vbdef8;
}
public void setVbdef8(String vbdef8) {
this.vbdef8 = vbdef8;
}
public String getVbdef9() {
return vbdef9;
}
public void setVbdef9(String vbdef9) {
this.vbdef9 = vbdef9;
}
public String getVbdef10() {
return vbdef10;
}
public void setVbdef10(String vbdef10) {
this.vbdef10 = vbdef10;
}
public String getVbdef11() {
return vbdef11;
}
public void setVbdef11(String vbdef11) {
this.vbdef11 = vbdef11;
}
public String getVbdef12() {
return vbdef12;
}
public void setVbdef12(String vbdef12) {
this.vbdef12 = vbdef12;
}
public String getVbdef13() {
return vbdef13;
}
public void setVbdef13(String vbdef13) {
this.vbdef13 = vbdef13;
}
public String getVbdef14() {
return vbdef14;
}
public void setVbdef14(String vbdef14) {
this.vbdef14 = vbdef14;
}
public String getVbdef15() {
return vbdef15;
}
public void setVbdef15(String vbdef15) {
this.vbdef15 = vbdef15;
}
public String getVbdef16() {
return vbdef16;
}
public void setVbdef16(String vbdef16) {
this.vbdef16 = vbdef16;
}
public String getVbdef17() {
return vbdef17;
}
public void setVbdef17(String vbdef17) {
this.vbdef17 = vbdef17;
}
public String getVbdef18() {
return vbdef18;
}
public void setVbdef18(String vbdef18) {
this.vbdef18 = vbdef18;
}
public String getVbdef19() {
return vbdef19;
}
public void setVbdef19(String vbdef19) {
this.vbdef19 = vbdef19;
}
public String getVbdef20() {
return vbdef20;
}
public void setVbdef20(String vbdef20) {
this.vbdef20 = vbdef20;
}
public String getVbmemo() {
return vbmemo;
}
public void setVbmemo(String vbmemo) {
this.vbmemo = vbmemo;
}
public String getExternal_material_spec() {
return external_material_spec;
}
public void setExternal_material_spec(String external_material_spec) {
this.external_material_spec = external_material_spec;
}
public String getCqtunitid() {
return cqtunitid;
}
public void setCqtunitid(String cqtunitid) {
this.cqtunitid = cqtunitid;
}
public String getCqtunitid_name() {
return cqtunitid_name;
}
public void setCqtunitid_name(String cqtunitid_name) {
this.cqtunitid_name = cqtunitid_name;
}
public BigDecimal getNqtunitnum() {
return nqtunitnum;
}
public void setNqtunitnum(BigDecimal nqtunitnum) {
this.nqtunitnum = nqtunitnum;
}
public BigDecimal getNexchangerate() {
return nexchangerate;
}
public void setNexchangerate(BigDecimal nexchangerate) {
this.nexchangerate = nexchangerate;
}
public String getPk_recvstordoc() {
return pk_recvstordoc;
}
public void setPk_recvstordoc(String pk_recvstordoc) {
this.pk_recvstordoc = pk_recvstordoc;
}
public String getRecvstordoc_name() {
return recvstordoc_name;
}
public void setRecvstordoc_name(String recvstordoc_name) {
this.recvstordoc_name = recvstordoc_name;
}
public String getDplanarrvdate() {
return dplanarrvdate;
}
public void setDplanarrvdate(String dplanarrvdate) {
this.dplanarrvdate = dplanarrvdate;
}
public String getSpecial_type() {
return special_type;
}
public void setSpecial_type(String special_type) {
this.special_type = special_type;
}
public String getVbatchcode() {
return vbatchcode;
}
public void setVbatchcode(String vbatchcode) {
this.vbatchcode = vbatchcode;
}
public String getIc_id() {
return ic_id;
}
public void setIc_id(String ic_id) {
this.ic_id = ic_id;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public BigDecimal getTaxprice() {
return taxprice;
}
public void setTaxprice(BigDecimal taxprice) {
this.taxprice = taxprice;
}
public String getMaterial_id() {
return material_id;
}
public void setMaterial_id(String material_id) {
this.material_id = material_id;
}
}

View File

@ -0,0 +1,183 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.plugin.ncc.dao.impl.POrderBDaoImpl">
<resultMap id="get-POrderBEntity-result" type="com.hzya.frame.plugin.ncc.entity.POrderBEntity">
<!-- -->
<!-- -->
<result property="pk_order" column="pk_order" />
<!-- -->
<result property="pk_order_b" column="pk_order_b" />
<!--集团 -->
<result property="pk_group" column="pk_group" />
<!--组织 -->
<result property="pk_org" column="pk_org" />
<!--行号 -->
<result property="crowno" column="crowno" />
<!--物料 -->
<result property="pk_material" column="pk_material" />
<!--物料编码 -->
<result property="material_code" column="material_code" />
<!--物料名称 -->
<result property="material_name" column="material_name" />
<!--主单位 -->
<result property="cunitid" column="cunitid" />
<!--主单位名称 -->
<result property="cunitid_name" column="cunitid_name" />
<!--辅单位 -->
<result property="castunitid" column="castunitid" />
<!--副单位名称 -->
<result property="castunitid_name" column="castunitid_name" />
<!--吨数 -->
<result property="nnum" column="nnum" />
<!--件数 -->
<result property="nastnum" column="nastnum" />
<!--换算率 -->
<result property="vchangerate" column="vchangerate" />
<!--无税单价 -->
<result property="norigprice" column="norigprice" />
<!--含税单价 -->
<result property="norigtaxprice" column="norigtaxprice" />
<!--无税金额 -->
<result property="norignetprice" column="norignetprice" />
<!--含税金额 -->
<result property="norigtaxnetprice" column="norigtaxnetprice" />
<!--税额 -->
<result property="ntax" column="ntax" />
<!--价税合计 -->
<result property="norigtaxmny" column="norigtaxmny" />
<!--税率 -->
<result property="ntaxrate" column="ntaxrate" />
<!--币种 -->
<result property="corigcurrencyid" column="corigcurrencyid" />
<result property="corigcurrencyid_name" column="corigcurrencyid_name" />
<!--来源单据类型 -->
<result property="csourcetypecode" column="csourcetypecode" />
<!--来源单据 -->
<result property="csourceid" column="csourceid" />
<!--来源单据明细 -->
<result property="csourcebid" column="csourcebid" />
<!--源头单据类型 -->
<result property="cfirsttypecode" column="cfirsttypecode" />
<!--源头单据 -->
<result property="cfirstid" column="cfirstid" />
<!--源头单据明细 -->
<result property="cfirstbid" column="cfirstbid" />
<!--是否赠品 -->
<result property="blargess" column="blargess" />
<!--源头交易类型 -->
<result property="vfirsttrantype" column="vfirsttrantype" />
<!--源头单据号 -->
<result property="vfirstcode" column="vfirstcode" />
<!--源头单据行号 -->
<result property="vfirstrowno" column="vfirstrowno" />
<!--来源交易类型 -->
<result property="vsourcetrantype" column="vsourcetrantype" />
<!--来源单据号 -->
<result property="vsourcecode" column="vsourcecode" />
<!--来源单据行号 -->
<result property="vsourcerowno" column="vsourcerowno" />
<!--自由辅助属性1 -->
<result property="vfree1" column="vfree1" />
<!--自由辅助属性2 -->
<result property="vfree2" column="vfree2" />
<!--自由辅助属性3 -->
<result property="vfree3" column="vfree3" />
<!--自由辅助属性4 -->
<result property="vfree4" column="vfree4" />
<!--自由辅助属性5 -->
<result property="vfree5" column="vfree5" />
<!--自由辅助属性6 -->
<result property="vfree6" column="vfree6" />
<!--自由辅助属性7 -->
<result property="vfree7" column="vfree7" />
<!--FSC/EUDR主键 -->
<result property="pk_vfree8" column="pk_vfree8" />
<!--FSC/EUDR -->
<result property="vfree8" column="vfree8" />
<!--自由辅助属性9 -->
<result property="vfree9" column="vfree9" />
<!--品牌主键 -->
<result property="pk_vfree10" column="pk_vfree10" />
<!--品牌 -->
<result property="vfree10" column="vfree10" />
<!--自定义项1 -->
<result property="vbdef1" column="vbdef1" />
<!--自定义项2 -->
<result property="vbdef2" column="vbdef2" />
<!--自定义项3 -->
<result property="vbdef3" column="vbdef3" />
<!--自定义项4 -->
<result property="vbdef4" column="vbdef4" />
<!--自定义项5 -->
<result property="vbdef5" column="vbdef5" />
<!--自定义项6 -->
<result property="vbdef6" column="vbdef6" />
<!--自定义项7 -->
<result property="vbdef7" column="vbdef7" />
<!--自定义项8 -->
<result property="vbdef8" column="vbdef8" />
<!--自定义项9 -->
<result property="vbdef9" column="vbdef9" />
<!--自定义项10 -->
<result property="vbdef10" column="vbdef10" />
<!--自定义项11 -->
<result property="vbdef11" column="vbdef11" />
<!--自定义项12 -->
<result property="vbdef12" column="vbdef12" />
<!--自定义项13 -->
<result property="vbdef13" column="vbdef13" />
<!--自定义项14 -->
<result property="vbdef14" column="vbdef14" />
<!--自定义项15 -->
<result property="vbdef15" column="vbdef15" />
<!--自定义项16 -->
<result property="vbdef16" column="vbdef16" />
<!--自定义项17 -->
<result property="vbdef17" column="vbdef17" />
<!--自定义项18 -->
<result property="vbdef18" column="vbdef18" />
<!--自定义项19 -->
<result property="vbdef19" column="vbdef19" />
<!--自定义项20 -->
<result property="vbdef20" column="vbdef20" />
<result property="vbmemo" column="vbmemo" />
<!--报价单位 -->
<result property="cqtunitid" column="cqtunitid" />
<result property="cqtunitid_name" column="cqtunitid_name" />
<!--报价数量 -->
<result property="nqtunitnum" column="nqtunitnum" />
<!--折本汇率 -->
<result property="nexchangerate" column="nexchangerate" />
<!--收货仓库 -->
<result property="pk_recvstordoc" column="pk_recvstordoc" />
<!--计划到货日期 -->
<result property="dplanarrvdate" column="dplanarrvdate" />
<result property="dr" column="dr" />
</resultMap>
<!--获取NCC采购订单表体数据 -->
<select id="entity_list_base" resultMap="get-POrderBEntity-result" parameterType="com.hzya.frame.plugin.ncc.entity.POrderBEntity">
SELECT
po_order_b.*,
bd_material.code material_code,
bd_material.name material_name,
bdm1.name cunitid_name,
bdm2.name castunitid_name,
bdm3.name cqtunitid_name,
bd_currtype.name corigcurrencyid_name,
po_order_b.dr
FROM
po_order_b
left join bd_material on po_order_b.pk_material = bd_material.pk_material
left join bd_measdoc bdm1 on po_order_b.cunitid = bdm1.pk_measdoc
left join bd_measdoc bdm2 on po_order_b.castunitid = bdm2.pk_measdoc
left join bd_measdoc bdm3 on po_order_b.cqtunitid = bdm3.pk_measdoc
left join bd_currtype on po_order_b.corigcurrencyid = bd_currtype.pk_currtype
<trim prefix="where" prefixOverrides="and">
1 = 1
<if test="pk_order != null "> and po_order_b.pk_order = #{pk_order}</if>
</trim>
</select>
</mapper>

View File

@ -0,0 +1,163 @@
package com.hzya.frame.plugin.ncc.entity;
import com.hzya.frame.web.entity.BaseEntity;
import java.util.List;
import java.util.Map;
/**
* @description: 采购订单主表
* @tableName: po_order
* @entityName: POrderHEntity
* @author: code_generator
* @history: 1.0
*/
public class POrderHEntity extends BaseEntity {
/** 采购订单 */
private String pk_order;
/** 集团 */
private String pk_group;
/** 集团名称 */
private String group_name;
/** 采购组织 */
private String pk_org;
private String pk_orgs;
private String pk_org_search;
/** 采购组织版本信息 */
private String pk_org_v;
/** 组织名称 */
private String org_name;
/** 订单编号 */
private String vbillcode;
/** 订单日期 */
private String dbilldate;
/** 供应商 */
private String pk_supplier;
/** 供应商版本 */
private String pk_supplier_v;
/** 供应商名称 */
private String supplier_name;
/** 采购部门 */
private String pk_dept;
/** 部门名称 */
private String dept_name;
/** 采购员 */
private String cemployeeid;
/** 采购员名称 */
private String cemployeeid_name;
/** 订单类型编码 */
private String vtrantypecode;
/** 订单类型名称 */
private String vtrantypecode_name;
/** 供应商发货地址 */
private String pk_deliveradd;
/** 供应商发货地址 */
private String deliveradd_name;
/** 单据状态 */
private String forderstatus;
private String forderstatus_name;
/** 备注 */
private String vmemo;
/** 运输方式 */
private String pk_transporttype;
/** 运输方式 */
private String transporttype_name;
/** 付款协议 */
private String pk_payterm;
/** 付款协议名称 */
private String payterm_name;
/** 最新版本 */
private String bislatest;
private String bislatest_name;
/** 总数量 */
private String ntotalastnum;
/** 总件数 */
private String ntotalpiece;
/** 价税合计 */
private String ntotalorigmny;
/** 业务流程 */
private String pk_busitype;
/** 结算方式 */
private String pk_balatype;
/** 币种 */
private String corigcurrencyid;
private String corigcurrencyid_name;
/** 进口合同号*/
private String vdef1;
/** */
private String vdef2;
/** 提单号 */
private String vdef3;
/** */
private String vdef4;
/** */
private String vdef5;
/** */
private String vdef6;
/** 承运商 */
private String vdef7;
private String vdef7_name;
/** */
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 breturn;
/** 推送状态 */
private String push_status;
/** 项目 */
private String pk_project;
/** 项目名称 */
private String project_name;
private String type;
private String systate = "0";
private List<String> rowIds;
private List<POrderBEntity> detailList;
private Map<String, Object> icMap;
private String ic_id;
private String it_type;
private Boolean exempted_flag;
private Boolean isNotPo;
private String tms_bill_code;
private String bill_code_search;
// 是否关闭
private String bfinalclose;
// 发货地址
private String ship_address;
}

View File

@ -0,0 +1,168 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.plugin.ncc.dao.impl.POrderHDaoImpl">
<resultMap id="get-POrderHEntity-result" type="com.hzya.frame.plugin.ncc.entity.POrderHEntity">
<!-- -->
<!--采购订单 -->
<result property="pk_order" column="pk_order" />
<!--集团 -->
<result property="pk_group" column="pk_group" />
<!--集团名称 -->
<result property="group_name" column="group_name" />
<!--采购组织 -->
<result property="pk_org" column="pk_org" />
<!--采购组织版本信息 -->
<result property="pk_org_v" column="pk_org_v" />
<!--组织名称 -->
<result property="org_name" column="org_name" />
<!--订单编号 -->
<result property="vbillcode" column="vbillcode" />
<!--订单日期 -->
<result property="dbilldate" column="dbilldate" />
<!--供应商 -->
<result property="pk_supplier" column="pk_supplier" />
<!--供应商版本 -->
<result property="pk_supplier_v" column="pk_supplier_v" />
<!--供应商名称 -->
<result property="supplier_name" column="supplier_name" />
<!--采购部门 -->
<result property="pk_dept" column="pk_dept" />
<!--部门名称 -->
<result property="dept_name" column="dept_name" />
<!--采购员 -->
<result property="cemployeeid" column="cemployeeid" />
<!--采购员名称 -->
<result property="cemployeeid_name" column="cemployeeid_name" />
<!--订单类型编码 -->
<result property="vtrantypecode" column="vtrantypecode" />
<!--订单类型名称 -->
<result property="vtrantypecode_name" column="vtrantypecode_name" />
<!--供应商发货地址 -->
<result property="pk_deliveradd" column="pk_deliveradd" />
<!--供应商发货地址 -->
<result property="deliveradd_name" column="deliveradd_name" />
<!--单据状态 -->
<result property="forderstatus" column="forderstatus" />
<result property="forderstatus_name" column="forderstatus_name" />
<!--备注 -->
<result property="vmemo" column="vmemo" />
<!--运输方式 -->
<result property="pk_transporttype" column="pk_transporttype" />
<!--运输方式 -->
<result property="transporttype_name" column="transporttype_name" />
<!--付款协议 -->
<result property="pk_payterm" column="pk_payterm" />
<!--付款协议名称 -->
<result property="payterm_name" column="payterm_name" />
<!--最新版本 -->
<result property="bislatest" column="bislatest" />
<!--总数量 -->
<result property="ntotalastnum" column="ntotalastnum" />
<!--总件数 -->
<result property="ntotalpiece" column="ntotalpiece" />
<!--价税合计 -->
<result property="ntotalorigmny" column="ntotalorigmny" />
<!--业务流程 -->
<result property="pk_busitype" column="pk_busitype" />
<!--结算方式 -->
<result property="pk_balatype" column="pk_balatype" />
<!--币种 -->
<result property="corigcurrencyid" column="corigcurrencyid" />
<result property="corigcurrencyid_name" column="corigcurrencyid_name" />
<!--进口合同号
-->
<result property="vdef1" column="vdef1" />
<!-- -->
<result property="vdef2" column="vdef2" />
<!--提单号 -->
<result property="vdef3" column="vdef3" />
<!-- -->
<result property="vdef4" column="vdef4" />
<!-- -->
<result property="vdef5" column="vdef5" />
<!-- -->
<result property="vdef6" column="vdef6" />
<!--承运商 -->
<result property="vdef7" column="vdef7" />
<!-- -->
<result property="vdef8" column="vdef8" />
<!-- -->
<result property="vdef9" column="vdef9" />
<!-- -->
<result property="vdef10" column="vdef10" />
<!-- -->
<result property="vdef11" column="vdef11" />
<!-- -->
<result property="vdef12" column="vdef12" />
<!-- -->
<result property="vdef13" column="vdef13" />
<!--合同号 -->
<result property="vdef14" column="vdef14" />
<!-- -->
<result property="vdef15" column="vdef15" />
<!-- -->
<result property="vdef16" column="vdef16" />
<!-- -->
<result property="vdef17" column="vdef17" />
<!-- -->
<result property="vdef18" column="vdef18" />
<!-- -->
<result property="vdef19" column="vdef19" />
<!-- -->
<result property="vdef20" column="vdef20" />
<result property="breturn" column="breturn" />
<result property="bfinalclose" column="bfinalclose" />
<!--项目 -->
<result property="pk_project" column="pk_project" />
<!--项目名称 -->
<result property="project_name" column="project_name" />
<result property="dr" column="dr" />
</resultMap>
<!--获取NCC采购订单表头数据 -->
<select id="entity_list_base" resultMap="get-POrderHEntity-result" parameterType="com.hzya.frame.plugin.ncc.entity.POrderHEntity">
SELECT
po_order.*,
po_order.dr,
org_orgs.name org_name,
bd_supplier.name supplier_name,
org_dept.name dept_name,
bd_psndoc.name cemployeeid_name,
bd_billtype.billtypename vtrantypecode_name,
bd_payment.name transporttype_name,
bd_project.project_name project_name,
bd_currtype.name corigcurrencyid_name,
CASE po_order.forderstatus
WHEN 0 THEN
'自由'
WHEN 1 THEN
'提交'
WHEN 2 THEN
'正在审批'
WHEN 4 THEN
'审批不通过'
ELSE
'审批通过'
END forderstatus_name
FROM
po_order
left join org_orgs on po_order.pk_org = org_orgs.pk_org
left join bd_supplier on po_order.pk_supplier = bd_supplier.pk_supplier
left join org_dept on po_order.pk_dept = org_dept.pk_dept
left join bd_psndoc on po_order.cemployeeid = bd_psndoc.pk_psndoc
left join bd_billtype on po_order.vtrantypecode = bd_billtype.pk_billtypecode
left join bd_payment on po_order.pk_transporttype = bd_payment.pk_payment
left join bd_project on po_order.pk_project = bd_project.pk_project
left join bd_currtype on po_order.corigcurrencyid = bd_currtype.pk_currtype
<trim prefix="where" prefixOverrides="and">
po_order.forderstatus = '3'
<if test="pk_org != null and pk_org != ''"> and po_order.pk_org = #{pk_org}</if>
<if test="pk_orgs != null and pk_orgs != ''"> and po_order.pk_org in (${pk_orgs})</if>
<if test="vbillcode != null and vbillcode != ''"> and po_order.vbillcode = #{vbillcode}</if>
<if test="dbilldate != null and dbilldate != ''"> and po_order.dbilldate &gt;= #{dbilldate}</if>
<if test="timestamp != null and timestamp != ''"> and po_order.ts &gt;= #{timestamp}</if>
</trim>
</select>
</mapper>

View File

@ -0,0 +1,102 @@
package com.hzya.frame.plugin.ncc.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @Description NCC采购订单传发起OA审批
* @Author xiangerlin
* @Date 2025/6/3 19:01
**/
public class PoOrderPluginInitializer extends PluginBaseEntity {
Logger logger = LoggerFactory.getLogger(PoOrderPluginInitializer.class);
/***
* 插件初始化方法
* @Author 👻👻👻👻👻👻👻👻 gjh
* @Date 2023-08-02 10:48
* @Param []
* @return void
**/
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
/****
* 插件销毁方法
* @author 👻👻👻👻👻👻👻👻 gjh
* @date 2023-08-02 10:48
* @return void
**/
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
/****
* 插件的ID
* @author 👻👻👻👻👻👻👻👻 gjh
* @date 2023-08-02 10:48
* @return void
**/
@Override
public String getPluginId() {
return "PoOrderPluginInitializer";
}
/****
* 插件的名称
* @author 👻👻👻👻👻👻👻👻 gjh
* @date 2023-08-02 10:48
* @return void
**/
@Override
public String getPluginName() {
return "NCC采购订单传OA";
}
/****
* 插件的显示值
* @author 👻👻👻👻👻👻👻👻 gjh
* @date 2023-08-02 10:48
* @return void
**/
@Override
public String getPluginLabel() {
return "NCC采购订单传OA";
}
/***
* 插件类型 1场景插件
* @Author 👻👻👻👻👻👻👻👻 gjh
* @Date 2023-08-02 14:01
* @Param []
* @return java.lang.String
**/
@Override
public String getPluginType() {
return "1";
}
/***
* 执行业务代码
* @Author 👻👻👻👻👻👻👻👻 gjh
* @Date 2023-08-07 11:20
* @param requestJson 执行业务代码的参数
* @return void
**/
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
try {
logger.info("======开始执行NCC采购订单传OA插件======");
}catch (Exception e){
logger.info("======执行NCC采购订单传OA插件出错======{}",e.getMessage());
return BaseResult.getFailureMessageEntity("请NCC采购订单传OA插件执行失败",e.getMessage());
}
return BaseResult.getSuccessMessageEntity("NCC采购订单传OA插件执行成功");
}
}

View File

@ -0,0 +1,24 @@
package com.hzya.frame.plugin.ncc.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.ncc.entity.POrderBEntity;
import java.util.List;
/**
* @description: 采购订单子表 service
* @tableName: po_order_b
* @entityName: POrderBEntity
* @author: code_generator
* @history: 1.0
*/
public interface IPOrderBService extends IBaseService<POrderBEntity,String> {
/**
* 查询采购订单子表
* @param entity
* @return
*/
List<POrderBEntity> queryList(POrderBEntity entity);
}

View File

@ -0,0 +1,24 @@
package com.hzya.frame.plugin.ncc.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.ncc.entity.POrderHEntity;
import java.util.List;
/**
* @description: 采购订单主表 service
* @tableName: po_order
* @entityName: POrderHEntity
* @author: code_generator
* @history: 1.0
*/
public interface IPOrderHService extends IBaseService<POrderHEntity,String> {
/**
* 查询采购订单主表
* @param entity
* @return
*/
List<POrderHEntity> queryList(POrderHEntity entity);
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.plugin.ncc.service;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.web.entity.JsonResultEntity;
/**
* @Description NCC采购订单
* @Author xiangerlin
* @Date 2025/6/3 19:09
**/
public interface IPoOrderPluginInService {
/**
* NCC采购订单传到OA走审批流
* @param requestJson
* @return
*/
JsonResultEntity sync2oa(JSONObject requestJson);
}

View File

@ -0,0 +1,44 @@
package com.hzya.frame.plugin.ncc.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.plugin.ncc.dao.IPOrderBDao;
import com.hzya.frame.plugin.ncc.entity.POrderBEntity;
import com.hzya.frame.plugin.ncc.service.IPOrderBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @description: 采购订单子表 service
* @tableName: po_order_b
* @entityName: POrderBEntity
* @author: code_generator
* @history: 1.0
*/
@Service(value="po_order_bService")
public class POrderBServiceImpl extends BaseService<POrderBEntity,String> implements IPOrderBService {
protected IPOrderBDao porderbDao;
@Autowired
public void setPOrderBDao(IPOrderBDao dao) {
this.porderbDao = dao;
this.dao=dao;
}
/**
* 查询采购订单子表
*
* @param entity
* @return
*/
@DS(value = "#entity.dataSourceCode")
@Override
public List<POrderBEntity> queryList(POrderBEntity entity) {
List<POrderBEntity> queryList = porderbDao.query(entity);
return queryList;
}
}

View File

@ -0,0 +1,53 @@
package com.hzya.frame.plugin.ncc.service.impl;
import cn.dev33.satoken.stp.StpUtil;
import cn.hutool.core.lang.Assert;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.plugin.ncc.dao.IPOrderHDao;
import com.hzya.frame.plugin.ncc.entity.POrderHEntity;
import com.hzya.frame.plugin.ncc.service.IPOrderHService;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* @description: 采购订单主表 service
* @tableName: po_order
* @entityName: POrderHEntity
* @author: code_generator
* @history: 1.0
*/
@Service(value="po_orderService")
public class POrderHServiceImpl extends BaseService<POrderHEntity,String> implements IPOrderHService {
protected IPOrderHDao porderhDao;
@Autowired
public void setPOrderHDao(IPOrderHDao dao) {
this.porderhDao = dao;
this.dao=dao;
}
/**
* 查询采购订单主表
*
* @param entity
* @return
*/
@DS(value = "#entity.dataSourceCode")
@Override
public List<POrderHEntity> queryList(POrderHEntity entity) {
List<POrderHEntity> queryList = porderhDao.query(entity);
return queryList;
}
}

View File

@ -0,0 +1,41 @@
package com.hzya.frame.plugin.ncc.service.impl;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.plugin.ncc.service.IPOrderBService;
import com.hzya.frame.plugin.ncc.service.IPOrderHService;
import com.hzya.frame.plugin.ncc.service.IPoOrderPluginInService;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
/**
* @Description NCC采购订单
* @Author xiangerlin
* @Date 2025/6/3 19:09
**/
public class PoOrderPluginInServiceImpl implements IPoOrderPluginInService {
@Autowired
private IPOrderHService pOrderHService;
@Autowired
private IPOrderBService pOrderBService;
/**
* NCC采购订单传到OA走审批流
*
* @param requestJson
* @return
*/
@Override
public JsonResultEntity sync2oa(JSONObject requestJson) {
//数据源编码
String datasourceCode = requestJson.getString("sourceCode");
if (StrUtil.isNotEmpty(datasourceCode)){
//查NCC单据
//组装参数
//调用OA接口
}
return null;
}
}

View File

@ -1,44 +0,0 @@
package com.hzya.frame.plugin.ncc.service.impl;
import cn.hutool.core.lang.Assert;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.plugin.ncc.service.IRequisitionOrderPluginService;
import com.hzya.frame.seeyon.enums.ColEventTypeEnum;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @Description 请购单传NCC
* @Author xiangerlin
* @Date 2025/5/21 17:44
**/
public class RequisitionOrderPluginServiceImpl implements IRequisitionOrderPluginService {
Logger logger = LoggerFactory.getLogger(IRequisitionOrderPluginService.class);
/**
* 请购单同步到ncc
*
* @param requestJson
* @return
*/
@Override
public JsonResultEntity sync2ncc(JSONObject requestJson) {
//数据源编码
String datasourceCode = requestJson.getString("sourceCode");
String headersStr = requestJson.getString("headers");//请求头
String formAppId = requestJson.getString("formApp");
String eventType = requestJson.getString("eventType");
JSONObject formmainData = requestJson.getJSONObject("formmainTableName");
JSONArray forsonData = requestJson.getJSONArray("forsonTableName");
Assert.notEmpty(formAppId,"formAppId不能为空");
Assert.notEmpty(eventType,"eventType不能为空");
Assert.notEmpty(headersStr,"headers不能为空");
//流程发起
if (ColEventTypeEnum.ONSTART.getType().equals(eventType)){
}
return BaseResult.getSuccessMessageEntity("请购单推NCC成功");
}
}

View File

@ -1,4 +1,4 @@
package com.hzya.frame.plugin.ncc.plugin;
package com.hzya.frame.plugin.oa.praybill.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;

View File

@ -1,4 +1,4 @@
package com.hzya.frame.plugin.ncc.service;
package com.hzya.frame.plugin.oa.praybill.service;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.web.entity.JsonResultEntity;

View File

@ -0,0 +1,61 @@
package com.hzya.frame.plugin.oa.praybill.service.impl;
import cn.hutool.core.lang.Assert;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.plugin.oa.praybill.service.IRequisitionOrderPluginService;
import com.hzya.frame.seeyon.enums.ColEventTypeEnum;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.LinkedList;
import java.util.List;
/**
* @Description OA请购单传NCC
* @Author xiangerlin
* @Date 2025/5/21 17:44
**/
public class RequisitionOrderPluginServiceImpl implements IRequisitionOrderPluginService {
Logger logger = LoggerFactory.getLogger(IRequisitionOrderPluginService.class);
/**
* 请购单同步到ncc
*
* @param requestJson
* @return
*/
@Override
public JsonResultEntity sync2ncc(JSONObject requestJson) {
//数据源编码
String datasourceCode = requestJson.getString("sourceCode");
String headersStr = requestJson.getString("headers");//请求头
String formAppId = requestJson.getString("formApp");
String eventType = requestJson.getString("eventType");
JSONObject formmainData = requestJson.getJSONObject("formmainTableName");
JSONArray forsonData = requestJson.getJSONArray("forsonTableName");
Assert.notEmpty(formAppId,"formAppId不能为空");
Assert.notEmpty(eventType,"eventType不能为空");
Assert.notEmpty(headersStr,"headers不能为空");
//流程结束
if (ColEventTypeEnum.ONPROCESSFINISHED.getType().equals(eventType)){
JSONObject praybill = new JSONObject();
praybill.put("pk_org",formmainData.getString("field0005"));//库存组织
praybill.put("vbillcode",formmainData.getString("field0001"));//请购单号
praybill.put("dbilldate",formmainData.getString("field0004"));//请购日期
praybill.put("bsctype",formmainData.getString("field0009"));//委外
praybill.put("pk_planpsn",formmainData.getString("field0010"));//计划员
praybill.put("pk_plandept_v",formmainData.getString("field0011"));//计划部门
praybill.put("vmemo",formmainData.getString("field0013"));//备注
praybill.put("fbillstatus",formmainData.getString("field0012"));//单据状态
praybill.put("billmaker", formmainData.getString("field0002"));//制单人
praybill.put("dmakedate", formmainData.getString(""));//制单日期
praybill.put("ctrantypeid", formmainData.getString("field0006"));//请购类型
List<JSONObject> parybillList = new LinkedList<>();
praybill.put("pk_praybill_b",parybillList);
}
return BaseResult.getSuccessMessageEntity("请购单推NCC成功");
}
}

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean name="requisitionOrderPluginInitializer" class="com.hzya.frame.plugin.ncc.plugin.RequisitionOrderPluginInitializer" />
<bean name="requisitionOrderPluginInitializer" class="com.hzya.frame.plugin.oa.praybill.plugin.RequisitionOrderPluginInitializer" />
<bean name="requisitionOrderPluginInitializer" class="com.hzya.frame.plugin.ncc.plugin.PoOrderPluginInitializer" />
</beans>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean name="requisitionOrderPluginServiceImpl" class="com.hzya.frame.plugin.oa.praybill.service.impl.RequisitionOrderPluginServiceImpl" />
<bean name="poOrderPluginInServiceImpl" class="com.hzya.frame.plugin.ncc.service.impl.PoOrderPluginInServiceImpl" />
</beans>