新增客商基本,管理dto
This commit is contained in:
parent
eac2ca9b44
commit
761ad617a4
|
@ -20,7 +20,7 @@ public class BdCubasdocDaoImpl extends MybatisGenericDao<BdCubasdocEntity, Strin
|
||||||
public BdCubasdocEntity queryBdCumandocEntity(BdCubasdocEntity bdCumandocEntity) throws Exception {
|
public BdCubasdocEntity queryBdCumandocEntity(BdCubasdocEntity bdCumandocEntity) throws Exception {
|
||||||
Assert.notNull(bdCumandocEntity, "BdCumandocEntity不可为空!");
|
Assert.notNull(bdCumandocEntity, "BdCumandocEntity不可为空!");
|
||||||
Assert.notNull(bdCumandocEntity.getPk_cumandoc(), "供应商管理id不能为空!");
|
Assert.notNull(bdCumandocEntity.getPk_cumandoc(), "供应商管理id不能为空!");
|
||||||
Assert.notNull(bdCumandocEntity.getPk_corp(), "公司id不能为空!");
|
Assert.notNull(bdCumandocEntity.getPkCorp(), "公司id不能为空!");
|
||||||
// Assert.notNull(bdCumandocEntity.getCustflag(), "客商属性不能为空!");
|
// Assert.notNull(bdCumandocEntity.getCustflag(), "客商属性不能为空!");
|
||||||
|
|
||||||
return query(bdCumandocEntity, "com.hzya.frame.plugin.lets.dao.impl.BdCubasdocDaoImpl.queryBdCumandocByPkCumandoc");
|
return query(bdCumandocEntity, "com.hzya.frame.plugin.lets.dao.impl.BdCubasdocDaoImpl.queryBdCumandocByPkCumandoc");
|
||||||
|
|
|
@ -10,10 +10,6 @@ import com.hzya.frame.web.entity.BaseEntity;
|
||||||
*/
|
*/
|
||||||
public class BdCubasdocEntity extends BaseEntity {
|
public class BdCubasdocEntity extends BaseEntity {
|
||||||
|
|
||||||
//客商基本档案主键(修改时必填,新增时禁止传入)
|
|
||||||
private String pk_cubasdoc;
|
|
||||||
|
|
||||||
|
|
||||||
private String accdefault;
|
private String accdefault;
|
||||||
private String billtemplet;
|
private String billtemplet;
|
||||||
private String bp1;
|
private String bp1;
|
||||||
|
@ -28,7 +24,6 @@ public class BdCubasdocEntity extends BaseEntity {
|
||||||
private String custname;
|
private String custname;
|
||||||
private Long custprop;
|
private Long custprop;
|
||||||
private String custshortname;
|
private String custshortname;
|
||||||
//是否
|
|
||||||
private String def1;
|
private String def1;
|
||||||
private String def10;
|
private String def10;
|
||||||
private String def11;
|
private String def11;
|
||||||
|
@ -72,12 +67,12 @@ public class BdCubasdocEntity extends BaseEntity {
|
||||||
private String phone1;
|
private String phone1;
|
||||||
private String phone2;
|
private String phone2;
|
||||||
private String phone3;
|
private String phone3;
|
||||||
private String pk_areacl;
|
private String pkAreacl;
|
||||||
private String pk_corp;
|
private String pkCorp;
|
||||||
private String pk_corp1;
|
private String pkCorp1;
|
||||||
// private String pkcubasdoc;
|
private String pkCubasdoc;
|
||||||
private String pk_cubasdoc1;
|
private String pkCubasdoc1;
|
||||||
private String pk_pricegroup;
|
private String pkPricegroup;
|
||||||
private String registerfund;
|
private String registerfund;
|
||||||
private String saleaddr;
|
private String saleaddr;
|
||||||
private String sealflag;
|
private String sealflag;
|
||||||
|
@ -124,7 +119,6 @@ public class BdCubasdocEntity extends BaseEntity {
|
||||||
this.end_createtime = end_createtime;
|
this.end_createtime = end_createtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getCustflag() {
|
public String getCustflag() {
|
||||||
return custflag;
|
return custflag;
|
||||||
}
|
}
|
||||||
|
@ -577,46 +571,6 @@ public class BdCubasdocEntity extends BaseEntity {
|
||||||
return phone1;
|
return phone1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPk_areacl() {
|
|
||||||
return pk_areacl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPk_areacl(String pk_areacl) {
|
|
||||||
this.pk_areacl = pk_areacl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPk_corp() {
|
|
||||||
return pk_corp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPk_corp(String pk_corp) {
|
|
||||||
this.pk_corp = pk_corp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPk_corp1() {
|
|
||||||
return pk_corp1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPk_corp1(String pk_corp1) {
|
|
||||||
this.pk_corp1 = pk_corp1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPk_cubasdoc1() {
|
|
||||||
return pk_cubasdoc1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPk_cubasdoc1(String pk_cubasdoc1) {
|
|
||||||
this.pk_cubasdoc1 = pk_cubasdoc1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPk_pricegroup() {
|
|
||||||
return pk_pricegroup;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPk_pricegroup(String pk_pricegroup) {
|
|
||||||
this.pk_pricegroup = pk_pricegroup;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPhone1(String phone1) {
|
public void setPhone1(String phone1) {
|
||||||
this.phone1 = phone1;
|
this.phone1 = phone1;
|
||||||
}
|
}
|
||||||
|
@ -637,16 +591,53 @@ public class BdCubasdocEntity extends BaseEntity {
|
||||||
this.phone3 = phone3;
|
this.phone3 = phone3;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPk_cubasdoc() {
|
public String getPkAreacl() {
|
||||||
return pk_cubasdoc;
|
return pkAreacl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPk_cubasdoc(String pk_cubasdoc) {
|
public void setPkAreacl(String pkAreacl) {
|
||||||
this.pk_cubasdoc = pk_cubasdoc;
|
this.pkAreacl = pkAreacl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getPkCorp() {
|
||||||
|
return pkCorp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPkCorp(String pkCorp) {
|
||||||
|
this.pkCorp = pkCorp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPkCorp1() {
|
||||||
|
return pkCorp1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPkCorp1(String pkCorp1) {
|
||||||
|
this.pkCorp1 = pkCorp1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPkCubasdoc() {
|
||||||
|
return pkCubasdoc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPkCubasdoc(String pkCubasdoc) {
|
||||||
|
this.pkCubasdoc = pkCubasdoc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPkCubasdoc1() {
|
||||||
|
return pkCubasdoc1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPkCubasdoc1(String pkCubasdoc1) {
|
||||||
|
this.pkCubasdoc1 = pkCubasdoc1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPkPricegroup() {
|
||||||
|
return pkPricegroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPkPricegroup(String pkPricegroup) {
|
||||||
|
this.pkPricegroup = pkPricegroup;
|
||||||
|
}
|
||||||
|
|
||||||
public String getRegisterfund() {
|
public String getRegisterfund() {
|
||||||
return registerfund;
|
return registerfund;
|
||||||
|
|
|
@ -60,12 +60,12 @@
|
||||||
<result property="phone1" column="phone1" jdbcType="VARCHAR"/>
|
<result property="phone1" column="phone1" jdbcType="VARCHAR"/>
|
||||||
<result property="phone2" column="phone2" jdbcType="VARCHAR"/>
|
<result property="phone2" column="phone2" jdbcType="VARCHAR"/>
|
||||||
<result property="phone3" column="phone3" jdbcType="VARCHAR"/>
|
<result property="phone3" column="phone3" jdbcType="VARCHAR"/>
|
||||||
<result property="pk_areacl" column="pk_areacl" jdbcType="VARCHAR"/>
|
<result property="pkAreacl" column="pk_areacl" jdbcType="VARCHAR"/>
|
||||||
<result property="pk_corp" column="pk_corp" jdbcType="VARCHAR"/>
|
<result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
|
||||||
<result property="pk_corp1" column="pk_corp1" jdbcType="VARCHAR"/>
|
<result property="pkCorp1" column="pk_corp1" jdbcType="VARCHAR"/>
|
||||||
<result property="pk_cubasdoc" column="pk_cubasdoc" jdbcType="VARCHAR"/>
|
<result property="pkCubasdoc" column="pk_cubasdoc" jdbcType="VARCHAR"/>
|
||||||
<result property="pk_cubasdoc1" column="pk_cubasdoc1" jdbcType="VARCHAR"/>
|
<result property="pkCubasdoc1" column="pk_cubasdoc1" jdbcType="VARCHAR"/>
|
||||||
<result property="pk_pricegroup" column="pk_pricegroup" jdbcType="VARCHAR"/>
|
<result property="pkPricegroup" column="pk_pricegroup" jdbcType="VARCHAR"/>
|
||||||
<result property="registerfund" column="registerfund" jdbcType="VARCHAR"/>
|
<result property="registerfund" column="registerfund" jdbcType="VARCHAR"/>
|
||||||
<result property="saleaddr" column="saleaddr" jdbcType="VARCHAR"/>
|
<result property="saleaddr" column="saleaddr" jdbcType="VARCHAR"/>
|
||||||
<result property="sealflag" column="sealflag" jdbcType="VARCHAR"/>
|
<result property="sealflag" column="sealflag" jdbcType="VARCHAR"/>
|
||||||
|
|
|
@ -31,8 +31,6 @@ public class BdCumandocEntity extends BaseEntity {
|
||||||
private String creditmoney;
|
private String creditmoney;
|
||||||
private Long credlimitflag;
|
private Long credlimitflag;
|
||||||
private String custflag;
|
private String custflag;
|
||||||
// 客商名称
|
|
||||||
private String custname;
|
|
||||||
|
|
||||||
private Long custstate;
|
private Long custstate;
|
||||||
private String def1;
|
private String def1;
|
||||||
|
|
|
@ -6,13 +6,13 @@ import com.alibaba.fastjson.JSONObject;
|
||||||
import com.hzya.frame.base.PluginBaseEntity;
|
import com.hzya.frame.base.PluginBaseEntity;
|
||||||
import com.hzya.frame.plugin.lets.constant.OverallConstant;
|
import com.hzya.frame.plugin.lets.constant.OverallConstant;
|
||||||
import com.hzya.frame.plugin.lets.constant.ProfilesActiveConstant;
|
import com.hzya.frame.plugin.lets.constant.ProfilesActiveConstant;
|
||||||
import com.hzya.frame.plugin.lets.entity.BdCubasdocEntity;
|
|
||||||
|
|
||||||
import com.hzya.frame.plugin.lets.entity.BdCumandocEntity;
|
|
||||||
import com.hzya.frame.plugin.lets.queryvo.CustdocRequestVo;
|
import com.hzya.frame.plugin.lets.queryvo.CustdocRequestVo;
|
||||||
|
|
||||||
import com.hzya.frame.plugin.lets.queryvo.CustmandocRequestVo;
|
import com.hzya.frame.plugin.lets.queryvo.CustmandocRequestVo;
|
||||||
import com.hzya.frame.plugin.lets.resultvo.CbdocResultVo;
|
import com.hzya.frame.plugin.lets.resultvo.CbdocResultVo;
|
||||||
|
import com.hzya.frame.plugin.lets.u8cdto.CustdocEntityDto;
|
||||||
|
import com.hzya.frame.plugin.lets.u8cdto.CustmandocEntityDto;
|
||||||
import com.hzya.frame.plugin.lets.u8cdto.ReusltStrDto;
|
import com.hzya.frame.plugin.lets.u8cdto.ReusltStrDto;
|
||||||
import com.hzya.frame.plugin.lets.util.PushDataByU8cUtil;
|
import com.hzya.frame.plugin.lets.util.PushDataByU8cUtil;
|
||||||
import com.hzya.frame.plugin.lets.util.SaveOrUpdateBusinessLogUtil;
|
import com.hzya.frame.plugin.lets.util.SaveOrUpdateBusinessLogUtil;
|
||||||
|
@ -136,7 +136,7 @@ public class CustmandocPluginInitializer extends PluginBaseEntity {
|
||||||
Date date = new Date(System.currentTimeMillis()); // 创建Date对象
|
Date date = new Date(System.currentTimeMillis()); // 创建Date对象
|
||||||
String businessFormat = sdf.format(date); // 将Date对象格式化为字符串
|
String businessFormat = sdf.format(date); // 将Date对象格式化为字符串
|
||||||
|
|
||||||
BdCubasdocEntity parentvo = vo.getParentvo();
|
CustdocEntityDto parentvo = vo.getParentvo();
|
||||||
try {
|
try {
|
||||||
|
|
||||||
parentvo.setPk_areacl("F");
|
parentvo.setPk_areacl("F");
|
||||||
|
@ -145,13 +145,13 @@ public class CustmandocPluginInitializer extends PluginBaseEntity {
|
||||||
custmandocRequestVo.setAddrs(vo.getAddrs());
|
custmandocRequestVo.setAddrs(vo.getAddrs());
|
||||||
// custmandocRequestVo.setBanks(vo.getBanks());
|
// custmandocRequestVo.setBanks(vo.getBanks());
|
||||||
|
|
||||||
BdCumandocEntity BdCumandocEntity = new BdCumandocEntity();
|
CustmandocEntityDto custmandocEntityDto = new CustmandocEntityDto();
|
||||||
BdCumandocEntity.setCustflag("0");
|
custmandocEntityDto.setCustflag("0");
|
||||||
BdCumandocEntity BdCumandocEntity1 = new BdCumandocEntity();
|
CustmandocEntityDto custmandocEntityDto1 = new CustmandocEntityDto();
|
||||||
BdCumandocEntity1.setCustflag("4");
|
custmandocEntityDto1.setCustflag("4");
|
||||||
List<BdCumandocEntity> custmandocEntities = new ArrayList<>();
|
List<CustmandocEntityDto> custmandocEntities = new ArrayList<>();
|
||||||
custmandocEntities.add(BdCumandocEntity);
|
custmandocEntities.add(custmandocEntityDto);
|
||||||
custmandocEntities.add(BdCumandocEntity1);
|
custmandocEntities.add(custmandocEntityDto1);
|
||||||
custmandocRequestVo.setChildrenvo(custmandocEntities);
|
custmandocRequestVo.setChildrenvo(custmandocEntities);
|
||||||
HashMap<String, Object> mandocparam = new HashMap<>();
|
HashMap<String, Object> mandocparam = new HashMap<>();
|
||||||
mandocparam.put("billvo", custmandocRequestVo);
|
mandocparam.put("billvo", custmandocRequestVo);
|
||||||
|
|
|
@ -8,12 +8,12 @@ import com.alibaba.fastjson.JSONObject;
|
||||||
import com.hzya.frame.base.PluginBaseEntity;
|
import com.hzya.frame.base.PluginBaseEntity;
|
||||||
import com.hzya.frame.plugin.lets.constant.OverallConstant;
|
import com.hzya.frame.plugin.lets.constant.OverallConstant;
|
||||||
import com.hzya.frame.plugin.lets.constant.ProfilesActiveConstant;
|
import com.hzya.frame.plugin.lets.constant.ProfilesActiveConstant;
|
||||||
import com.hzya.frame.plugin.lets.entity.BdCubasdocEntity;
|
|
||||||
import com.hzya.frame.plugin.lets.ofs.entity.ShopEntity;
|
import com.hzya.frame.plugin.lets.ofs.entity.ShopEntity;
|
||||||
|
|
||||||
import com.hzya.frame.plugin.lets.queryvo.CustdocRequestVo;
|
import com.hzya.frame.plugin.lets.queryvo.CustdocRequestVo;
|
||||||
import com.hzya.frame.plugin.lets.resultvo.CbdocResultVo;
|
import com.hzya.frame.plugin.lets.resultvo.CbdocResultVo;
|
||||||
import com.hzya.frame.plugin.lets.resultvo.ShopReturnMessageDto;
|
import com.hzya.frame.plugin.lets.resultvo.ShopReturnMessageDto;
|
||||||
|
import com.hzya.frame.plugin.lets.u8cdto.CustdocEntityDto;
|
||||||
import com.hzya.frame.plugin.lets.util.PushDataByU8cUtil;
|
import com.hzya.frame.plugin.lets.util.PushDataByU8cUtil;
|
||||||
import com.hzya.frame.plugin.lets.util.SaveOrUpdateBusinessLogUtil;
|
import com.hzya.frame.plugin.lets.util.SaveOrUpdateBusinessLogUtil;
|
||||||
import com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.IIntegrationTaskLivingDetailsDao;
|
import com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.IIntegrationTaskLivingDetailsDao;
|
||||||
|
@ -201,8 +201,8 @@ public class ShopPluginInitializer extends PluginBaseEntity {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
BdCubasdocEntity parentvo = new BdCubasdocEntity();
|
CustdocEntityDto parentvo = new CustdocEntityDto();
|
||||||
CustdocRequestVo BdCubasdocEntity = new CustdocRequestVo();
|
CustdocRequestVo custdocRequestVo = new CustdocRequestVo();
|
||||||
//TODO 设置parentvo
|
//TODO 设置parentvo
|
||||||
parentvo.setCustname(shopEntity.getName());
|
parentvo.setCustname(shopEntity.getName());
|
||||||
parentvo.setCustshortname(shopEntity.getName());
|
parentvo.setCustshortname(shopEntity.getName());
|
||||||
|
@ -212,11 +212,11 @@ public class ShopPluginInitializer extends PluginBaseEntity {
|
||||||
//设置还未同步到管理档案
|
//设置还未同步到管理档案
|
||||||
parentvo.setDef11("N");
|
parentvo.setDef11("N");
|
||||||
// parentvo.setCustprop("0");
|
// parentvo.setCustprop("0");
|
||||||
BdCubasdocEntity.setParentvo(parentvo);
|
custdocRequestVo.setParentvo(parentvo);
|
||||||
|
|
||||||
//同步u8c
|
//同步u8c
|
||||||
HashMap<String, Object> param = new HashMap<>();
|
HashMap<String, Object> param = new HashMap<>();
|
||||||
param.put("cbdocvo", BdCubasdocEntity);
|
param.put("cbdocvo", custdocRequestVo);
|
||||||
String jsonString = JSONObject.toJSONString(param);
|
String jsonString = JSONObject.toJSONString(param);
|
||||||
String response = pushDataByU8cUtil.pushU8CByCode(OverallConstant.getOverAllValue("custdocSave"), jsonString);
|
String response = pushDataByU8cUtil.pushU8CByCode(OverallConstant.getOverAllValue("custdocSave"), jsonString);
|
||||||
System.out.println(response);
|
System.out.println(response);
|
||||||
|
@ -230,9 +230,8 @@ public class ShopPluginInitializer extends PluginBaseEntity {
|
||||||
String data = cbdocResultVo.getData();
|
String data = cbdocResultVo.getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!isSuccess) {
|
if (!isSuccess) {
|
||||||
Assert.state(false, "同步到U8C失败,原因:{} 接口入参:{} {}", JSON.toJSONString(cbdocResultVo), JSON.toJSONString(OverallConstant.getOverAllValue("custdocSave")), JSON.toJSONString(BdCubasdocEntity));
|
Assert.state(false, "同步到U8C失败,原因:{} 接口入参:{} {}", JSON.toJSONString(cbdocResultVo), JSON.toJSONString(OverallConstant.getOverAllValue("custdocSave")), JSON.toJSONString(custdocRequestVo));
|
||||||
}
|
}
|
||||||
// 根据返回结果记录日志
|
// 根据返回结果记录日志
|
||||||
//成功
|
//成功
|
||||||
|
|
|
@ -8,7 +8,6 @@ import com.alibaba.fastjson.JSONObject;
|
||||||
import com.hzya.frame.base.PluginBaseEntity;
|
import com.hzya.frame.base.PluginBaseEntity;
|
||||||
import com.hzya.frame.plugin.lets.constant.OverallConstant;
|
import com.hzya.frame.plugin.lets.constant.OverallConstant;
|
||||||
import com.hzya.frame.plugin.lets.constant.ProfilesActiveConstant;
|
import com.hzya.frame.plugin.lets.constant.ProfilesActiveConstant;
|
||||||
import com.hzya.frame.plugin.lets.entity.BdCubasdocEntity;
|
|
||||||
import com.hzya.frame.plugin.lets.ofs.entity.ShopEntity;
|
import com.hzya.frame.plugin.lets.ofs.entity.ShopEntity;
|
||||||
import com.hzya.frame.plugin.lets.ofs.entity.SupplierEntity;
|
import com.hzya.frame.plugin.lets.ofs.entity.SupplierEntity;
|
||||||
|
|
||||||
|
@ -16,6 +15,7 @@ import com.hzya.frame.plugin.lets.queryvo.CustDocAssginVo;
|
||||||
import com.hzya.frame.plugin.lets.queryvo.CustdocRequestVo;
|
import com.hzya.frame.plugin.lets.queryvo.CustdocRequestVo;
|
||||||
import com.hzya.frame.plugin.lets.queryvo.CustmandocRequestVo;
|
import com.hzya.frame.plugin.lets.queryvo.CustmandocRequestVo;
|
||||||
import com.hzya.frame.plugin.lets.resultvo.CbdocResultVo;
|
import com.hzya.frame.plugin.lets.resultvo.CbdocResultVo;
|
||||||
|
import com.hzya.frame.plugin.lets.u8cdto.CustdocEntityDto;
|
||||||
import com.hzya.frame.plugin.lets.util.PushDataByU8cUtil;
|
import com.hzya.frame.plugin.lets.util.PushDataByU8cUtil;
|
||||||
import com.hzya.frame.plugin.lets.util.SaveOrUpdateBusinessLogUtil;
|
import com.hzya.frame.plugin.lets.util.SaveOrUpdateBusinessLogUtil;
|
||||||
import com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.IIntegrationTaskLivingDetailsDao;
|
import com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.IIntegrationTaskLivingDetailsDao;
|
||||||
|
@ -181,8 +181,8 @@ public class SupplierPluginInitializer extends PluginBaseEntity {
|
||||||
Date date = new Date(System.currentTimeMillis());
|
Date date = new Date(System.currentTimeMillis());
|
||||||
String businessFormat = sdf.format(date);
|
String businessFormat = sdf.format(date);
|
||||||
for (SupplierEntity supplierEntity : shopEntityList) {
|
for (SupplierEntity supplierEntity : shopEntityList) {
|
||||||
BdCubasdocEntity parentvo = new BdCubasdocEntity();
|
CustdocEntityDto parentvo = new CustdocEntityDto();
|
||||||
CustdocRequestVo BdCubasdocEntity = new CustdocRequestVo();
|
CustdocRequestVo CustdocEntityDto = new CustdocRequestVo();
|
||||||
try {
|
try {
|
||||||
//T 设置parentvo
|
//T 设置parentvo
|
||||||
// parentvo.setPk_areacl("");
|
// parentvo.setPk_areacl("");
|
||||||
|
@ -194,10 +194,10 @@ public class SupplierPluginInitializer extends PluginBaseEntity {
|
||||||
parentvo.setDef10("N");
|
parentvo.setDef10("N");
|
||||||
//设置还未同步到管理档案
|
//设置还未同步到管理档案
|
||||||
parentvo.setDef11("N");
|
parentvo.setDef11("N");
|
||||||
BdCubasdocEntity.setParentvo(parentvo);
|
CustdocEntityDto.setParentvo(parentvo);
|
||||||
// 同步u8c
|
// 同步u8c
|
||||||
HashMap<String, Object> param = new HashMap<>();
|
HashMap<String, Object> param = new HashMap<>();
|
||||||
param.put("cbdocvo", BdCubasdocEntity);
|
param.put("cbdocvo", CustdocEntityDto);
|
||||||
|
|
||||||
String jsonString = JSONObject.toJSONString(param);
|
String jsonString = JSONObject.toJSONString(param);
|
||||||
String response = pushDataByU8cUtil.pushU8CByCode(OverallConstant.getOverAllValue("custdocSave"), jsonString);
|
String response = pushDataByU8cUtil.pushU8CByCode(OverallConstant.getOverAllValue("custdocSave"), jsonString);
|
||||||
|
@ -211,7 +211,7 @@ public class SupplierPluginInitializer extends PluginBaseEntity {
|
||||||
String data = cbdocResultVo.getData();
|
String data = cbdocResultVo.getData();
|
||||||
}
|
}
|
||||||
if (!isSuccess) {
|
if (!isSuccess) {
|
||||||
Assert.state(false, "推送U8C,原因:{} 接口入参:{} {}", JSON.toJSONString(cbdocResultVo), JSON.toJSONString(OverallConstant.getOverAllValue("custdocSave")), JSON.toJSONString(BdCubasdocEntity));
|
Assert.state(false, "推送U8C,原因:{} 接口入参:{} {}", JSON.toJSONString(cbdocResultVo), JSON.toJSONString(OverallConstant.getOverAllValue("custdocSave")), JSON.toJSONString(CustdocEntityDto));
|
||||||
}
|
}
|
||||||
// 根据返回结果记录日志
|
// 根据返回结果记录日志
|
||||||
//成功
|
//成功
|
||||||
|
@ -229,13 +229,12 @@ public class SupplierPluginInitializer extends PluginBaseEntity {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
String ErrMessage = e.getMessage();
|
String ErrMessage = e.getMessage();
|
||||||
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
|
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
|
||||||
integrationTaskLivingDetailsEntity.setNewState(ProfilesActiveConstant.LOG_STATUS_N);
|
integrationTaskLivingDetailsEntity.setNewState(ProfilesActiveConstant.LOG_STATUS_N);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppNewData(JSONObject.toJSONString(BdCubasdocEntity));
|
integrationTaskLivingDetailsEntity.setRootAppNewData(JSONObject.toJSONString(CustdocEntityDto));
|
||||||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
||||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||||
integrationTaskLivingDetailsEntity.setBusinessDate(businessFormat);
|
integrationTaskLivingDetailsEntity.setBusinessDate(businessFormat);
|
||||||
|
@ -276,6 +275,4 @@ public class SupplierPluginInitializer extends PluginBaseEntity {
|
||||||
}
|
}
|
||||||
return supplierEntityList;
|
return supplierEntityList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -523,7 +523,7 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
|
||||||
//客商管理档案:2024年8月5日 15:41:54 TOC店铺名称查询U8C客商档案,已经和妮姐确认
|
//客商管理档案:2024年8月5日 15:41:54 TOC店铺名称查询U8C客商档案,已经和妮姐确认
|
||||||
//2024年8月5日 15:49:49 先根据O店铺编码,得到店铺档案信息,取到名称,通过U8C接口查询出来
|
//2024年8月5日 15:49:49 先根据O店铺编码,得到店铺档案信息,取到名称,通过U8C接口查询出来
|
||||||
//目前O店铺信息查询接口还没有,等待开发,所以我这里先写所一个名字
|
//目前O店铺信息查询接口还没有,等待开发,所以我这里先写所一个名字
|
||||||
BdCumandocEntity bdCumandocEntity = TocOrderBasicArchivesCacheUtil.stringBdCumandocEntityMap.get(bdCubasdocEntity.getPk_cubasdoc() + bdCorpEntity.getPkCorp());
|
BdCumandocEntity bdCumandocEntity = TocOrderBasicArchivesCacheUtil.stringBdCumandocEntityMap.get(bdCubasdocEntity.getPkCubasdoc() + bdCorpEntity.getPkCorp());
|
||||||
Assert.notNull(bdCumandocEntity, "无法匹配到客商档案 店铺名称:{}", "天猫intoyou旗舰店-自营");
|
Assert.notNull(bdCumandocEntity, "无法匹配到客商档案 店铺名称:{}", "天猫intoyou旗舰店-自营");
|
||||||
|
|
||||||
//查找平台
|
//查找平台
|
||||||
|
|
|
@ -513,7 +513,7 @@ public class SoSaleReturnPluginInitializerToC extends PluginBaseEntity {
|
||||||
//客商管理档案:2024年8月5日 15:41:54 TOC店铺名称查询U8C客商档案,已经和妮姐确认
|
//客商管理档案:2024年8月5日 15:41:54 TOC店铺名称查询U8C客商档案,已经和妮姐确认
|
||||||
//2024年8月5日 15:49:49 先根据O店铺编码,得到店铺档案信息,取到名称,通过U8C接口查询出来
|
//2024年8月5日 15:49:49 先根据O店铺编码,得到店铺档案信息,取到名称,通过U8C接口查询出来
|
||||||
//目前O店铺信息查询接口还没有,等待开发,所以我这里先写所一个名字
|
//目前O店铺信息查询接口还没有,等待开发,所以我这里先写所一个名字
|
||||||
BdCumandocEntity bdCumandocEntity = TocReturnBasicArchivesCacheUtil.stringBdCumandocEntityMap.get(bdCubasdocEntity.getPk_cubasdoc() + bdCorpEntity.getPkCorp());
|
BdCumandocEntity bdCumandocEntity = TocReturnBasicArchivesCacheUtil.stringBdCumandocEntityMap.get(bdCubasdocEntity.getPkCubasdoc() + bdCorpEntity.getPkCorp());
|
||||||
Assert.notNull(bdCumandocEntity, "无法匹配到客商档案 店铺名称:{}", "天猫intoyou旗舰店-自营");
|
Assert.notNull(bdCumandocEntity, "无法匹配到客商档案 店铺名称:{}", "天猫intoyou旗舰店-自营");
|
||||||
|
|
||||||
//查找平台
|
//查找平台
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.hzya.frame.plugin.lets.queryvo;
|
package com.hzya.frame.plugin.lets.queryvo;
|
||||||
|
|
||||||
import com.hzya.frame.plugin.lets.entity.BdCubasdocEntity;
|
import com.hzya.frame.plugin.lets.entity.BdCubasdocEntity;
|
||||||
|
import com.hzya.frame.plugin.lets.u8cdto.CustdocEntityDto;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -17,6 +18,6 @@ public class CustdocRequestVo {
|
||||||
private List<AddrVo> addrs;
|
private List<AddrVo> addrs;
|
||||||
private List<BankVo> banks;
|
private List<BankVo> banks;
|
||||||
// private BdCubasdocEntity parentvo;
|
// private BdCubasdocEntity parentvo;
|
||||||
private BdCubasdocEntity parentvo;
|
private CustdocEntityDto parentvo;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
package com.hzya.frame.plugin.lets.queryvo;
|
package com.hzya.frame.plugin.lets.queryvo;
|
||||||
|
|
||||||
import com.hzya.frame.plugin.lets.entity.BdCubasdocEntity;
|
|
||||||
import com.hzya.frame.plugin.lets.entity.BdCumandocEntity;
|
import com.hzya.frame.plugin.lets.entity.BdCumandocEntity;
|
||||||
|
import com.hzya.frame.plugin.lets.u8cdto.CustdocEntityDto;
|
||||||
|
import com.hzya.frame.plugin.lets.u8cdto.CustmandocEntityDto;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -18,6 +19,6 @@ public class CustmandocRequestVo {
|
||||||
private List<AddrVo> addrs;
|
private List<AddrVo> addrs;
|
||||||
private List<BankVo> custBanks;
|
private List<BankVo> custBanks;
|
||||||
|
|
||||||
private List<BdCumandocEntity> childrenvo;
|
private List<CustmandocEntityDto> childrenvo;
|
||||||
private BdCubasdocEntity parentvo;
|
private CustdocEntityDto parentvo;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,150 @@
|
||||||
|
package com.hzya.frame.plugin.lets.u8cdto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author
|
||||||
|
* @Date 2024/8/6 16:14
|
||||||
|
* @PackageName:com.hzya.frame.plugin.lets.plugin.base.vo
|
||||||
|
* @ClassName: parentvo
|
||||||
|
* @Description: 客商基本档案
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class CustdocEntityDto {
|
||||||
|
//客商基本档案主键(修改时必填,新增时禁止传入)
|
||||||
|
private String pk_cubasdoc;
|
||||||
|
//默认账户
|
||||||
|
private String accdefault;
|
||||||
|
//呼机1
|
||||||
|
private String bp1;
|
||||||
|
//呼机2
|
||||||
|
private String bp2;
|
||||||
|
//呼机3
|
||||||
|
private String bp3;
|
||||||
|
//通信地址
|
||||||
|
private String conaddr;
|
||||||
|
//创建时间
|
||||||
|
private String createtime;
|
||||||
|
//创建人
|
||||||
|
private String creator;
|
||||||
|
//信用额度
|
||||||
|
private String creditmny;
|
||||||
|
//客商编码
|
||||||
|
private String custcode;
|
||||||
|
//客商名称
|
||||||
|
private String custname;
|
||||||
|
//客商类型 0 - 外部单位,1 - 内部核算单位,2 - 内部法人单位,3 - 内部渠道成员)
|
||||||
|
private String custprop;
|
||||||
|
//客商简称
|
||||||
|
private String custshortname;
|
||||||
|
|
||||||
|
private String def1;
|
||||||
|
|
||||||
|
private String def10;
|
||||||
|
|
||||||
|
private String def11;
|
||||||
|
|
||||||
|
private String def12;
|
||||||
|
|
||||||
|
private String def13;
|
||||||
|
|
||||||
|
private String def14;
|
||||||
|
|
||||||
|
private String def15;
|
||||||
|
|
||||||
|
private String def16;
|
||||||
|
|
||||||
|
private String def17;
|
||||||
|
|
||||||
|
private String def18;
|
||||||
|
|
||||||
|
private String def19;
|
||||||
|
|
||||||
|
private String def2;
|
||||||
|
private String def20;
|
||||||
|
|
||||||
|
private String def3;
|
||||||
|
|
||||||
|
private String def4;
|
||||||
|
|
||||||
|
private String def5;
|
||||||
|
|
||||||
|
private String def6;
|
||||||
|
|
||||||
|
private String def7;
|
||||||
|
|
||||||
|
private String def8;
|
||||||
|
|
||||||
|
private String def9;
|
||||||
|
//是否drp节点
|
||||||
|
private boolean drpnodeflag;
|
||||||
|
//经济类型(填写编码)
|
||||||
|
private String ecotypesincevfive;
|
||||||
|
//e-mail地址
|
||||||
|
private String email;
|
||||||
|
//外文名称
|
||||||
|
private String engname;
|
||||||
|
//传真1
|
||||||
|
private String fax1;
|
||||||
|
//传真2
|
||||||
|
private String fax2;
|
||||||
|
//是否散户
|
||||||
|
private boolean freecustflag;
|
||||||
|
//是否渠道成员
|
||||||
|
private boolean isconnflag;
|
||||||
|
//法人
|
||||||
|
private String legalbody;
|
||||||
|
//联系人1
|
||||||
|
private String linkman1;
|
||||||
|
//联系人2
|
||||||
|
private String linkman2;
|
||||||
|
//联系人3
|
||||||
|
private String linkman3;
|
||||||
|
//备注
|
||||||
|
private String memo;
|
||||||
|
//助记码
|
||||||
|
private String mnecode;
|
||||||
|
//手机1
|
||||||
|
private String mobilephone1;
|
||||||
|
//手机2
|
||||||
|
private String mobilephone2;
|
||||||
|
//手机3
|
||||||
|
private String mobilephone3;
|
||||||
|
//修改人
|
||||||
|
private String modifier;
|
||||||
|
//修改时间
|
||||||
|
private String modifytime;
|
||||||
|
//电话1
|
||||||
|
private String phone1;
|
||||||
|
//电话2
|
||||||
|
private String phone2;
|
||||||
|
//电话3
|
||||||
|
private String phone3;
|
||||||
|
//所属地区(填写编码)
|
||||||
|
private String pk_areacl;
|
||||||
|
//公司主键(填写对应编码)
|
||||||
|
private String pk_corp;
|
||||||
|
//对应公司(填写编码)
|
||||||
|
private String pk_corp1;
|
||||||
|
//客商总公司编码(填写编码)
|
||||||
|
private String pk_cubasdoc1;
|
||||||
|
//价格分组(填写编码)
|
||||||
|
private String pk_pricegroup;
|
||||||
|
//注册资金
|
||||||
|
private String registerfund;
|
||||||
|
//营业地址
|
||||||
|
private String saleaddr;
|
||||||
|
//封存标志
|
||||||
|
private String sealflag;
|
||||||
|
//纳税人登记号
|
||||||
|
private String taxpayerid;
|
||||||
|
//所属行业(填写编码)
|
||||||
|
private String trade;
|
||||||
|
//web网址
|
||||||
|
private String url;
|
||||||
|
//邮政编码
|
||||||
|
private String zipcode;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,198 @@
|
||||||
|
package com.hzya.frame.plugin.lets.u8cdto;
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author
|
||||||
|
* @Date 2024/8/8 15:15
|
||||||
|
* @PackageName:com.hzya.frame.plugin.lets.plugin.base.vo
|
||||||
|
* @ClassName: BdCumandocEntity
|
||||||
|
* @Description: 客商管理档案
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class CustmandocEntityDto {
|
||||||
|
// 于客商总公司账期控制
|
||||||
|
private boolean acclimitcontrol;
|
||||||
|
// 呼机
|
||||||
|
private String bp;
|
||||||
|
// 助记码
|
||||||
|
private String cmnecode;
|
||||||
|
// 是否收付协同
|
||||||
|
private boolean cooperateflag;
|
||||||
|
// 合作期限从
|
||||||
|
private String cooperatingdayfrom;
|
||||||
|
// 合作期限到
|
||||||
|
private String cooperatingdayto;
|
||||||
|
// 创建时间
|
||||||
|
private String createtime;
|
||||||
|
// 创建人
|
||||||
|
private String creator;
|
||||||
|
// 基于客商总公司信用控制
|
||||||
|
private boolean creditcontrol;
|
||||||
|
// 信用等级(填写编码)
|
||||||
|
private String creditlevel;
|
||||||
|
// 信用期限
|
||||||
|
private int creditlimitnum;
|
||||||
|
// 信用额度
|
||||||
|
private double creditmny;
|
||||||
|
// 信用保证金
|
||||||
|
private double creditmoney;
|
||||||
|
// 是否信用管制
|
||||||
|
private String credlimitflag;
|
||||||
|
// 客商编码
|
||||||
|
private String custcode;
|
||||||
|
//由于客商管理档案在数据库表中存的两条,所以childrenvo如果传的话需要传两条,这两条数据的客商属性字段必须是这些组合(客户0和4,供应商1和空格,客商2和3),不传childrenvo默认是客户0和4
|
||||||
|
private String custflag;
|
||||||
|
// 客商名称
|
||||||
|
private String custname;
|
||||||
|
// 客商状态
|
||||||
|
private String custstate;
|
||||||
|
|
||||||
|
private String def1;
|
||||||
|
|
||||||
|
private String def10;
|
||||||
|
|
||||||
|
private String def11;
|
||||||
|
|
||||||
|
private String def12;
|
||||||
|
|
||||||
|
private String def13;
|
||||||
|
|
||||||
|
private String def14;
|
||||||
|
private String def15;
|
||||||
|
|
||||||
|
private String def16;
|
||||||
|
|
||||||
|
private String def17;
|
||||||
|
|
||||||
|
private String def18;
|
||||||
|
|
||||||
|
private String def19;
|
||||||
|
|
||||||
|
private String def2;
|
||||||
|
|
||||||
|
private String def20;
|
||||||
|
|
||||||
|
private String def21;
|
||||||
|
|
||||||
|
private String def22;
|
||||||
|
|
||||||
|
private String def23;
|
||||||
|
|
||||||
|
private String def24;
|
||||||
|
|
||||||
|
private String def25;
|
||||||
|
private String def26;
|
||||||
|
|
||||||
|
private String def27;
|
||||||
|
|
||||||
|
private String def28;
|
||||||
|
|
||||||
|
private String def29;
|
||||||
|
|
||||||
|
private String def3;
|
||||||
|
|
||||||
|
private String def30;
|
||||||
|
|
||||||
|
private String def4;
|
||||||
|
|
||||||
|
private String def5;
|
||||||
|
|
||||||
|
private String def6;
|
||||||
|
|
||||||
|
private String def7;
|
||||||
|
|
||||||
|
private String def8;
|
||||||
|
|
||||||
|
private String def9;
|
||||||
|
// 发展日期
|
||||||
|
private String developdate;
|
||||||
|
//是否允许异币种核算
|
||||||
|
private String diffcurrflag;
|
||||||
|
// 扣率
|
||||||
|
private String discountrate;
|
||||||
|
// 删除标志
|
||||||
|
private int dr;
|
||||||
|
// 免于帐期检查
|
||||||
|
private boolean freeofacclmtcheck;
|
||||||
|
// 免于信用额度检查
|
||||||
|
private boolean freeofcremnycheck;
|
||||||
|
// 冻结时间
|
||||||
|
private String frozendate;
|
||||||
|
// 是否冻结
|
||||||
|
private boolean frozenflag;
|
||||||
|
|
||||||
|
// 等级
|
||||||
|
private int grade;
|
||||||
|
// 内控帐期天数
|
||||||
|
private String innerctldays;
|
||||||
|
// 筹投资单位
|
||||||
|
private boolean iounit;
|
||||||
|
// 是否零售加盟店
|
||||||
|
private boolean isagent;
|
||||||
|
// 是否催款
|
||||||
|
private boolean ispromtesettlement;
|
||||||
|
// 联系人
|
||||||
|
private String linkman;
|
||||||
|
// 备注
|
||||||
|
private String memo;
|
||||||
|
// 手机
|
||||||
|
private String mobilephone;
|
||||||
|
// 修改人
|
||||||
|
private String modifier;
|
||||||
|
// 修改时间
|
||||||
|
private String modifytime;
|
||||||
|
// 地区分类
|
||||||
|
private String pk_areacl;
|
||||||
|
// 库存组织(填写编码)
|
||||||
|
private String pk_calbody;
|
||||||
|
// 公司(填写编码)
|
||||||
|
private String pk_corp;
|
||||||
|
// 默认交易币种(填写编码)
|
||||||
|
private String pk_currtype1;
|
||||||
|
// 开票客商(填写编码)
|
||||||
|
private String pk_cusmandoc2;
|
||||||
|
// 发货客商(填写编码)
|
||||||
|
private String pk_cusmandoc3;
|
||||||
|
// 默认业务类型(填写编码)
|
||||||
|
private String pk_defbusitype;
|
||||||
|
// 默认收付款协议(填写编码)
|
||||||
|
private String pk_payterm;
|
||||||
|
// 公司价格分组(填写编码)
|
||||||
|
private String pk_pricegroupcorp;
|
||||||
|
// 专管部门(填写编码)
|
||||||
|
private String pk_respdept1;
|
||||||
|
// 专管业务员(填写编码)
|
||||||
|
private String pk_resppsn1;
|
||||||
|
// 销售组织(填写编码)
|
||||||
|
private String pk_salestru;
|
||||||
|
// 发运方式(填写编码)
|
||||||
|
private String pk_sendtype;
|
||||||
|
// 结算单位主键(已废弃)
|
||||||
|
private String pk_settleunit;
|
||||||
|
// 仓库档案(填写编码)
|
||||||
|
private String pk_stordoc2;
|
||||||
|
// 预收款比例
|
||||||
|
private int prepaidratio;
|
||||||
|
// 批准日期
|
||||||
|
private String ratifydate;
|
||||||
|
// 封存标志
|
||||||
|
private String sealflag;
|
||||||
|
// 存货最低售价比例
|
||||||
|
private int stockpriceratio;
|
||||||
|
// 新产品试销保证金
|
||||||
|
private double testsalemoney;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
package com.hzya.frame.plugin.lets.plugin.base;
|
package com.hzya.frame.plugin.lets.plugin.base;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.hzya.frame.WebappApplication;
|
import com.hzya.frame.WebappApplication;
|
||||||
import com.hzya.frame.plugin.lets.entity.BdCubasdocEntity;
|
import com.hzya.frame.plugin.lets.entity.BdCubasdocEntity;
|
||||||
|
import com.hzya.frame.plugin.lets.ofs.entity.ShopEntity;
|
||||||
import com.hzya.frame.plugin.lets.queryvo.CustdocRequestVo;
|
import com.hzya.frame.plugin.lets.queryvo.CustdocRequestVo;
|
||||||
|
import com.hzya.frame.plugin.lets.resultvo.ShopReturnMessageDto;
|
||||||
|
import com.hzya.frame.plugin.lets.u8cdto.CustdocEntityDto;
|
||||||
import com.hzya.frame.plugin.lets.util.PushDataByU8cUtil;
|
import com.hzya.frame.plugin.lets.util.PushDataByU8cUtil;
|
||||||
|
import com.hzya.frame.ttxofs.dto.InterfaceParamDto;
|
||||||
import com.hzya.frame.ttxofs.service.OfsUnifiedService;
|
import com.hzya.frame.ttxofs.service.OfsUnifiedService;
|
||||||
|
import org.checkerframework.checker.units.qual.C;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -33,6 +39,8 @@ public class ShopTest {
|
||||||
private PushDataByU8cUtil pushDataByU8cUtil;
|
private PushDataByU8cUtil pushDataByU8cUtil;
|
||||||
@Autowired
|
@Autowired
|
||||||
private CustmandocPluginInitializer custmandocPluginInitializer;
|
private CustmandocPluginInitializer custmandocPluginInitializer;
|
||||||
|
@Autowired
|
||||||
|
private CustdocAutoAllotPluginInitializer custdocAutoAllotPluginInitializer;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void t00() {
|
public void t00() {
|
||||||
|
@ -53,12 +61,12 @@ public class ShopTest {
|
||||||
// ArrayList<ShopEntity> shopEntities = new ArrayList<>();
|
// ArrayList<ShopEntity> shopEntities = new ArrayList<>();
|
||||||
// ShopEntity shopEntity = new ShopEntity();
|
// ShopEntity shopEntity = new ShopEntity();
|
||||||
// shopEntity.setBizCode("intoyou-xhs");
|
// shopEntity.setBizCode("intoyou-xhs");
|
||||||
// shopEntity.setName("小红书INTO YOU心慕与你旗舰店-自营1test1a1231");
|
// shopEntity.setName("小红书INTO YOU心慕与你旗舰店-自营1test1a1231");
|
||||||
// shopEntity.setCustomerCode("testcode11232411");
|
// shopEntity.setCustomerCode("testcode211232411");
|
||||||
// shopEntities.add(shopEntity);
|
// shopEntities.add(shopEntity);
|
||||||
// shopPluginInitializer.implement(shopEntities);
|
// shopPluginInitializer.implement(shopEntities);
|
||||||
// System.out.println("shopEntities = " + shopEntities);
|
// System.out.println("shopEntities = " + shopEntities);
|
||||||
|
//
|
||||||
|
|
||||||
// try {
|
// try {
|
||||||
// System.out.println("开始推送");
|
// System.out.println("开始推送");
|
||||||
|
@ -82,18 +90,20 @@ public class ShopTest {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
//生成客商管理档案
|
// //生成客商管理档案
|
||||||
BdCubasdocEntity parentvo = new BdCubasdocEntity();
|
CustdocEntityDto parentvo = new CustdocEntityDto();
|
||||||
parentvo.setCustname("测试客商管理档11223案");
|
parentvo.setCustname("12测试客商管理档112213z案");
|
||||||
parentvo.setCustshortname("测试客商管理档13121案");
|
parentvo.setCustshortname("12测试客商管理档131121z案");
|
||||||
parentvo.setCustcode("test34121a");
|
parentvo.setCustcode("test1324121ac1");
|
||||||
//地区名称:丽知商城客商?
|
//地区名称:丽知商城客商?
|
||||||
parentvo.setPk_areacl("F");
|
// parentvo.setPk_areacl("F");
|
||||||
parentvo.setPk_corp("0001");
|
parentvo.setPk_corp("0001");
|
||||||
CustdocRequestVo custdocRequestVo = new CustdocRequestVo();
|
CustdocRequestVo custdocRequestVo = new CustdocRequestVo();
|
||||||
custdocRequestVo.setParentvo(parentvo);
|
custdocRequestVo.setParentvo(parentvo);
|
||||||
ArrayList<CustdocRequestVo> list = new ArrayList<>();
|
ArrayList<CustdocRequestVo> list = new ArrayList<>();
|
||||||
list.add(custdocRequestVo);
|
list.add(custdocRequestVo);
|
||||||
custmandocPluginInitializer.implement(list);
|
custmandocPluginInitializer.implement(list);
|
||||||
|
|
||||||
|
// custdocAutoAllotPluginInitializer.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue