diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/IPOrderBDao.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/IPOrderBDao.java new file mode 100644 index 00000000..432e5217 --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/IPOrderBDao.java @@ -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 { + +} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/IPOrderHDao.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/IPOrderHDao.java new file mode 100644 index 00000000..a1b38e75 --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/IPOrderHDao.java @@ -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 { + +} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/impl/POrderBDaoImpl.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/impl/POrderBDaoImpl.java new file mode 100644 index 00000000..c4798dc4 --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/impl/POrderBDaoImpl.java @@ -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 implements IPOrderBDao { + +} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/impl/POrderHDaoImpl.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/impl/POrderHDaoImpl.java new file mode 100644 index 00000000..06d51814 --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/impl/POrderHDaoImpl.java @@ -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 implements IPOrderHDao { + +} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderBEntity.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderBEntity.java new file mode 100644 index 00000000..112ddc71 --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderBEntity.java @@ -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; + } +} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderBEntity.xml b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderBEntity.xml new file mode 100644 index 00000000..ae72f7f0 --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderBEntity.xml @@ -0,0 +1,183 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderHEntity.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderHEntity.java new file mode 100644 index 00000000..912ffd17 --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderHEntity.java @@ -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 rowIds; + + private List detailList; + + private Map 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; +} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderHEntity.xml b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderHEntity.xml new file mode 100644 index 00000000..fa55b988 --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderHEntity.xml @@ -0,0 +1,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/plugin/PoOrderPluginInitializer.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/plugin/PoOrderPluginInitializer.java new file mode 100644 index 00000000..2a304941 --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/plugin/PoOrderPluginInitializer.java @@ -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插件执行成功"); + } +} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IPOrderBService.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IPOrderBService.java new file mode 100644 index 00000000..297d0814 --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IPOrderBService.java @@ -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 { + + /** + * 查询采购订单子表 + * @param entity + * @return + */ + List queryList(POrderBEntity entity); +} \ No newline at end of file diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IPOrderHService.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IPOrderHService.java new file mode 100644 index 00000000..fec9123b --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IPOrderHService.java @@ -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 { + + /** + * 查询采购订单主表 + * @param entity + * @return + */ + List queryList(POrderHEntity entity); +} \ No newline at end of file diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IPoOrderPluginInService.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IPoOrderPluginInService.java new file mode 100644 index 00000000..da120eb2 --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IPoOrderPluginInService.java @@ -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); +} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/POrderBServiceImpl.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/POrderBServiceImpl.java new file mode 100644 index 00000000..eb4d80a8 --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/POrderBServiceImpl.java @@ -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 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 queryList(POrderBEntity entity) { + List queryList = porderbDao.query(entity); + return queryList; + } +} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/POrderHServiceImpl.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/POrderHServiceImpl.java new file mode 100644 index 00000000..5f64606c --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/POrderHServiceImpl.java @@ -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 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 queryList(POrderHEntity entity) { + List queryList = porderhDao.query(entity); + return queryList; + } +} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/PoOrderPluginInServiceImpl.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/PoOrderPluginInServiceImpl.java new file mode 100644 index 00000000..4ac6b31e --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/PoOrderPluginInServiceImpl.java @@ -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; + } +} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/RequisitionOrderPluginServiceImpl.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/RequisitionOrderPluginServiceImpl.java deleted file mode 100644 index ca29ecae..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/RequisitionOrderPluginServiceImpl.java +++ /dev/null @@ -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成功"); - } -} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/plugin/RequisitionOrderPluginInitializer.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/praybill/plugin/RequisitionOrderPluginInitializer.java similarity index 98% rename from base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/plugin/RequisitionOrderPluginInitializer.java rename to base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/praybill/plugin/RequisitionOrderPluginInitializer.java index f6c9e3e0..2f97b802 100644 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/plugin/RequisitionOrderPluginInitializer.java +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/praybill/plugin/RequisitionOrderPluginInitializer.java @@ -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; diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IRequisitionOrderPluginService.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/praybill/service/IRequisitionOrderPluginService.java similarity index 88% rename from base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IRequisitionOrderPluginService.java rename to base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/praybill/service/IRequisitionOrderPluginService.java index ef13b03f..893c97ad 100644 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IRequisitionOrderPluginService.java +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/praybill/service/IRequisitionOrderPluginService.java @@ -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; diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/praybill/service/impl/RequisitionOrderPluginServiceImpl.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/praybill/service/impl/RequisitionOrderPluginServiceImpl.java new file mode 100644 index 00000000..15822c6e --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/praybill/service/impl/RequisitionOrderPluginServiceImpl.java @@ -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 parybillList = new LinkedList<>(); + praybill.put("pk_praybill_b",parybillList); + + } + return BaseResult.getSuccessMessageEntity("请购单推NCC成功"); + } +} diff --git a/base-buildpackage/src/main/resources/cfgHome/plugin/ncc/spring/spring-buildpackage-plugin.xml b/base-buildpackage/src/main/resources/cfgHome/plugin/ncc/spring/spring-buildpackage-plugin.xml index df9ac20d..a1c8db1a 100644 --- a/base-buildpackage/src/main/resources/cfgHome/plugin/ncc/spring/spring-buildpackage-plugin.xml +++ b/base-buildpackage/src/main/resources/cfgHome/plugin/ncc/spring/spring-buildpackage-plugin.xml @@ -1,5 +1,6 @@ - + + diff --git a/base-buildpackage/src/main/resources/cfgHome/plugin/ncc/spring/spring-buildpackage-service.xml b/base-buildpackage/src/main/resources/cfgHome/plugin/ncc/spring/spring-buildpackage-service.xml index c7c87be7..f013d0cd 100644 --- a/base-buildpackage/src/main/resources/cfgHome/plugin/ncc/spring/spring-buildpackage-service.xml +++ b/base-buildpackage/src/main/resources/cfgHome/plugin/ncc/spring/spring-buildpackage-service.xml @@ -1,5 +1,6 @@ - + +