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 deleted file mode 100644 index 432e5217..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/IPOrderBDao.java +++ /dev/null @@ -1,16 +0,0 @@ -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 deleted file mode 100644 index a1b38e75..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/IPOrderHDao.java +++ /dev/null @@ -1,16 +0,0 @@ -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 deleted file mode 100644 index c4798dc4..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/impl/POrderBDaoImpl.java +++ /dev/null @@ -1,19 +0,0 @@ -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 deleted file mode 100644 index 06d51814..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/dao/impl/POrderHDaoImpl.java +++ /dev/null @@ -1,19 +0,0 @@ -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 deleted file mode 100644 index 112ddc71..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderBEntity.java +++ /dev/null @@ -1,869 +0,0 @@ -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 deleted file mode 100644 index ae72f7f0..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderBEntity.xml +++ /dev/null @@ -1,183 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 deleted file mode 100644 index 912ffd17..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderHEntity.java +++ /dev/null @@ -1,163 +0,0 @@ -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 deleted file mode 100644 index fa55b988..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/entity/POrderHEntity.xml +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 deleted file mode 100644 index 2a304941..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/plugin/PoOrderPluginInitializer.java +++ /dev/null @@ -1,102 +0,0 @@ -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 deleted file mode 100644 index 297d0814..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IPOrderBService.java +++ /dev/null @@ -1,24 +0,0 @@ -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 deleted file mode 100644 index fec9123b..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IPOrderHService.java +++ /dev/null @@ -1,24 +0,0 @@ -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 deleted file mode 100644 index da120eb2..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/IPoOrderPluginInService.java +++ /dev/null @@ -1,19 +0,0 @@ -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 deleted file mode 100644 index eb4d80a8..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/POrderBServiceImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -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 deleted file mode 100644 index 5f64606c..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/POrderHServiceImpl.java +++ /dev/null @@ -1,53 +0,0 @@ -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 deleted file mode 100644 index 06fab256..00000000 --- a/base-buildpackage/src/main/java/com/hzya/frame/plugin/ncc/service/impl/PoOrderPluginInServiceImpl.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.hzya.frame.plugin.ncc.service.impl; - -import cn.hutool.core.util.StrUtil; -import cn.hutool.http.HttpRequest; -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.seeyon.util.OARestUtil; -import com.hzya.frame.web.entity.JsonResultEntity; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; - -import java.util.LinkedList; -import java.util.List; - -/** - * @Description NCC采购订单 - * @Author xiangerlin - * @Date 2025/6/3 19:09 - **/ -public class PoOrderPluginInServiceImpl implements IPoOrderPluginInService { - - Logger logger = LoggerFactory.getLogger(PoOrderPluginInServiceImpl.class); - @Autowired - private IPOrderHService pOrderHService; - @Autowired - private IPOrderBService pOrderBService; - @Value("${zt.url}") - private String interfaceUrl; - @Autowired - private OARestUtil oaRestUtil; - /** - * NCC采购订单传到OA走审批流 - * - * @param requestJson - * @return - */ - @Override - public JsonResultEntity sync2oa(JSONObject requestJson) { - //数据源编码 - String datasourceCode = requestJson.getString("sourceCode"); - if (StrUtil.isNotEmpty(datasourceCode)){ - //查NCC单据 - //组装参数 - JSONObject formmain_0256 = new JSONObject();//主表数据 - List formson_0257_list = new LinkedList<>();//子表数据 - formmain_0256.put("采购组织",""); - formmain_0256.put("订单编号",""); - formmain_0256.put("订单日期",""); - formmain_0256.put("供应商",""); - formmain_0256.put("采购员",""); - formmain_0256.put("开票供应商",""); - formmain_0256.put("付款协议",""); - formmain_0256.put("发起人",""); - formmain_0256.put("单据状态",""); - formmain_0256.put("备注",""); - formmain_0256.put("补货",""); - formmain_0256.put("退货",""); - formmain_0256.put("总数量",""); - formmain_0256.put("总价税合计",""); - formmain_0256.put("币种",""); - formmain_0256.put("退货退库基于原订单补货",""); - formmain_0256.put("最终关闭",""); - formmain_0256.put("采购部门",""); - formmain_0256.put("订单类型",""); - //子表 - JSONObject formson_0257 = new JSONObject(); - formson_0257.put("收货库存组织",""); - formson_0257.put("行号",""); - formson_0257.put("物料编码",""); - formson_0257.put("物料名称",""); - formson_0257.put("单位",""); - formson_0257.put("数量",""); - formson_0257.put("换算率",""); - formson_0257.put("无税单价",""); - formson_0257.put("含税单价",""); - formson_0257.put("集团本币无税金额",""); - formson_0257.put("集团本币价税合计",""); - formson_0257.put("计划收货日期",""); - formson_0257.put("收货仓库",""); - formson_0257.put("税率",""); - formson_0257_list.add(formson_0257); - String param = oaRestUtil.processParamValueOf(formmain_0256, formson_0257_list, "模板编号", "formmain_0256", "formson_0257"); - String token = oaRestUtil.getToken("hzyaRest", "8000640001"); - logger.info("NCC发起OA采购订单请求参数{}",param); - //调用OA接口 - String result = HttpRequest.post(interfaceUrl) - .header("token",token)// token - .header("appId","800064")// 建辉OA应用 - .header("apiCode","8000640000")//流程表单接口 - .header("publicKey","ZJYAAr9TeFduBYu7uJeie2KYdQsnBaEYZHmOjPWMMVZmzelCe7eDIk+3zDUT+v578prj")//NCC应用key - .header("secretKey","f4SSnYcDQmdkwwuGJd2+934q6lM1NnUm5dmOw/4Wvy2mo6PgkKsI/drXYyyLWQCaj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")//NCC应用密钥 - .body(param).execute().body(); - // JsonResultEntity resultEntity = (JsonResultEntity) oerDjmlService.handleOerDjml(paramJSON); - // logger.info("保存GRPU8响应参数:{}",JSONObject.toJSON(resultEntity)); - logger.info("NCC发起OA采购订单响应参数:{}",result); - //更新NCC推送状态 - } - return null; - } -} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/poorder/service/IPoOrderService.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/poorder/service/IPoOrderService.java new file mode 100644 index 00000000..cb1644fd --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/poorder/service/IPoOrderService.java @@ -0,0 +1,20 @@ +package com.hzya.frame.plugin.oa.poorder.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +/** + * @Description 接收NCC采购订单的请求 + * @Author xiangerlin + * @Date 2025/6/12 17:03 + **/ +public interface IPoOrderService { + + /** + * 接收NCC的请求,并转换成OA的参数 + * @param reqJson + * @return + */ + JsonResultEntity buildOAParam(JSONObject reqJson); +} diff --git a/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/poorder/service/impl/PoOrderServiceImpl.java b/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/poorder/service/impl/PoOrderServiceImpl.java new file mode 100644 index 00000000..77ab105e --- /dev/null +++ b/base-buildpackage/src/main/java/com/hzya/frame/plugin/oa/poorder/service/impl/PoOrderServiceImpl.java @@ -0,0 +1,130 @@ +package com.hzya.frame.plugin.oa.poorder.service.impl; + +import cn.hutool.core.lang.Assert; +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.alibaba.fastjson.TypeReference; +import com.alibaba.fastjson.serializer.SerializeConfig; +import com.alibaba.fastjson.serializer.SerializerFeature; +import com.alibaba.fastjson.serializer.SimplePropertyPreFilter; +import com.hzya.frame.plugin.oa.poorder.service.IPoOrderService; +import com.hzya.frame.seeyon.util.OARestUtil; +import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.HashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; + +/** + * @Description 接收NCC采购订单的请求 + * @Author xiangerlin + * @Date 2025/6/12 17:04 + **/ +@Service(value="nCCPoOrderServiceImpl") +public class PoOrderServiceImpl implements IPoOrderService { + Logger logger = LoggerFactory.getLogger(PoOrderServiceImpl.class); + @Autowired + private OARestUtil oaRestUtil; + + @Value("${zt.url}") + private String interfaceUrl; + /** + * 接收NCC的请求,并转换成OA的参数 + * + * @param reqJson + * @return + */ + @Override + public JsonResultEntity buildOAParam(JSONObject reqJson) { + JSONObject nccObj = JSONObject.parseObject(reqJson.getString("jsonStr")); + logger.info("中台接收到NCC采购订单的请求参数:{}",reqJson.getString("jsonStr")); + Assert.notNull(nccObj,"参数不能为空"); + JSONObject head = nccObj.getJSONObject("head"); + + JSONArray detailList = nccObj.getJSONArray("body"); + Assert.notNull(head,"参数不能为空"); + Assert.notNull(detailList,"参数不能为空"); + head.put("user_code","seeyon"); + //组装参数 + JSONObject formmain_0256 = new JSONObject();//主表数据 + List formson_0257_list = new LinkedList<>();//子表数据 + formmain_0256.put("采购组织",head.getString("org_name")); + formmain_0256.put("订单编号",head.getString("vbillcode")); + formmain_0256.put("订单日期",head.getString("dbilldate")); + formmain_0256.put("供应商",head.getString("sup_name")); + formmain_0256.put("采购员",head.getString("cemployeename")); + formmain_0256.put("开票供应商",head.getString("invc_sup_name")); + formmain_0256.put("付款协议",head.getString("payterm_name")); + formmain_0256.put("单据状态",head.getString("forderstatus")); + formmain_0256.put("备注",head.getString("vmemo")); + formmain_0256.put("补货",head.getString("bisreplenish")); + formmain_0256.put("退货",head.getString("breturn")); + formmain_0256.put("总数量",head.getString("ntotalastnum")); + formmain_0256.put("总价税合计",head.getString("ntotalorigmny")); + formmain_0256.put("币种",head.getString("currtype_name")); + formmain_0256.put("退货退库基于原订单补货",head.getString("brefwhenreturn")); + formmain_0256.put("最终关闭",head.getString("bfinalclose")); + formmain_0256.put("采购部门",head.getString("dept_name")); + formmain_0256.put("订单类型",head.getString("BILLTYPENAME")); + //子表 + for (int i=0; i < detailList.size(); i++){ + JSONObject detail = (JSONObject) detailList.get(i); + JSONObject formson_0257 = new JSONObject(); + formson_0257.put("收货库存组织",detail.getString("arrvstoorg_name").toLowerCase()); + formson_0257.put("行号",detail.getString("crowno")); + formson_0257.put("物料编码",detail.getString("material_code")); + formson_0257.put("物料名称",detail.getString("material_name")); + formson_0257.put("单位",detail.getString("cunitname")); + formson_0257.put("数量",detail.getString("nnum")); + formson_0257.put("换算率",detail.getString("vchangerate")); + formson_0257.put("无税单价",detail.getString("nqtorigprice")); + formson_0257.put("含税单价",detail.getString("nqtorigtaxprice")); + formson_0257.put("集团本币无税金额",detail.getString("norigmny")); + formson_0257.put("集团本币价税合计",detail.getString("norigtaxmny")); + formson_0257.put("计划收货日期",detail.getString("dplanarrvdate")); + formson_0257.put("收货仓库",detail.getString("recvstordoc_name")); + formson_0257.put("税率",detail.getString("ntaxrate")); + formson_0257_list.add(formson_0257); + } + String param = oaRestUtil.processParamValueOf(formmain_0256, formson_0257_list, "formmain_0256_dev", "formmain_0256", "formson_0257"); + String token = oaRestUtil.getToken(head.getString("user_code"), "8000640001"); + logger.info("NCC发起OA采购订单请求参数{}",param); + //调用OA接口 + String result = HttpRequest.post(interfaceUrl) + .header("token",token)// token + .header("appId","800064")// 建辉OA应用 + .header("apiCode","8000640000")//流程表单接口 + .header("publicKey","ZJYAAr9TeFduBYu7uJeie2KYdQsnBaEYZHmOjPWMMVZmzelCe7eDIk+3zDUT+v578prj")//NCC应用key + .header("secretKey","f4SSnYcDQmdkwwuGJd2+934q6lM1NnUm5dmOw/4Wvy2mo6PgkKsI/drXYyyLWQCaj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")//NCC应用密钥 + .body(param).execute().body(); + // JsonResultEntity resultEntity = (JsonResultEntity) oerDjmlService.handleOerDjml(paramJSON); + // logger.info("保存GRPU8响应参数:{}",JSONObject.toJSON(resultEntity)); + logger.info("NCC发起OA采购订单响应参数:{}",result); + JSONObject resultJson = JSONObject.parseObject(result); + if (null == resultJson){ + return BaseResult.getFailureMessageEntity("发起OA审批失败"); + } + if (!resultJson.getBoolean("flag")){ + return BaseResult.getFailureMessageEntity("发起OA审批失败"+resultJson.getString("msg")); + } + return BaseResult.getSuccessMessageEntity(resultJson.getJSONObject("attribute")); + } + + private Object convertLowerCase(JSONObject jsonObject,String key){ + if (null != jsonObject && StrUtil.isNotEmpty(key)){ + return null == jsonObject.get(key.toUpperCase()) ? jsonObject.get(key.toLowerCase()) : jsonObject.get(key.toUpperCase()); + } + return null; + } +}