diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/dao/IScOrderBDao.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/dao/IScOrderBDao.java new file mode 100644 index 00000000..8e4b0cab --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/dao/IScOrderBDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.plugin.lets.dao; + +import com.hzya.frame.plugin.lets.entity.ScOrderBEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * (SC_ORDER_B: table)表数据库访问层 + * + * @author makejava + * @since 2024-08-23 16:02:35 + */ +public interface IScOrderBDao extends IBaseDao { + +} + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/dao/IScOrderDao.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/dao/IScOrderDao.java new file mode 100644 index 00000000..51d0c34e --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/dao/IScOrderDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.plugin.lets.dao; + +import com.hzya.frame.plugin.lets.entity.ScOrderEntity; +import com.hzya.frame.basedao.dao.IBaseDao; + +/** + * (SC_ORDER: table)表数据库访问层 + * + * @author makejava + * @since 2024-08-23 15:29:40 + */ +public interface IScOrderDao extends IBaseDao { + +} + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/dao/impl/ScOrderBDaoImpl.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/dao/impl/ScOrderBDaoImpl.java new file mode 100644 index 00000000..6da2eaa6 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/dao/impl/ScOrderBDaoImpl.java @@ -0,0 +1,16 @@ +package com.hzya.frame.plugin.lets.dao.impl; + +import com.hzya.frame.plugin.lets.entity.ScOrderBEntity; +import com.hzya.frame.plugin.lets.dao.IScOrderBDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; +/** + * (ScOrderB)表数据库访问层 + * + * @author makejava + * @since 2024-08-23 16:02:35 + */ +public class ScOrderBDaoImpl extends MybatisGenericDao implements IScOrderBDao{ + +} + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/dao/impl/ScOrderDaoImpl.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/dao/impl/ScOrderDaoImpl.java new file mode 100644 index 00000000..77bed890 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/dao/impl/ScOrderDaoImpl.java @@ -0,0 +1,17 @@ +package com.hzya.frame.plugin.lets.dao.impl; + +import com.hzya.frame.plugin.lets.entity.ScOrderEntity; +import com.hzya.frame.plugin.lets.dao.IScOrderDao; +import org.springframework.stereotype.Repository; +import com.hzya.frame.basedao.dao.MybatisGenericDao; + +/** + * (ScOrder)表数据库访问层 + * + * @author makejava + * @since 2024-08-23 15:29:40 + */ +public class ScOrderDaoImpl extends MybatisGenericDao implements IScOrderDao { + +} + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/entity/ScOrderBEntity.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/entity/ScOrderBEntity.java new file mode 100644 index 00000000..b9517e16 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/entity/ScOrderBEntity.java @@ -0,0 +1,979 @@ +package com.hzya.frame.plugin.lets.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (ScOrderB)实体类 + * + * @author makejava + * @since 2024-08-23 16:02:35 + */ +public class ScOrderBEntity extends BaseEntity { + + private String accinstoreassistnum; + private String bisactive; + private String bomversion; + private String cassistunit; + private String cbaseid; + private String ccontractid; + private String ccontractrcode; + private String ccontractrowid; + private String ccurrencytypeid; + private String cmangid; + private String coperator; + private String corderBid; + private String corderid; + private String cordersource; + private String cpriceauditBb1id; + private String cpriceauditBid; + private String cpriceauditid; + private String cprojectid; + private String cprojectphaseid; + private String creceiveaddress; + private String crowno; + private String csourcebillcode; + private String csourcebillid; + private String csourcebillrow; + private String csourcebillrowno; + private String cupsourcebillid; + private String cupsourcebillrowid; + private String cupsourcebilltype; + private String cwarehouseid; + private String dplanarrvdate; + private String dr; + private String forderrowstatus; + private String idiscounttaxtype; + private String naccumarrvnum; + private String naccuminvoicenum; + private String naccumstorenum; + private String naccumwastnum; + private String nassistnum; + private String nbackarrvnum; + private String nbackstorenum; + private String ndiscountrate; + private String newver; + private String nexchangeotobrate; + private String nmoney; + private String nordernum; + private String norgnettaxprice; + private String norgtaxprice; + private String noriginalcurmny; + private String noriginalcurprice; + private String noriginalnetprice; + private String noriginalsummny; + private String noriginaltaxmny; + private String nsummny; + private String ntaxmny; + private String ntaxrate; + private String pkCorp; + private String pkDefdoc1; + private String pkDefdoc10; + private String pkDefdoc11; + private String pkDefdoc12; + private String pkDefdoc13; + private String pkDefdoc14; + private String pkDefdoc15; + private String pkDefdoc16; + private String pkDefdoc17; + private String pkDefdoc18; + private String pkDefdoc19; + private String pkDefdoc2; + private String pkDefdoc20; + private String pkDefdoc3; + private String pkDefdoc4; + private String pkDefdoc5; + private String pkDefdoc6; + private String pkDefdoc7; + private String pkDefdoc8; + private String pkDefdoc9; + private String ts; + private String vdef1; + 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 vdef2; + private String vdef20; + private String vdef3; + private String vdef4; + private String vdef5; + private String vdef6; + private String vdef7; + private String vdef8; + private String vdef9; + private String vfree1; + private String vfree2; + private String vfree3; + private String vfree4; + private String vfree5; + private String vmemo; + private String vpriceauditcode; + private String vproducenum; + private String writeoffassistnum; + private String writeoffnum; + + + public String getAccinstoreassistnum() { + return accinstoreassistnum; + } + + public void setAccinstoreassistnum(String accinstoreassistnum) { + this.accinstoreassistnum = accinstoreassistnum; + } + + public String getBisactive() { + return bisactive; + } + + public void setBisactive(String bisactive) { + this.bisactive = bisactive; + } + + public String getBomversion() { + return bomversion; + } + + public void setBomversion(String bomversion) { + this.bomversion = bomversion; + } + + public String getCassistunit() { + return cassistunit; + } + + public void setCassistunit(String cassistunit) { + this.cassistunit = cassistunit; + } + + public String getCbaseid() { + return cbaseid; + } + + public void setCbaseid(String cbaseid) { + this.cbaseid = cbaseid; + } + + public String getCcontractid() { + return ccontractid; + } + + public void setCcontractid(String ccontractid) { + this.ccontractid = ccontractid; + } + + public String getCcontractrcode() { + return ccontractrcode; + } + + public void setCcontractrcode(String ccontractrcode) { + this.ccontractrcode = ccontractrcode; + } + + public String getCcontractrowid() { + return ccontractrowid; + } + + public void setCcontractrowid(String ccontractrowid) { + this.ccontractrowid = ccontractrowid; + } + + public String getCcurrencytypeid() { + return ccurrencytypeid; + } + + public void setCcurrencytypeid(String ccurrencytypeid) { + this.ccurrencytypeid = ccurrencytypeid; + } + + public String getCmangid() { + return cmangid; + } + + public void setCmangid(String cmangid) { + this.cmangid = cmangid; + } + + public String getCoperator() { + return coperator; + } + + public void setCoperator(String coperator) { + this.coperator = coperator; + } + + public String getCorderBid() { + return corderBid; + } + + public void setCorderBid(String corderBid) { + this.corderBid = corderBid; + } + + public String getCorderid() { + return corderid; + } + + public void setCorderid(String corderid) { + this.corderid = corderid; + } + + public String getCordersource() { + return cordersource; + } + + public void setCordersource(String cordersource) { + this.cordersource = cordersource; + } + + public String getCpriceauditBb1id() { + return cpriceauditBb1id; + } + + public void setCpriceauditBb1id(String cpriceauditBb1id) { + this.cpriceauditBb1id = cpriceauditBb1id; + } + + public String getCpriceauditBid() { + return cpriceauditBid; + } + + public void setCpriceauditBid(String cpriceauditBid) { + this.cpriceauditBid = cpriceauditBid; + } + + public String getCpriceauditid() { + return cpriceauditid; + } + + public void setCpriceauditid(String cpriceauditid) { + this.cpriceauditid = cpriceauditid; + } + + public String getCprojectid() { + return cprojectid; + } + + public void setCprojectid(String cprojectid) { + this.cprojectid = cprojectid; + } + + public String getCprojectphaseid() { + return cprojectphaseid; + } + + public void setCprojectphaseid(String cprojectphaseid) { + this.cprojectphaseid = cprojectphaseid; + } + + public String getCreceiveaddress() { + return creceiveaddress; + } + + public void setCreceiveaddress(String creceiveaddress) { + this.creceiveaddress = creceiveaddress; + } + + public String getCrowno() { + return crowno; + } + + public void setCrowno(String crowno) { + this.crowno = crowno; + } + + public String getCsourcebillcode() { + return csourcebillcode; + } + + public void setCsourcebillcode(String csourcebillcode) { + this.csourcebillcode = csourcebillcode; + } + + public String getCsourcebillid() { + return csourcebillid; + } + + public void setCsourcebillid(String csourcebillid) { + this.csourcebillid = csourcebillid; + } + + public String getCsourcebillrow() { + return csourcebillrow; + } + + public void setCsourcebillrow(String csourcebillrow) { + this.csourcebillrow = csourcebillrow; + } + + public String getCsourcebillrowno() { + return csourcebillrowno; + } + + public void setCsourcebillrowno(String csourcebillrowno) { + this.csourcebillrowno = csourcebillrowno; + } + + public String getCupsourcebillid() { + return cupsourcebillid; + } + + public void setCupsourcebillid(String cupsourcebillid) { + this.cupsourcebillid = cupsourcebillid; + } + + public String getCupsourcebillrowid() { + return cupsourcebillrowid; + } + + public void setCupsourcebillrowid(String cupsourcebillrowid) { + this.cupsourcebillrowid = cupsourcebillrowid; + } + + public String getCupsourcebilltype() { + return cupsourcebilltype; + } + + public void setCupsourcebilltype(String cupsourcebilltype) { + this.cupsourcebilltype = cupsourcebilltype; + } + + public String getCwarehouseid() { + return cwarehouseid; + } + + public void setCwarehouseid(String cwarehouseid) { + this.cwarehouseid = cwarehouseid; + } + + public String getDplanarrvdate() { + return dplanarrvdate; + } + + public void setDplanarrvdate(String dplanarrvdate) { + this.dplanarrvdate = dplanarrvdate; + } + + public String getDr() { + return dr; + } + + public void setDr(String dr) { + this.dr = dr; + } + + public String getForderrowstatus() { + return forderrowstatus; + } + + public void setForderrowstatus(String forderrowstatus) { + this.forderrowstatus = forderrowstatus; + } + + public String getIdiscounttaxtype() { + return idiscounttaxtype; + } + + public void setIdiscounttaxtype(String idiscounttaxtype) { + this.idiscounttaxtype = idiscounttaxtype; + } + + public String getNaccumarrvnum() { + return naccumarrvnum; + } + + public void setNaccumarrvnum(String naccumarrvnum) { + this.naccumarrvnum = naccumarrvnum; + } + + public String getNaccuminvoicenum() { + return naccuminvoicenum; + } + + public void setNaccuminvoicenum(String naccuminvoicenum) { + this.naccuminvoicenum = naccuminvoicenum; + } + + public String getNaccumstorenum() { + return naccumstorenum; + } + + public void setNaccumstorenum(String naccumstorenum) { + this.naccumstorenum = naccumstorenum; + } + + public String getNaccumwastnum() { + return naccumwastnum; + } + + public void setNaccumwastnum(String naccumwastnum) { + this.naccumwastnum = naccumwastnum; + } + + public String getNassistnum() { + return nassistnum; + } + + public void setNassistnum(String nassistnum) { + this.nassistnum = nassistnum; + } + + public String getNbackarrvnum() { + return nbackarrvnum; + } + + public void setNbackarrvnum(String nbackarrvnum) { + this.nbackarrvnum = nbackarrvnum; + } + + public String getNbackstorenum() { + return nbackstorenum; + } + + public void setNbackstorenum(String nbackstorenum) { + this.nbackstorenum = nbackstorenum; + } + + public String getNdiscountrate() { + return ndiscountrate; + } + + public void setNdiscountrate(String ndiscountrate) { + this.ndiscountrate = ndiscountrate; + } + + public String getNewver() { + return newver; + } + + public void setNewver(String newver) { + this.newver = newver; + } + + public String getNexchangeotobrate() { + return nexchangeotobrate; + } + + public void setNexchangeotobrate(String nexchangeotobrate) { + this.nexchangeotobrate = nexchangeotobrate; + } + + public String getNmoney() { + return nmoney; + } + + public void setNmoney(String nmoney) { + this.nmoney = nmoney; + } + + public String getNordernum() { + return nordernum; + } + + public void setNordernum(String nordernum) { + this.nordernum = nordernum; + } + + public String getNorgnettaxprice() { + return norgnettaxprice; + } + + public void setNorgnettaxprice(String norgnettaxprice) { + this.norgnettaxprice = norgnettaxprice; + } + + public String getNorgtaxprice() { + return norgtaxprice; + } + + public void setNorgtaxprice(String norgtaxprice) { + this.norgtaxprice = norgtaxprice; + } + + public String getNoriginalcurmny() { + return noriginalcurmny; + } + + public void setNoriginalcurmny(String noriginalcurmny) { + this.noriginalcurmny = noriginalcurmny; + } + + public String getNoriginalcurprice() { + return noriginalcurprice; + } + + public void setNoriginalcurprice(String noriginalcurprice) { + this.noriginalcurprice = noriginalcurprice; + } + + public String getNoriginalnetprice() { + return noriginalnetprice; + } + + public void setNoriginalnetprice(String noriginalnetprice) { + this.noriginalnetprice = noriginalnetprice; + } + + public String getNoriginalsummny() { + return noriginalsummny; + } + + public void setNoriginalsummny(String noriginalsummny) { + this.noriginalsummny = noriginalsummny; + } + + public String getNoriginaltaxmny() { + return noriginaltaxmny; + } + + public void setNoriginaltaxmny(String noriginaltaxmny) { + this.noriginaltaxmny = noriginaltaxmny; + } + + public String getNsummny() { + return nsummny; + } + + public void setNsummny(String nsummny) { + this.nsummny = nsummny; + } + + public String getNtaxmny() { + return ntaxmny; + } + + public void setNtaxmny(String ntaxmny) { + this.ntaxmny = ntaxmny; + } + + public String getNtaxrate() { + return ntaxrate; + } + + public void setNtaxrate(String ntaxrate) { + this.ntaxrate = ntaxrate; + } + + public String getPkCorp() { + return pkCorp; + } + + public void setPkCorp(String pkCorp) { + this.pkCorp = pkCorp; + } + + public String getPkDefdoc1() { + return pkDefdoc1; + } + + public void setPkDefdoc1(String pkDefdoc1) { + this.pkDefdoc1 = pkDefdoc1; + } + + public String getPkDefdoc10() { + return pkDefdoc10; + } + + public void setPkDefdoc10(String pkDefdoc10) { + this.pkDefdoc10 = pkDefdoc10; + } + + public String getPkDefdoc11() { + return pkDefdoc11; + } + + public void setPkDefdoc11(String pkDefdoc11) { + this.pkDefdoc11 = pkDefdoc11; + } + + public String getPkDefdoc12() { + return pkDefdoc12; + } + + public void setPkDefdoc12(String pkDefdoc12) { + this.pkDefdoc12 = pkDefdoc12; + } + + public String getPkDefdoc13() { + return pkDefdoc13; + } + + public void setPkDefdoc13(String pkDefdoc13) { + this.pkDefdoc13 = pkDefdoc13; + } + + public String getPkDefdoc14() { + return pkDefdoc14; + } + + public void setPkDefdoc14(String pkDefdoc14) { + this.pkDefdoc14 = pkDefdoc14; + } + + public String getPkDefdoc15() { + return pkDefdoc15; + } + + public void setPkDefdoc15(String pkDefdoc15) { + this.pkDefdoc15 = pkDefdoc15; + } + + public String getPkDefdoc16() { + return pkDefdoc16; + } + + public void setPkDefdoc16(String pkDefdoc16) { + this.pkDefdoc16 = pkDefdoc16; + } + + public String getPkDefdoc17() { + return pkDefdoc17; + } + + public void setPkDefdoc17(String pkDefdoc17) { + this.pkDefdoc17 = pkDefdoc17; + } + + public String getPkDefdoc18() { + return pkDefdoc18; + } + + public void setPkDefdoc18(String pkDefdoc18) { + this.pkDefdoc18 = pkDefdoc18; + } + + public String getPkDefdoc19() { + return pkDefdoc19; + } + + public void setPkDefdoc19(String pkDefdoc19) { + this.pkDefdoc19 = pkDefdoc19; + } + + public String getPkDefdoc2() { + return pkDefdoc2; + } + + public void setPkDefdoc2(String pkDefdoc2) { + this.pkDefdoc2 = pkDefdoc2; + } + + public String getPkDefdoc20() { + return pkDefdoc20; + } + + public void setPkDefdoc20(String pkDefdoc20) { + this.pkDefdoc20 = pkDefdoc20; + } + + public String getPkDefdoc3() { + return pkDefdoc3; + } + + public void setPkDefdoc3(String pkDefdoc3) { + this.pkDefdoc3 = pkDefdoc3; + } + + public String getPkDefdoc4() { + return pkDefdoc4; + } + + public void setPkDefdoc4(String pkDefdoc4) { + this.pkDefdoc4 = pkDefdoc4; + } + + public String getPkDefdoc5() { + return pkDefdoc5; + } + + public void setPkDefdoc5(String pkDefdoc5) { + this.pkDefdoc5 = pkDefdoc5; + } + + public String getPkDefdoc6() { + return pkDefdoc6; + } + + public void setPkDefdoc6(String pkDefdoc6) { + this.pkDefdoc6 = pkDefdoc6; + } + + public String getPkDefdoc7() { + return pkDefdoc7; + } + + public void setPkDefdoc7(String pkDefdoc7) { + this.pkDefdoc7 = pkDefdoc7; + } + + public String getPkDefdoc8() { + return pkDefdoc8; + } + + public void setPkDefdoc8(String pkDefdoc8) { + this.pkDefdoc8 = pkDefdoc8; + } + + public String getPkDefdoc9() { + return pkDefdoc9; + } + + public void setPkDefdoc9(String pkDefdoc9) { + this.pkDefdoc9 = pkDefdoc9; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getVdef1() { + return vdef1; + } + + public void setVdef1(String vdef1) { + this.vdef1 = vdef1; + } + + public String getVdef10() { + return vdef10; + } + + public void setVdef10(String vdef10) { + this.vdef10 = vdef10; + } + + public String getVdef11() { + return vdef11; + } + + public void setVdef11(String vdef11) { + this.vdef11 = vdef11; + } + + public String getVdef12() { + return vdef12; + } + + public void setVdef12(String vdef12) { + this.vdef12 = vdef12; + } + + public String getVdef13() { + return vdef13; + } + + public void setVdef13(String vdef13) { + this.vdef13 = vdef13; + } + + public String getVdef14() { + return vdef14; + } + + public void setVdef14(String vdef14) { + this.vdef14 = vdef14; + } + + public String getVdef15() { + return vdef15; + } + + public void setVdef15(String vdef15) { + this.vdef15 = vdef15; + } + + public String getVdef16() { + return vdef16; + } + + public void setVdef16(String vdef16) { + this.vdef16 = vdef16; + } + + public String getVdef17() { + return vdef17; + } + + public void setVdef17(String vdef17) { + this.vdef17 = vdef17; + } + + public String getVdef18() { + return vdef18; + } + + public void setVdef18(String vdef18) { + this.vdef18 = vdef18; + } + + public String getVdef19() { + return vdef19; + } + + public void setVdef19(String vdef19) { + this.vdef19 = vdef19; + } + + public String getVdef2() { + return vdef2; + } + + public void setVdef2(String vdef2) { + this.vdef2 = vdef2; + } + + public String getVdef20() { + return vdef20; + } + + public void setVdef20(String vdef20) { + this.vdef20 = vdef20; + } + + public String getVdef3() { + return vdef3; + } + + public void setVdef3(String vdef3) { + this.vdef3 = vdef3; + } + + public String getVdef4() { + return vdef4; + } + + public void setVdef4(String vdef4) { + this.vdef4 = vdef4; + } + + public String getVdef5() { + return vdef5; + } + + public void setVdef5(String vdef5) { + this.vdef5 = vdef5; + } + + public String getVdef6() { + return vdef6; + } + + public void setVdef6(String vdef6) { + this.vdef6 = vdef6; + } + + public String getVdef7() { + return vdef7; + } + + public void setVdef7(String vdef7) { + this.vdef7 = vdef7; + } + + public String getVdef8() { + return vdef8; + } + + public void setVdef8(String vdef8) { + this.vdef8 = vdef8; + } + + public String getVdef9() { + return vdef9; + } + + public void setVdef9(String vdef9) { + this.vdef9 = vdef9; + } + + 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 getVmemo() { + return vmemo; + } + + public void setVmemo(String vmemo) { + this.vmemo = vmemo; + } + + public String getVpriceauditcode() { + return vpriceauditcode; + } + + public void setVpriceauditcode(String vpriceauditcode) { + this.vpriceauditcode = vpriceauditcode; + } + + public String getVproducenum() { + return vproducenum; + } + + public void setVproducenum(String vproducenum) { + this.vproducenum = vproducenum; + } + + public String getWriteoffassistnum() { + return writeoffassistnum; + } + + public void setWriteoffassistnum(String writeoffassistnum) { + this.writeoffassistnum = writeoffassistnum; + } + + public String getWriteoffnum() { + return writeoffnum; + } + + public void setWriteoffnum(String writeoffnum) { + this.writeoffnum = writeoffnum; + } + +} + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/entity/ScOrderBEntity.xml b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/entity/ScOrderBEntity.xml new file mode 100644 index 00000000..9abb78fc --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/entity/ScOrderBEntity.xml @@ -0,0 +1,1287 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ACCINSTOREASSISTNUM + ,BISACTIVE + ,BOMVERSION + ,CASSISTUNIT + ,CBASEID + ,CCONTRACTID + ,CCONTRACTRCODE + ,CCONTRACTROWID + ,CCURRENCYTYPEID + ,CMANGID + ,COPERATOR + ,CORDER_BID + ,CORDERID + ,CORDERSOURCE + ,CPRICEAUDIT_BB1ID + ,CPRICEAUDIT_BID + ,CPRICEAUDITID + ,CPROJECTID + ,CPROJECTPHASEID + ,CRECEIVEADDRESS + ,CROWNO + ,CSOURCEBILLCODE + ,CSOURCEBILLID + ,CSOURCEBILLROW + ,CSOURCEBILLROWNO + ,CUPSOURCEBILLID + ,CUPSOURCEBILLROWID + ,CUPSOURCEBILLTYPE + ,CWAREHOUSEID + ,DPLANARRVDATE + ,DR + ,FORDERROWSTATUS + ,IDISCOUNTTAXTYPE + ,NACCUMARRVNUM + ,NACCUMINVOICENUM + ,NACCUMSTORENUM + ,NACCUMWASTNUM + ,NASSISTNUM + ,NBACKARRVNUM + ,NBACKSTORENUM + ,NDISCOUNTRATE + ,NEWVER + ,NEXCHANGEOTOBRATE + ,NMONEY + ,NORDERNUM + ,NORGNETTAXPRICE + ,NORGTAXPRICE + ,NORIGINALCURMNY + ,NORIGINALCURPRICE + ,NORIGINALNETPRICE + ,NORIGINALSUMMNY + ,NORIGINALTAXMNY + ,NSUMMNY + ,NTAXMNY + ,NTAXRATE + ,PK_CORP + ,PK_DEFDOC1 + ,PK_DEFDOC10 + ,PK_DEFDOC11 + ,PK_DEFDOC12 + ,PK_DEFDOC13 + ,PK_DEFDOC14 + ,PK_DEFDOC15 + ,PK_DEFDOC16 + ,PK_DEFDOC17 + ,PK_DEFDOC18 + ,PK_DEFDOC19 + ,PK_DEFDOC2 + ,PK_DEFDOC20 + ,PK_DEFDOC3 + ,PK_DEFDOC4 + ,PK_DEFDOC5 + ,PK_DEFDOC6 + ,PK_DEFDOC7 + ,PK_DEFDOC8 + ,PK_DEFDOC9 + ,TS + ,VDEF1 + ,VDEF10 + ,VDEF11 + ,VDEF12 + ,VDEF13 + ,VDEF14 + ,VDEF15 + ,VDEF16 + ,VDEF17 + ,VDEF18 + ,VDEF19 + ,VDEF2 + ,VDEF20 + ,VDEF3 + ,VDEF4 + ,VDEF5 + ,VDEF6 + ,VDEF7 + ,VDEF8 + ,VDEF9 + ,VFREE1 + ,VFREE2 + ,VFREE3 + ,VFREE4 + ,VFREE5 + ,VMEMO + ,VPRICEAUDITCODE + ,VPRODUCENUM + ,WRITEOFFASSISTNUM + ,WRITEOFFNUM + + + + + + + + + + + + + + + + + insert into SC_ORDER_B( + + ACCINSTOREASSISTNUM , + BISACTIVE , + BOMVERSION , + CASSISTUNIT , + CBASEID , + CCONTRACTID , + CCONTRACTRCODE , + CCONTRACTROWID , + CCURRENCYTYPEID , + CMANGID , + COPERATOR , + CORDER_BID , + CORDERID , + CORDERSOURCE , + CPRICEAUDIT_BB1ID , + CPRICEAUDIT_BID , + CPRICEAUDITID , + CPROJECTID , + CPROJECTPHASEID , + CRECEIVEADDRESS , + CROWNO , + CSOURCEBILLCODE , + CSOURCEBILLID , + CSOURCEBILLROW , + CSOURCEBILLROWNO , + CUPSOURCEBILLID , + CUPSOURCEBILLROWID , + CUPSOURCEBILLTYPE , + CWAREHOUSEID , + DPLANARRVDATE , + DR , + FORDERROWSTATUS , + IDISCOUNTTAXTYPE , + NACCUMARRVNUM , + NACCUMINVOICENUM , + NACCUMSTORENUM , + NACCUMWASTNUM , + NASSISTNUM , + NBACKARRVNUM , + NBACKSTORENUM , + NDISCOUNTRATE , + NEWVER , + NEXCHANGEOTOBRATE , + NMONEY , + NORDERNUM , + NORGNETTAXPRICE , + NORGTAXPRICE , + NORIGINALCURMNY , + NORIGINALCURPRICE , + NORIGINALNETPRICE , + NORIGINALSUMMNY , + NORIGINALTAXMNY , + NSUMMNY , + NTAXMNY , + NTAXRATE , + PK_CORP , + PK_DEFDOC1 , + PK_DEFDOC10 , + PK_DEFDOC11 , + PK_DEFDOC12 , + PK_DEFDOC13 , + PK_DEFDOC14 , + PK_DEFDOC15 , + PK_DEFDOC16 , + PK_DEFDOC17 , + PK_DEFDOC18 , + PK_DEFDOC19 , + PK_DEFDOC2 , + PK_DEFDOC20 , + PK_DEFDOC3 , + PK_DEFDOC4 , + PK_DEFDOC5 , + PK_DEFDOC6 , + PK_DEFDOC7 , + PK_DEFDOC8 , + PK_DEFDOC9 , + TS , + VDEF1 , + VDEF10 , + VDEF11 , + VDEF12 , + VDEF13 , + VDEF14 , + VDEF15 , + VDEF16 , + VDEF17 , + VDEF18 , + VDEF19 , + VDEF2 , + VDEF20 , + VDEF3 , + VDEF4 , + VDEF5 , + VDEF6 , + VDEF7 , + VDEF8 , + VDEF9 , + VFREE1 , + VFREE2 , + VFREE3 , + VFREE4 , + VFREE5 , + VMEMO , + VPRICEAUDITCODE , + VPRODUCENUM , + WRITEOFFASSISTNUM , + WRITEOFFNUM , + sorts, + sts, + + )values( + + #{accinstoreassistnum} , + #{bisactive} , + #{bomversion} , + #{cassistunit} , + #{cbaseid} , + #{ccontractid} , + #{ccontractrcode} , + #{ccontractrowid} , + #{ccurrencytypeid} , + #{cmangid} , + #{coperator} , + #{corderBid} , + #{corderid} , + #{cordersource} , + #{cpriceauditBb1id} , + #{cpriceauditBid} , + #{cpriceauditid} , + #{cprojectid} , + #{cprojectphaseid} , + #{creceiveaddress} , + #{crowno} , + #{csourcebillcode} , + #{csourcebillid} , + #{csourcebillrow} , + #{csourcebillrowno} , + #{cupsourcebillid} , + #{cupsourcebillrowid} , + #{cupsourcebilltype} , + #{cwarehouseid} , + #{dplanarrvdate} , + #{dr} , + #{forderrowstatus} , + #{idiscounttaxtype} , + #{naccumarrvnum} , + #{naccuminvoicenum} , + #{naccumstorenum} , + #{naccumwastnum} , + #{nassistnum} , + #{nbackarrvnum} , + #{nbackstorenum} , + #{ndiscountrate} , + #{newver} , + #{nexchangeotobrate} , + #{nmoney} , + #{nordernum} , + #{norgnettaxprice} , + #{norgtaxprice} , + #{noriginalcurmny} , + #{noriginalcurprice} , + #{noriginalnetprice} , + #{noriginalsummny} , + #{noriginaltaxmny} , + #{nsummny} , + #{ntaxmny} , + #{ntaxrate} , + #{pkCorp} , + #{pkDefdoc1} , + #{pkDefdoc10} , + #{pkDefdoc11} , + #{pkDefdoc12} , + #{pkDefdoc13} , + #{pkDefdoc14} , + #{pkDefdoc15} , + #{pkDefdoc16} , + #{pkDefdoc17} , + #{pkDefdoc18} , + #{pkDefdoc19} , + #{pkDefdoc2} , + #{pkDefdoc20} , + #{pkDefdoc3} , + #{pkDefdoc4} , + #{pkDefdoc5} , + #{pkDefdoc6} , + #{pkDefdoc7} , + #{pkDefdoc8} , + #{pkDefdoc9} , + #{ts} , + #{vdef1} , + #{vdef10} , + #{vdef11} , + #{vdef12} , + #{vdef13} , + #{vdef14} , + #{vdef15} , + #{vdef16} , + #{vdef17} , + #{vdef18} , + #{vdef19} , + #{vdef2} , + #{vdef20} , + #{vdef3} , + #{vdef4} , + #{vdef5} , + #{vdef6} , + #{vdef7} , + #{vdef8} , + #{vdef9} , + #{vfree1} , + #{vfree2} , + #{vfree3} , + #{vfree4} , + #{vfree5} , + #{vmemo} , + #{vpriceauditcode} , + #{vproducenum} , + #{writeoffassistnum} , + #{writeoffnum} , + (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from SC_ORDER_B a WHERE a.sts = 'Y' ), + 'Y', + + ) + + + + insert into SC_ORDER_B(ACCINSTOREASSISTNUM, BISACTIVE, BOMVERSION, CASSISTUNIT, CBASEID, CCONTRACTID, CCONTRACTRCODE, CCONTRACTROWID, CCURRENCYTYPEID, CMANGID, COPERATOR, CORDERID, CORDERSOURCE, CPRICEAUDIT_BB1ID, CPRICEAUDIT_BID, CPRICEAUDITID, CPROJECTID, CPROJECTPHASEID, CRECEIVEADDRESS, CROWNO, CSOURCEBILLCODE, CSOURCEBILLID, CSOURCEBILLROW, CSOURCEBILLROWNO, CUPSOURCEBILLID, CUPSOURCEBILLROWID, CUPSOURCEBILLTYPE, CWAREHOUSEID, DPLANARRVDATE, DR, FORDERROWSTATUS, IDISCOUNTTAXTYPE, NACCUMARRVNUM, NACCUMINVOICENUM, NACCUMSTORENUM, NACCUMWASTNUM, NASSISTNUM, NBACKARRVNUM, NBACKSTORENUM, NDISCOUNTRATE, NEWVER, NEXCHANGEOTOBRATE, NMONEY, NORDERNUM, NORGNETTAXPRICE, NORGTAXPRICE, NORIGINALCURMNY, NORIGINALCURPRICE, NORIGINALNETPRICE, NORIGINALSUMMNY, NORIGINALTAXMNY, NSUMMNY, NTAXMNY, NTAXRATE, PK_CORP, PK_DEFDOC1, PK_DEFDOC10, PK_DEFDOC11, PK_DEFDOC12, PK_DEFDOC13, PK_DEFDOC14, PK_DEFDOC15, PK_DEFDOC16, PK_DEFDOC17, PK_DEFDOC18, PK_DEFDOC19, PK_DEFDOC2, PK_DEFDOC20, PK_DEFDOC3, PK_DEFDOC4, PK_DEFDOC5, PK_DEFDOC6, PK_DEFDOC7, PK_DEFDOC8, PK_DEFDOC9, TS, VDEF1, VDEF10, VDEF11, VDEF12, VDEF13, VDEF14, VDEF15, VDEF16, VDEF17, VDEF18, VDEF19, VDEF2, VDEF20, VDEF3, VDEF4, VDEF5, VDEF6, VDEF7, VDEF8, VDEF9, VFREE1, VFREE2, VFREE3, VFREE4, VFREE5, VMEMO, VPRICEAUDITCODE, VPRODUCENUM, WRITEOFFASSISTNUM, WRITEOFFNUM, sts) + values + + (#{entity.accinstoreassistnum},#{entity.bisactive},#{entity.bomversion},#{entity.cassistunit},#{entity.cbaseid},#{entity.ccontractid},#{entity.ccontractrcode},#{entity.ccontractrowid},#{entity.ccurrencytypeid},#{entity.cmangid},#{entity.coperator},#{entity.corderid},#{entity.cordersource},#{entity.cpriceauditBb1id},#{entity.cpriceauditBid},#{entity.cpriceauditid},#{entity.cprojectid},#{entity.cprojectphaseid},#{entity.creceiveaddress},#{entity.crowno},#{entity.csourcebillcode},#{entity.csourcebillid},#{entity.csourcebillrow},#{entity.csourcebillrowno},#{entity.cupsourcebillid},#{entity.cupsourcebillrowid},#{entity.cupsourcebilltype},#{entity.cwarehouseid},#{entity.dplanarrvdate},#{entity.dr},#{entity.forderrowstatus},#{entity.idiscounttaxtype},#{entity.naccumarrvnum},#{entity.naccuminvoicenum},#{entity.naccumstorenum},#{entity.naccumwastnum},#{entity.nassistnum},#{entity.nbackarrvnum},#{entity.nbackstorenum},#{entity.ndiscountrate},#{entity.newver},#{entity.nexchangeotobrate},#{entity.nmoney},#{entity.nordernum},#{entity.norgnettaxprice},#{entity.norgtaxprice},#{entity.noriginalcurmny},#{entity.noriginalcurprice},#{entity.noriginalnetprice},#{entity.noriginalsummny},#{entity.noriginaltaxmny},#{entity.nsummny},#{entity.ntaxmny},#{entity.ntaxrate},#{entity.pkCorp},#{entity.pkDefdoc1},#{entity.pkDefdoc10},#{entity.pkDefdoc11},#{entity.pkDefdoc12},#{entity.pkDefdoc13},#{entity.pkDefdoc14},#{entity.pkDefdoc15},#{entity.pkDefdoc16},#{entity.pkDefdoc17},#{entity.pkDefdoc18},#{entity.pkDefdoc19},#{entity.pkDefdoc2},#{entity.pkDefdoc20},#{entity.pkDefdoc3},#{entity.pkDefdoc4},#{entity.pkDefdoc5},#{entity.pkDefdoc6},#{entity.pkDefdoc7},#{entity.pkDefdoc8},#{entity.pkDefdoc9},#{entity.ts},#{entity.vdef1},#{entity.vdef10},#{entity.vdef11},#{entity.vdef12},#{entity.vdef13},#{entity.vdef14},#{entity.vdef15},#{entity.vdef16},#{entity.vdef17},#{entity.vdef18},#{entity.vdef19},#{entity.vdef2},#{entity.vdef20},#{entity.vdef3},#{entity.vdef4},#{entity.vdef5},#{entity.vdef6},#{entity.vdef7},#{entity.vdef8},#{entity.vdef9},#{entity.vfree1},#{entity.vfree2},#{entity.vfree3},#{entity.vfree4},#{entity.vfree5},#{entity.vmemo},#{entity.vpriceauditcode},#{entity.vproducenum},#{entity.writeoffassistnum},#{entity.writeoffnum}, 'Y') + + + + + insert into SC_ORDER_B(ACCINSTOREASSISTNUM, BISACTIVE, BOMVERSION, CASSISTUNIT, CBASEID, CCONTRACTID, CCONTRACTRCODE, CCONTRACTROWID, CCURRENCYTYPEID, CMANGID, COPERATOR, CORDERID, CORDERSOURCE, CPRICEAUDIT_BB1ID, CPRICEAUDIT_BID, CPRICEAUDITID, CPROJECTID, CPROJECTPHASEID, CRECEIVEADDRESS, CROWNO, CSOURCEBILLCODE, CSOURCEBILLID, CSOURCEBILLROW, CSOURCEBILLROWNO, CUPSOURCEBILLID, CUPSOURCEBILLROWID, CUPSOURCEBILLTYPE, CWAREHOUSEID, DPLANARRVDATE, DR, FORDERROWSTATUS, IDISCOUNTTAXTYPE, NACCUMARRVNUM, NACCUMINVOICENUM, NACCUMSTORENUM, NACCUMWASTNUM, NASSISTNUM, NBACKARRVNUM, NBACKSTORENUM, NDISCOUNTRATE, NEWVER, NEXCHANGEOTOBRATE, NMONEY, NORDERNUM, NORGNETTAXPRICE, NORGTAXPRICE, NORIGINALCURMNY, NORIGINALCURPRICE, NORIGINALNETPRICE, NORIGINALSUMMNY, NORIGINALTAXMNY, NSUMMNY, NTAXMNY, NTAXRATE, PK_CORP, PK_DEFDOC1, PK_DEFDOC10, PK_DEFDOC11, PK_DEFDOC12, PK_DEFDOC13, PK_DEFDOC14, PK_DEFDOC15, PK_DEFDOC16, PK_DEFDOC17, PK_DEFDOC18, PK_DEFDOC19, PK_DEFDOC2, PK_DEFDOC20, PK_DEFDOC3, PK_DEFDOC4, PK_DEFDOC5, PK_DEFDOC6, PK_DEFDOC7, PK_DEFDOC8, PK_DEFDOC9, TS, VDEF1, VDEF10, VDEF11, VDEF12, VDEF13, VDEF14, VDEF15, VDEF16, VDEF17, VDEF18, VDEF19, VDEF2, VDEF20, VDEF3, VDEF4, VDEF5, VDEF6, VDEF7, VDEF8, VDEF9, VFREE1, VFREE2, VFREE3, VFREE4, VFREE5, VMEMO, VPRICEAUDITCODE, VPRODUCENUM, WRITEOFFASSISTNUM, WRITEOFFNUM) + values + + (#{entity.accinstoreassistnum},#{entity.bisactive},#{entity.bomversion},#{entity.cassistunit},#{entity.cbaseid},#{entity.ccontractid},#{entity.ccontractrcode},#{entity.ccontractrowid},#{entity.ccurrencytypeid},#{entity.cmangid},#{entity.coperator},#{entity.corderid},#{entity.cordersource},#{entity.cpriceauditBb1id},#{entity.cpriceauditBid},#{entity.cpriceauditid},#{entity.cprojectid},#{entity.cprojectphaseid},#{entity.creceiveaddress},#{entity.crowno},#{entity.csourcebillcode},#{entity.csourcebillid},#{entity.csourcebillrow},#{entity.csourcebillrowno},#{entity.cupsourcebillid},#{entity.cupsourcebillrowid},#{entity.cupsourcebilltype},#{entity.cwarehouseid},#{entity.dplanarrvdate},#{entity.dr},#{entity.forderrowstatus},#{entity.idiscounttaxtype},#{entity.naccumarrvnum},#{entity.naccuminvoicenum},#{entity.naccumstorenum},#{entity.naccumwastnum},#{entity.nassistnum},#{entity.nbackarrvnum},#{entity.nbackstorenum},#{entity.ndiscountrate},#{entity.newver},#{entity.nexchangeotobrate},#{entity.nmoney},#{entity.nordernum},#{entity.norgnettaxprice},#{entity.norgtaxprice},#{entity.noriginalcurmny},#{entity.noriginalcurprice},#{entity.noriginalnetprice},#{entity.noriginalsummny},#{entity.noriginaltaxmny},#{entity.nsummny},#{entity.ntaxmny},#{entity.ntaxrate},#{entity.pkCorp},#{entity.pkDefdoc1},#{entity.pkDefdoc10},#{entity.pkDefdoc11},#{entity.pkDefdoc12},#{entity.pkDefdoc13},#{entity.pkDefdoc14},#{entity.pkDefdoc15},#{entity.pkDefdoc16},#{entity.pkDefdoc17},#{entity.pkDefdoc18},#{entity.pkDefdoc19},#{entity.pkDefdoc2},#{entity.pkDefdoc20},#{entity.pkDefdoc3},#{entity.pkDefdoc4},#{entity.pkDefdoc5},#{entity.pkDefdoc6},#{entity.pkDefdoc7},#{entity.pkDefdoc8},#{entity.pkDefdoc9},#{entity.ts},#{entity.vdef1},#{entity.vdef10},#{entity.vdef11},#{entity.vdef12},#{entity.vdef13},#{entity.vdef14},#{entity.vdef15},#{entity.vdef16},#{entity.vdef17},#{entity.vdef18},#{entity.vdef19},#{entity.vdef2},#{entity.vdef20},#{entity.vdef3},#{entity.vdef4},#{entity.vdef5},#{entity.vdef6},#{entity.vdef7},#{entity.vdef8},#{entity.vdef9},#{entity.vfree1},#{entity.vfree2},#{entity.vfree3},#{entity.vfree4},#{entity.vfree5},#{entity.vmemo},#{entity.vpriceauditcode},#{entity.vproducenum},#{entity.writeoffassistnum},#{entity.writeoffnum}) + + on duplicate key update + ACCINSTOREASSISTNUM = values(ACCINSTOREASSISTNUM), + BISACTIVE = values(BISACTIVE), + BOMVERSION = values(BOMVERSION), + CASSISTUNIT = values(CASSISTUNIT), + CBASEID = values(CBASEID), + CCONTRACTID = values(CCONTRACTID), + CCONTRACTRCODE = values(CCONTRACTRCODE), + CCONTRACTROWID = values(CCONTRACTROWID), + CCURRENCYTYPEID = values(CCURRENCYTYPEID), + CMANGID = values(CMANGID), + COPERATOR = values(COPERATOR), + CORDERID = values(CORDERID), + CORDERSOURCE = values(CORDERSOURCE), + CPRICEAUDIT_BB1ID = values(CPRICEAUDIT_BB1ID), + CPRICEAUDIT_BID = values(CPRICEAUDIT_BID), + CPRICEAUDITID = values(CPRICEAUDITID), + CPROJECTID = values(CPROJECTID), + CPROJECTPHASEID = values(CPROJECTPHASEID), + CRECEIVEADDRESS = values(CRECEIVEADDRESS), + CROWNO = values(CROWNO), + CSOURCEBILLCODE = values(CSOURCEBILLCODE), + CSOURCEBILLID = values(CSOURCEBILLID), + CSOURCEBILLROW = values(CSOURCEBILLROW), + CSOURCEBILLROWNO = values(CSOURCEBILLROWNO), + CUPSOURCEBILLID = values(CUPSOURCEBILLID), + CUPSOURCEBILLROWID = values(CUPSOURCEBILLROWID), + CUPSOURCEBILLTYPE = values(CUPSOURCEBILLTYPE), + CWAREHOUSEID = values(CWAREHOUSEID), + DPLANARRVDATE = values(DPLANARRVDATE), + DR = values(DR), + FORDERROWSTATUS = values(FORDERROWSTATUS), + IDISCOUNTTAXTYPE = values(IDISCOUNTTAXTYPE), + NACCUMARRVNUM = values(NACCUMARRVNUM), + NACCUMINVOICENUM = values(NACCUMINVOICENUM), + NACCUMSTORENUM = values(NACCUMSTORENUM), + NACCUMWASTNUM = values(NACCUMWASTNUM), + NASSISTNUM = values(NASSISTNUM), + NBACKARRVNUM = values(NBACKARRVNUM), + NBACKSTORENUM = values(NBACKSTORENUM), + NDISCOUNTRATE = values(NDISCOUNTRATE), + NEWVER = values(NEWVER), + NEXCHANGEOTOBRATE = values(NEXCHANGEOTOBRATE), + NMONEY = values(NMONEY), + NORDERNUM = values(NORDERNUM), + NORGNETTAXPRICE = values(NORGNETTAXPRICE), + NORGTAXPRICE = values(NORGTAXPRICE), + NORIGINALCURMNY = values(NORIGINALCURMNY), + NORIGINALCURPRICE = values(NORIGINALCURPRICE), + NORIGINALNETPRICE = values(NORIGINALNETPRICE), + NORIGINALSUMMNY = values(NORIGINALSUMMNY), + NORIGINALTAXMNY = values(NORIGINALTAXMNY), + NSUMMNY = values(NSUMMNY), + NTAXMNY = values(NTAXMNY), + NTAXRATE = values(NTAXRATE), + PK_CORP = values(PK_CORP), + PK_DEFDOC1 = values(PK_DEFDOC1), + PK_DEFDOC10 = values(PK_DEFDOC10), + PK_DEFDOC11 = values(PK_DEFDOC11), + PK_DEFDOC12 = values(PK_DEFDOC12), + PK_DEFDOC13 = values(PK_DEFDOC13), + PK_DEFDOC14 = values(PK_DEFDOC14), + PK_DEFDOC15 = values(PK_DEFDOC15), + PK_DEFDOC16 = values(PK_DEFDOC16), + PK_DEFDOC17 = values(PK_DEFDOC17), + PK_DEFDOC18 = values(PK_DEFDOC18), + PK_DEFDOC19 = values(PK_DEFDOC19), + PK_DEFDOC2 = values(PK_DEFDOC2), + PK_DEFDOC20 = values(PK_DEFDOC20), + PK_DEFDOC3 = values(PK_DEFDOC3), + PK_DEFDOC4 = values(PK_DEFDOC4), + PK_DEFDOC5 = values(PK_DEFDOC5), + PK_DEFDOC6 = values(PK_DEFDOC6), + PK_DEFDOC7 = values(PK_DEFDOC7), + PK_DEFDOC8 = values(PK_DEFDOC8), + PK_DEFDOC9 = values(PK_DEFDOC9), + TS = values(TS), + VDEF1 = values(VDEF1), + VDEF10 = values(VDEF10), + VDEF11 = values(VDEF11), + VDEF12 = values(VDEF12), + VDEF13 = values(VDEF13), + VDEF14 = values(VDEF14), + VDEF15 = values(VDEF15), + VDEF16 = values(VDEF16), + VDEF17 = values(VDEF17), + VDEF18 = values(VDEF18), + VDEF19 = values(VDEF19), + VDEF2 = values(VDEF2), + VDEF20 = values(VDEF20), + VDEF3 = values(VDEF3), + VDEF4 = values(VDEF4), + VDEF5 = values(VDEF5), + VDEF6 = values(VDEF6), + VDEF7 = values(VDEF7), + VDEF8 = values(VDEF8), + VDEF9 = values(VDEF9), + VFREE1 = values(VFREE1), + VFREE2 = values(VFREE2), + VFREE3 = values(VFREE3), + VFREE4 = values(VFREE4), + VFREE5 = values(VFREE5), + VMEMO = values(VMEMO), + VPRICEAUDITCODE = values(VPRICEAUDITCODE), + VPRODUCENUM = values(VPRODUCENUM), + WRITEOFFASSISTNUM = values(WRITEOFFASSISTNUM), + WRITEOFFNUM = values(WRITEOFFNUM) + + +update SC_ORDER_B set + + ACCINSTOREASSISTNUM = #{accinstoreassistnum}, + BISACTIVE = #{bisactive}, + BOMVERSION = #{bomversion}, + CASSISTUNIT = #{cassistunit}, + CBASEID = #{cbaseid}, + CCONTRACTID = #{ccontractid}, + CCONTRACTRCODE = #{ccontractrcode}, + CCONTRACTROWID = #{ccontractrowid}, + CCURRENCYTYPEID = #{ccurrencytypeid}, + CMANGID = #{cmangid}, + COPERATOR = #{coperator}, + CORDERID = #{corderid}, + CORDERSOURCE = #{cordersource}, + CPRICEAUDIT_BB1ID = #{cpriceauditBb1id}, + CPRICEAUDIT_BID = #{cpriceauditBid}, + CPRICEAUDITID = #{cpriceauditid}, + CPROJECTID = #{cprojectid}, + CPROJECTPHASEID = #{cprojectphaseid}, + CRECEIVEADDRESS = #{creceiveaddress}, + CROWNO = #{crowno}, + CSOURCEBILLCODE = #{csourcebillcode}, + CSOURCEBILLID = #{csourcebillid}, + CSOURCEBILLROW = #{csourcebillrow}, + CSOURCEBILLROWNO = #{csourcebillrowno}, + CUPSOURCEBILLID = #{cupsourcebillid}, + CUPSOURCEBILLROWID = #{cupsourcebillrowid}, + CUPSOURCEBILLTYPE = #{cupsourcebilltype}, + CWAREHOUSEID = #{cwarehouseid}, + DPLANARRVDATE = #{dplanarrvdate}, + DR = #{dr}, + FORDERROWSTATUS = #{forderrowstatus}, + IDISCOUNTTAXTYPE = #{idiscounttaxtype}, + NACCUMARRVNUM = #{naccumarrvnum}, + NACCUMINVOICENUM = #{naccuminvoicenum}, + NACCUMSTORENUM = #{naccumstorenum}, + NACCUMWASTNUM = #{naccumwastnum}, + NASSISTNUM = #{nassistnum}, + NBACKARRVNUM = #{nbackarrvnum}, + NBACKSTORENUM = #{nbackstorenum}, + NDISCOUNTRATE = #{ndiscountrate}, + NEWVER = #{newver}, + NEXCHANGEOTOBRATE = #{nexchangeotobrate}, + NMONEY = #{nmoney}, + NORDERNUM = #{nordernum}, + NORGNETTAXPRICE = #{norgnettaxprice}, + NORGTAXPRICE = #{norgtaxprice}, + NORIGINALCURMNY = #{noriginalcurmny}, + NORIGINALCURPRICE = #{noriginalcurprice}, + NORIGINALNETPRICE = #{noriginalnetprice}, + NORIGINALSUMMNY = #{noriginalsummny}, + NORIGINALTAXMNY = #{noriginaltaxmny}, + NSUMMNY = #{nsummny}, + NTAXMNY = #{ntaxmny}, + NTAXRATE = #{ntaxrate}, + PK_CORP = #{pkCorp}, + PK_DEFDOC1 = #{pkDefdoc1}, + PK_DEFDOC10 = #{pkDefdoc10}, + PK_DEFDOC11 = #{pkDefdoc11}, + PK_DEFDOC12 = #{pkDefdoc12}, + PK_DEFDOC13 = #{pkDefdoc13}, + PK_DEFDOC14 = #{pkDefdoc14}, + PK_DEFDOC15 = #{pkDefdoc15}, + PK_DEFDOC16 = #{pkDefdoc16}, + PK_DEFDOC17 = #{pkDefdoc17}, + PK_DEFDOC18 = #{pkDefdoc18}, + PK_DEFDOC19 = #{pkDefdoc19}, + PK_DEFDOC2 = #{pkDefdoc2}, + PK_DEFDOC20 = #{pkDefdoc20}, + PK_DEFDOC3 = #{pkDefdoc3}, + PK_DEFDOC4 = #{pkDefdoc4}, + PK_DEFDOC5 = #{pkDefdoc5}, + PK_DEFDOC6 = #{pkDefdoc6}, + PK_DEFDOC7 = #{pkDefdoc7}, + PK_DEFDOC8 = #{pkDefdoc8}, + PK_DEFDOC9 = #{pkDefdoc9}, + TS = #{ts}, + VDEF1 = #{vdef1}, + VDEF10 = #{vdef10}, + VDEF11 = #{vdef11}, + VDEF12 = #{vdef12}, + VDEF13 = #{vdef13}, + VDEF14 = #{vdef14}, + VDEF15 = #{vdef15}, + VDEF16 = #{vdef16}, + VDEF17 = #{vdef17}, + VDEF18 = #{vdef18}, + VDEF19 = #{vdef19}, + VDEF2 = #{vdef2}, + VDEF20 = #{vdef20}, + VDEF3 = #{vdef3}, + VDEF4 = #{vdef4}, + VDEF5 = #{vdef5}, + VDEF6 = #{vdef6}, + VDEF7 = #{vdef7}, + VDEF8 = #{vdef8}, + VDEF9 = #{vdef9}, + VFREE1 = #{vfree1}, + VFREE2 = #{vfree2}, + VFREE3 = #{vfree3}, + VFREE4 = #{vfree4}, + VFREE5 = #{vfree5}, + VMEMO = #{vmemo}, + VPRICEAUDITCODE = #{vpriceauditcode}, + VPRODUCENUM = #{vproducenum}, + WRITEOFFASSISTNUM = #{writeoffassistnum}, + WRITEOFFNUM = #{writeoffnum}, + +where CORDER_BID = #{corderBid} + + + +update SC_ORDER_B set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where CORDER_BID = #{corderBid} + + + +update SC_ORDER_B set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and ACCINSTOREASSISTNUM = #{accinstoreassistnum} + and BISACTIVE = #{bisactive} + and BOMVERSION = #{bomversion} + and CASSISTUNIT = #{cassistunit} + and CBASEID = #{cbaseid} + and CCONTRACTID = #{ccontractid} + and CCONTRACTRCODE = #{ccontractrcode} + and CCONTRACTROWID = #{ccontractrowid} + and CCURRENCYTYPEID = #{ccurrencytypeid} + and CMANGID = #{cmangid} + and COPERATOR = #{coperator} + and CORDER_BID = #{corderBid} + and CORDERID = #{corderid} + and CORDERSOURCE = #{cordersource} + and CPRICEAUDIT_BB1ID = #{cpriceauditBb1id} + and CPRICEAUDIT_BID = #{cpriceauditBid} + and CPRICEAUDITID = #{cpriceauditid} + and CPROJECTID = #{cprojectid} + and CPROJECTPHASEID = #{cprojectphaseid} + and CRECEIVEADDRESS = #{creceiveaddress} + and CROWNO = #{crowno} + and CSOURCEBILLCODE = #{csourcebillcode} + and CSOURCEBILLID = #{csourcebillid} + and CSOURCEBILLROW = #{csourcebillrow} + and CSOURCEBILLROWNO = #{csourcebillrowno} + and CUPSOURCEBILLID = #{cupsourcebillid} + and CUPSOURCEBILLROWID = #{cupsourcebillrowid} + and CUPSOURCEBILLTYPE = #{cupsourcebilltype} + and CWAREHOUSEID = #{cwarehouseid} + and DPLANARRVDATE = #{dplanarrvdate} + and DR = #{dr} + and FORDERROWSTATUS = #{forderrowstatus} + and IDISCOUNTTAXTYPE = #{idiscounttaxtype} + and NACCUMARRVNUM = #{naccumarrvnum} + and NACCUMINVOICENUM = #{naccuminvoicenum} + and NACCUMSTORENUM = #{naccumstorenum} + and NACCUMWASTNUM = #{naccumwastnum} + and NASSISTNUM = #{nassistnum} + and NBACKARRVNUM = #{nbackarrvnum} + and NBACKSTORENUM = #{nbackstorenum} + and NDISCOUNTRATE = #{ndiscountrate} + and NEWVER = #{newver} + and NEXCHANGEOTOBRATE = #{nexchangeotobrate} + and NMONEY = #{nmoney} + and NORDERNUM = #{nordernum} + and NORGNETTAXPRICE = #{norgnettaxprice} + and NORGTAXPRICE = #{norgtaxprice} + and NORIGINALCURMNY = #{noriginalcurmny} + and NORIGINALCURPRICE = #{noriginalcurprice} + and NORIGINALNETPRICE = #{noriginalnetprice} + and NORIGINALSUMMNY = #{noriginalsummny} + and NORIGINALTAXMNY = #{noriginaltaxmny} + and NSUMMNY = #{nsummny} + and NTAXMNY = #{ntaxmny} + and NTAXRATE = #{ntaxrate} + and PK_CORP = #{pkCorp} + and PK_DEFDOC1 = #{pkDefdoc1} + and PK_DEFDOC10 = #{pkDefdoc10} + and PK_DEFDOC11 = #{pkDefdoc11} + and PK_DEFDOC12 = #{pkDefdoc12} + and PK_DEFDOC13 = #{pkDefdoc13} + and PK_DEFDOC14 = #{pkDefdoc14} + and PK_DEFDOC15 = #{pkDefdoc15} + and PK_DEFDOC16 = #{pkDefdoc16} + and PK_DEFDOC17 = #{pkDefdoc17} + and PK_DEFDOC18 = #{pkDefdoc18} + and PK_DEFDOC19 = #{pkDefdoc19} + and PK_DEFDOC2 = #{pkDefdoc2} + and PK_DEFDOC20 = #{pkDefdoc20} + and PK_DEFDOC3 = #{pkDefdoc3} + and PK_DEFDOC4 = #{pkDefdoc4} + and PK_DEFDOC5 = #{pkDefdoc5} + and PK_DEFDOC6 = #{pkDefdoc6} + and PK_DEFDOC7 = #{pkDefdoc7} + and PK_DEFDOC8 = #{pkDefdoc8} + and PK_DEFDOC9 = #{pkDefdoc9} + and TS = #{ts} + and VDEF1 = #{vdef1} + and VDEF10 = #{vdef10} + and VDEF11 = #{vdef11} + and VDEF12 = #{vdef12} + and VDEF13 = #{vdef13} + and VDEF14 = #{vdef14} + and VDEF15 = #{vdef15} + and VDEF16 = #{vdef16} + and VDEF17 = #{vdef17} + and VDEF18 = #{vdef18} + and VDEF19 = #{vdef19} + and VDEF2 = #{vdef2} + and VDEF20 = #{vdef20} + and VDEF3 = #{vdef3} + and VDEF4 = #{vdef4} + and VDEF5 = #{vdef5} + and VDEF6 = #{vdef6} + and VDEF7 = #{vdef7} + and VDEF8 = #{vdef8} + and VDEF9 = #{vdef9} + and VFREE1 = #{vfree1} + and VFREE2 = #{vfree2} + and VFREE3 = #{vfree3} + and VFREE4 = #{vfree4} + and VFREE5 = #{vfree5} + and VMEMO = #{vmemo} + and VPRICEAUDITCODE = #{vpriceauditcode} + and VPRODUCENUM = #{vproducenum} + and WRITEOFFASSISTNUM = #{writeoffassistnum} + and WRITEOFFNUM = #{writeoffnum} + and sts='Y' + + + + + delete from SC_ORDER_B where CORDER_BID = #{corderBid} + + + + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/entity/ScOrderEntity.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/entity/ScOrderEntity.java new file mode 100644 index 00000000..52d531d3 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/entity/ScOrderEntity.java @@ -0,0 +1,628 @@ +package com.hzya.frame.plugin.lets.entity; + +import com.hzya.frame.web.entity.BaseEntity; + +/** + * (ScOrder)实体类 + * + * @author makejava + * @since 2024-08-23 15:29:40 + */ +public class ScOrderEntity extends BaseEntity { + + private String caccountbankid; + private String caccountyear; + private String cauditpsn; + private String cbiztype; + private String cdeptid; + private String cemployeeid; + private String cgiveinvoicevendor; + private String coperator; + private String corderid; + private String cpurorganization; + private String creciever; + private String ctermprotocolid; + private String ctransmodeid; + private String cvendorid; + private String cvendormangid; + private String cwareid; + private String dauditdate; + private String dorderdate; + private String dr; + private String ibillstatus; + private String iprintcount; + private String pkCorp; + private String pkDefdoc1; + private String pkDefdoc10; + private String pkDefdoc11; + private String pkDefdoc12; + private String pkDefdoc13; + private String pkDefdoc14; + private String pkDefdoc15; + private String pkDefdoc16; + private String pkDefdoc17; + private String pkDefdoc18; + private String pkDefdoc19; + private String pkDefdoc2; + private String pkDefdoc20; + private String pkDefdoc3; + private String pkDefdoc4; + private String pkDefdoc5; + private String pkDefdoc6; + private String pkDefdoc7; + private String pkDefdoc8; + private String pkDefdoc9; + private String taudittime; + private String tlastmaketime; + private String tmaketime; + private String ts; + private String vdef1; + 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 vdef2; + private String vdef20; + private String vdef3; + private String vdef4; + private String vdef5; + private String vdef6; + private String vdef7; + private String vdef8; + private String vdef9; + private String vmemo; + private String vordercode; + + + public String getCaccountbankid() { + return caccountbankid; + } + + public void setCaccountbankid(String caccountbankid) { + this.caccountbankid = caccountbankid; + } + + public String getCaccountyear() { + return caccountyear; + } + + public void setCaccountyear(String caccountyear) { + this.caccountyear = caccountyear; + } + + public String getCauditpsn() { + return cauditpsn; + } + + public void setCauditpsn(String cauditpsn) { + this.cauditpsn = cauditpsn; + } + + public String getCbiztype() { + return cbiztype; + } + + public void setCbiztype(String cbiztype) { + this.cbiztype = cbiztype; + } + + public String getCdeptid() { + return cdeptid; + } + + public void setCdeptid(String cdeptid) { + this.cdeptid = cdeptid; + } + + public String getCemployeeid() { + return cemployeeid; + } + + public void setCemployeeid(String cemployeeid) { + this.cemployeeid = cemployeeid; + } + + public String getCgiveinvoicevendor() { + return cgiveinvoicevendor; + } + + public void setCgiveinvoicevendor(String cgiveinvoicevendor) { + this.cgiveinvoicevendor = cgiveinvoicevendor; + } + + public String getCoperator() { + return coperator; + } + + public void setCoperator(String coperator) { + this.coperator = coperator; + } + + public String getCorderid() { + return corderid; + } + + public void setCorderid(String corderid) { + this.corderid = corderid; + } + + public String getCpurorganization() { + return cpurorganization; + } + + public void setCpurorganization(String cpurorganization) { + this.cpurorganization = cpurorganization; + } + + public String getCreciever() { + return creciever; + } + + public void setCreciever(String creciever) { + this.creciever = creciever; + } + + public String getCtermprotocolid() { + return ctermprotocolid; + } + + public void setCtermprotocolid(String ctermprotocolid) { + this.ctermprotocolid = ctermprotocolid; + } + + public String getCtransmodeid() { + return ctransmodeid; + } + + public void setCtransmodeid(String ctransmodeid) { + this.ctransmodeid = ctransmodeid; + } + + public String getCvendorid() { + return cvendorid; + } + + public void setCvendorid(String cvendorid) { + this.cvendorid = cvendorid; + } + + public String getCvendormangid() { + return cvendormangid; + } + + public void setCvendormangid(String cvendormangid) { + this.cvendormangid = cvendormangid; + } + + public String getCwareid() { + return cwareid; + } + + public void setCwareid(String cwareid) { + this.cwareid = cwareid; + } + + public String getDauditdate() { + return dauditdate; + } + + public void setDauditdate(String dauditdate) { + this.dauditdate = dauditdate; + } + + public String getDorderdate() { + return dorderdate; + } + + public void setDorderdate(String dorderdate) { + this.dorderdate = dorderdate; + } + + public String getDr() { + return dr; + } + + public void setDr(String dr) { + this.dr = dr; + } + + public String getIbillstatus() { + return ibillstatus; + } + + public void setIbillstatus(String ibillstatus) { + this.ibillstatus = ibillstatus; + } + + public String getIprintcount() { + return iprintcount; + } + + public void setIprintcount(String iprintcount) { + this.iprintcount = iprintcount; + } + + public String getPkCorp() { + return pkCorp; + } + + public void setPkCorp(String pkCorp) { + this.pkCorp = pkCorp; + } + + public String getPkDefdoc1() { + return pkDefdoc1; + } + + public void setPkDefdoc1(String pkDefdoc1) { + this.pkDefdoc1 = pkDefdoc1; + } + + public String getPkDefdoc10() { + return pkDefdoc10; + } + + public void setPkDefdoc10(String pkDefdoc10) { + this.pkDefdoc10 = pkDefdoc10; + } + + public String getPkDefdoc11() { + return pkDefdoc11; + } + + public void setPkDefdoc11(String pkDefdoc11) { + this.pkDefdoc11 = pkDefdoc11; + } + + public String getPkDefdoc12() { + return pkDefdoc12; + } + + public void setPkDefdoc12(String pkDefdoc12) { + this.pkDefdoc12 = pkDefdoc12; + } + + public String getPkDefdoc13() { + return pkDefdoc13; + } + + public void setPkDefdoc13(String pkDefdoc13) { + this.pkDefdoc13 = pkDefdoc13; + } + + public String getPkDefdoc14() { + return pkDefdoc14; + } + + public void setPkDefdoc14(String pkDefdoc14) { + this.pkDefdoc14 = pkDefdoc14; + } + + public String getPkDefdoc15() { + return pkDefdoc15; + } + + public void setPkDefdoc15(String pkDefdoc15) { + this.pkDefdoc15 = pkDefdoc15; + } + + public String getPkDefdoc16() { + return pkDefdoc16; + } + + public void setPkDefdoc16(String pkDefdoc16) { + this.pkDefdoc16 = pkDefdoc16; + } + + public String getPkDefdoc17() { + return pkDefdoc17; + } + + public void setPkDefdoc17(String pkDefdoc17) { + this.pkDefdoc17 = pkDefdoc17; + } + + public String getPkDefdoc18() { + return pkDefdoc18; + } + + public void setPkDefdoc18(String pkDefdoc18) { + this.pkDefdoc18 = pkDefdoc18; + } + + public String getPkDefdoc19() { + return pkDefdoc19; + } + + public void setPkDefdoc19(String pkDefdoc19) { + this.pkDefdoc19 = pkDefdoc19; + } + + public String getPkDefdoc2() { + return pkDefdoc2; + } + + public void setPkDefdoc2(String pkDefdoc2) { + this.pkDefdoc2 = pkDefdoc2; + } + + public String getPkDefdoc20() { + return pkDefdoc20; + } + + public void setPkDefdoc20(String pkDefdoc20) { + this.pkDefdoc20 = pkDefdoc20; + } + + public String getPkDefdoc3() { + return pkDefdoc3; + } + + public void setPkDefdoc3(String pkDefdoc3) { + this.pkDefdoc3 = pkDefdoc3; + } + + public String getPkDefdoc4() { + return pkDefdoc4; + } + + public void setPkDefdoc4(String pkDefdoc4) { + this.pkDefdoc4 = pkDefdoc4; + } + + public String getPkDefdoc5() { + return pkDefdoc5; + } + + public void setPkDefdoc5(String pkDefdoc5) { + this.pkDefdoc5 = pkDefdoc5; + } + + public String getPkDefdoc6() { + return pkDefdoc6; + } + + public void setPkDefdoc6(String pkDefdoc6) { + this.pkDefdoc6 = pkDefdoc6; + } + + public String getPkDefdoc7() { + return pkDefdoc7; + } + + public void setPkDefdoc7(String pkDefdoc7) { + this.pkDefdoc7 = pkDefdoc7; + } + + public String getPkDefdoc8() { + return pkDefdoc8; + } + + public void setPkDefdoc8(String pkDefdoc8) { + this.pkDefdoc8 = pkDefdoc8; + } + + public String getPkDefdoc9() { + return pkDefdoc9; + } + + public void setPkDefdoc9(String pkDefdoc9) { + this.pkDefdoc9 = pkDefdoc9; + } + + public String getTaudittime() { + return taudittime; + } + + public void setTaudittime(String taudittime) { + this.taudittime = taudittime; + } + + public String getTlastmaketime() { + return tlastmaketime; + } + + public void setTlastmaketime(String tlastmaketime) { + this.tlastmaketime = tlastmaketime; + } + + public String getTmaketime() { + return tmaketime; + } + + public void setTmaketime(String tmaketime) { + this.tmaketime = tmaketime; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getVdef1() { + return vdef1; + } + + public void setVdef1(String vdef1) { + this.vdef1 = vdef1; + } + + public String getVdef10() { + return vdef10; + } + + public void setVdef10(String vdef10) { + this.vdef10 = vdef10; + } + + public String getVdef11() { + return vdef11; + } + + public void setVdef11(String vdef11) { + this.vdef11 = vdef11; + } + + public String getVdef12() { + return vdef12; + } + + public void setVdef12(String vdef12) { + this.vdef12 = vdef12; + } + + public String getVdef13() { + return vdef13; + } + + public void setVdef13(String vdef13) { + this.vdef13 = vdef13; + } + + public String getVdef14() { + return vdef14; + } + + public void setVdef14(String vdef14) { + this.vdef14 = vdef14; + } + + public String getVdef15() { + return vdef15; + } + + public void setVdef15(String vdef15) { + this.vdef15 = vdef15; + } + + public String getVdef16() { + return vdef16; + } + + public void setVdef16(String vdef16) { + this.vdef16 = vdef16; + } + + public String getVdef17() { + return vdef17; + } + + public void setVdef17(String vdef17) { + this.vdef17 = vdef17; + } + + public String getVdef18() { + return vdef18; + } + + public void setVdef18(String vdef18) { + this.vdef18 = vdef18; + } + + public String getVdef19() { + return vdef19; + } + + public void setVdef19(String vdef19) { + this.vdef19 = vdef19; + } + + public String getVdef2() { + return vdef2; + } + + public void setVdef2(String vdef2) { + this.vdef2 = vdef2; + } + + public String getVdef20() { + return vdef20; + } + + public void setVdef20(String vdef20) { + this.vdef20 = vdef20; + } + + public String getVdef3() { + return vdef3; + } + + public void setVdef3(String vdef3) { + this.vdef3 = vdef3; + } + + public String getVdef4() { + return vdef4; + } + + public void setVdef4(String vdef4) { + this.vdef4 = vdef4; + } + + public String getVdef5() { + return vdef5; + } + + public void setVdef5(String vdef5) { + this.vdef5 = vdef5; + } + + public String getVdef6() { + return vdef6; + } + + public void setVdef6(String vdef6) { + this.vdef6 = vdef6; + } + + public String getVdef7() { + return vdef7; + } + + public void setVdef7(String vdef7) { + this.vdef7 = vdef7; + } + + public String getVdef8() { + return vdef8; + } + + public void setVdef8(String vdef8) { + this.vdef8 = vdef8; + } + + public String getVdef9() { + return vdef9; + } + + public void setVdef9(String vdef9) { + this.vdef9 = vdef9; + } + + public String getVmemo() { + return vmemo; + } + + public void setVmemo(String vmemo) { + this.vmemo = vmemo; + } + + public String getVordercode() { + return vordercode; + } + + public void setVordercode(String vordercode) { + this.vordercode = vordercode; + } + +} + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/entity/ScOrderEntity.xml b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/entity/ScOrderEntity.xml new file mode 100644 index 00000000..eb181677 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/entity/ScOrderEntity.xml @@ -0,0 +1,857 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CACCOUNTBANKID + ,CACCOUNTYEAR + ,CAUDITPSN + ,CBIZTYPE + ,CDEPTID + ,CEMPLOYEEID + ,CGIVEINVOICEVENDOR + ,COPERATOR + ,CORDERID + ,CPURORGANIZATION + ,CRECIEVER + ,CTERMPROTOCOLID + ,CTRANSMODEID + ,CVENDORID + ,CVENDORMANGID + ,CWAREID + ,DAUDITDATE + ,DORDERDATE + ,DR + ,IBILLSTATUS + ,IPRINTCOUNT + ,PK_CORP + ,PK_DEFDOC1 + ,PK_DEFDOC10 + ,PK_DEFDOC11 + ,PK_DEFDOC12 + ,PK_DEFDOC13 + ,PK_DEFDOC14 + ,PK_DEFDOC15 + ,PK_DEFDOC16 + ,PK_DEFDOC17 + ,PK_DEFDOC18 + ,PK_DEFDOC19 + ,PK_DEFDOC2 + ,PK_DEFDOC20 + ,PK_DEFDOC3 + ,PK_DEFDOC4 + ,PK_DEFDOC5 + ,PK_DEFDOC6 + ,PK_DEFDOC7 + ,PK_DEFDOC8 + ,PK_DEFDOC9 + ,TAUDITTIME + ,TLASTMAKETIME + ,TMAKETIME + ,TS + ,VDEF1 + ,VDEF10 + ,VDEF11 + ,VDEF12 + ,VDEF13 + ,VDEF14 + ,VDEF15 + ,VDEF16 + ,VDEF17 + ,VDEF18 + ,VDEF19 + ,VDEF2 + ,VDEF20 + ,VDEF3 + ,VDEF4 + ,VDEF5 + ,VDEF6 + ,VDEF7 + ,VDEF8 + ,VDEF9 + ,VMEMO + ,VORDERCODE + + + + + + + + + + + + + + + + insert into SC_ORDER( + + CACCOUNTBANKID , + CACCOUNTYEAR , + CAUDITPSN , + CBIZTYPE , + CDEPTID , + CEMPLOYEEID , + CGIVEINVOICEVENDOR , + COPERATOR , + CORDERID , + CPURORGANIZATION , + CRECIEVER , + CTERMPROTOCOLID , + CTRANSMODEID , + CVENDORID , + CVENDORMANGID , + CWAREID , + DAUDITDATE , + DORDERDATE , + DR , + IBILLSTATUS , + IPRINTCOUNT , + PK_CORP , + PK_DEFDOC1 , + PK_DEFDOC10 , + PK_DEFDOC11 , + PK_DEFDOC12 , + PK_DEFDOC13 , + PK_DEFDOC14 , + PK_DEFDOC15 , + PK_DEFDOC16 , + PK_DEFDOC17 , + PK_DEFDOC18 , + PK_DEFDOC19 , + PK_DEFDOC2 , + PK_DEFDOC20 , + PK_DEFDOC3 , + PK_DEFDOC4 , + PK_DEFDOC5 , + PK_DEFDOC6 , + PK_DEFDOC7 , + PK_DEFDOC8 , + PK_DEFDOC9 , + TAUDITTIME , + TLASTMAKETIME , + TMAKETIME , + TS , + VDEF1 , + VDEF10 , + VDEF11 , + VDEF12 , + VDEF13 , + VDEF14 , + VDEF15 , + VDEF16 , + VDEF17 , + VDEF18 , + VDEF19 , + VDEF2 , + VDEF20 , + VDEF3 , + VDEF4 , + VDEF5 , + VDEF6 , + VDEF7 , + VDEF8 , + VDEF9 , + VMEMO , + VORDERCODE , + sorts, + sts, + + )values( + + #{caccountbankid} , + #{caccountyear} , + #{cauditpsn} , + #{cbiztype} , + #{cdeptid} , + #{cemployeeid} , + #{cgiveinvoicevendor} , + #{coperator} , + #{corderid} , + #{cpurorganization} , + #{creciever} , + #{ctermprotocolid} , + #{ctransmodeid} , + #{cvendorid} , + #{cvendormangid} , + #{cwareid} , + #{dauditdate} , + #{dorderdate} , + #{dr} , + #{ibillstatus} , + #{iprintcount} , + #{pkCorp} , + #{pkDefdoc1} , + #{pkDefdoc10} , + #{pkDefdoc11} , + #{pkDefdoc12} , + #{pkDefdoc13} , + #{pkDefdoc14} , + #{pkDefdoc15} , + #{pkDefdoc16} , + #{pkDefdoc17} , + #{pkDefdoc18} , + #{pkDefdoc19} , + #{pkDefdoc2} , + #{pkDefdoc20} , + #{pkDefdoc3} , + #{pkDefdoc4} , + #{pkDefdoc5} , + #{pkDefdoc6} , + #{pkDefdoc7} , + #{pkDefdoc8} , + #{pkDefdoc9} , + #{taudittime} , + #{tlastmaketime} , + #{tmaketime} , + #{ts} , + #{vdef1} , + #{vdef10} , + #{vdef11} , + #{vdef12} , + #{vdef13} , + #{vdef14} , + #{vdef15} , + #{vdef16} , + #{vdef17} , + #{vdef18} , + #{vdef19} , + #{vdef2} , + #{vdef20} , + #{vdef3} , + #{vdef4} , + #{vdef5} , + #{vdef6} , + #{vdef7} , + #{vdef8} , + #{vdef9} , + #{vmemo} , + #{vordercode} , + (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from SC_ORDER a WHERE a.sts = 'Y' ), + 'Y', + + ) + + + + insert into SC_ORDER(CACCOUNTBANKID, CACCOUNTYEAR, CAUDITPSN, CBIZTYPE, CDEPTID, CEMPLOYEEID, CGIVEINVOICEVENDOR, COPERATOR, CPURORGANIZATION, CRECIEVER, CTERMPROTOCOLID, CTRANSMODEID, CVENDORID, CVENDORMANGID, CWAREID, DAUDITDATE, DORDERDATE, DR, IBILLSTATUS, IPRINTCOUNT, PK_CORP, PK_DEFDOC1, PK_DEFDOC10, PK_DEFDOC11, PK_DEFDOC12, PK_DEFDOC13, PK_DEFDOC14, PK_DEFDOC15, PK_DEFDOC16, PK_DEFDOC17, PK_DEFDOC18, PK_DEFDOC19, PK_DEFDOC2, PK_DEFDOC20, PK_DEFDOC3, PK_DEFDOC4, PK_DEFDOC5, PK_DEFDOC6, PK_DEFDOC7, PK_DEFDOC8, PK_DEFDOC9, TAUDITTIME, TLASTMAKETIME, TMAKETIME, TS, VDEF1, VDEF10, VDEF11, VDEF12, VDEF13, VDEF14, VDEF15, VDEF16, VDEF17, VDEF18, VDEF19, VDEF2, VDEF20, VDEF3, VDEF4, VDEF5, VDEF6, VDEF7, VDEF8, VDEF9, VMEMO, VORDERCODE, sts) + values + + (#{entity.caccountbankid},#{entity.caccountyear},#{entity.cauditpsn},#{entity.cbiztype},#{entity.cdeptid},#{entity.cemployeeid},#{entity.cgiveinvoicevendor},#{entity.coperator},#{entity.cpurorganization},#{entity.creciever},#{entity.ctermprotocolid},#{entity.ctransmodeid},#{entity.cvendorid},#{entity.cvendormangid},#{entity.cwareid},#{entity.dauditdate},#{entity.dorderdate},#{entity.dr},#{entity.ibillstatus},#{entity.iprintcount},#{entity.pkCorp},#{entity.pkDefdoc1},#{entity.pkDefdoc10},#{entity.pkDefdoc11},#{entity.pkDefdoc12},#{entity.pkDefdoc13},#{entity.pkDefdoc14},#{entity.pkDefdoc15},#{entity.pkDefdoc16},#{entity.pkDefdoc17},#{entity.pkDefdoc18},#{entity.pkDefdoc19},#{entity.pkDefdoc2},#{entity.pkDefdoc20},#{entity.pkDefdoc3},#{entity.pkDefdoc4},#{entity.pkDefdoc5},#{entity.pkDefdoc6},#{entity.pkDefdoc7},#{entity.pkDefdoc8},#{entity.pkDefdoc9},#{entity.taudittime},#{entity.tlastmaketime},#{entity.tmaketime},#{entity.ts},#{entity.vdef1},#{entity.vdef10},#{entity.vdef11},#{entity.vdef12},#{entity.vdef13},#{entity.vdef14},#{entity.vdef15},#{entity.vdef16},#{entity.vdef17},#{entity.vdef18},#{entity.vdef19},#{entity.vdef2},#{entity.vdef20},#{entity.vdef3},#{entity.vdef4},#{entity.vdef5},#{entity.vdef6},#{entity.vdef7},#{entity.vdef8},#{entity.vdef9},#{entity.vmemo},#{entity.vordercode}, 'Y') + + + + + insert into SC_ORDER(CACCOUNTBANKID, CACCOUNTYEAR, CAUDITPSN, CBIZTYPE, CDEPTID, CEMPLOYEEID, CGIVEINVOICEVENDOR, COPERATOR, CPURORGANIZATION, CRECIEVER, CTERMPROTOCOLID, CTRANSMODEID, CVENDORID, CVENDORMANGID, CWAREID, DAUDITDATE, DORDERDATE, DR, IBILLSTATUS, IPRINTCOUNT, PK_CORP, PK_DEFDOC1, PK_DEFDOC10, PK_DEFDOC11, PK_DEFDOC12, PK_DEFDOC13, PK_DEFDOC14, PK_DEFDOC15, PK_DEFDOC16, PK_DEFDOC17, PK_DEFDOC18, PK_DEFDOC19, PK_DEFDOC2, PK_DEFDOC20, PK_DEFDOC3, PK_DEFDOC4, PK_DEFDOC5, PK_DEFDOC6, PK_DEFDOC7, PK_DEFDOC8, PK_DEFDOC9, TAUDITTIME, TLASTMAKETIME, TMAKETIME, TS, VDEF1, VDEF10, VDEF11, VDEF12, VDEF13, VDEF14, VDEF15, VDEF16, VDEF17, VDEF18, VDEF19, VDEF2, VDEF20, VDEF3, VDEF4, VDEF5, VDEF6, VDEF7, VDEF8, VDEF9, VMEMO, VORDERCODE) + values + + (#{entity.caccountbankid},#{entity.caccountyear},#{entity.cauditpsn},#{entity.cbiztype},#{entity.cdeptid},#{entity.cemployeeid},#{entity.cgiveinvoicevendor},#{entity.coperator},#{entity.cpurorganization},#{entity.creciever},#{entity.ctermprotocolid},#{entity.ctransmodeid},#{entity.cvendorid},#{entity.cvendormangid},#{entity.cwareid},#{entity.dauditdate},#{entity.dorderdate},#{entity.dr},#{entity.ibillstatus},#{entity.iprintcount},#{entity.pkCorp},#{entity.pkDefdoc1},#{entity.pkDefdoc10},#{entity.pkDefdoc11},#{entity.pkDefdoc12},#{entity.pkDefdoc13},#{entity.pkDefdoc14},#{entity.pkDefdoc15},#{entity.pkDefdoc16},#{entity.pkDefdoc17},#{entity.pkDefdoc18},#{entity.pkDefdoc19},#{entity.pkDefdoc2},#{entity.pkDefdoc20},#{entity.pkDefdoc3},#{entity.pkDefdoc4},#{entity.pkDefdoc5},#{entity.pkDefdoc6},#{entity.pkDefdoc7},#{entity.pkDefdoc8},#{entity.pkDefdoc9},#{entity.taudittime},#{entity.tlastmaketime},#{entity.tmaketime},#{entity.ts},#{entity.vdef1},#{entity.vdef10},#{entity.vdef11},#{entity.vdef12},#{entity.vdef13},#{entity.vdef14},#{entity.vdef15},#{entity.vdef16},#{entity.vdef17},#{entity.vdef18},#{entity.vdef19},#{entity.vdef2},#{entity.vdef20},#{entity.vdef3},#{entity.vdef4},#{entity.vdef5},#{entity.vdef6},#{entity.vdef7},#{entity.vdef8},#{entity.vdef9},#{entity.vmemo},#{entity.vordercode}) + + on duplicate key update + CACCOUNTBANKID = values(CACCOUNTBANKID), + CACCOUNTYEAR = values(CACCOUNTYEAR), + CAUDITPSN = values(CAUDITPSN), + CBIZTYPE = values(CBIZTYPE), + CDEPTID = values(CDEPTID), + CEMPLOYEEID = values(CEMPLOYEEID), + CGIVEINVOICEVENDOR = values(CGIVEINVOICEVENDOR), + COPERATOR = values(COPERATOR), + CPURORGANIZATION = values(CPURORGANIZATION), + CRECIEVER = values(CRECIEVER), + CTERMPROTOCOLID = values(CTERMPROTOCOLID), + CTRANSMODEID = values(CTRANSMODEID), + CVENDORID = values(CVENDORID), + CVENDORMANGID = values(CVENDORMANGID), + CWAREID = values(CWAREID), + DAUDITDATE = values(DAUDITDATE), + DORDERDATE = values(DORDERDATE), + DR = values(DR), + IBILLSTATUS = values(IBILLSTATUS), + IPRINTCOUNT = values(IPRINTCOUNT), + PK_CORP = values(PK_CORP), + PK_DEFDOC1 = values(PK_DEFDOC1), + PK_DEFDOC10 = values(PK_DEFDOC10), + PK_DEFDOC11 = values(PK_DEFDOC11), + PK_DEFDOC12 = values(PK_DEFDOC12), + PK_DEFDOC13 = values(PK_DEFDOC13), + PK_DEFDOC14 = values(PK_DEFDOC14), + PK_DEFDOC15 = values(PK_DEFDOC15), + PK_DEFDOC16 = values(PK_DEFDOC16), + PK_DEFDOC17 = values(PK_DEFDOC17), + PK_DEFDOC18 = values(PK_DEFDOC18), + PK_DEFDOC19 = values(PK_DEFDOC19), + PK_DEFDOC2 = values(PK_DEFDOC2), + PK_DEFDOC20 = values(PK_DEFDOC20), + PK_DEFDOC3 = values(PK_DEFDOC3), + PK_DEFDOC4 = values(PK_DEFDOC4), + PK_DEFDOC5 = values(PK_DEFDOC5), + PK_DEFDOC6 = values(PK_DEFDOC6), + PK_DEFDOC7 = values(PK_DEFDOC7), + PK_DEFDOC8 = values(PK_DEFDOC8), + PK_DEFDOC9 = values(PK_DEFDOC9), + TAUDITTIME = values(TAUDITTIME), + TLASTMAKETIME = values(TLASTMAKETIME), + TMAKETIME = values(TMAKETIME), + TS = values(TS), + VDEF1 = values(VDEF1), + VDEF10 = values(VDEF10), + VDEF11 = values(VDEF11), + VDEF12 = values(VDEF12), + VDEF13 = values(VDEF13), + VDEF14 = values(VDEF14), + VDEF15 = values(VDEF15), + VDEF16 = values(VDEF16), + VDEF17 = values(VDEF17), + VDEF18 = values(VDEF18), + VDEF19 = values(VDEF19), + VDEF2 = values(VDEF2), + VDEF20 = values(VDEF20), + VDEF3 = values(VDEF3), + VDEF4 = values(VDEF4), + VDEF5 = values(VDEF5), + VDEF6 = values(VDEF6), + VDEF7 = values(VDEF7), + VDEF8 = values(VDEF8), + VDEF9 = values(VDEF9), + VMEMO = values(VMEMO), + VORDERCODE = values(VORDERCODE) + + +update SC_ORDER set + + CACCOUNTBANKID = #{caccountbankid}, + CACCOUNTYEAR = #{caccountyear}, + CAUDITPSN = #{cauditpsn}, + CBIZTYPE = #{cbiztype}, + CDEPTID = #{cdeptid}, + CEMPLOYEEID = #{cemployeeid}, + CGIVEINVOICEVENDOR = #{cgiveinvoicevendor}, + COPERATOR = #{coperator}, + CPURORGANIZATION = #{cpurorganization}, + CRECIEVER = #{creciever}, + CTERMPROTOCOLID = #{ctermprotocolid}, + CTRANSMODEID = #{ctransmodeid}, + CVENDORID = #{cvendorid}, + CVENDORMANGID = #{cvendormangid}, + CWAREID = #{cwareid}, + DAUDITDATE = #{dauditdate}, + DORDERDATE = #{dorderdate}, + DR = #{dr}, + IBILLSTATUS = #{ibillstatus}, + IPRINTCOUNT = #{iprintcount}, + PK_CORP = #{pkCorp}, + PK_DEFDOC1 = #{pkDefdoc1}, + PK_DEFDOC10 = #{pkDefdoc10}, + PK_DEFDOC11 = #{pkDefdoc11}, + PK_DEFDOC12 = #{pkDefdoc12}, + PK_DEFDOC13 = #{pkDefdoc13}, + PK_DEFDOC14 = #{pkDefdoc14}, + PK_DEFDOC15 = #{pkDefdoc15}, + PK_DEFDOC16 = #{pkDefdoc16}, + PK_DEFDOC17 = #{pkDefdoc17}, + PK_DEFDOC18 = #{pkDefdoc18}, + PK_DEFDOC19 = #{pkDefdoc19}, + PK_DEFDOC2 = #{pkDefdoc2}, + PK_DEFDOC20 = #{pkDefdoc20}, + PK_DEFDOC3 = #{pkDefdoc3}, + PK_DEFDOC4 = #{pkDefdoc4}, + PK_DEFDOC5 = #{pkDefdoc5}, + PK_DEFDOC6 = #{pkDefdoc6}, + PK_DEFDOC7 = #{pkDefdoc7}, + PK_DEFDOC8 = #{pkDefdoc8}, + PK_DEFDOC9 = #{pkDefdoc9}, + TAUDITTIME = #{taudittime}, + TLASTMAKETIME = #{tlastmaketime}, + TMAKETIME = #{tmaketime}, + TS = #{ts}, + VDEF1 = #{vdef1}, + VDEF10 = #{vdef10}, + VDEF11 = #{vdef11}, + VDEF12 = #{vdef12}, + VDEF13 = #{vdef13}, + VDEF14 = #{vdef14}, + VDEF15 = #{vdef15}, + VDEF16 = #{vdef16}, + VDEF17 = #{vdef17}, + VDEF18 = #{vdef18}, + VDEF19 = #{vdef19}, + VDEF2 = #{vdef2}, + VDEF20 = #{vdef20}, + VDEF3 = #{vdef3}, + VDEF4 = #{vdef4}, + VDEF5 = #{vdef5}, + VDEF6 = #{vdef6}, + VDEF7 = #{vdef7}, + VDEF8 = #{vdef8}, + VDEF9 = #{vdef9}, + VMEMO = #{vmemo}, + VORDERCODE = #{vordercode}, + +where CORDERID = #{corderid} + + + +update SC_ORDER set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where CORDERID = #{corderid} + + + +update SC_ORDER set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and CACCOUNTBANKID = #{caccountbankid} + and CACCOUNTYEAR = #{caccountyear} + and CAUDITPSN = #{cauditpsn} + and CBIZTYPE = #{cbiztype} + and CDEPTID = #{cdeptid} + and CEMPLOYEEID = #{cemployeeid} + and CGIVEINVOICEVENDOR = #{cgiveinvoicevendor} + and COPERATOR = #{coperator} + and CORDERID = #{corderid} + and CPURORGANIZATION = #{cpurorganization} + and CRECIEVER = #{creciever} + and CTERMPROTOCOLID = #{ctermprotocolid} + and CTRANSMODEID = #{ctransmodeid} + and CVENDORID = #{cvendorid} + and CVENDORMANGID = #{cvendormangid} + and CWAREID = #{cwareid} + and DAUDITDATE = #{dauditdate} + and DORDERDATE = #{dorderdate} + and DR = #{dr} + and IBILLSTATUS = #{ibillstatus} + and IPRINTCOUNT = #{iprintcount} + and PK_CORP = #{pkCorp} + and PK_DEFDOC1 = #{pkDefdoc1} + and PK_DEFDOC10 = #{pkDefdoc10} + and PK_DEFDOC11 = #{pkDefdoc11} + and PK_DEFDOC12 = #{pkDefdoc12} + and PK_DEFDOC13 = #{pkDefdoc13} + and PK_DEFDOC14 = #{pkDefdoc14} + and PK_DEFDOC15 = #{pkDefdoc15} + and PK_DEFDOC16 = #{pkDefdoc16} + and PK_DEFDOC17 = #{pkDefdoc17} + and PK_DEFDOC18 = #{pkDefdoc18} + and PK_DEFDOC19 = #{pkDefdoc19} + and PK_DEFDOC2 = #{pkDefdoc2} + and PK_DEFDOC20 = #{pkDefdoc20} + and PK_DEFDOC3 = #{pkDefdoc3} + and PK_DEFDOC4 = #{pkDefdoc4} + and PK_DEFDOC5 = #{pkDefdoc5} + and PK_DEFDOC6 = #{pkDefdoc6} + and PK_DEFDOC7 = #{pkDefdoc7} + and PK_DEFDOC8 = #{pkDefdoc8} + and PK_DEFDOC9 = #{pkDefdoc9} + and TAUDITTIME = #{taudittime} + and TLASTMAKETIME = #{tlastmaketime} + and TMAKETIME = #{tmaketime} + and TS = #{ts} + and VDEF1 = #{vdef1} + and VDEF10 = #{vdef10} + and VDEF11 = #{vdef11} + and VDEF12 = #{vdef12} + and VDEF13 = #{vdef13} + and VDEF14 = #{vdef14} + and VDEF15 = #{vdef15} + and VDEF16 = #{vdef16} + and VDEF17 = #{vdef17} + and VDEF18 = #{vdef18} + and VDEF19 = #{vdef19} + and VDEF2 = #{vdef2} + and VDEF20 = #{vdef20} + and VDEF3 = #{vdef3} + and VDEF4 = #{vdef4} + and VDEF5 = #{vdef5} + and VDEF6 = #{vdef6} + and VDEF7 = #{vdef7} + and VDEF8 = #{vdef8} + and VDEF9 = #{vdef9} + and VMEMO = #{vmemo} + and VORDERCODE = #{vordercode} + and sts='Y' + + + + + delete from SC_ORDER where CORDERID = #{corderid} + + + + diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/outsourc/ConsignmachiningIn.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/outsourc/ConsignmachiningIn.java new file mode 100644 index 00000000..d5160577 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/outsourc/ConsignmachiningIn.java @@ -0,0 +1,670 @@ +package com.hzya.frame.plugin.lets.plugin.outsourc; + +import cn.hutool.core.date.DateUtil; +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.JSONObject; +import com.hzya.frame.base.PluginBaseEntity; +import com.hzya.frame.beanutil.BeanUtil; +import com.hzya.frame.plugin.lets.constant.ProfilesActiveConstant; +import com.hzya.frame.plugin.lets.dao.*; +import com.hzya.frame.plugin.lets.entity.*; +import com.hzya.frame.plugin.lets.ofsvo.QueryOfsSoSaleOutVo; +import com.hzya.frame.plugin.lets.plugin.purchase.ProxyPurchaseReturn; +import com.hzya.frame.plugin.lets.u8cdto.*; +import com.hzya.frame.plugin.lets.util.OfsStandardUtil; +import com.hzya.frame.plugin.lets.util.QueryBdBusitypeUtil; +import com.hzya.frame.plugin.lets.util.RdclUtil; +import com.hzya.frame.ttxofs.dto.ofspoorder.OfsPoOrderData; +import com.hzya.frame.ttxofs.dto.ofspoorder.OfsPoOrderDetails; +import com.hzya.frame.ttxofs.dto.ofspoorder.OfsPoOrderHeader; +import com.hzya.frame.ttxofs.dto.ofspurchasereturnorder.PurchaseReturnOrderDetails; +import com.hzya.frame.ttxofs.dto.ofssaleorderoutsearch.DetailsDto; +import com.hzya.frame.ttxofs.dto.stock.StockinOrderSearchResponse; +import com.hzya.frame.ttxofs.service.OfsUnifiedService; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; + +import java.math.BigDecimal; +import java.util.*; + +/** + * O采购入库 -> U8C委外加工入库 + * + * @Author:liuyang + * @Package:com.hzya.frame.plugin.lets.plugin.outsourc + * @Project:kangarooDataCenterV3 + * @name:ConsignmachiningIn + * @Date:2024年8月26日 10:23:20 + * @Filename:ConsignmachiningIn + */ +public class ConsignmachiningIn extends PluginBaseEntity { + + Logger logger = LoggerFactory.getLogger(ConsignmachiningIn.class); + + @Autowired + private QueryBdBusitypeUtil queryBdBusitypeUtil; + + @Autowired + private IBdCorpDao iBdCorpDao; + + @Autowired + private IBdInvmandocDao iBdInvmandocDao; + + @Autowired + private IBdCalbodyDao iBdCalbodyDao; + + @Autowired + private IBdStordocDao iBdStordocDao; + + @Autowired + private RdclUtil rdclUtil; + + @Autowired + private OfsStandardUtil ofsStandardUtil; + + @Autowired + private IScOrderDao iScOrderDao; + + @Autowired + private IScOrderBDao iScOrderBDao; + + @Override + public void initialize() { + logger.info(getPluginLabel() + "執行初始化方法initialize()"); + } + + @Override + public void destroy() { + logger.info(getPluginLabel() + "執行銷毀方法destroy()"); + } + + @Override + public String getPluginId() { + return "com.hzya.frame.plugin.lets.plugin.outsourc.ConsignmachiningIn"; + } + + @Override + public String getPluginName() { + return "OFS采购入库单生成U8C委外加工入库(委外采购入库)"; + } + + @Override + public String getPluginLabel() { + return "OFS采购入库单生成U8C委外加工入库(委外采购入库)"; + } + + @Override + public String getPluginType() { + return "3"; + } + + @Override + public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception { + return null; + } + + /** + * 根据单号查询 + * + * @author liuyang + */ + public void startImplement(String startTime, String endTime) { + String threadNameStrStart = StrUtil.format("开始(委外采购)OFS采购入库单生成U8C委外加工入库 开始时间:{} 结束时间:{}", startTime, endTime); + logger.info(threadNameStrStart); + + Thread thread = new Thread(new Runnable() { + @Override + public void run() { + try { + List returnGoodHeaderDetailsDataDtoArrayList = new ArrayList<>(); + QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo(); + queryOfsSoSaleOutVo.setClosedAt_start(startTime); + queryOfsSoSaleOutVo.setClosedAt_end(endTime); + queryOfsSoSaleOutVo.setClientCode("LETS"); + queryOfsSoSaleOutVo.setPageNo(1L); + queryOfsSoSaleOutVo.setPageSize(50L); + queryOfsSoSaleOutVo.setInternalInstructionType("PURCHASE"); + queryOfsSoSaleOutVo.setStatus(900L); + ofsStandardUtil.queryOfsReturnGoods(queryOfsSoSaleOutVo, returnGoodHeaderDetailsDataDtoArrayList, 1L, "ofs.receipt.search"); + logger.info("数据返回行数:{}", returnGoodHeaderDetailsDataDtoArrayList.size()); + if (returnGoodHeaderDetailsDataDtoArrayList.size() > 0) { + getSet(returnGoodHeaderDetailsDataDtoArrayList); + } else { + logger.info("没有查询到任何数据!不需要同步"); + } + } catch (Exception e) { + logger.error("startImplement方法抛出异常", e); + } + } + }, threadNameStrStart); + thread.start(); + try { + thread.join(); + } catch (Exception e) { + logger.error("thread.join()异常", e); + } + String threadNameStrEnd = StrUtil.format("结束(委外采购)OFS采购入库单生成U8C委外加工入库 开始时间:{} 结束时间:{}", startTime, endTime); + logger.info(threadNameStrEnd); + } + + /** + * 根据单号查询 + * + * @author liuyang + */ + public void startImplement(String code) { + String threadNameStrStart = StrUtil.format("开始(委外采购)OFS采购入库单生成U8C委外加工入库 OFS采购入库单号:{}", code); + logger.info(threadNameStrStart); + + Thread thread = new Thread(new Runnable() { + @Override + public void run() { + try { + List returnGoodHeaderDetailsDataDtoArrayList = new ArrayList<>(); + QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo(); + queryOfsSoSaleOutVo.setClientCode("LETS"); + queryOfsSoSaleOutVo.setPageNo(1L); + queryOfsSoSaleOutVo.setPageSize(50L); + queryOfsSoSaleOutVo.setCode(code); + queryOfsSoSaleOutVo.setInternalInstructionType("PURCHASE"); + queryOfsSoSaleOutVo.setStatus(900L); + ofsStandardUtil.queryOfsReturnGoods(queryOfsSoSaleOutVo, returnGoodHeaderDetailsDataDtoArrayList, 1L, "ofs.receipt.search"); + logger.info("数据返回行数:{}", returnGoodHeaderDetailsDataDtoArrayList.size()); + if (returnGoodHeaderDetailsDataDtoArrayList.size() > 0) { + getSet(returnGoodHeaderDetailsDataDtoArrayList); + } else { + logger.info("没有查询到任何数据!不需要同步"); + } + } catch (Exception e) { + logger.error("startImplement方法抛出异常", e); + } + } + }, threadNameStrStart); + thread.start(); + try { + thread.join(); + } catch (Exception e) { + logger.error("thread.join()异常", e); + } + String threadNameStrEnd = StrUtil.format("结束(委外采购)OFS采购入库单生成U8C委外加工入库 OFS采购入库单号:{}", code); + logger.info(threadNameStrEnd); + } + + /** + * 环境预配置 + * + * @param returnGoodHeaderDetailsDataDtoArrayList 采购入库单 + * @author liuyang + */ + private void getSet(List returnGoodHeaderDetailsDataDtoArrayList) throws Exception { + //过滤成功的数据 + List stockinOrderList = filterData(returnGoodHeaderDetailsDataDtoArrayList); + //执行推送主逻辑 + implement(stockinOrderList); + } + + /** + * 过滤掉成功的数据 + * + * @author liuyang + */ + private List filterData(List returnGoodHeaderDetailsDataDtoArrayList) { + List headerDetailsDtoList1 = new ArrayList<>(); + if (returnGoodHeaderDetailsDataDtoArrayList != null && returnGoodHeaderDetailsDataDtoArrayList.size() > 0) { + //TODO 出库单明细主键,需要O返回,目前没有,已经提需求 + headerDetailsDtoList1.addAll(returnGoodHeaderDetailsDataDtoArrayList); + } + return headerDetailsDtoList1; + } + + /** + * 执行主逻辑 + * + * @author liuyang + */ + private void implement(List returnGoodHeaderDetailsDataDtoList) throws Exception { + if (returnGoodHeaderDetailsDataDtoList != null && returnGoodHeaderDetailsDataDtoList.size() > 0) { + try { + // 查询基本档案 + List consignmachiningInSonDtos = queryBasicArchives(returnGoodHeaderDetailsDataDtoList); + // 查询采购收发类别 + BdRdclEntity bdRdclEntity = rdclUtil.queryRdClObject("105"); + + if (consignmachiningInSonDtos != null && consignmachiningInSonDtos.size() > 0) { + for (int i = 0; i < consignmachiningInSonDtos.size(); i++) { + ConsignmachiningInSonDto consignmachiningInSonDto = consignmachiningInSonDtos.get(i); +// StockinOrderSearchResponse.StockinOrder.StockinH header = consignmachiningInSonDto.getHeader(); + List details = consignmachiningInSonDto.getDetails(); + + String generateBusinessDate = createGenerateBusinessDate(consignmachiningInSonDto); //生成业务日期 + OfsPoOrderData ofsPoOrderData = consignmachiningInSonDto.getOfsPoOrderData();//OFS采购订单 + ScOrderEntity scOrderEntity = consignmachiningInSonDto.getScOrderEntity();//U8C委外订单 + BdCorpEntity bdCorpEntity = consignmachiningInSonDto.getBdCorpEntity();//公司 + BdCalbodyEntity bdCalbodyEntity = consignmachiningInSonDto.getBdCalbodyEntity();//库存组织 + BdStordocEntity bdStordocEntity = consignmachiningInSonDto.getBdStordocEntity();//仓库 +// StockinOrderSearchResponse.StockinOrder.StockinH header1 = consignmachiningInSonDto.getHeader(); + List details1 = consignmachiningInSonDto.getDetails();//OFS采购入库单 + List scOrderBEntityList = consignmachiningInSonDto.getScOrderBEntityList();//U8C委外订单明细行主键 + + OfsPoOrderHeader ofsPoOrderDataHeader = ofsPoOrderData.getHeader(); + List ofsPoOrderDataDetails = ofsPoOrderData.getDetails(); + + // 代理委外入库业务流程 + BdBusitypeEntity bdBusitypeEntity = u8cOperationFlow(bdCorpEntity.getPkCorp()); + + //委外入库表头 + ConsignmachiningInHeadDto poOrderParentDto = new ConsignmachiningInHeadDto(); + poOrderParentDto.setPk_corp(bdCorpEntity.getPkCorp()); + poOrderParentDto.setCoperatorid("0001A110000000000U3D"); + poOrderParentDto.setCwarehouseid(bdStordocEntity.getPkStordoc()); + poOrderParentDto.setPk_calbody(bdCalbodyEntity.getPkCalbody()); + poOrderParentDto.setCbiztype(bdBusitypeEntity.getPkBusitype()); + poOrderParentDto.setCdispatcherid(bdRdclEntity.getPkRdcl());//收发类别 + poOrderParentDto.setDbilldate(generateBusinessDate);//入库日期 + + //委外入库表头明细行 + List consignmachiningInBodyDtoArrayList = new ArrayList<>(); + for (int j = 0; j < details.size(); j++) { + StockinOrderSearchResponse.StockinOrder.StockinB stockinB = details.get(j); + //匹配U8C采购订单明细行 + ScOrderBEntity u8cPoOrderDetail = findOfsPoOrderDetailAndU8cPoOrderDetail(stockinB, ofsPoOrderData, scOrderBEntityList); + //通过O采购订单入库单明细行,联查OFS采购订单明细行 + OfsPoOrderDetails ofsPoOrderDetailRowTraget = findOfsPoOrderDetailRowTraget(stockinB, ofsPoOrderData); + //查询存货管理档案 + BdInvmandocEntity bdInvmandocEntity = queryInventoryMan(stockinB, bdCorpEntity.getPkCorp()); + + //计算含税单价 + BigDecimal noriginalcurprice = null; + String receivedQty = stockinB.getReceivedQty();//实收数量 + String fulfillAmount = ofsPoOrderDetailRowTraget.getFulfillAmount();//实收累计总金额 + try { + noriginalcurprice = new BigDecimal(fulfillAmount).divide(new BigDecimal(receivedQty), 20, BigDecimal.ROUND_HALF_UP).setScale(4, BigDecimal.ROUND_HALF_UP); + } catch (Exception e) { + logger.error("计算采购入库单原币含税单价失败", e); + Assert.state(false, "计算采购入库单原币含税单价失败 原因:{}", e.getMessage()); + } + + ConsignmachiningInBodyDto consignmachiningInBodyDto = new ConsignmachiningInBodyDto(); + consignmachiningInBodyDto.setCinventoryid(bdInvmandocEntity.getPkInvmandoc());//存货 + //TODO 测试 + consignmachiningInBodyDto.setNinnum("1"); +// consignmachiningInBodyDto.setNinnum(new BigDecimal(stockinB.getReceivedQty()).stripTrailingZeros().toPlainString());//实收数量 + consignmachiningInBodyDto.setNprice(noriginalcurprice.stripTrailingZeros().toPlainString());//单价(含税单价) + consignmachiningInBodyDto.setCsourcetype("61");//来源单据类型 + consignmachiningInBodyDto.setVsourcerowno(u8cPoOrderDetail.getCrowno());//来源单据行号 + consignmachiningInBodyDto.setVsourcebillcode(scOrderEntity.getVordercode());//来源单据号 + consignmachiningInBodyDto.setWriteofftype("按备料发料核销");//核销方式 + consignmachiningInBodyDtoArrayList.add(consignmachiningInBodyDto); + } + + List consignmachiningInHeadBodyDtoArrayList = new ArrayList<>(); + + ConsignmachiningInHeadBodyDto consignmachiningInHeadBodyDto = new ConsignmachiningInHeadBodyDto(); + consignmachiningInHeadBodyDto.setParentvo(poOrderParentDto); + consignmachiningInHeadBodyDto.setChildrenvo(consignmachiningInBodyDtoArrayList); + consignmachiningInHeadBodyDtoArrayList.add(consignmachiningInHeadBodyDto); + + Map> stringStringMap = new HashMap<>(); + stringStringMap.put("GeneralBillVO", consignmachiningInHeadBodyDtoArrayList); + //TODO 2024年8月26日 14:41:46 委外入库核销方式传不了!已经提交总部 + //TODO 2024年8月26日 14:42:19 无法超委外订单数量入库!已经提交给总部 + IcGeneralHResultDto icGeneralHResultDto = sendU8cConsignmachiningIn(JSON.toJSONString(stringStringMap)); + + String cgeneralhid = null; + String vbillcode = null; + IcGeneralHResultHeadDto parentvo = icGeneralHResultDto.getParentvo(); + List childrenvo = icGeneralHResultDto.getChildrenvo(); + if (parentvo != null) { + cgeneralhid = parentvo.getCgeneralhid(); + } + if (childrenvo != null) { + vbillcode = parentvo.getVbillcode(); + } + logger.info("推送U8C委外入库成功!委外入库单主键:{} 委外入库单编码:{}", cgeneralhid, vbillcode); + } + } else { + logger.info("poOrderSonDto.size为0!"); + } + } catch (Exception e) { + logger.error("implement方法抛出异常", e); + } + } + } + + /** + * 档案转换(OFS->U8C) + * 2024年8月23日 12:02:47 和妮姐沟通,单据流程U8C成品委外订单 -> 备料计划 -> U8C委外发料(核销) + * + * @author liuyang + */ + private List queryBasicArchives(List returnGoodHeaderDetailsDataDtoList) { + List consignmachiningInSonDtoArrayList = new ArrayList<>(); + + if (returnGoodHeaderDetailsDataDtoList != null && returnGoodHeaderDetailsDataDtoList.size() > 0) { + try { + for (int i = 0; i < returnGoodHeaderDetailsDataDtoList.size(); i++) { + StockinOrderSearchResponse.StockinOrder stockinOrder = returnGoodHeaderDetailsDataDtoList.get(i); + StockinOrderSearchResponse.StockinOrder.StockinH header = stockinOrder.getHeader(); + List details = stockinOrder.getDetails(); + + //2024年8月25日 09:54:31 查询OFS采购订单 + OfsPoOrderData ofsPoOrderData = ofsStandardUtil.queryOfsPoOrder(header.getRefOrderCode()); + Assert.notNull(ofsPoOrderData, "无法查询到委外订单(OFS采购入库单->OSF采购订单->OFS采购订单主键->U8C委外订单自定义项20)"); + OfsPoOrderHeader ofsPoOrderDataHeader = ofsPoOrderData.getHeader(); + List ofsPoOrderDataDetails = ofsPoOrderData.getDetails(); + + //2024年8月25日 09:42:58 查询委外订单,如果这一步报错,后续的逻辑就没有必要执行了 + String ofsId = ofsPoOrderDataHeader.getId(); + Assert.notNull(ofsId, "通过接口查询到OFS采购订单,但是没有采购订单主键,业务逻辑无法完成"); + ScOrderEntity scOrderEntity = queryScOrder(ofsId); + + //2024年8月25日 14:15:45 根据委外订单id,查询委外订单表体明细行 + List scOrderBEntityList = queryScOrderDetail(scOrderEntity.getCorderid()); + + //2024年8月25日 10:09:20 委外入库公司,取委外订单上的公司,已经和妮姐确认,没有必要通过O的公司转换,因为不存在跨组织的问题 + Assert.notNull(scOrderEntity.getPkCorp(), "O表头公司不能为空"); + BdCorpEntity bdCorpEntity = new BdCorpEntity(); + bdCorpEntity.setDr(0); + bdCorpEntity.setDataSourceCode("lets_u8c"); + bdCorpEntity.setPkCorp(scOrderEntity.getPkCorp()); + List bdCorpEntityList = iBdCorpDao.query(bdCorpEntity); + if (bdCorpEntityList.size() == 0) { + Assert.state(false, "根据委外订单公司主键:{},无法匹配到委外入库单", scOrderEntity.getPkCorp()); + } else if (bdCorpEntityList.size() >= 2) { + Assert.state(false, "根据委外订单公司主键:{},匹配到{}个委外入库单", scOrderEntity.getPkCorp(), bdCorpEntityList.size()); + } + + // 2024年8月20日 23:51:56 收货库存组织,应该是通过收货公司查询得出收货库存组织,目前收货公司和采购公司保持一致,那么就以采购公司带出!这个逻辑已经和佳妮确认 + BdCalbodyEntity bdCalbodyEntity = new BdCalbodyEntity(); + bdCalbodyEntity.setDr(0); + bdCalbodyEntity.setDataSourceCode("lets_u8c"); + bdCalbodyEntity.setPkCorp(bdCorpEntityList.get(0).getPkCorp()); + List bdCalbodyEntities = iBdCalbodyDao.query(bdCalbodyEntity); + if (bdCalbodyEntities.size() == 0) { + Assert.state(false, "根据U8C采购公司{},无法匹配到U8C发货库存组织", bdCorpEntityList.get(0).getPkCorp()); + } else if (bdCalbodyEntities.size() >= 2) { + Assert.state(false, "根据U8C采购公司{},匹配到U8C发货库存组织{}个", bdCorpEntityList.get(0).getPkCorp(), bdCalbodyEntities.size()); + } + + //入库仓库 + String facilityCode = header.getFacilityCode(); + Assert.notNull(facilityCode, "O售后入库单仓库facilityCode字段不能为空"); + BdStordocEntity bdStordocEntity = new BdStordocEntity(); + bdStordocEntity.setDr(0L); + bdStordocEntity.setDataSourceCode("lets_u8c"); + bdStordocEntity.setPkCalbody(bdCalbodyEntities.get(0).getPkCalbody()); + bdStordocEntity.setStorcode(facilityCode); + List bdStordocEntityList = iBdStordocDao.query(bdStordocEntity); + if (bdStordocEntityList.size() == 0) { + Assert.state(false, "根据O仓库编码+U8C收货库存组织主键,无法匹配到U8C仓库", facilityCode, bdCalbodyEntities.get(0).getPkCalbody()); + } else if (bdStordocEntityList.size() >= 2) { + Assert.state(false, "根据O仓库编码+U8C收货库存组织主键,匹配到U8C仓库多个", facilityCode, bdCalbodyEntities.get(0).getPkCalbody()); + } + + ConsignmachiningInSonDto consignmachiningInSonDto = new ConsignmachiningInSonDto(); + consignmachiningInSonDto.setOfsPoOrderData(ofsPoOrderData); + consignmachiningInSonDto.setScOrderEntity(scOrderEntity); + consignmachiningInSonDto.setBdCorpEntity(bdCorpEntityList.get(0)); + consignmachiningInSonDto.setBdCalbodyEntity(bdCalbodyEntities.get(0)); + consignmachiningInSonDto.setBdStordocEntity(bdStordocEntityList.get(0)); +// consignmachiningInSonDto.setHeader(header); + consignmachiningInSonDto.setScOrderBEntityList(scOrderBEntityList); + consignmachiningInSonDto.setDetails(details); + + BeanUtil.copyPropertiesV2(header, consignmachiningInSonDto); + consignmachiningInSonDtoArrayList.add(consignmachiningInSonDto); + } + //成功 + } catch (Exception e) { + logger.error("委外入库OFS档案转换", e); + //失败 + } + } else { + logger.info("queryBasicArchives对应returnGoodHeaderDetailsDataDtoList.size为0"); + } + return consignmachiningInSonDtoArrayList; + } + + /** + * 查询委外订单表头对象 + * + * @author liuyang + */ + private ScOrderEntity queryScOrder(String ofsPoOrderId) { + Assert.notNull(ofsPoOrderId, "ofsPoOrderId不能为空!"); + Assert.state(!"".equals(ofsPoOrderId.trim()), "ofsPoOrderId不能为空"); + + ScOrderEntity scOrderEntity = new ScOrderEntity(); + scOrderEntity.setVdef20(ofsPoOrderId); + scOrderEntity.setDr("0"); + scOrderEntity.setDataSourceCode("lets_u8c"); + List scOrderEntityList = iScOrderDao.query(scOrderEntity); + if (scOrderEntityList == null || scOrderEntityList.size() == 0) { + Assert.state(false, "根据O采购订单主键:{}(u委外订单自定义项20存储O采购订单主键),无法匹配到U8C委外订单", ofsPoOrderId); + } else if (scOrderEntityList.size() >= 2) { + Assert.state(false, "根据O采购订单主键:{}(u委外订单自定义项20存储O采购订单主键),匹配到{}个U8C委外订单", ofsPoOrderId, scOrderEntityList.size()); + } + return scOrderEntityList.get(0); + } + + /** + * 2024年8月25日 14:11:31 查询U8C委外订单明细 + * + * @param corderid 委外订单表头主键 + * @author liuyang + */ + private List queryScOrderDetail(String corderid) throws Exception { + Assert.notNull(corderid, "委外订单表头主键不能为空!"); + Assert.state(!"".equals(corderid), "委外订单表头主键不能为空!"); + + ScOrderBEntity scOrderBEntity = new ScOrderBEntity(); + scOrderBEntity.setCorderid(corderid); + scOrderBEntity.setDr("0"); + scOrderBEntity.setDataSourceCode("lets_u8c"); + List scOrderBEntityList = iScOrderBDao.query(scOrderBEntity); + if (scOrderBEntityList == null || scOrderBEntityList.size() == 0) { + //2024年8月25日 14:16:31 这个验证非常要必要,单据如果没有表体没有行,是很可疑的 + Assert.state(false, "根据U8C委外订单主键({})无法查询到委外订单表体明细行!", corderid); + } + return scOrderBEntityList; + } + + /** + * 2024年8月6日 10:59:03 查询U8C业务流程 + * + * @param pkCorp 公司主键 + * @author liuyang + */ + private BdBusitypeEntity u8cOperationFlow(String pkCorp) throws Exception { + Assert.notNull(pkCorp, "公司主键不能为空!"); + Assert.state(!"".equals(pkCorp.trim()), "公司主键不能为空!"); + //查询业务流程 + //2024年8月6日 11:33:07 具体的业务流程名称,还需要实施提供 + String processName = "委外加工"; + BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName, pkCorp); + Assert.notNull(bdBusitypeEntity, "根据业务流程名称({})没有查询到业务流程", processName); + return bdBusitypeEntity; + } + + /** + * 2024年8月20日 15:46:10 + * 生成业务日期,以发货时间作为业务日期 + * + * @author liuyang + */ + private String createGenerateBusinessDate(ConsignmachiningInSonDto consignmachiningInSonDto) { + //TODO 测试 + consignmachiningInSonDto.setShipAt("2024-08-19"); + if (consignmachiningInSonDto != null && consignmachiningInSonDto.getShipAt() != null) { + String shipAt = consignmachiningInSonDto.getShipAt(); + String businessFormat = null; + try { + Date dbill = DateUtil.parse(shipAt); + businessFormat = DateUtil.format(dbill, "yyyy-MM-dd"); + } catch (Exception e) { + logger.error("业务日期生成失败", e); + } + return businessFormat; + } else { + logger.error("生成采购订单入库日期失败,或者shipAt为空! json:{}", JSON.toJSON(consignmachiningInSonDto)); + Assert.state(false, "生成采购订单入库日期失败,或者shipAt为空! json:{}", JSON.toJSON(consignmachiningInSonDto)); + return null; + } + } + + /** + * 匹配U8C采购订单明细行 + * 通过O采购入库单明细行,得到采购订单明细行,最后查找到U8C采购订单明细行 + * + * @param stockinB OFS采购入库单明细行 + * @param ofsPoOrderData OFS采购订单 + * @param scOrderBEntityList U8C委外订单明细行 + * @author liuyang + */ + private ScOrderBEntity findOfsPoOrderDetailAndU8cPoOrderDetail(StockinOrderSearchResponse.StockinOrder.StockinB stockinB, OfsPoOrderData ofsPoOrderData, List scOrderBEntityList) { + Assert.notNull(stockinB, "stockinB不能为空"); + Assert.notNull(ofsPoOrderData, "ofsPoOrderData不能为空"); + Assert.notNull(scOrderBEntityList, "scOrderBEntityList删除不能为空"); + +// OfsPoOrderHeader header = ofsPoOrderData.getHeader(); + List details = ofsPoOrderData.getDetails(); + + //查找采购订单明细行 + OfsPoOrderDetails tarGetOfsPoOrderDetails = null; + for (int i = 0; i < details.size(); i++) { + OfsPoOrderDetails ofsPoOrderDetails = details.get(i); + if (ofsPoOrderDetails.getId().equals(stockinB.getRefOrderDetailId())) { + tarGetOfsPoOrderDetails = ofsPoOrderDetails; + } + } + Assert.notNull(tarGetOfsPoOrderDetails, "无法匹配到采购订单明细行! 目标主键:{}", stockinB.getRefOrderDetailId()); + + //根据采购订单明细行主键,查找U8C采购订单明细行 + for (int i = 0; i < scOrderBEntityList.size(); i++) { + ScOrderBEntity scOrderBEntity = scOrderBEntityList.get(i); + Assert.notNull(scOrderBEntity.getVdef20(), "委外订单明细行v20不能为空(明细行v20存储O采购订单明细行主键)!"); + Assert.state(!"".equals(scOrderBEntity.getVdef20()), "委外订单明细行v20不能为空(明细行v20存储O采购订单明细行主键)!"); + if (tarGetOfsPoOrderDetails.getId().equals(scOrderBEntity.getVdef20())) { + return scOrderBEntity; + } + } + Assert.state(false, "通过U8C采购订单明细行主键层层匹配到U8C采购明细失败!"); + return null; + } + + + /** + * 匹配U8C采购订单明细行 + * 通过O采购入库单明细行,得到采购订单明细行,最后查找到U8C采购订单明细行 + * + * @param stockinB OFS采购入库单明细行 + * @param ofsPoOrderData OFS采购订单 + * @author liuyang + */ + private OfsPoOrderDetails findOfsPoOrderDetailRowTraget(StockinOrderSearchResponse.StockinOrder.StockinB stockinB, OfsPoOrderData ofsPoOrderData) { + Assert.notNull(stockinB, "stockinB不能为空"); + Assert.notNull(ofsPoOrderData, "ofsPoOrderData不能为空"); + + List details = ofsPoOrderData.getDetails(); + for (int i = 0; i < details.size(); i++) { + OfsPoOrderDetails ofsPoOrderDetails = details.get(i); + if (ofsPoOrderDetails.getId().equals(stockinB.getRefOrderDetailId())) { + return ofsPoOrderDetails; + } + } + Assert.state(false, "通过OFS采购入库单,无法匹配到OFS采购订单明细行! 目标主键:{}", stockinB.getRefOrderDetailId()); + return null; + } + + /** + * 查询存货管理档案 + * + * @param pkCorp 发货公司主键 + * @param stockinB 采购入库单明细行 + * @author liuyang + */ + private BdInvmandocEntity queryInventoryMan(StockinOrderSearchResponse.StockinOrder.StockinB stockinB, String pkCorp) throws Exception { + Assert.notNull(stockinB, "sonDetailsDto不能为空"); + Assert.notNull(stockinB.getSkuCode(), "O存货商家编码不能为空"); + Assert.notNull(pkCorp, "发货公司主键不能为空"); + + BdInvmandocEntity bdInvmandocEntity = new BdInvmandocEntity(); + bdInvmandocEntity.setInvcode(stockinB.getSkuCode()); + bdInvmandocEntity.setPkCorp(pkCorp); + List bdInvmandocEntity2 = iBdInvmandocDao.queryBdInvmandocByInvcodeList(bdInvmandocEntity); + if (bdInvmandocEntity2.size() == 0) { + Assert.state(false, "根据O商家编码:{} U8C发货公司主键:{}没有查询到存货管理档案", stockinB.getSkuCode(), pkCorp); + } else if (bdInvmandocEntity2.size() >= 2) { + Assert.state(false, "根据O商家编码:{} U8C发货公司主键:{}没有查询到存货管理档案", stockinB.getSkuCode(), pkCorp); + } + return bdInvmandocEntity2.get(0); + } + + /** + * 2024年8月25日 15:12:22 + * 推送U8C委外订单 + * + * @param param 原数据json + * @author liuyang + */ + public IcGeneralHResultDto sendU8cConsignmachiningIn(String param) throws Exception { + long startLong = System.currentTimeMillis(); + logger.info("U8C委外入库推送开始,推送参数:" + param + ",U8C_URL:" + ProfilesActiveConstant.U8C_URL); + String result = HttpRequest.post(ProfilesActiveConstant.U8C_URL).header("appId", "800037")//头信息,多个头信息多次调用此方法即可 + .header("usercode", "admin").header("password", "21232f297a57a5a743894a0e4a801fc3").header("system", "lz").header("trantype", "PK").header("apiCode", "8000370056")//头信息,多个头信息多次调用此方法即可 + .header("publicKey", "ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj")//头信息,多个头信息多次调用此方法即可 + .header("secretKey", "fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")//头信息,多个头信息多次调用此方法即可 + .body(param)//表单内容 + .timeout(20000)//超时,毫秒 + .execute().body(); + logger.info("U8C委外入库推送结束,返回参数:" + result); + long endLong = System.currentTimeMillis(); + logger.info("U8C委外入库推送耗时:" + (endLong - startLong)); + + if (result == null) { + result = ""; + } + + JSONObject jsonObject = JSON.parseObject(result); + result = String.valueOf(jsonObject.get("attribute")); + + boolean isSuccess = false; + IcGeneralHResultDto icGeneralHResultDto = null; + if (result != null && !"".equals(result)) { + ReusltStrDto reusltStrDto = JSON.parseObject(result, ReusltStrDto.class); + if ("success".equals(reusltStrDto.getStatus())) { + icGeneralHResultDto = resultDataHandle(reusltStrDto.getData()); + isSuccess = true; + } + } + if (!isSuccess) { + Assert.state(false, "O采购入库业务推送U8C委外入库失败 接口返回结果:{}", result); + } + return icGeneralHResultDto; + } + + /** + * 返回结果解析处理,在确认了success后调用 + * + * @author liuyang + */ + private IcGeneralHResultDto resultDataHandle(String resultData) { + try { + if (resultData != null && !"".equals(resultData)) { + if (resultData.contains("[")) { + resultData = resultData.substring(1, resultData.length() - 1); + } + return JSON.parseObject(resultData, IcGeneralHResultDto.class); + } + } catch (Exception e) { + logger.error("resultDataHandle方法解析返回参数失败的错误", e); + //如果解析失败,记录原因,但是不能影响结果的记录 + } + return null; + } +} \ No newline at end of file diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/outsourc/ConsignmachiningInReturn.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/outsourc/ConsignmachiningInReturn.java new file mode 100644 index 00000000..1661f022 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/outsourc/ConsignmachiningInReturn.java @@ -0,0 +1,15 @@ +package com.hzya.frame.plugin.lets.plugin.outsourc; + +/** + * O采退出库 -> U8C红字委外加工入库 + * + * @Author:liuyang + * @Package:com.hzya.frame.plugin.lets.plugin.outsourc + * @Project:kangarooDataCenterV3 + * @name:ConsignmachiningIn + * @Date:2024/8/22 23:49 + * @Filename:ConsignmachiningIn + */ +public class ConsignmachiningInReturn { + +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseReturn.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseReturn.java index 3a03bebf..4efbd5cd 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseReturn.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseReturn.java @@ -552,7 +552,7 @@ public class ProxyPurchaseReturn extends PluginBaseEntity { //查询业务流程 //2024年8月6日 11:33:07 具体的业务流程名称,还需要实施提供 String processName = "代理品牌采购"; - BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName); + BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName, null); Assert.notNull(bdBusitypeEntity, "根据业务流程名称({})没有查询到业务流程", processName); return bdBusitypeEntity; } diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseWarehous.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseWarehous.java index 78ae9e6c..188fda81 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseWarehous.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseWarehous.java @@ -506,7 +506,7 @@ public class ProxyPurchaseWarehous extends PluginBaseEntity { } //查询OFS采购订单 - OfsPoOrderData ofsPoOrderData = queryOfsPoOrder(header.getRefOrderCode()); + OfsPoOrderData ofsPoOrderData = ofsStandardUtil.queryOfsPoOrder(header.getRefOrderCode()); PoOrderSonDto poOrderSonDto = new PoOrderSonDto(); poOrderSonDto.setBdCorpEntity(bdCorpEntityList.get(0)); @@ -542,7 +542,7 @@ public class ProxyPurchaseWarehous extends PluginBaseEntity { //查询业务流程 //2024年8月6日 11:33:07 具体的业务流程名称,还需要实施提供 String processName = "代理品牌采购"; - BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName); + BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName, null); Assert.notNull(bdBusitypeEntity, "根据业务流程名称({})没有查询到业务流程", processName); return bdBusitypeEntity; } @@ -597,43 +597,6 @@ public class ProxyPurchaseWarehous extends PluginBaseEntity { return bdInvmandocEntity2.get(0); } - /** - * 2024年8月20日 16:11:46 - * - * @author liuyang - */ - public OfsPoOrderData queryOfsPoOrder(String code) throws Exception { - if (code != null && !"".equals(code)) { - Long pageSize = 200L; - Long pageNo = 1L; - - QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo(); - queryOfsSoSaleOutVo.setPageNo(pageNo); - queryOfsSoSaleOutVo.setPageSize(pageSize); - queryOfsSoSaleOutVo.setCode(code); - - InterfaceParamDto interfaceParamDto = new InterfaceParamDto(); - interfaceParamDto.setApi("ofs.purchaseOrder.search"); - interfaceParamDto.setData(JSON.toJSONString(queryOfsSoSaleOutVo)); - OfsPoOrderBean ofsPoOrderBean = (OfsPoOrderBean) ofsUnifiedService.unified(interfaceParamDto); - if (ofsPoOrderBean != null) { - if ("false".equals(ofsPoOrderBean.getError()) && "0".equals(ofsPoOrderBean.getCode()) && "Success".equals(ofsPoOrderBean.getMsg())) { - List data = ofsPoOrderBean.getData(); - if (data != null && data.size() > 0) { - return data.get(0); - } - } else { - logger.error("查询采购订单失败,失败原因:{}", JSON.toJSON(interfaceParamDto)); - } - } else { - logger.error("ofsPoOrderBean为空!interfaceParamDto接口入参:{}", JSON.toJSON(interfaceParamDto)); - } - } else { - Assert.state(false, "采购订单编码不能为空!"); - } - return null; - } - /** * 2024年8月20日 16:42:14 * 查找对应的采购订单明细行 diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToB.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToB.java index 69b438a9..01301424 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToB.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToB.java @@ -759,7 +759,7 @@ public class SoSaleOutPluginInitializerToB extends PluginBaseEntity { //查询业务流程 //2024年8月6日 11:33:07 具体的业务流程名称,还需要实施提供 String processName = "TOB销售"; - BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName); + BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName, null); Assert.notNull(bdBusitypeEntity, "根据业务流程名称({})没有查询到业务流程", processName); return bdBusitypeEntity; } diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToC.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToC.java index 77773bef..559836ce 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToC.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToC.java @@ -113,22 +113,24 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity { * * @author liuyang */ - public void startImplement(String dateStr, String summaryOrderNumber) { - String threadNameStr = StrUtil.format("OFS销售出库(TOC)同步U8C销售订单 同步日期:{} 汇总维度:{}", dateStr, summaryOrderNumber); - logger.info(threadNameStr); + public void startImplement(String startTime, String endTime) { + String threadNameStrStart = StrUtil.format("开始 OFS销售出库(TOC)同步U8C销售订单 开始时间:{} 结束时间:{}", startTime, endTime); + logger.info(threadNameStrStart); Thread thread = new Thread(new Runnable() { @Override public void run() { LOCK.lock(); try { - CalculateDateVo calculateDateVo = DateStrUtil.calculateCalculateEntireDayPeriod(dateStr); +// CalculateDateVo calculateDateVo = DateStrUtil.calculateCalculateEntireDayPeriod(dateStr); String tobShop = shopTobOrToCUtil.getCommaShop("TOC"); List headerDetailsDtoList = new ArrayList<>(); QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo(); - queryOfsSoSaleOutVo.setShipAt_start(calculateDateVo.getStart_time()); - queryOfsSoSaleOutVo.setShipAt_end(calculateDateVo.getEnd_time()); +// queryOfsSoSaleOutVo.setShipAt_start(calculateDateVo.getStart_time()); +// queryOfsSoSaleOutVo.setShipAt_end(calculateDateVo.getEnd_time()); + queryOfsSoSaleOutVo.setShipAt_start(startTime); + queryOfsSoSaleOutVo.setShipAt_end(endTime); queryOfsSoSaleOutVo.setClientCode("LETS"); queryOfsSoSaleOutVo.setInternalInstructionType("SALES"); queryOfsSoSaleOutVo.setStatus(900L); @@ -154,13 +156,15 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity { LOCK.unlock(); } } - }, threadNameStr); + }, threadNameStrStart); thread.start(); try { thread.join(); } catch (Exception e) { logger.error("thread.join()异常", e); } + String threadNameStrEnd = StrUtil.format("结束 OFS销售出库(TOC)同步U8C销售订单 开始时间:{} 结束时间:{}", startTime, endTime); + logger.info(threadNameStrEnd); } /** @@ -753,7 +757,7 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity { //查询业务流程 //2024年8月6日 11:33:07 具体的业务流程名称,还需要实施提供 String processName = "TOC销售"; - BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName); + BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName, null); Assert.notNull(bdBusitypeEntity, "根据业务流程名称({})没有查询到业务流程", processName); return bdBusitypeEntity; } diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleReturnPluginInitializerToB.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleReturnPluginInitializerToB.java index 8761a379..bdaf4074 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleReturnPluginInitializerToB.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleReturnPluginInitializerToB.java @@ -740,7 +740,7 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity { //查询业务流程 //2024年8月6日 11:33:07 具体的业务流程名称,还需要实施提供 String processName = "TOB销售"; - BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName); + BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName, null); Assert.notNull(bdBusitypeEntity, "根据业务流程名称({})没有查询到业务流程", processName); return bdBusitypeEntity; } diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleReturnPluginInitializerToC.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleReturnPluginInitializerToC.java index aec64e02..bcc2ca4d 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleReturnPluginInitializerToC.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleReturnPluginInitializerToC.java @@ -761,7 +761,7 @@ public class SoSaleReturnPluginInitializerToC extends PluginBaseEntity { //查询业务流程 //2024年8月6日 11:33:07 具体的业务流程名称,还需要实施提供 String processName = "TOC销售"; - BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName); + BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName, null); Assert.notNull(bdBusitypeEntity, "根据业务流程名称({})没有查询到业务流程", processName); return bdBusitypeEntity; } diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/ConsignmachiningInBodyDto.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/ConsignmachiningInBodyDto.java new file mode 100644 index 00000000..a23c1324 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/ConsignmachiningInBodyDto.java @@ -0,0 +1,22 @@ +package com.hzya.frame.plugin.lets.u8cdto; + +import lombok.Data; + +/** + * @Author:liuyang + * @Package:com.hzya.frame.plugin.lets.u8cdto + * @Project:kangarooDataCenterV3 + * @name:ConsignmachiningInParentParentvo + * @Date:2024/8/25 11:37 + * @Filename:ConsignmachiningInParentParentvo + */ +@Data +public class ConsignmachiningInBodyDto { + private String cinventoryid; + private String ninnum; + private String nprice; + private String csourcetype; + private String vsourcerowno; + private String vsourcebillcode; + private String writeofftype;//核销方式 +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/ConsignmachiningInHeadBodyDto.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/ConsignmachiningInHeadBodyDto.java new file mode 100644 index 00000000..b30220d0 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/ConsignmachiningInHeadBodyDto.java @@ -0,0 +1,19 @@ +package com.hzya.frame.plugin.lets.u8cdto; + +import lombok.Data; + +import java.util.List; + +/** + * @Author:liuyang + * @Package:com.hzya.frame.plugin.lets.u8cdto + * @Project:kangarooDataCenterV3 + * @name:ConsignmachiningInHeadBodyDto + * @Date:2024/8/25 11:40 + * @Filename:ConsignmachiningInHeadBodyDto + */ +@Data +public class ConsignmachiningInHeadBodyDto { + private ConsignmachiningInHeadDto parentvo; + private List childrenvo; +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/ConsignmachiningInHeadDto.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/ConsignmachiningInHeadDto.java new file mode 100644 index 00000000..35a9cab4 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/ConsignmachiningInHeadDto.java @@ -0,0 +1,22 @@ +package com.hzya.frame.plugin.lets.u8cdto; + +import lombok.Data; + +/** + * @Author:liuyang + * @Package:com.hzya.frame.plugin.lets.u8cdto + * @Project:kangarooDataCenterV3 + * @name:ConsignmachiningInParentParentvo + * @Date:2024/8/25 11:37 + * @Filename:ConsignmachiningInParentParentvo + */ +@Data +public class ConsignmachiningInHeadDto { + private String pk_corp; + private String coperatorid; + private String cwarehouseid; + private String pk_calbody; + private String cbiztype; + private String cdispatcherid; + private String dbilldate; +} \ No newline at end of file diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/ConsignmachiningInSonDto.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/ConsignmachiningInSonDto.java new file mode 100644 index 00000000..267ca0a3 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/ConsignmachiningInSonDto.java @@ -0,0 +1,60 @@ +package com.hzya.frame.plugin.lets.u8cdto; + +import com.hzya.frame.plugin.lets.entity.*; +import com.hzya.frame.ttxofs.dto.ofspoorder.OfsPoOrderData; +import com.hzya.frame.ttxofs.dto.stock.StockinOrderSearchResponse; +import lombok.Data; + +import java.util.List; + +/** + * @Author:liuyang + * @Package:com.hzya.frame.plugin.lets.u8cdto + * @Project:kangarooDataCenterV3 + * @name:PoOrderSonDto + * @Date:2024/8/20 14:51 + * @Filename:PoOrderSonDto + */ +@Data +public class ConsignmachiningInSonDto extends StockinOrderSearchResponse.StockinOrder.StockinH { + + /** + * OFS采购订单 + */ + private OfsPoOrderData ofsPoOrderData; + + /** + * U8C委外订单 + */ + private ScOrderEntity scOrderEntity; + + /** + * 公司 + */ + private BdCorpEntity bdCorpEntity; + + /** + * 库存组织 + */ + private BdCalbodyEntity bdCalbodyEntity; + + /** + * 仓库 + */ + private BdStordocEntity bdStordocEntity; + + /** + * OFS采购入库单表头 + */ +// private StockinOrderSearchResponse.StockinOrder.StockinH header; + + /** + * OFS采购入库单表体 + */ + private List details; + + /** + * U8C委外订单明细行 + */ + private List scOrderBEntityList; +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/IcGeneralHResultBodyDto.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/IcGeneralHResultBodyDto.java new file mode 100644 index 00000000..d210a6c7 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/IcGeneralHResultBodyDto.java @@ -0,0 +1,81 @@ +package com.hzya.frame.plugin.lets.u8cdto; + +import lombok.Data; + +/** + * 委外订单表头 + * + * @Author:liuyang + * @Package:com.hzya.frame.plugin.lets.u8cdto + * @Project:kangarooDataCenterV3 + * @name:IcGeneralHResultHead + * @String :2024/8/26 14:17 + * @Filename:IcGeneralHResultHead + */ +@Data +public class IcGeneralHResultBodyDto { + private String bbarcodeclose; + private String bonroadflag; + private String breturnprofit; + private String bsafeprice; + private String bsourcelargess; + private String bsupplyflag; + private String btoinzgflag; + private String btoouttoiaflag; + private String btou8rm; + private String bzgflag; + private String cbodybilltypecode; + private String cbodywarehouseid; + private String bodywarehouse_code; + private String bodywarehouse_name; + private String cfirstbillbid; + private String cfirstbillhid; + private String cgeneralbid; + private String cgeneralhid; + private String crowno; + private String csourcebillbid; + private String csourcebillhid; + private String csourcetype; + private String dbizString; + private String fassertcardflag; + private String fchecked; + private String flargess; + private String idesatype; + private String isok; + private String nbarcodenum; + private String nmny; + private String nprice; + private String npricesettlebill; + private String pk_bodycalbody; + private String bodycalbody_code; + private String bodycalbody_name; + private String pk_corp; + private String corp_code; + private String corp_name; + private String pk_creqwareid; + private String reqware_code; + private String reqware_name; + private String pk_invoicecorp; + private String invoicecorp_code; + private String invoicecorp_name; + private String pk_reqcorp; + private String reqcorp_code; + private String reqcorp_name; + private String pk_reqstoorg; + private String reqstoorg_code; + private String reqstoorg_name; + private String ts; + private String vfirstbillcode; + private String vsourcebillcode; + private String vsourcerowno; + private String pk_measdoc; + private String measdoc_code; + private String measdoc_name; + private String cinventoryid; + private String inventory_code; + private String inventory_name; + private String btransasset; + private String nshouldinnum; + private String ninnum; + private String processcost; +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/IcGeneralHResultDto.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/IcGeneralHResultDto.java new file mode 100644 index 00000000..1ede5e34 --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/IcGeneralHResultDto.java @@ -0,0 +1,19 @@ +package com.hzya.frame.plugin.lets.u8cdto; + +import lombok.Data; + +import java.util.List; + +/** + * @Author:liuyang + * @Package:com.hzya.frame.plugin.lets.u8cdto + * @Project:kangarooDataCenterV3 + * @name:IcGeneralHResultDto + * @Date:2024/8/26 14:22 + * @Filename:IcGeneralHResultDto + */ +@Data +public class IcGeneralHResultDto { + private IcGeneralHResultHeadDto parentvo; + private List childrenvo; +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/IcGeneralHResultHeadDto.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/IcGeneralHResultHeadDto.java new file mode 100644 index 00000000..c9fa42dc --- /dev/null +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/u8cdto/IcGeneralHResultHeadDto.java @@ -0,0 +1,56 @@ +package com.hzya.frame.plugin.lets.u8cdto; + +import lombok.Data; + +/** + * @Author:liuyang + * @Package:com.hzya.frame.plugin.lets.u8cdto + * @Project:kangarooDataCenterV3 + * @name:IcGeneralHResultHead + * @Date:2024/8/26 14:17 + * @Filename:IcGeneralHResultHead + */ +@Data +public class IcGeneralHResultHeadDto { + private String cbiztype; + private String biztype_code; + private String biztype_name; + private String cdispatcherid; + private String dispatcher_code; + private String dispatcher_name; + private String coperatorid; + private String operator_code; + private String operator_name; + private String cproviderid; + private String provider_code; + private String provider_name; + private String cwarehouseid; + private String warehouseid_code; + private String warehouseid_name; + private String pk_calbody; + private String calbody_code; + private String calbody_name; + private String pk_corp; + private String corp_code; + private String corp_name; + private String vbillcode; + private String dbilldate; + private String freplenishflag; + private String bassetcard; + private String bdirecttranflag; + private String cbilltypecode; + private String cgeneralhid; + private String clastmodiid; + private String lastmodi_code; + private String lastmodi_name; + private String cregister; + private String register_code; + private String register_name; + private String daccountdate; + private String fbillflag; + private String vuserdef20; + private String taccounttime; + private String tlastmoditime; + private String tmaketime; + private String ts; +} diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/util/OfsStandardUtil.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/util/OfsStandardUtil.java index bab4239f..d6cdad27 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/util/OfsStandardUtil.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/util/OfsStandardUtil.java @@ -4,6 +4,10 @@ import cn.hutool.core.lang.Assert; import com.alibaba.fastjson.JSON; import com.hzya.frame.plugin.lets.ofsvo.QueryOfsSoSaleOutVo; import com.hzya.frame.ttxofs.dto.InterfaceParamDto; +import com.hzya.frame.ttxofs.dto.ofspoorder.OfsPoOrderBean; +import com.hzya.frame.ttxofs.dto.ofspoorder.OfsPoOrderData; +import com.hzya.frame.ttxofs.dto.ofspoorder.OfsPoOrderDetails; +import com.hzya.frame.ttxofs.dto.ofspoorder.OfsPoOrderHeader; import com.hzya.frame.ttxofs.dto.ofspurchasereturnorder.PurchaseReturnOrder; import com.hzya.frame.ttxofs.dto.ofspurchasereturnorder.PurchaseReturnOrderBean; import com.hzya.frame.ttxofs.dto.ofssaleorderoutsearch.HeaderDetailsDto; @@ -63,8 +67,8 @@ public class OfsStandardUtil { List headerDetailsDtoList1 = saleOutReturnMessageDto.getData(); if (headerDetailsDtoList1 != null && headerDetailsDtoList1.size() > 0) { headerDetailsDtoList.addAll(headerDetailsDtoList1); - - //TODO OFS没有提供分页字段 + //2024年8月23日 14:58:46 调用下一页,直到接口不返回数据为止 + queryOfsSaleOrder(queryOfsSoSaleOutVo, headerDetailsDtoList, ++pageNo, api); } } else { //2024年7月30日 13:47:04 查询失败 @@ -103,8 +107,7 @@ public class OfsStandardUtil { List stockinOrderList = rertunGoodsRootBean.getData(); if (stockinOrderList != null && stockinOrderList.size() > 0) { headerDetailsDtoList.addAll(stockinOrderList); - - //TODO OFS没有提供分页字段,等待开发 + queryOfsReturnGoods(queryOfsSoSaleOutVo, headerDetailsDtoList, ++pageNo, api); } } else { logger.error("查询失败,失败原因:{}", JSON.toJSON(interfaceParamDto)); @@ -138,8 +141,7 @@ public class OfsStandardUtil { List purchaseReturnOrders = purchaseReturnOrderBean.getData(); if (purchaseReturnOrders != null && purchaseReturnOrders.size() > 0) { headerDetailsDtoList.addAll(purchaseReturnOrders); - - //TODO OFS没有提供分页字段,等待开发 + queryPurchaseReturnOrder(queryOfsSoSaleOutVo, headerDetailsDtoList, ++pageNo, api); } } else { logger.error("查询失败,失败原因:{}", JSON.toJSON(interfaceParamDto)); @@ -148,4 +150,49 @@ public class OfsStandardUtil { logger.error("purchaseReturnOrderBean为空!interfaceParamDto对象的结果集json:{}", JSON.toJSON(interfaceParamDto)); } } + + /** + * 2024年8月20日 16:11:46 查询OFS采购订单 + * + * @author liuyang + */ + public OfsPoOrderData queryOfsPoOrder(String code) throws Exception { + if (code != null && !"".equals(code)) { + Long pageSize = 200L; + Long pageNo = 1L; + + QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo(); + queryOfsSoSaleOutVo.setPageNo(pageNo); + queryOfsSoSaleOutVo.setPageSize(pageSize); + queryOfsSoSaleOutVo.setCode(code); + + InterfaceParamDto interfaceParamDto = new InterfaceParamDto(); + interfaceParamDto.setApi("ofs.purchaseOrder.search"); + interfaceParamDto.setData(JSON.toJSONString(queryOfsSoSaleOutVo)); + OfsPoOrderBean ofsPoOrderBean = (OfsPoOrderBean) ofsUnifiedService.unified(interfaceParamDto); + if (ofsPoOrderBean != null) { + if ("false".equals(ofsPoOrderBean.getError()) && "0".equals(ofsPoOrderBean.getCode()) && "Success".equals(ofsPoOrderBean.getMsg())) { + List data = ofsPoOrderBean.getData(); + if (data != null && data.size() > 0) { + OfsPoOrderData ofsPoOrderData = data.get(0); + Assert.notNull(ofsPoOrderData, "OFS采购订单无法解析json!"); + + OfsPoOrderHeader header = ofsPoOrderData.getHeader(); + Assert.notNull(header, "表头对象不能为空!"); + + List details = ofsPoOrderData.getDetails(); + Assert.notNull(details, "明细对象不能为空"); + return data.get(0); + } + } else { + logger.error("查询采购订单失败,失败原因:{}", JSON.toJSON(interfaceParamDto)); + } + } else { + logger.error("ofsPoOrderBean为空!interfaceParamDto接口入参:{}", JSON.toJSON(interfaceParamDto)); + } + } else { + Assert.state(false, "采购订单编码不能为空!"); + } + return null; + } } diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/util/QueryBdBusitypeUtil.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/util/QueryBdBusitypeUtil.java index 328dcb8a..7dec95f1 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/util/QueryBdBusitypeUtil.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/util/QueryBdBusitypeUtil.java @@ -24,11 +24,13 @@ public class QueryBdBusitypeUtil { @Autowired private IBdBusitypeDao iBdBusitypeDao; - public BdBusitypeEntity queryBdBusitype(String businame) { + public BdBusitypeEntity queryBdBusitype(String businame, String pkCorp) { //查询业务流程 BdBusitypeEntity bdBusitypeEntity = new BdBusitypeEntity(); bdBusitypeEntity.setDataSourceCode("lets_u8c"); bdBusitypeEntity.setBusiname(businame); + //2024年8月26日 11:03:06 和浪哥沟通取pkCorp为4个@的业务流程! + bdBusitypeEntity.setPkCorp(pkCorp); bdBusitypeEntity.setDr(0); List bdBusitypeEntityList = iBdBusitypeDao.query(bdBusitypeEntity); if (bdBusitypeEntityList.size() == 0) { diff --git a/buildpackage/src/main/resources/cfgHome/plugin/lets/spring/spring-lets-plugin.xml b/buildpackage/src/main/resources/cfgHome/plugin/lets/spring/spring-lets-plugin.xml index 590ff2b0..f074f1bc 100644 --- a/buildpackage/src/main/resources/cfgHome/plugin/lets/spring/spring-lets-plugin.xml +++ b/buildpackage/src/main/resources/cfgHome/plugin/lets/spring/spring-lets-plugin.xml @@ -26,4 +26,10 @@ + + + + + + diff --git a/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/outsourc/ConsignmachiningInTest.java b/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/outsourc/ConsignmachiningInTest.java new file mode 100644 index 00000000..405b764d --- /dev/null +++ b/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/outsourc/ConsignmachiningInTest.java @@ -0,0 +1,32 @@ +package com.hzya.frame.plugin.lets.plugin.outsourc; + +import com.hzya.frame.WebappApplication; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +import static org.junit.Assert.*; + +/** + * @Author:liuyang + * @Package:com.hzya.frame.plugin.lets.plugin.outsourc + * @Project:kangarooDataCenterV3 + * @name:ConsignmachiningInTest + * @Date:2024/8/25 15:29 + * @Filename:ConsignmachiningInTest + */ +@RunWith(SpringRunner.class) +@SpringBootTest(classes = WebappApplication.class) +public class ConsignmachiningInTest { + + @Autowired + private ConsignmachiningIn consignmachiningIn; + + @Test + public void startImplement() { + String code = "LETS-RE2024082300000007"; + consignmachiningIn.startImplement(code); + } +} \ No newline at end of file diff --git a/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseReturnTest.java b/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseReturnTest.java index 33a025d6..e43a1895 100644 --- a/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseReturnTest.java +++ b/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseReturnTest.java @@ -25,7 +25,10 @@ public class ProxyPurchaseReturnTest { @Test public void startImplement() { try { - proxyPurchaseReturn.startImplement("LETS-SH2024082200000006"); +// proxyPurchaseReturn.startImplement("LETS-SH2024082200000006"); + + + proxyPurchaseReturn.startImplement("2024-01-01 00:00:00", "2024-08-07 23:59:59"); } catch (Exception e) { e.printStackTrace(); } diff --git a/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseWarehousTest.java b/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseWarehousTest.java index 1d3443f7..8719f88a 100644 --- a/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseWarehousTest.java +++ b/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/purchase/ProxyPurchaseWarehousTest.java @@ -27,7 +27,7 @@ public class ProxyPurchaseWarehousTest { @Test public void startImplement() { try { - proxyPurchaseWarehous.startImplement("LETS-RE2024082000000001"); + proxyPurchaseWarehous.startImplement("LETS-SH2024082200000006"); } catch (Exception e) { e.printStackTrace(); } @@ -37,7 +37,7 @@ public class ProxyPurchaseWarehousTest { public void startImplement2() { try { //2024年8月20日 16:17:24 测试查询OFS采购订单 - proxyPurchaseWarehous.queryOfsPoOrder("LETS-PO2024081400000002"); +// proxyPurchaseWarehous.queryOfsPoOrder("LETS-PO2024081400000002"); } catch (Exception e) { e.printStackTrace(); } diff --git a/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToBTest.java b/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToBTest.java index bb3396c1..e1b02c62 100644 --- a/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToBTest.java +++ b/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToBTest.java @@ -32,7 +32,9 @@ public class SoSaleOutPluginInitializerToBTest { @Test public void startImplement() { // soSaleOutPluginInitializerToB.startImplement(null, null); - soSaleOutPluginInitializerToB.startImplement("LETS-SH2024082100000005"); +// soSaleOutPluginInitializerToB.startImplement("LETS-SH2024082200000004"); + + soSaleOutPluginInitializerToB.startImplement("2024-04-28", null); // try { // SaleOrderMessageDto ofsOrder = afterSalesOrderUtil.getOfsOrder("LETS-SO2024081600000050"); diff --git a/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToCTest.java b/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToCTest.java index 13d9b9ff..7dd75fe2 100644 --- a/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToCTest.java +++ b/buildpackage/src/test/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToCTest.java @@ -34,6 +34,8 @@ class SoSaleOutPluginInitializerToCTest { // QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo(); // queryOfsSoSaleOutVo.setCode("LETS-SO2024070500000001"); // soSaleOutPluginInitializerToC.getOfsOrder(queryOfsSoSaleOutVo, 1L); + + soSaleOutPluginInitializerToC.startImplement("2024-04-28 00:00:00", "2024-04-28 23:59:59"); } catch (Exception e) { e.printStackTrace(); }