优化采购、委外代码逻辑
This commit is contained in:
parent
4020327d96
commit
e1f5db92ed
|
@ -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<ScOrderBEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -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<ScOrderEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -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<ScOrderBEntity, String> implements IScOrderBDao{
|
||||
|
||||
}
|
||||
|
|
@ -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<ScOrderEntity, String> implements IScOrderDao {
|
||||
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,857 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.plugin.lets.dao.impl.ScOrderDaoImpl">
|
||||
|
||||
<resultMap id="get-ScOrderEntity-result" type="com.hzya.frame.plugin.lets.entity.ScOrderEntity" >
|
||||
<result property="caccountbankid" column="CACCOUNTBANKID" jdbcType="VARCHAR"/>
|
||||
<result property="caccountyear" column="CACCOUNTYEAR" jdbcType="VARCHAR"/>
|
||||
<result property="cauditpsn" column="CAUDITPSN" jdbcType="VARCHAR"/>
|
||||
<result property="cbiztype" column="CBIZTYPE" jdbcType="VARCHAR"/>
|
||||
<result property="cdeptid" column="CDEPTID" jdbcType="VARCHAR"/>
|
||||
<result property="cemployeeid" column="CEMPLOYEEID" jdbcType="VARCHAR"/>
|
||||
<result property="cgiveinvoicevendor" column="CGIVEINVOICEVENDOR" jdbcType="VARCHAR"/>
|
||||
<result property="coperator" column="COPERATOR" jdbcType="VARCHAR"/>
|
||||
<result property="corderid" column="CORDERID" jdbcType="VARCHAR"/>
|
||||
<result property="cpurorganization" column="CPURORGANIZATION" jdbcType="VARCHAR"/>
|
||||
<result property="creciever" column="CRECIEVER" jdbcType="VARCHAR"/>
|
||||
<result property="ctermprotocolid" column="CTERMPROTOCOLID" jdbcType="VARCHAR"/>
|
||||
<result property="ctransmodeid" column="CTRANSMODEID" jdbcType="VARCHAR"/>
|
||||
<result property="cvendorid" column="CVENDORID" jdbcType="VARCHAR"/>
|
||||
<result property="cvendormangid" column="CVENDORMANGID" jdbcType="VARCHAR"/>
|
||||
<result property="cwareid" column="CWAREID" jdbcType="VARCHAR"/>
|
||||
<result property="dauditdate" column="DAUDITDATE" jdbcType="VARCHAR"/>
|
||||
<result property="dorderdate" column="DORDERDATE" jdbcType="VARCHAR"/>
|
||||
<result property="dr" column="DR" jdbcType="VARCHAR"/>
|
||||
<result property="ibillstatus" column="IBILLSTATUS" jdbcType="VARCHAR"/>
|
||||
<result property="iprintcount" column="IPRINTCOUNT" jdbcType="VARCHAR"/>
|
||||
<result property="pkCorp" column="PK_CORP" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc1" column="PK_DEFDOC1" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc10" column="PK_DEFDOC10" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc11" column="PK_DEFDOC11" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc12" column="PK_DEFDOC12" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc13" column="PK_DEFDOC13" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc14" column="PK_DEFDOC14" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc15" column="PK_DEFDOC15" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc16" column="PK_DEFDOC16" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc17" column="PK_DEFDOC17" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc18" column="PK_DEFDOC18" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc19" column="PK_DEFDOC19" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc2" column="PK_DEFDOC2" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc20" column="PK_DEFDOC20" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc3" column="PK_DEFDOC3" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc4" column="PK_DEFDOC4" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc5" column="PK_DEFDOC5" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc6" column="PK_DEFDOC6" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc7" column="PK_DEFDOC7" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc8" column="PK_DEFDOC8" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdoc9" column="PK_DEFDOC9" jdbcType="VARCHAR"/>
|
||||
<result property="taudittime" column="TAUDITTIME" jdbcType="VARCHAR"/>
|
||||
<result property="tlastmaketime" column="TLASTMAKETIME" jdbcType="VARCHAR"/>
|
||||
<result property="tmaketime" column="TMAKETIME" jdbcType="VARCHAR"/>
|
||||
<result property="ts" column="TS" jdbcType="VARCHAR"/>
|
||||
<result property="vdef1" column="VDEF1" jdbcType="VARCHAR"/>
|
||||
<result property="vdef10" column="VDEF10" jdbcType="VARCHAR"/>
|
||||
<result property="vdef11" column="VDEF11" jdbcType="VARCHAR"/>
|
||||
<result property="vdef12" column="VDEF12" jdbcType="VARCHAR"/>
|
||||
<result property="vdef13" column="VDEF13" jdbcType="VARCHAR"/>
|
||||
<result property="vdef14" column="VDEF14" jdbcType="VARCHAR"/>
|
||||
<result property="vdef15" column="VDEF15" jdbcType="VARCHAR"/>
|
||||
<result property="vdef16" column="VDEF16" jdbcType="VARCHAR"/>
|
||||
<result property="vdef17" column="VDEF17" jdbcType="VARCHAR"/>
|
||||
<result property="vdef18" column="VDEF18" jdbcType="VARCHAR"/>
|
||||
<result property="vdef19" column="VDEF19" jdbcType="VARCHAR"/>
|
||||
<result property="vdef2" column="VDEF2" jdbcType="VARCHAR"/>
|
||||
<result property="vdef20" column="VDEF20" jdbcType="VARCHAR"/>
|
||||
<result property="vdef3" column="VDEF3" jdbcType="VARCHAR"/>
|
||||
<result property="vdef4" column="VDEF4" jdbcType="VARCHAR"/>
|
||||
<result property="vdef5" column="VDEF5" jdbcType="VARCHAR"/>
|
||||
<result property="vdef6" column="VDEF6" jdbcType="VARCHAR"/>
|
||||
<result property="vdef7" column="VDEF7" jdbcType="VARCHAR"/>
|
||||
<result property="vdef8" column="VDEF8" jdbcType="VARCHAR"/>
|
||||
<result property="vdef9" column="VDEF9" jdbcType="VARCHAR"/>
|
||||
<result property="vmemo" column="VMEMO" jdbcType="VARCHAR"/>
|
||||
<result property="vordercode" column="VORDERCODE" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "ScOrderEntity_Base_Column_List">
|
||||
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
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-ScOrderEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.ScOrderEntity">
|
||||
select
|
||||
<include refid="ScOrderEntity_Base_Column_List" />
|
||||
from SC_ORDER
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="caccountbankid != null and caccountbankid != ''"> and CACCOUNTBANKID = #{caccountbankid} </if>
|
||||
<if test="caccountyear != null and caccountyear != ''"> and CACCOUNTYEAR = #{caccountyear} </if>
|
||||
<if test="cauditpsn != null and cauditpsn != ''"> and CAUDITPSN = #{cauditpsn} </if>
|
||||
<if test="cbiztype != null and cbiztype != ''"> and CBIZTYPE = #{cbiztype} </if>
|
||||
<if test="cdeptid != null and cdeptid != ''"> and CDEPTID = #{cdeptid} </if>
|
||||
<if test="cemployeeid != null and cemployeeid != ''"> and CEMPLOYEEID = #{cemployeeid} </if>
|
||||
<if test="cgiveinvoicevendor != null and cgiveinvoicevendor != ''"> and CGIVEINVOICEVENDOR = #{cgiveinvoicevendor} </if>
|
||||
<if test="coperator != null and coperator != ''"> and COPERATOR = #{coperator} </if>
|
||||
<if test="corderid != null and corderid != ''"> and CORDERID = #{corderid} </if>
|
||||
<if test="cpurorganization != null and cpurorganization != ''"> and CPURORGANIZATION = #{cpurorganization} </if>
|
||||
<if test="creciever != null and creciever != ''"> and CRECIEVER = #{creciever} </if>
|
||||
<if test="ctermprotocolid != null and ctermprotocolid != ''"> and CTERMPROTOCOLID = #{ctermprotocolid} </if>
|
||||
<if test="ctransmodeid != null and ctransmodeid != ''"> and CTRANSMODEID = #{ctransmodeid} </if>
|
||||
<if test="cvendorid != null and cvendorid != ''"> and CVENDORID = #{cvendorid} </if>
|
||||
<if test="cvendormangid != null and cvendormangid != ''"> and CVENDORMANGID = #{cvendormangid} </if>
|
||||
<if test="cwareid != null and cwareid != ''"> and CWAREID = #{cwareid} </if>
|
||||
<if test="dauditdate != null and dauditdate != ''"> and DAUDITDATE = #{dauditdate} </if>
|
||||
<if test="dorderdate != null and dorderdate != ''"> and DORDERDATE = #{dorderdate} </if>
|
||||
<if test="dr != null and dr != ''"> and DR = #{dr} </if>
|
||||
<if test="ibillstatus != null and ibillstatus != ''"> and IBILLSTATUS = #{ibillstatus} </if>
|
||||
<if test="iprintcount != null and iprintcount != ''"> and IPRINTCOUNT = #{iprintcount} </if>
|
||||
<if test="pkCorp != null and pkCorp != ''"> and PK_CORP = #{pkCorp} </if>
|
||||
<if test="pkDefdoc1 != null and pkDefdoc1 != ''"> and PK_DEFDOC1 = #{pkDefdoc1} </if>
|
||||
<if test="pkDefdoc10 != null and pkDefdoc10 != ''"> and PK_DEFDOC10 = #{pkDefdoc10} </if>
|
||||
<if test="pkDefdoc11 != null and pkDefdoc11 != ''"> and PK_DEFDOC11 = #{pkDefdoc11} </if>
|
||||
<if test="pkDefdoc12 != null and pkDefdoc12 != ''"> and PK_DEFDOC12 = #{pkDefdoc12} </if>
|
||||
<if test="pkDefdoc13 != null and pkDefdoc13 != ''"> and PK_DEFDOC13 = #{pkDefdoc13} </if>
|
||||
<if test="pkDefdoc14 != null and pkDefdoc14 != ''"> and PK_DEFDOC14 = #{pkDefdoc14} </if>
|
||||
<if test="pkDefdoc15 != null and pkDefdoc15 != ''"> and PK_DEFDOC15 = #{pkDefdoc15} </if>
|
||||
<if test="pkDefdoc16 != null and pkDefdoc16 != ''"> and PK_DEFDOC16 = #{pkDefdoc16} </if>
|
||||
<if test="pkDefdoc17 != null and pkDefdoc17 != ''"> and PK_DEFDOC17 = #{pkDefdoc17} </if>
|
||||
<if test="pkDefdoc18 != null and pkDefdoc18 != ''"> and PK_DEFDOC18 = #{pkDefdoc18} </if>
|
||||
<if test="pkDefdoc19 != null and pkDefdoc19 != ''"> and PK_DEFDOC19 = #{pkDefdoc19} </if>
|
||||
<if test="pkDefdoc2 != null and pkDefdoc2 != ''"> and PK_DEFDOC2 = #{pkDefdoc2} </if>
|
||||
<if test="pkDefdoc20 != null and pkDefdoc20 != ''"> and PK_DEFDOC20 = #{pkDefdoc20} </if>
|
||||
<if test="pkDefdoc3 != null and pkDefdoc3 != ''"> and PK_DEFDOC3 = #{pkDefdoc3} </if>
|
||||
<if test="pkDefdoc4 != null and pkDefdoc4 != ''"> and PK_DEFDOC4 = #{pkDefdoc4} </if>
|
||||
<if test="pkDefdoc5 != null and pkDefdoc5 != ''"> and PK_DEFDOC5 = #{pkDefdoc5} </if>
|
||||
<if test="pkDefdoc6 != null and pkDefdoc6 != ''"> and PK_DEFDOC6 = #{pkDefdoc6} </if>
|
||||
<if test="pkDefdoc7 != null and pkDefdoc7 != ''"> and PK_DEFDOC7 = #{pkDefdoc7} </if>
|
||||
<if test="pkDefdoc8 != null and pkDefdoc8 != ''"> and PK_DEFDOC8 = #{pkDefdoc8} </if>
|
||||
<if test="pkDefdoc9 != null and pkDefdoc9 != ''"> and PK_DEFDOC9 = #{pkDefdoc9} </if>
|
||||
<if test="taudittime != null and taudittime != ''"> and TAUDITTIME = #{taudittime} </if>
|
||||
<if test="tlastmaketime != null and tlastmaketime != ''"> and TLASTMAKETIME = #{tlastmaketime} </if>
|
||||
<if test="tmaketime != null and tmaketime != ''"> and TMAKETIME = #{tmaketime} </if>
|
||||
<if test="ts != null and ts != ''"> and TS = #{ts} </if>
|
||||
<if test="vdef1 != null and vdef1 != ''"> and VDEF1 = #{vdef1} </if>
|
||||
<if test="vdef10 != null and vdef10 != ''"> and VDEF10 = #{vdef10} </if>
|
||||
<if test="vdef11 != null and vdef11 != ''"> and VDEF11 = #{vdef11} </if>
|
||||
<if test="vdef12 != null and vdef12 != ''"> and VDEF12 = #{vdef12} </if>
|
||||
<if test="vdef13 != null and vdef13 != ''"> and VDEF13 = #{vdef13} </if>
|
||||
<if test="vdef14 != null and vdef14 != ''"> and VDEF14 = #{vdef14} </if>
|
||||
<if test="vdef15 != null and vdef15 != ''"> and VDEF15 = #{vdef15} </if>
|
||||
<if test="vdef16 != null and vdef16 != ''"> and VDEF16 = #{vdef16} </if>
|
||||
<if test="vdef17 != null and vdef17 != ''"> and VDEF17 = #{vdef17} </if>
|
||||
<if test="vdef18 != null and vdef18 != ''"> and VDEF18 = #{vdef18} </if>
|
||||
<if test="vdef19 != null and vdef19 != ''"> and VDEF19 = #{vdef19} </if>
|
||||
<if test="vdef2 != null and vdef2 != ''"> and VDEF2 = #{vdef2} </if>
|
||||
<if test="vdef20 != null and vdef20 != ''"> and VDEF20 = #{vdef20} </if>
|
||||
<if test="vdef3 != null and vdef3 != ''"> and VDEF3 = #{vdef3} </if>
|
||||
<if test="vdef4 != null and vdef4 != ''"> and VDEF4 = #{vdef4} </if>
|
||||
<if test="vdef5 != null and vdef5 != ''"> and VDEF5 = #{vdef5} </if>
|
||||
<if test="vdef6 != null and vdef6 != ''"> and VDEF6 = #{vdef6} </if>
|
||||
<if test="vdef7 != null and vdef7 != ''"> and VDEF7 = #{vdef7} </if>
|
||||
<if test="vdef8 != null and vdef8 != ''"> and VDEF8 = #{vdef8} </if>
|
||||
<if test="vdef9 != null and vdef9 != ''"> and VDEF9 = #{vdef9} </if>
|
||||
<if test="vmemo != null and vmemo != ''"> and VMEMO = #{vmemo} </if>
|
||||
<if test="vordercode != null and vordercode != ''"> and VORDERCODE = #{vordercode} </if>
|
||||
-- and sts='Y'
|
||||
</trim>
|
||||
<!-- <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>-->
|
||||
<!-- <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>-->
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.lets.entity.ScOrderEntity">
|
||||
select count(1) from SC_ORDER
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="caccountbankid != null and caccountbankid != ''"> and CACCOUNTBANKID = #{caccountbankid} </if>
|
||||
<if test="caccountyear != null and caccountyear != ''"> and CACCOUNTYEAR = #{caccountyear} </if>
|
||||
<if test="cauditpsn != null and cauditpsn != ''"> and CAUDITPSN = #{cauditpsn} </if>
|
||||
<if test="cbiztype != null and cbiztype != ''"> and CBIZTYPE = #{cbiztype} </if>
|
||||
<if test="cdeptid != null and cdeptid != ''"> and CDEPTID = #{cdeptid} </if>
|
||||
<if test="cemployeeid != null and cemployeeid != ''"> and CEMPLOYEEID = #{cemployeeid} </if>
|
||||
<if test="cgiveinvoicevendor != null and cgiveinvoicevendor != ''"> and CGIVEINVOICEVENDOR = #{cgiveinvoicevendor} </if>
|
||||
<if test="coperator != null and coperator != ''"> and COPERATOR = #{coperator} </if>
|
||||
<if test="corderid != null and corderid != ''"> and CORDERID = #{corderid} </if>
|
||||
<if test="cpurorganization != null and cpurorganization != ''"> and CPURORGANIZATION = #{cpurorganization} </if>
|
||||
<if test="creciever != null and creciever != ''"> and CRECIEVER = #{creciever} </if>
|
||||
<if test="ctermprotocolid != null and ctermprotocolid != ''"> and CTERMPROTOCOLID = #{ctermprotocolid} </if>
|
||||
<if test="ctransmodeid != null and ctransmodeid != ''"> and CTRANSMODEID = #{ctransmodeid} </if>
|
||||
<if test="cvendorid != null and cvendorid != ''"> and CVENDORID = #{cvendorid} </if>
|
||||
<if test="cvendormangid != null and cvendormangid != ''"> and CVENDORMANGID = #{cvendormangid} </if>
|
||||
<if test="cwareid != null and cwareid != ''"> and CWAREID = #{cwareid} </if>
|
||||
<if test="dauditdate != null and dauditdate != ''"> and DAUDITDATE = #{dauditdate} </if>
|
||||
<if test="dorderdate != null and dorderdate != ''"> and DORDERDATE = #{dorderdate} </if>
|
||||
<if test="dr != null and dr != ''"> and DR = #{dr} </if>
|
||||
<if test="ibillstatus != null and ibillstatus != ''"> and IBILLSTATUS = #{ibillstatus} </if>
|
||||
<if test="iprintcount != null and iprintcount != ''"> and IPRINTCOUNT = #{iprintcount} </if>
|
||||
<if test="pkCorp != null and pkCorp != ''"> and PK_CORP = #{pkCorp} </if>
|
||||
<if test="pkDefdoc1 != null and pkDefdoc1 != ''"> and PK_DEFDOC1 = #{pkDefdoc1} </if>
|
||||
<if test="pkDefdoc10 != null and pkDefdoc10 != ''"> and PK_DEFDOC10 = #{pkDefdoc10} </if>
|
||||
<if test="pkDefdoc11 != null and pkDefdoc11 != ''"> and PK_DEFDOC11 = #{pkDefdoc11} </if>
|
||||
<if test="pkDefdoc12 != null and pkDefdoc12 != ''"> and PK_DEFDOC12 = #{pkDefdoc12} </if>
|
||||
<if test="pkDefdoc13 != null and pkDefdoc13 != ''"> and PK_DEFDOC13 = #{pkDefdoc13} </if>
|
||||
<if test="pkDefdoc14 != null and pkDefdoc14 != ''"> and PK_DEFDOC14 = #{pkDefdoc14} </if>
|
||||
<if test="pkDefdoc15 != null and pkDefdoc15 != ''"> and PK_DEFDOC15 = #{pkDefdoc15} </if>
|
||||
<if test="pkDefdoc16 != null and pkDefdoc16 != ''"> and PK_DEFDOC16 = #{pkDefdoc16} </if>
|
||||
<if test="pkDefdoc17 != null and pkDefdoc17 != ''"> and PK_DEFDOC17 = #{pkDefdoc17} </if>
|
||||
<if test="pkDefdoc18 != null and pkDefdoc18 != ''"> and PK_DEFDOC18 = #{pkDefdoc18} </if>
|
||||
<if test="pkDefdoc19 != null and pkDefdoc19 != ''"> and PK_DEFDOC19 = #{pkDefdoc19} </if>
|
||||
<if test="pkDefdoc2 != null and pkDefdoc2 != ''"> and PK_DEFDOC2 = #{pkDefdoc2} </if>
|
||||
<if test="pkDefdoc20 != null and pkDefdoc20 != ''"> and PK_DEFDOC20 = #{pkDefdoc20} </if>
|
||||
<if test="pkDefdoc3 != null and pkDefdoc3 != ''"> and PK_DEFDOC3 = #{pkDefdoc3} </if>
|
||||
<if test="pkDefdoc4 != null and pkDefdoc4 != ''"> and PK_DEFDOC4 = #{pkDefdoc4} </if>
|
||||
<if test="pkDefdoc5 != null and pkDefdoc5 != ''"> and PK_DEFDOC5 = #{pkDefdoc5} </if>
|
||||
<if test="pkDefdoc6 != null and pkDefdoc6 != ''"> and PK_DEFDOC6 = #{pkDefdoc6} </if>
|
||||
<if test="pkDefdoc7 != null and pkDefdoc7 != ''"> and PK_DEFDOC7 = #{pkDefdoc7} </if>
|
||||
<if test="pkDefdoc8 != null and pkDefdoc8 != ''"> and PK_DEFDOC8 = #{pkDefdoc8} </if>
|
||||
<if test="pkDefdoc9 != null and pkDefdoc9 != ''"> and PK_DEFDOC9 = #{pkDefdoc9} </if>
|
||||
<if test="taudittime != null and taudittime != ''"> and TAUDITTIME = #{taudittime} </if>
|
||||
<if test="tlastmaketime != null and tlastmaketime != ''"> and TLASTMAKETIME = #{tlastmaketime} </if>
|
||||
<if test="tmaketime != null and tmaketime != ''"> and TMAKETIME = #{tmaketime} </if>
|
||||
<if test="ts != null and ts != ''"> and TS = #{ts} </if>
|
||||
<if test="vdef1 != null and vdef1 != ''"> and VDEF1 = #{vdef1} </if>
|
||||
<if test="vdef10 != null and vdef10 != ''"> and VDEF10 = #{vdef10} </if>
|
||||
<if test="vdef11 != null and vdef11 != ''"> and VDEF11 = #{vdef11} </if>
|
||||
<if test="vdef12 != null and vdef12 != ''"> and VDEF12 = #{vdef12} </if>
|
||||
<if test="vdef13 != null and vdef13 != ''"> and VDEF13 = #{vdef13} </if>
|
||||
<if test="vdef14 != null and vdef14 != ''"> and VDEF14 = #{vdef14} </if>
|
||||
<if test="vdef15 != null and vdef15 != ''"> and VDEF15 = #{vdef15} </if>
|
||||
<if test="vdef16 != null and vdef16 != ''"> and VDEF16 = #{vdef16} </if>
|
||||
<if test="vdef17 != null and vdef17 != ''"> and VDEF17 = #{vdef17} </if>
|
||||
<if test="vdef18 != null and vdef18 != ''"> and VDEF18 = #{vdef18} </if>
|
||||
<if test="vdef19 != null and vdef19 != ''"> and VDEF19 = #{vdef19} </if>
|
||||
<if test="vdef2 != null and vdef2 != ''"> and VDEF2 = #{vdef2} </if>
|
||||
<if test="vdef20 != null and vdef20 != ''"> and VDEF20 = #{vdef20} </if>
|
||||
<if test="vdef3 != null and vdef3 != ''"> and VDEF3 = #{vdef3} </if>
|
||||
<if test="vdef4 != null and vdef4 != ''"> and VDEF4 = #{vdef4} </if>
|
||||
<if test="vdef5 != null and vdef5 != ''"> and VDEF5 = #{vdef5} </if>
|
||||
<if test="vdef6 != null and vdef6 != ''"> and VDEF6 = #{vdef6} </if>
|
||||
<if test="vdef7 != null and vdef7 != ''"> and VDEF7 = #{vdef7} </if>
|
||||
<if test="vdef8 != null and vdef8 != ''"> and VDEF8 = #{vdef8} </if>
|
||||
<if test="vdef9 != null and vdef9 != ''"> and VDEF9 = #{vdef9} </if>
|
||||
<if test="vmemo != null and vmemo != ''"> and VMEMO = #{vmemo} </if>
|
||||
<if test="vordercode != null and vordercode != ''"> and VORDERCODE = #{vordercode} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-ScOrderEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.ScOrderEntity">
|
||||
select
|
||||
<include refid="ScOrderEntity_Base_Column_List" />
|
||||
from SC_ORDER
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="caccountbankid != null and caccountbankid != ''"> and CACCOUNTBANKID like concat('%',#{caccountbankid},'%') </if>
|
||||
<if test="caccountyear != null and caccountyear != ''"> and CACCOUNTYEAR like concat('%',#{caccountyear},'%') </if>
|
||||
<if test="cauditpsn != null and cauditpsn != ''"> and CAUDITPSN like concat('%',#{cauditpsn},'%') </if>
|
||||
<if test="cbiztype != null and cbiztype != ''"> and CBIZTYPE like concat('%',#{cbiztype},'%') </if>
|
||||
<if test="cdeptid != null and cdeptid != ''"> and CDEPTID like concat('%',#{cdeptid},'%') </if>
|
||||
<if test="cemployeeid != null and cemployeeid != ''"> and CEMPLOYEEID like concat('%',#{cemployeeid},'%') </if>
|
||||
<if test="cgiveinvoicevendor != null and cgiveinvoicevendor != ''"> and CGIVEINVOICEVENDOR like concat('%',#{cgiveinvoicevendor},'%') </if>
|
||||
<if test="coperator != null and coperator != ''"> and COPERATOR like concat('%',#{coperator},'%') </if>
|
||||
<if test="corderid != null and corderid != ''"> and CORDERID like concat('%',#{corderid},'%') </if>
|
||||
<if test="cpurorganization != null and cpurorganization != ''"> and CPURORGANIZATION like concat('%',#{cpurorganization},'%') </if>
|
||||
<if test="creciever != null and creciever != ''"> and CRECIEVER like concat('%',#{creciever},'%') </if>
|
||||
<if test="ctermprotocolid != null and ctermprotocolid != ''"> and CTERMPROTOCOLID like concat('%',#{ctermprotocolid},'%') </if>
|
||||
<if test="ctransmodeid != null and ctransmodeid != ''"> and CTRANSMODEID like concat('%',#{ctransmodeid},'%') </if>
|
||||
<if test="cvendorid != null and cvendorid != ''"> and CVENDORID like concat('%',#{cvendorid},'%') </if>
|
||||
<if test="cvendormangid != null and cvendormangid != ''"> and CVENDORMANGID like concat('%',#{cvendormangid},'%') </if>
|
||||
<if test="cwareid != null and cwareid != ''"> and CWAREID like concat('%',#{cwareid},'%') </if>
|
||||
<if test="dauditdate != null and dauditdate != ''"> and DAUDITDATE like concat('%',#{dauditdate},'%') </if>
|
||||
<if test="dorderdate != null and dorderdate != ''"> and DORDERDATE like concat('%',#{dorderdate},'%') </if>
|
||||
<if test="dr != null and dr != ''"> and DR like concat('%',#{dr},'%') </if>
|
||||
<if test="ibillstatus != null and ibillstatus != ''"> and IBILLSTATUS like concat('%',#{ibillstatus},'%') </if>
|
||||
<if test="iprintcount != null and iprintcount != ''"> and IPRINTCOUNT like concat('%',#{iprintcount},'%') </if>
|
||||
<if test="pkCorp != null and pkCorp != ''"> and PK_CORP like concat('%',#{pkCorp},'%') </if>
|
||||
<if test="pkDefdoc1 != null and pkDefdoc1 != ''"> and PK_DEFDOC1 like concat('%',#{pkDefdoc1},'%') </if>
|
||||
<if test="pkDefdoc10 != null and pkDefdoc10 != ''"> and PK_DEFDOC10 like concat('%',#{pkDefdoc10},'%') </if>
|
||||
<if test="pkDefdoc11 != null and pkDefdoc11 != ''"> and PK_DEFDOC11 like concat('%',#{pkDefdoc11},'%') </if>
|
||||
<if test="pkDefdoc12 != null and pkDefdoc12 != ''"> and PK_DEFDOC12 like concat('%',#{pkDefdoc12},'%') </if>
|
||||
<if test="pkDefdoc13 != null and pkDefdoc13 != ''"> and PK_DEFDOC13 like concat('%',#{pkDefdoc13},'%') </if>
|
||||
<if test="pkDefdoc14 != null and pkDefdoc14 != ''"> and PK_DEFDOC14 like concat('%',#{pkDefdoc14},'%') </if>
|
||||
<if test="pkDefdoc15 != null and pkDefdoc15 != ''"> and PK_DEFDOC15 like concat('%',#{pkDefdoc15},'%') </if>
|
||||
<if test="pkDefdoc16 != null and pkDefdoc16 != ''"> and PK_DEFDOC16 like concat('%',#{pkDefdoc16},'%') </if>
|
||||
<if test="pkDefdoc17 != null and pkDefdoc17 != ''"> and PK_DEFDOC17 like concat('%',#{pkDefdoc17},'%') </if>
|
||||
<if test="pkDefdoc18 != null and pkDefdoc18 != ''"> and PK_DEFDOC18 like concat('%',#{pkDefdoc18},'%') </if>
|
||||
<if test="pkDefdoc19 != null and pkDefdoc19 != ''"> and PK_DEFDOC19 like concat('%',#{pkDefdoc19},'%') </if>
|
||||
<if test="pkDefdoc2 != null and pkDefdoc2 != ''"> and PK_DEFDOC2 like concat('%',#{pkDefdoc2},'%') </if>
|
||||
<if test="pkDefdoc20 != null and pkDefdoc20 != ''"> and PK_DEFDOC20 like concat('%',#{pkDefdoc20},'%') </if>
|
||||
<if test="pkDefdoc3 != null and pkDefdoc3 != ''"> and PK_DEFDOC3 like concat('%',#{pkDefdoc3},'%') </if>
|
||||
<if test="pkDefdoc4 != null and pkDefdoc4 != ''"> and PK_DEFDOC4 like concat('%',#{pkDefdoc4},'%') </if>
|
||||
<if test="pkDefdoc5 != null and pkDefdoc5 != ''"> and PK_DEFDOC5 like concat('%',#{pkDefdoc5},'%') </if>
|
||||
<if test="pkDefdoc6 != null and pkDefdoc6 != ''"> and PK_DEFDOC6 like concat('%',#{pkDefdoc6},'%') </if>
|
||||
<if test="pkDefdoc7 != null and pkDefdoc7 != ''"> and PK_DEFDOC7 like concat('%',#{pkDefdoc7},'%') </if>
|
||||
<if test="pkDefdoc8 != null and pkDefdoc8 != ''"> and PK_DEFDOC8 like concat('%',#{pkDefdoc8},'%') </if>
|
||||
<if test="pkDefdoc9 != null and pkDefdoc9 != ''"> and PK_DEFDOC9 like concat('%',#{pkDefdoc9},'%') </if>
|
||||
<if test="taudittime != null and taudittime != ''"> and TAUDITTIME like concat('%',#{taudittime},'%') </if>
|
||||
<if test="tlastmaketime != null and tlastmaketime != ''"> and TLASTMAKETIME like concat('%',#{tlastmaketime},'%') </if>
|
||||
<if test="tmaketime != null and tmaketime != ''"> and TMAKETIME like concat('%',#{tmaketime},'%') </if>
|
||||
<if test="ts != null and ts != ''"> and TS like concat('%',#{ts},'%') </if>
|
||||
<if test="vdef1 != null and vdef1 != ''"> and VDEF1 like concat('%',#{vdef1},'%') </if>
|
||||
<if test="vdef10 != null and vdef10 != ''"> and VDEF10 like concat('%',#{vdef10},'%') </if>
|
||||
<if test="vdef11 != null and vdef11 != ''"> and VDEF11 like concat('%',#{vdef11},'%') </if>
|
||||
<if test="vdef12 != null and vdef12 != ''"> and VDEF12 like concat('%',#{vdef12},'%') </if>
|
||||
<if test="vdef13 != null and vdef13 != ''"> and VDEF13 like concat('%',#{vdef13},'%') </if>
|
||||
<if test="vdef14 != null and vdef14 != ''"> and VDEF14 like concat('%',#{vdef14},'%') </if>
|
||||
<if test="vdef15 != null and vdef15 != ''"> and VDEF15 like concat('%',#{vdef15},'%') </if>
|
||||
<if test="vdef16 != null and vdef16 != ''"> and VDEF16 like concat('%',#{vdef16},'%') </if>
|
||||
<if test="vdef17 != null and vdef17 != ''"> and VDEF17 like concat('%',#{vdef17},'%') </if>
|
||||
<if test="vdef18 != null and vdef18 != ''"> and VDEF18 like concat('%',#{vdef18},'%') </if>
|
||||
<if test="vdef19 != null and vdef19 != ''"> and VDEF19 like concat('%',#{vdef19},'%') </if>
|
||||
<if test="vdef2 != null and vdef2 != ''"> and VDEF2 like concat('%',#{vdef2},'%') </if>
|
||||
<if test="vdef20 != null and vdef20 != ''"> and VDEF20 like concat('%',#{vdef20},'%') </if>
|
||||
<if test="vdef3 != null and vdef3 != ''"> and VDEF3 like concat('%',#{vdef3},'%') </if>
|
||||
<if test="vdef4 != null and vdef4 != ''"> and VDEF4 like concat('%',#{vdef4},'%') </if>
|
||||
<if test="vdef5 != null and vdef5 != ''"> and VDEF5 like concat('%',#{vdef5},'%') </if>
|
||||
<if test="vdef6 != null and vdef6 != ''"> and VDEF6 like concat('%',#{vdef6},'%') </if>
|
||||
<if test="vdef7 != null and vdef7 != ''"> and VDEF7 like concat('%',#{vdef7},'%') </if>
|
||||
<if test="vdef8 != null and vdef8 != ''"> and VDEF8 like concat('%',#{vdef8},'%') </if>
|
||||
<if test="vdef9 != null and vdef9 != ''"> and VDEF9 like concat('%',#{vdef9},'%') </if>
|
||||
<if test="vmemo != null and vmemo != ''"> and VMEMO like concat('%',#{vmemo},'%') </if>
|
||||
<if test="vordercode != null and vordercode != ''"> and VORDERCODE like concat('%',#{vordercode},'%') </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="ScOrderentity_list_or" resultMap="get-ScOrderEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.ScOrderEntity">
|
||||
select
|
||||
<include refid="ScOrderEntity_Base_Column_List" />
|
||||
from SC_ORDER
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="caccountbankid != null and caccountbankid != ''"> or CACCOUNTBANKID = #{caccountbankid} </if>
|
||||
<if test="caccountyear != null and caccountyear != ''"> or CACCOUNTYEAR = #{caccountyear} </if>
|
||||
<if test="cauditpsn != null and cauditpsn != ''"> or CAUDITPSN = #{cauditpsn} </if>
|
||||
<if test="cbiztype != null and cbiztype != ''"> or CBIZTYPE = #{cbiztype} </if>
|
||||
<if test="cdeptid != null and cdeptid != ''"> or CDEPTID = #{cdeptid} </if>
|
||||
<if test="cemployeeid != null and cemployeeid != ''"> or CEMPLOYEEID = #{cemployeeid} </if>
|
||||
<if test="cgiveinvoicevendor != null and cgiveinvoicevendor != ''"> or CGIVEINVOICEVENDOR = #{cgiveinvoicevendor} </if>
|
||||
<if test="coperator != null and coperator != ''"> or COPERATOR = #{coperator} </if>
|
||||
<if test="corderid != null and corderid != ''"> or CORDERID = #{corderid} </if>
|
||||
<if test="cpurorganization != null and cpurorganization != ''"> or CPURORGANIZATION = #{cpurorganization} </if>
|
||||
<if test="creciever != null and creciever != ''"> or CRECIEVER = #{creciever} </if>
|
||||
<if test="ctermprotocolid != null and ctermprotocolid != ''"> or CTERMPROTOCOLID = #{ctermprotocolid} </if>
|
||||
<if test="ctransmodeid != null and ctransmodeid != ''"> or CTRANSMODEID = #{ctransmodeid} </if>
|
||||
<if test="cvendorid != null and cvendorid != ''"> or CVENDORID = #{cvendorid} </if>
|
||||
<if test="cvendormangid != null and cvendormangid != ''"> or CVENDORMANGID = #{cvendormangid} </if>
|
||||
<if test="cwareid != null and cwareid != ''"> or CWAREID = #{cwareid} </if>
|
||||
<if test="dauditdate != null and dauditdate != ''"> or DAUDITDATE = #{dauditdate} </if>
|
||||
<if test="dorderdate != null and dorderdate != ''"> or DORDERDATE = #{dorderdate} </if>
|
||||
<if test="dr != null and dr != ''"> or DR = #{dr} </if>
|
||||
<if test="ibillstatus != null and ibillstatus != ''"> or IBILLSTATUS = #{ibillstatus} </if>
|
||||
<if test="iprintcount != null and iprintcount != ''"> or IPRINTCOUNT = #{iprintcount} </if>
|
||||
<if test="pkCorp != null and pkCorp != ''"> or PK_CORP = #{pkCorp} </if>
|
||||
<if test="pkDefdoc1 != null and pkDefdoc1 != ''"> or PK_DEFDOC1 = #{pkDefdoc1} </if>
|
||||
<if test="pkDefdoc10 != null and pkDefdoc10 != ''"> or PK_DEFDOC10 = #{pkDefdoc10} </if>
|
||||
<if test="pkDefdoc11 != null and pkDefdoc11 != ''"> or PK_DEFDOC11 = #{pkDefdoc11} </if>
|
||||
<if test="pkDefdoc12 != null and pkDefdoc12 != ''"> or PK_DEFDOC12 = #{pkDefdoc12} </if>
|
||||
<if test="pkDefdoc13 != null and pkDefdoc13 != ''"> or PK_DEFDOC13 = #{pkDefdoc13} </if>
|
||||
<if test="pkDefdoc14 != null and pkDefdoc14 != ''"> or PK_DEFDOC14 = #{pkDefdoc14} </if>
|
||||
<if test="pkDefdoc15 != null and pkDefdoc15 != ''"> or PK_DEFDOC15 = #{pkDefdoc15} </if>
|
||||
<if test="pkDefdoc16 != null and pkDefdoc16 != ''"> or PK_DEFDOC16 = #{pkDefdoc16} </if>
|
||||
<if test="pkDefdoc17 != null and pkDefdoc17 != ''"> or PK_DEFDOC17 = #{pkDefdoc17} </if>
|
||||
<if test="pkDefdoc18 != null and pkDefdoc18 != ''"> or PK_DEFDOC18 = #{pkDefdoc18} </if>
|
||||
<if test="pkDefdoc19 != null and pkDefdoc19 != ''"> or PK_DEFDOC19 = #{pkDefdoc19} </if>
|
||||
<if test="pkDefdoc2 != null and pkDefdoc2 != ''"> or PK_DEFDOC2 = #{pkDefdoc2} </if>
|
||||
<if test="pkDefdoc20 != null and pkDefdoc20 != ''"> or PK_DEFDOC20 = #{pkDefdoc20} </if>
|
||||
<if test="pkDefdoc3 != null and pkDefdoc3 != ''"> or PK_DEFDOC3 = #{pkDefdoc3} </if>
|
||||
<if test="pkDefdoc4 != null and pkDefdoc4 != ''"> or PK_DEFDOC4 = #{pkDefdoc4} </if>
|
||||
<if test="pkDefdoc5 != null and pkDefdoc5 != ''"> or PK_DEFDOC5 = #{pkDefdoc5} </if>
|
||||
<if test="pkDefdoc6 != null and pkDefdoc6 != ''"> or PK_DEFDOC6 = #{pkDefdoc6} </if>
|
||||
<if test="pkDefdoc7 != null and pkDefdoc7 != ''"> or PK_DEFDOC7 = #{pkDefdoc7} </if>
|
||||
<if test="pkDefdoc8 != null and pkDefdoc8 != ''"> or PK_DEFDOC8 = #{pkDefdoc8} </if>
|
||||
<if test="pkDefdoc9 != null and pkDefdoc9 != ''"> or PK_DEFDOC9 = #{pkDefdoc9} </if>
|
||||
<if test="taudittime != null and taudittime != ''"> or TAUDITTIME = #{taudittime} </if>
|
||||
<if test="tlastmaketime != null and tlastmaketime != ''"> or TLASTMAKETIME = #{tlastmaketime} </if>
|
||||
<if test="tmaketime != null and tmaketime != ''"> or TMAKETIME = #{tmaketime} </if>
|
||||
<if test="ts != null and ts != ''"> or TS = #{ts} </if>
|
||||
<if test="vdef1 != null and vdef1 != ''"> or VDEF1 = #{vdef1} </if>
|
||||
<if test="vdef10 != null and vdef10 != ''"> or VDEF10 = #{vdef10} </if>
|
||||
<if test="vdef11 != null and vdef11 != ''"> or VDEF11 = #{vdef11} </if>
|
||||
<if test="vdef12 != null and vdef12 != ''"> or VDEF12 = #{vdef12} </if>
|
||||
<if test="vdef13 != null and vdef13 != ''"> or VDEF13 = #{vdef13} </if>
|
||||
<if test="vdef14 != null and vdef14 != ''"> or VDEF14 = #{vdef14} </if>
|
||||
<if test="vdef15 != null and vdef15 != ''"> or VDEF15 = #{vdef15} </if>
|
||||
<if test="vdef16 != null and vdef16 != ''"> or VDEF16 = #{vdef16} </if>
|
||||
<if test="vdef17 != null and vdef17 != ''"> or VDEF17 = #{vdef17} </if>
|
||||
<if test="vdef18 != null and vdef18 != ''"> or VDEF18 = #{vdef18} </if>
|
||||
<if test="vdef19 != null and vdef19 != ''"> or VDEF19 = #{vdef19} </if>
|
||||
<if test="vdef2 != null and vdef2 != ''"> or VDEF2 = #{vdef2} </if>
|
||||
<if test="vdef20 != null and vdef20 != ''"> or VDEF20 = #{vdef20} </if>
|
||||
<if test="vdef3 != null and vdef3 != ''"> or VDEF3 = #{vdef3} </if>
|
||||
<if test="vdef4 != null and vdef4 != ''"> or VDEF4 = #{vdef4} </if>
|
||||
<if test="vdef5 != null and vdef5 != ''"> or VDEF5 = #{vdef5} </if>
|
||||
<if test="vdef6 != null and vdef6 != ''"> or VDEF6 = #{vdef6} </if>
|
||||
<if test="vdef7 != null and vdef7 != ''"> or VDEF7 = #{vdef7} </if>
|
||||
<if test="vdef8 != null and vdef8 != ''"> or VDEF8 = #{vdef8} </if>
|
||||
<if test="vdef9 != null and vdef9 != ''"> or VDEF9 = #{vdef9} </if>
|
||||
<if test="vmemo != null and vmemo != ''"> or VMEMO = #{vmemo} </if>
|
||||
<if test="vordercode != null and vordercode != ''"> or VORDERCODE = #{vordercode} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.lets.entity.ScOrderEntity" keyProperty="corderid" useGeneratedKeys="true">
|
||||
insert into SC_ORDER(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="caccountbankid != null and caccountbankid != ''"> CACCOUNTBANKID , </if>
|
||||
<if test="caccountyear != null and caccountyear != ''"> CACCOUNTYEAR , </if>
|
||||
<if test="cauditpsn != null and cauditpsn != ''"> CAUDITPSN , </if>
|
||||
<if test="cbiztype != null and cbiztype != ''"> CBIZTYPE , </if>
|
||||
<if test="cdeptid != null and cdeptid != ''"> CDEPTID , </if>
|
||||
<if test="cemployeeid != null and cemployeeid != ''"> CEMPLOYEEID , </if>
|
||||
<if test="cgiveinvoicevendor != null and cgiveinvoicevendor != ''"> CGIVEINVOICEVENDOR , </if>
|
||||
<if test="coperator != null and coperator != ''"> COPERATOR , </if>
|
||||
<if test="corderid != null and corderid != ''"> CORDERID , </if>
|
||||
<if test="cpurorganization != null and cpurorganization != ''"> CPURORGANIZATION , </if>
|
||||
<if test="creciever != null and creciever != ''"> CRECIEVER , </if>
|
||||
<if test="ctermprotocolid != null and ctermprotocolid != ''"> CTERMPROTOCOLID , </if>
|
||||
<if test="ctransmodeid != null and ctransmodeid != ''"> CTRANSMODEID , </if>
|
||||
<if test="cvendorid != null and cvendorid != ''"> CVENDORID , </if>
|
||||
<if test="cvendormangid != null and cvendormangid != ''"> CVENDORMANGID , </if>
|
||||
<if test="cwareid != null and cwareid != ''"> CWAREID , </if>
|
||||
<if test="dauditdate != null and dauditdate != ''"> DAUDITDATE , </if>
|
||||
<if test="dorderdate != null and dorderdate != ''"> DORDERDATE , </if>
|
||||
<if test="dr != null and dr != ''"> DR , </if>
|
||||
<if test="ibillstatus != null and ibillstatus != ''"> IBILLSTATUS , </if>
|
||||
<if test="iprintcount != null and iprintcount != ''"> IPRINTCOUNT , </if>
|
||||
<if test="pkCorp != null and pkCorp != ''"> PK_CORP , </if>
|
||||
<if test="pkDefdoc1 != null and pkDefdoc1 != ''"> PK_DEFDOC1 , </if>
|
||||
<if test="pkDefdoc10 != null and pkDefdoc10 != ''"> PK_DEFDOC10 , </if>
|
||||
<if test="pkDefdoc11 != null and pkDefdoc11 != ''"> PK_DEFDOC11 , </if>
|
||||
<if test="pkDefdoc12 != null and pkDefdoc12 != ''"> PK_DEFDOC12 , </if>
|
||||
<if test="pkDefdoc13 != null and pkDefdoc13 != ''"> PK_DEFDOC13 , </if>
|
||||
<if test="pkDefdoc14 != null and pkDefdoc14 != ''"> PK_DEFDOC14 , </if>
|
||||
<if test="pkDefdoc15 != null and pkDefdoc15 != ''"> PK_DEFDOC15 , </if>
|
||||
<if test="pkDefdoc16 != null and pkDefdoc16 != ''"> PK_DEFDOC16 , </if>
|
||||
<if test="pkDefdoc17 != null and pkDefdoc17 != ''"> PK_DEFDOC17 , </if>
|
||||
<if test="pkDefdoc18 != null and pkDefdoc18 != ''"> PK_DEFDOC18 , </if>
|
||||
<if test="pkDefdoc19 != null and pkDefdoc19 != ''"> PK_DEFDOC19 , </if>
|
||||
<if test="pkDefdoc2 != null and pkDefdoc2 != ''"> PK_DEFDOC2 , </if>
|
||||
<if test="pkDefdoc20 != null and pkDefdoc20 != ''"> PK_DEFDOC20 , </if>
|
||||
<if test="pkDefdoc3 != null and pkDefdoc3 != ''"> PK_DEFDOC3 , </if>
|
||||
<if test="pkDefdoc4 != null and pkDefdoc4 != ''"> PK_DEFDOC4 , </if>
|
||||
<if test="pkDefdoc5 != null and pkDefdoc5 != ''"> PK_DEFDOC5 , </if>
|
||||
<if test="pkDefdoc6 != null and pkDefdoc6 != ''"> PK_DEFDOC6 , </if>
|
||||
<if test="pkDefdoc7 != null and pkDefdoc7 != ''"> PK_DEFDOC7 , </if>
|
||||
<if test="pkDefdoc8 != null and pkDefdoc8 != ''"> PK_DEFDOC8 , </if>
|
||||
<if test="pkDefdoc9 != null and pkDefdoc9 != ''"> PK_DEFDOC9 , </if>
|
||||
<if test="taudittime != null and taudittime != ''"> TAUDITTIME , </if>
|
||||
<if test="tlastmaketime != null and tlastmaketime != ''"> TLASTMAKETIME , </if>
|
||||
<if test="tmaketime != null and tmaketime != ''"> TMAKETIME , </if>
|
||||
<if test="ts != null and ts != ''"> TS , </if>
|
||||
<if test="vdef1 != null and vdef1 != ''"> VDEF1 , </if>
|
||||
<if test="vdef10 != null and vdef10 != ''"> VDEF10 , </if>
|
||||
<if test="vdef11 != null and vdef11 != ''"> VDEF11 , </if>
|
||||
<if test="vdef12 != null and vdef12 != ''"> VDEF12 , </if>
|
||||
<if test="vdef13 != null and vdef13 != ''"> VDEF13 , </if>
|
||||
<if test="vdef14 != null and vdef14 != ''"> VDEF14 , </if>
|
||||
<if test="vdef15 != null and vdef15 != ''"> VDEF15 , </if>
|
||||
<if test="vdef16 != null and vdef16 != ''"> VDEF16 , </if>
|
||||
<if test="vdef17 != null and vdef17 != ''"> VDEF17 , </if>
|
||||
<if test="vdef18 != null and vdef18 != ''"> VDEF18 , </if>
|
||||
<if test="vdef19 != null and vdef19 != ''"> VDEF19 , </if>
|
||||
<if test="vdef2 != null and vdef2 != ''"> VDEF2 , </if>
|
||||
<if test="vdef20 != null and vdef20 != ''"> VDEF20 , </if>
|
||||
<if test="vdef3 != null and vdef3 != ''"> VDEF3 , </if>
|
||||
<if test="vdef4 != null and vdef4 != ''"> VDEF4 , </if>
|
||||
<if test="vdef5 != null and vdef5 != ''"> VDEF5 , </if>
|
||||
<if test="vdef6 != null and vdef6 != ''"> VDEF6 , </if>
|
||||
<if test="vdef7 != null and vdef7 != ''"> VDEF7 , </if>
|
||||
<if test="vdef8 != null and vdef8 != ''"> VDEF8 , </if>
|
||||
<if test="vdef9 != null and vdef9 != ''"> VDEF9 , </if>
|
||||
<if test="vmemo != null and vmemo != ''"> VMEMO , </if>
|
||||
<if test="vordercode != null and vordercode != ''"> VORDERCODE , </if>
|
||||
<if test="sorts == null ">sorts,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="caccountbankid != null and caccountbankid != ''"> #{caccountbankid} ,</if>
|
||||
<if test="caccountyear != null and caccountyear != ''"> #{caccountyear} ,</if>
|
||||
<if test="cauditpsn != null and cauditpsn != ''"> #{cauditpsn} ,</if>
|
||||
<if test="cbiztype != null and cbiztype != ''"> #{cbiztype} ,</if>
|
||||
<if test="cdeptid != null and cdeptid != ''"> #{cdeptid} ,</if>
|
||||
<if test="cemployeeid != null and cemployeeid != ''"> #{cemployeeid} ,</if>
|
||||
<if test="cgiveinvoicevendor != null and cgiveinvoicevendor != ''"> #{cgiveinvoicevendor} ,</if>
|
||||
<if test="coperator != null and coperator != ''"> #{coperator} ,</if>
|
||||
<if test="corderid != null and corderid != ''"> #{corderid} ,</if>
|
||||
<if test="cpurorganization != null and cpurorganization != ''"> #{cpurorganization} ,</if>
|
||||
<if test="creciever != null and creciever != ''"> #{creciever} ,</if>
|
||||
<if test="ctermprotocolid != null and ctermprotocolid != ''"> #{ctermprotocolid} ,</if>
|
||||
<if test="ctransmodeid != null and ctransmodeid != ''"> #{ctransmodeid} ,</if>
|
||||
<if test="cvendorid != null and cvendorid != ''"> #{cvendorid} ,</if>
|
||||
<if test="cvendormangid != null and cvendormangid != ''"> #{cvendormangid} ,</if>
|
||||
<if test="cwareid != null and cwareid != ''"> #{cwareid} ,</if>
|
||||
<if test="dauditdate != null and dauditdate != ''"> #{dauditdate} ,</if>
|
||||
<if test="dorderdate != null and dorderdate != ''"> #{dorderdate} ,</if>
|
||||
<if test="dr != null and dr != ''"> #{dr} ,</if>
|
||||
<if test="ibillstatus != null and ibillstatus != ''"> #{ibillstatus} ,</if>
|
||||
<if test="iprintcount != null and iprintcount != ''"> #{iprintcount} ,</if>
|
||||
<if test="pkCorp != null and pkCorp != ''"> #{pkCorp} ,</if>
|
||||
<if test="pkDefdoc1 != null and pkDefdoc1 != ''"> #{pkDefdoc1} ,</if>
|
||||
<if test="pkDefdoc10 != null and pkDefdoc10 != ''"> #{pkDefdoc10} ,</if>
|
||||
<if test="pkDefdoc11 != null and pkDefdoc11 != ''"> #{pkDefdoc11} ,</if>
|
||||
<if test="pkDefdoc12 != null and pkDefdoc12 != ''"> #{pkDefdoc12} ,</if>
|
||||
<if test="pkDefdoc13 != null and pkDefdoc13 != ''"> #{pkDefdoc13} ,</if>
|
||||
<if test="pkDefdoc14 != null and pkDefdoc14 != ''"> #{pkDefdoc14} ,</if>
|
||||
<if test="pkDefdoc15 != null and pkDefdoc15 != ''"> #{pkDefdoc15} ,</if>
|
||||
<if test="pkDefdoc16 != null and pkDefdoc16 != ''"> #{pkDefdoc16} ,</if>
|
||||
<if test="pkDefdoc17 != null and pkDefdoc17 != ''"> #{pkDefdoc17} ,</if>
|
||||
<if test="pkDefdoc18 != null and pkDefdoc18 != ''"> #{pkDefdoc18} ,</if>
|
||||
<if test="pkDefdoc19 != null and pkDefdoc19 != ''"> #{pkDefdoc19} ,</if>
|
||||
<if test="pkDefdoc2 != null and pkDefdoc2 != ''"> #{pkDefdoc2} ,</if>
|
||||
<if test="pkDefdoc20 != null and pkDefdoc20 != ''"> #{pkDefdoc20} ,</if>
|
||||
<if test="pkDefdoc3 != null and pkDefdoc3 != ''"> #{pkDefdoc3} ,</if>
|
||||
<if test="pkDefdoc4 != null and pkDefdoc4 != ''"> #{pkDefdoc4} ,</if>
|
||||
<if test="pkDefdoc5 != null and pkDefdoc5 != ''"> #{pkDefdoc5} ,</if>
|
||||
<if test="pkDefdoc6 != null and pkDefdoc6 != ''"> #{pkDefdoc6} ,</if>
|
||||
<if test="pkDefdoc7 != null and pkDefdoc7 != ''"> #{pkDefdoc7} ,</if>
|
||||
<if test="pkDefdoc8 != null and pkDefdoc8 != ''"> #{pkDefdoc8} ,</if>
|
||||
<if test="pkDefdoc9 != null and pkDefdoc9 != ''"> #{pkDefdoc9} ,</if>
|
||||
<if test="taudittime != null and taudittime != ''"> #{taudittime} ,</if>
|
||||
<if test="tlastmaketime != null and tlastmaketime != ''"> #{tlastmaketime} ,</if>
|
||||
<if test="tmaketime != null and tmaketime != ''"> #{tmaketime} ,</if>
|
||||
<if test="ts != null and ts != ''"> #{ts} ,</if>
|
||||
<if test="vdef1 != null and vdef1 != ''"> #{vdef1} ,</if>
|
||||
<if test="vdef10 != null and vdef10 != ''"> #{vdef10} ,</if>
|
||||
<if test="vdef11 != null and vdef11 != ''"> #{vdef11} ,</if>
|
||||
<if test="vdef12 != null and vdef12 != ''"> #{vdef12} ,</if>
|
||||
<if test="vdef13 != null and vdef13 != ''"> #{vdef13} ,</if>
|
||||
<if test="vdef14 != null and vdef14 != ''"> #{vdef14} ,</if>
|
||||
<if test="vdef15 != null and vdef15 != ''"> #{vdef15} ,</if>
|
||||
<if test="vdef16 != null and vdef16 != ''"> #{vdef16} ,</if>
|
||||
<if test="vdef17 != null and vdef17 != ''"> #{vdef17} ,</if>
|
||||
<if test="vdef18 != null and vdef18 != ''"> #{vdef18} ,</if>
|
||||
<if test="vdef19 != null and vdef19 != ''"> #{vdef19} ,</if>
|
||||
<if test="vdef2 != null and vdef2 != ''"> #{vdef2} ,</if>
|
||||
<if test="vdef20 != null and vdef20 != ''"> #{vdef20} ,</if>
|
||||
<if test="vdef3 != null and vdef3 != ''"> #{vdef3} ,</if>
|
||||
<if test="vdef4 != null and vdef4 != ''"> #{vdef4} ,</if>
|
||||
<if test="vdef5 != null and vdef5 != ''"> #{vdef5} ,</if>
|
||||
<if test="vdef6 != null and vdef6 != ''"> #{vdef6} ,</if>
|
||||
<if test="vdef7 != null and vdef7 != ''"> #{vdef7} ,</if>
|
||||
<if test="vdef8 != null and vdef8 != ''"> #{vdef8} ,</if>
|
||||
<if test="vdef9 != null and vdef9 != ''"> #{vdef9} ,</if>
|
||||
<if test="vmemo != null and vmemo != ''"> #{vmemo} ,</if>
|
||||
<if test="vordercode != null and vordercode != ''"> #{vordercode} ,</if>
|
||||
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from SC_ORDER a WHERE a.sts = 'Y' ),</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="corderid" useGeneratedKeys="true">
|
||||
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
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{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')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="corderid" useGeneratedKeys="true">
|
||||
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
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{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})
|
||||
</foreach>
|
||||
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)</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType = "com.hzya.frame.plugin.lets.entity.ScOrderEntity" >
|
||||
update SC_ORDER set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="caccountbankid != null and caccountbankid != ''"> CACCOUNTBANKID = #{caccountbankid},</if>
|
||||
<if test="caccountyear != null and caccountyear != ''"> CACCOUNTYEAR = #{caccountyear},</if>
|
||||
<if test="cauditpsn != null and cauditpsn != ''"> CAUDITPSN = #{cauditpsn},</if>
|
||||
<if test="cbiztype != null and cbiztype != ''"> CBIZTYPE = #{cbiztype},</if>
|
||||
<if test="cdeptid != null and cdeptid != ''"> CDEPTID = #{cdeptid},</if>
|
||||
<if test="cemployeeid != null and cemployeeid != ''"> CEMPLOYEEID = #{cemployeeid},</if>
|
||||
<if test="cgiveinvoicevendor != null and cgiveinvoicevendor != ''"> CGIVEINVOICEVENDOR = #{cgiveinvoicevendor},</if>
|
||||
<if test="coperator != null and coperator != ''"> COPERATOR = #{coperator},</if>
|
||||
<if test="cpurorganization != null and cpurorganization != ''"> CPURORGANIZATION = #{cpurorganization},</if>
|
||||
<if test="creciever != null and creciever != ''"> CRECIEVER = #{creciever},</if>
|
||||
<if test="ctermprotocolid != null and ctermprotocolid != ''"> CTERMPROTOCOLID = #{ctermprotocolid},</if>
|
||||
<if test="ctransmodeid != null and ctransmodeid != ''"> CTRANSMODEID = #{ctransmodeid},</if>
|
||||
<if test="cvendorid != null and cvendorid != ''"> CVENDORID = #{cvendorid},</if>
|
||||
<if test="cvendormangid != null and cvendormangid != ''"> CVENDORMANGID = #{cvendormangid},</if>
|
||||
<if test="cwareid != null and cwareid != ''"> CWAREID = #{cwareid},</if>
|
||||
<if test="dauditdate != null and dauditdate != ''"> DAUDITDATE = #{dauditdate},</if>
|
||||
<if test="dorderdate != null and dorderdate != ''"> DORDERDATE = #{dorderdate},</if>
|
||||
<if test="dr != null and dr != ''"> DR = #{dr},</if>
|
||||
<if test="ibillstatus != null and ibillstatus != ''"> IBILLSTATUS = #{ibillstatus},</if>
|
||||
<if test="iprintcount != null and iprintcount != ''"> IPRINTCOUNT = #{iprintcount},</if>
|
||||
<if test="pkCorp != null and pkCorp != ''"> PK_CORP = #{pkCorp},</if>
|
||||
<if test="pkDefdoc1 != null and pkDefdoc1 != ''"> PK_DEFDOC1 = #{pkDefdoc1},</if>
|
||||
<if test="pkDefdoc10 != null and pkDefdoc10 != ''"> PK_DEFDOC10 = #{pkDefdoc10},</if>
|
||||
<if test="pkDefdoc11 != null and pkDefdoc11 != ''"> PK_DEFDOC11 = #{pkDefdoc11},</if>
|
||||
<if test="pkDefdoc12 != null and pkDefdoc12 != ''"> PK_DEFDOC12 = #{pkDefdoc12},</if>
|
||||
<if test="pkDefdoc13 != null and pkDefdoc13 != ''"> PK_DEFDOC13 = #{pkDefdoc13},</if>
|
||||
<if test="pkDefdoc14 != null and pkDefdoc14 != ''"> PK_DEFDOC14 = #{pkDefdoc14},</if>
|
||||
<if test="pkDefdoc15 != null and pkDefdoc15 != ''"> PK_DEFDOC15 = #{pkDefdoc15},</if>
|
||||
<if test="pkDefdoc16 != null and pkDefdoc16 != ''"> PK_DEFDOC16 = #{pkDefdoc16},</if>
|
||||
<if test="pkDefdoc17 != null and pkDefdoc17 != ''"> PK_DEFDOC17 = #{pkDefdoc17},</if>
|
||||
<if test="pkDefdoc18 != null and pkDefdoc18 != ''"> PK_DEFDOC18 = #{pkDefdoc18},</if>
|
||||
<if test="pkDefdoc19 != null and pkDefdoc19 != ''"> PK_DEFDOC19 = #{pkDefdoc19},</if>
|
||||
<if test="pkDefdoc2 != null and pkDefdoc2 != ''"> PK_DEFDOC2 = #{pkDefdoc2},</if>
|
||||
<if test="pkDefdoc20 != null and pkDefdoc20 != ''"> PK_DEFDOC20 = #{pkDefdoc20},</if>
|
||||
<if test="pkDefdoc3 != null and pkDefdoc3 != ''"> PK_DEFDOC3 = #{pkDefdoc3},</if>
|
||||
<if test="pkDefdoc4 != null and pkDefdoc4 != ''"> PK_DEFDOC4 = #{pkDefdoc4},</if>
|
||||
<if test="pkDefdoc5 != null and pkDefdoc5 != ''"> PK_DEFDOC5 = #{pkDefdoc5},</if>
|
||||
<if test="pkDefdoc6 != null and pkDefdoc6 != ''"> PK_DEFDOC6 = #{pkDefdoc6},</if>
|
||||
<if test="pkDefdoc7 != null and pkDefdoc7 != ''"> PK_DEFDOC7 = #{pkDefdoc7},</if>
|
||||
<if test="pkDefdoc8 != null and pkDefdoc8 != ''"> PK_DEFDOC8 = #{pkDefdoc8},</if>
|
||||
<if test="pkDefdoc9 != null and pkDefdoc9 != ''"> PK_DEFDOC9 = #{pkDefdoc9},</if>
|
||||
<if test="taudittime != null and taudittime != ''"> TAUDITTIME = #{taudittime},</if>
|
||||
<if test="tlastmaketime != null and tlastmaketime != ''"> TLASTMAKETIME = #{tlastmaketime},</if>
|
||||
<if test="tmaketime != null and tmaketime != ''"> TMAKETIME = #{tmaketime},</if>
|
||||
<if test="ts != null and ts != ''"> TS = #{ts},</if>
|
||||
<if test="vdef1 != null and vdef1 != ''"> VDEF1 = #{vdef1},</if>
|
||||
<if test="vdef10 != null and vdef10 != ''"> VDEF10 = #{vdef10},</if>
|
||||
<if test="vdef11 != null and vdef11 != ''"> VDEF11 = #{vdef11},</if>
|
||||
<if test="vdef12 != null and vdef12 != ''"> VDEF12 = #{vdef12},</if>
|
||||
<if test="vdef13 != null and vdef13 != ''"> VDEF13 = #{vdef13},</if>
|
||||
<if test="vdef14 != null and vdef14 != ''"> VDEF14 = #{vdef14},</if>
|
||||
<if test="vdef15 != null and vdef15 != ''"> VDEF15 = #{vdef15},</if>
|
||||
<if test="vdef16 != null and vdef16 != ''"> VDEF16 = #{vdef16},</if>
|
||||
<if test="vdef17 != null and vdef17 != ''"> VDEF17 = #{vdef17},</if>
|
||||
<if test="vdef18 != null and vdef18 != ''"> VDEF18 = #{vdef18},</if>
|
||||
<if test="vdef19 != null and vdef19 != ''"> VDEF19 = #{vdef19},</if>
|
||||
<if test="vdef2 != null and vdef2 != ''"> VDEF2 = #{vdef2},</if>
|
||||
<if test="vdef20 != null and vdef20 != ''"> VDEF20 = #{vdef20},</if>
|
||||
<if test="vdef3 != null and vdef3 != ''"> VDEF3 = #{vdef3},</if>
|
||||
<if test="vdef4 != null and vdef4 != ''"> VDEF4 = #{vdef4},</if>
|
||||
<if test="vdef5 != null and vdef5 != ''"> VDEF5 = #{vdef5},</if>
|
||||
<if test="vdef6 != null and vdef6 != ''"> VDEF6 = #{vdef6},</if>
|
||||
<if test="vdef7 != null and vdef7 != ''"> VDEF7 = #{vdef7},</if>
|
||||
<if test="vdef8 != null and vdef8 != ''"> VDEF8 = #{vdef8},</if>
|
||||
<if test="vdef9 != null and vdef9 != ''"> VDEF9 = #{vdef9},</if>
|
||||
<if test="vmemo != null and vmemo != ''"> VMEMO = #{vmemo},</if>
|
||||
<if test="vordercode != null and vordercode != ''"> VORDERCODE = #{vordercode},</if>
|
||||
</trim>
|
||||
where CORDERID = #{corderid}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.lets.entity.ScOrderEntity" >
|
||||
update SC_ORDER set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where CORDERID = #{corderid}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.lets.entity.ScOrderEntity" >
|
||||
update SC_ORDER set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="caccountbankid != null and caccountbankid != ''"> and CACCOUNTBANKID = #{caccountbankid} </if>
|
||||
<if test="caccountyear != null and caccountyear != ''"> and CACCOUNTYEAR = #{caccountyear} </if>
|
||||
<if test="cauditpsn != null and cauditpsn != ''"> and CAUDITPSN = #{cauditpsn} </if>
|
||||
<if test="cbiztype != null and cbiztype != ''"> and CBIZTYPE = #{cbiztype} </if>
|
||||
<if test="cdeptid != null and cdeptid != ''"> and CDEPTID = #{cdeptid} </if>
|
||||
<if test="cemployeeid != null and cemployeeid != ''"> and CEMPLOYEEID = #{cemployeeid} </if>
|
||||
<if test="cgiveinvoicevendor != null and cgiveinvoicevendor != ''"> and CGIVEINVOICEVENDOR = #{cgiveinvoicevendor} </if>
|
||||
<if test="coperator != null and coperator != ''"> and COPERATOR = #{coperator} </if>
|
||||
<if test="corderid != null and corderid != ''"> and CORDERID = #{corderid} </if>
|
||||
<if test="cpurorganization != null and cpurorganization != ''"> and CPURORGANIZATION = #{cpurorganization} </if>
|
||||
<if test="creciever != null and creciever != ''"> and CRECIEVER = #{creciever} </if>
|
||||
<if test="ctermprotocolid != null and ctermprotocolid != ''"> and CTERMPROTOCOLID = #{ctermprotocolid} </if>
|
||||
<if test="ctransmodeid != null and ctransmodeid != ''"> and CTRANSMODEID = #{ctransmodeid} </if>
|
||||
<if test="cvendorid != null and cvendorid != ''"> and CVENDORID = #{cvendorid} </if>
|
||||
<if test="cvendormangid != null and cvendormangid != ''"> and CVENDORMANGID = #{cvendormangid} </if>
|
||||
<if test="cwareid != null and cwareid != ''"> and CWAREID = #{cwareid} </if>
|
||||
<if test="dauditdate != null and dauditdate != ''"> and DAUDITDATE = #{dauditdate} </if>
|
||||
<if test="dorderdate != null and dorderdate != ''"> and DORDERDATE = #{dorderdate} </if>
|
||||
<if test="dr != null and dr != ''"> and DR = #{dr} </if>
|
||||
<if test="ibillstatus != null and ibillstatus != ''"> and IBILLSTATUS = #{ibillstatus} </if>
|
||||
<if test="iprintcount != null and iprintcount != ''"> and IPRINTCOUNT = #{iprintcount} </if>
|
||||
<if test="pkCorp != null and pkCorp != ''"> and PK_CORP = #{pkCorp} </if>
|
||||
<if test="pkDefdoc1 != null and pkDefdoc1 != ''"> and PK_DEFDOC1 = #{pkDefdoc1} </if>
|
||||
<if test="pkDefdoc10 != null and pkDefdoc10 != ''"> and PK_DEFDOC10 = #{pkDefdoc10} </if>
|
||||
<if test="pkDefdoc11 != null and pkDefdoc11 != ''"> and PK_DEFDOC11 = #{pkDefdoc11} </if>
|
||||
<if test="pkDefdoc12 != null and pkDefdoc12 != ''"> and PK_DEFDOC12 = #{pkDefdoc12} </if>
|
||||
<if test="pkDefdoc13 != null and pkDefdoc13 != ''"> and PK_DEFDOC13 = #{pkDefdoc13} </if>
|
||||
<if test="pkDefdoc14 != null and pkDefdoc14 != ''"> and PK_DEFDOC14 = #{pkDefdoc14} </if>
|
||||
<if test="pkDefdoc15 != null and pkDefdoc15 != ''"> and PK_DEFDOC15 = #{pkDefdoc15} </if>
|
||||
<if test="pkDefdoc16 != null and pkDefdoc16 != ''"> and PK_DEFDOC16 = #{pkDefdoc16} </if>
|
||||
<if test="pkDefdoc17 != null and pkDefdoc17 != ''"> and PK_DEFDOC17 = #{pkDefdoc17} </if>
|
||||
<if test="pkDefdoc18 != null and pkDefdoc18 != ''"> and PK_DEFDOC18 = #{pkDefdoc18} </if>
|
||||
<if test="pkDefdoc19 != null and pkDefdoc19 != ''"> and PK_DEFDOC19 = #{pkDefdoc19} </if>
|
||||
<if test="pkDefdoc2 != null and pkDefdoc2 != ''"> and PK_DEFDOC2 = #{pkDefdoc2} </if>
|
||||
<if test="pkDefdoc20 != null and pkDefdoc20 != ''"> and PK_DEFDOC20 = #{pkDefdoc20} </if>
|
||||
<if test="pkDefdoc3 != null and pkDefdoc3 != ''"> and PK_DEFDOC3 = #{pkDefdoc3} </if>
|
||||
<if test="pkDefdoc4 != null and pkDefdoc4 != ''"> and PK_DEFDOC4 = #{pkDefdoc4} </if>
|
||||
<if test="pkDefdoc5 != null and pkDefdoc5 != ''"> and PK_DEFDOC5 = #{pkDefdoc5} </if>
|
||||
<if test="pkDefdoc6 != null and pkDefdoc6 != ''"> and PK_DEFDOC6 = #{pkDefdoc6} </if>
|
||||
<if test="pkDefdoc7 != null and pkDefdoc7 != ''"> and PK_DEFDOC7 = #{pkDefdoc7} </if>
|
||||
<if test="pkDefdoc8 != null and pkDefdoc8 != ''"> and PK_DEFDOC8 = #{pkDefdoc8} </if>
|
||||
<if test="pkDefdoc9 != null and pkDefdoc9 != ''"> and PK_DEFDOC9 = #{pkDefdoc9} </if>
|
||||
<if test="taudittime != null and taudittime != ''"> and TAUDITTIME = #{taudittime} </if>
|
||||
<if test="tlastmaketime != null and tlastmaketime != ''"> and TLASTMAKETIME = #{tlastmaketime} </if>
|
||||
<if test="tmaketime != null and tmaketime != ''"> and TMAKETIME = #{tmaketime} </if>
|
||||
<if test="ts != null and ts != ''"> and TS = #{ts} </if>
|
||||
<if test="vdef1 != null and vdef1 != ''"> and VDEF1 = #{vdef1} </if>
|
||||
<if test="vdef10 != null and vdef10 != ''"> and VDEF10 = #{vdef10} </if>
|
||||
<if test="vdef11 != null and vdef11 != ''"> and VDEF11 = #{vdef11} </if>
|
||||
<if test="vdef12 != null and vdef12 != ''"> and VDEF12 = #{vdef12} </if>
|
||||
<if test="vdef13 != null and vdef13 != ''"> and VDEF13 = #{vdef13} </if>
|
||||
<if test="vdef14 != null and vdef14 != ''"> and VDEF14 = #{vdef14} </if>
|
||||
<if test="vdef15 != null and vdef15 != ''"> and VDEF15 = #{vdef15} </if>
|
||||
<if test="vdef16 != null and vdef16 != ''"> and VDEF16 = #{vdef16} </if>
|
||||
<if test="vdef17 != null and vdef17 != ''"> and VDEF17 = #{vdef17} </if>
|
||||
<if test="vdef18 != null and vdef18 != ''"> and VDEF18 = #{vdef18} </if>
|
||||
<if test="vdef19 != null and vdef19 != ''"> and VDEF19 = #{vdef19} </if>
|
||||
<if test="vdef2 != null and vdef2 != ''"> and VDEF2 = #{vdef2} </if>
|
||||
<if test="vdef20 != null and vdef20 != ''"> and VDEF20 = #{vdef20} </if>
|
||||
<if test="vdef3 != null and vdef3 != ''"> and VDEF3 = #{vdef3} </if>
|
||||
<if test="vdef4 != null and vdef4 != ''"> and VDEF4 = #{vdef4} </if>
|
||||
<if test="vdef5 != null and vdef5 != ''"> and VDEF5 = #{vdef5} </if>
|
||||
<if test="vdef6 != null and vdef6 != ''"> and VDEF6 = #{vdef6} </if>
|
||||
<if test="vdef7 != null and vdef7 != ''"> and VDEF7 = #{vdef7} </if>
|
||||
<if test="vdef8 != null and vdef8 != ''"> and VDEF8 = #{vdef8} </if>
|
||||
<if test="vdef9 != null and vdef9 != ''"> and VDEF9 = #{vdef9} </if>
|
||||
<if test="vmemo != null and vmemo != ''"> and VMEMO = #{vmemo} </if>
|
||||
<if test="vordercode != null and vordercode != ''"> and VORDERCODE = #{vordercode} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from SC_ORDER where CORDERID = #{corderid}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -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<StockinOrderSearchResponse.StockinOrder> 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<StockinOrderSearchResponse.StockinOrder> 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<StockinOrderSearchResponse.StockinOrder> returnGoodHeaderDetailsDataDtoArrayList) throws Exception {
|
||||
//过滤成功的数据
|
||||
List<StockinOrderSearchResponse.StockinOrder> stockinOrderList = filterData(returnGoodHeaderDetailsDataDtoArrayList);
|
||||
//执行推送主逻辑
|
||||
implement(stockinOrderList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 过滤掉成功的数据
|
||||
*
|
||||
* @author liuyang
|
||||
*/
|
||||
private List<StockinOrderSearchResponse.StockinOrder> filterData(List<StockinOrderSearchResponse.StockinOrder> returnGoodHeaderDetailsDataDtoArrayList) {
|
||||
List<StockinOrderSearchResponse.StockinOrder> headerDetailsDtoList1 = new ArrayList<>();
|
||||
if (returnGoodHeaderDetailsDataDtoArrayList != null && returnGoodHeaderDetailsDataDtoArrayList.size() > 0) {
|
||||
//TODO 出库单明细主键,需要O返回,目前没有,已经提需求
|
||||
headerDetailsDtoList1.addAll(returnGoodHeaderDetailsDataDtoArrayList);
|
||||
}
|
||||
return headerDetailsDtoList1;
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行主逻辑
|
||||
*
|
||||
* @author liuyang
|
||||
*/
|
||||
private void implement(List<StockinOrderSearchResponse.StockinOrder> returnGoodHeaderDetailsDataDtoList) throws Exception {
|
||||
if (returnGoodHeaderDetailsDataDtoList != null && returnGoodHeaderDetailsDataDtoList.size() > 0) {
|
||||
try {
|
||||
// 查询基本档案
|
||||
List<ConsignmachiningInSonDto> 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<StockinOrderSearchResponse.StockinOrder.StockinB> 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<StockinOrderSearchResponse.StockinOrder.StockinB> details1 = consignmachiningInSonDto.getDetails();//OFS采购入库单
|
||||
List<ScOrderBEntity> scOrderBEntityList = consignmachiningInSonDto.getScOrderBEntityList();//U8C委外订单明细行主键
|
||||
|
||||
OfsPoOrderHeader ofsPoOrderDataHeader = ofsPoOrderData.getHeader();
|
||||
List<OfsPoOrderDetails> 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<ConsignmachiningInBodyDto> 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<ConsignmachiningInHeadBodyDto> consignmachiningInHeadBodyDtoArrayList = new ArrayList<>();
|
||||
|
||||
ConsignmachiningInHeadBodyDto consignmachiningInHeadBodyDto = new ConsignmachiningInHeadBodyDto();
|
||||
consignmachiningInHeadBodyDto.setParentvo(poOrderParentDto);
|
||||
consignmachiningInHeadBodyDto.setChildrenvo(consignmachiningInBodyDtoArrayList);
|
||||
consignmachiningInHeadBodyDtoArrayList.add(consignmachiningInHeadBodyDto);
|
||||
|
||||
Map<String, List<ConsignmachiningInHeadBodyDto>> 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<IcGeneralHResultBodyDto> 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<ConsignmachiningInSonDto> queryBasicArchives(List<StockinOrderSearchResponse.StockinOrder> returnGoodHeaderDetailsDataDtoList) {
|
||||
List<ConsignmachiningInSonDto> 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<StockinOrderSearchResponse.StockinOrder.StockinB> 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<OfsPoOrderDetails> 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<ScOrderBEntity> 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<BdCorpEntity> 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<BdCalbodyEntity> 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<BdStordocEntity> 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<ScOrderEntity> 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<ScOrderBEntity> 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<ScOrderBEntity> 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<ScOrderBEntity> scOrderBEntityList) {
|
||||
Assert.notNull(stockinB, "stockinB不能为空");
|
||||
Assert.notNull(ofsPoOrderData, "ofsPoOrderData不能为空");
|
||||
Assert.notNull(scOrderBEntityList, "scOrderBEntityList删除不能为空");
|
||||
|
||||
// OfsPoOrderHeader header = ofsPoOrderData.getHeader();
|
||||
List<OfsPoOrderDetails> 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<OfsPoOrderDetails> 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<BdInvmandocEntity> 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;
|
||||
}
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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<OfsPoOrderData> 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
|
||||
* 查找对应的采购订单明细行
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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<com.hzya.frame.ttxofs.dto.ofssaleorderoutsearch.HeaderDetailsDto> 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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;//核销方式
|
||||
}
|
|
@ -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<ConsignmachiningInBodyDto> childrenvo;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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<StockinOrderSearchResponse.StockinOrder.StockinB> details;
|
||||
|
||||
/**
|
||||
* U8C委外订单明细行
|
||||
*/
|
||||
private List<ScOrderBEntity> scOrderBEntityList;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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<IcGeneralHResultBodyDto> childrenvo;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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<HeaderDetailsDto> 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<StockinOrderSearchResponse.StockinOrder> 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<PurchaseReturnOrder> 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<OfsPoOrderData> 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<OfsPoOrderDetails> 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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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<BdBusitypeEntity> bdBusitypeEntityList = iBdBusitypeDao.query(bdBusitypeEntity);
|
||||
if (bdBusitypeEntityList.size() == 0) {
|
||||
|
|
|
@ -26,4 +26,10 @@
|
|||
<bean name="proxyPurchaseWarehous" class="com.hzya.frame.plugin.lets.plugin.purchase.ProxyPurchaseWarehous"/>
|
||||
|
||||
<bean name="proxyPurchaseReturn" class="com.hzya.frame.plugin.lets.plugin.purchase.ProxyPurchaseReturn"/>
|
||||
|
||||
<bean name="consignmachiningIn" class="com.hzya.frame.plugin.lets.plugin.outsourc.ConsignmachiningIn"/>
|
||||
<bean name="consignmachiningInReturn" class="com.hzya.frame.plugin.lets.plugin.outsourc.ConsignmachiningInReturn"/>
|
||||
|
||||
<bean name="scOrderBDao" class="com.hzya.frame.plugin.lets.dao.impl.ScOrderBDaoImpl"/>
|
||||
<bean name="scOrderDao" class="com.hzya.frame.plugin.lets.dao.impl.ScOrderDaoImpl"/>
|
||||
</beans>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue