|
@@ -271,10 +271,10 @@ public class InstallProduceDataUploadList {
|
|
|
ojtutl.getOrderType().equals(OrderTypeEnum.ORDER_TYPE_INSTALL.getCode())){
|
|
|
installProduceDataUploadList.generateAzMx(brand, ojtutl);
|
|
|
}
|
|
|
- // 生成安装工单明细数据 TL_PrePareSynDataby_fa_order_install_information
|
|
|
+ // 生成安装工单子信息数据 TL_PrePareSynDataby_fa_order_install_information
|
|
|
if (ojtutl.getTableName().equals("order_information") &&
|
|
|
ojtutl.getOrderType().equals(OrderTypeEnum.ORDER_TYPE_INSTALL.getCode())){
|
|
|
- installProduceDataUploadList.generateInformation(ojtutl);
|
|
|
+ installProduceDataUploadList.generateInformation(ojtutl,brand);
|
|
|
}
|
|
|
} catch (Exception ex) {
|
|
|
ex.printStackTrace();
|
|
@@ -294,7 +294,7 @@ public class InstallProduceDataUploadList {
|
|
|
}
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void generateInformation(OutJiasmToGreeUploadTaskList ojtutl) {
|
|
|
+ public void generateInformation(OutJiasmToGreeUploadTaskList ojtutl,Brand brand) {
|
|
|
// 提取对应的子信息
|
|
|
OrderInformation oi = orderInformationService.lambdaQuery()
|
|
|
.eq(OrderInformation::getId, ojtutl.getId()).one();
|
|
@@ -307,6 +307,8 @@ public class InstallProduceDataUploadList {
|
|
|
OrderPar orderPar = new OrderPar();
|
|
|
orderPar.setId(ojtutl.getId());
|
|
|
ItfTblAzAssignXzydUpload rec = orderInformationNewMapper.getOrderInformation(orderPar);
|
|
|
+ WebsitPP pp = publicService.WebsitToPP(rec.getWdno(),brand.getBrandId());
|
|
|
+ rec.setWdno(pp.getWdno());
|
|
|
itfTblAzAssignXzydUploadService.save(rec);
|
|
|
}
|
|
|
// 修改数据上传任务表中的状态 单号,id,同步状态,类型
|
|
@@ -472,7 +474,6 @@ public class InstallProduceDataUploadList {
|
|
|
// 先从售后网点查
|
|
|
WebsitOrderSign wos = websitOrderSignService.lambdaQuery()
|
|
|
.eq(WebsitOrderSign::getWebsitId, websitId)
|
|
|
- .eq(WebsitOrderSign::getBrandId, brandId)
|
|
|
.one();
|
|
|
if (wos != null){
|
|
|
resultData.setWdno(wos.getBrandWebsitNumber());
|
|
@@ -480,7 +481,6 @@ public class InstallProduceDataUploadList {
|
|
|
} else {
|
|
|
CustomerInformationWebsit ciwx = customerInformationWebsitService.lambdaQuery()
|
|
|
.eq(CustomerInformationWebsit::getWebsitId, websitId)
|
|
|
- .eq(CustomerInformationWebsit::getBrandId, brandId)
|
|
|
.one();
|
|
|
if (ciwx !=null){
|
|
|
resultData.setWdno(ciwx.getRefWebsitId());
|
|
@@ -1164,14 +1164,12 @@ public class InstallProduceDataUploadList {
|
|
|
String brandWebsitNumber = "";
|
|
|
WebsitOrderSign wos = websitOrderSignService.lambdaQuery()
|
|
|
.eq(WebsitOrderSign::getWebsitId, detail.getWebsitId())
|
|
|
- .eq(WebsitOrderSign::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (wos != null){
|
|
|
brandWebsitNumber = wos.getBrandWebsitNumber();
|
|
|
} else {
|
|
|
CustomerInformationWebsit ciwx = customerInformationWebsitService.lambdaQuery()
|
|
|
.eq(CustomerInformationWebsit::getWebsitId, detail.getWebsitId())
|
|
|
- .eq(CustomerInformationWebsit::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (ciwx !=null){
|
|
|
brandWebsitNumber = ciwx.getRefWebsitId();
|
|
@@ -1222,14 +1220,12 @@ public class InstallProduceDataUploadList {
|
|
|
String brandWebsitNumber = "";
|
|
|
WebsitOrderSign wos = websitOrderSignService.lambdaQuery()
|
|
|
.eq(WebsitOrderSign::getWebsitId, detail.getWebsitId())
|
|
|
- .eq(WebsitOrderSign::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (wos != null){
|
|
|
brandWebsitNumber = wos.getBrandWebsitNumber();
|
|
|
} else {
|
|
|
CustomerInformationWebsit ciwx = customerInformationWebsitService.lambdaQuery()
|
|
|
.eq(CustomerInformationWebsit::getWebsitId, detail.getWebsitId())
|
|
|
- .eq(CustomerInformationWebsit::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (ciwx !=null){
|
|
|
brandWebsitNumber = ciwx.getRefWebsitId();
|
|
@@ -1280,14 +1276,12 @@ public class InstallProduceDataUploadList {
|
|
|
String brandWebsitNumber = "";
|
|
|
WebsitOrderSign wos = websitOrderSignService.lambdaQuery()
|
|
|
.eq(WebsitOrderSign::getWebsitId, detail.getWebsitId())
|
|
|
- .eq(WebsitOrderSign::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (wos != null){
|
|
|
brandWebsitNumber = wos.getBrandWebsitNumber();
|
|
|
} else {
|
|
|
CustomerInformationWebsit ciwx = customerInformationWebsitService.lambdaQuery()
|
|
|
.eq(CustomerInformationWebsit::getWebsitId, detail.getWebsitId())
|
|
|
- .eq(CustomerInformationWebsit::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (ciwx !=null){
|
|
|
brandWebsitNumber = ciwx.getRefWebsitId();
|
|
@@ -1309,14 +1303,12 @@ public class InstallProduceDataUploadList {
|
|
|
// 先从售后网点查
|
|
|
WebsitOrderSign wos = websitOrderSignService.lambdaQuery()
|
|
|
.eq(WebsitOrderSign::getWebsitId, mxup.getZjczwdxtbh())
|
|
|
- .eq(WebsitOrderSign::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (wos != null){
|
|
|
mxup.setZjczwdxtbh(wos.getBrandWebsitNumber());
|
|
|
} else {
|
|
|
CustomerInformationWebsit ciwx = customerInformationWebsitService.lambdaQuery()
|
|
|
.eq(CustomerInformationWebsit::getWebsitId, mxup.getZjczwdxtbh())
|
|
|
- .eq(CustomerInformationWebsit::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (ciwx !=null){
|
|
|
mxup.setZjczwdxtbh(ciwx.getRefWebsitId());
|
|
@@ -1330,7 +1322,6 @@ public class InstallProduceDataUploadList {
|
|
|
|
|
|
WebsitOrderSign wost = websitOrderSignService.lambdaQuery()
|
|
|
.eq(WebsitOrderSign::getWebsitId, mxup.getJsdwxtbh())
|
|
|
- .eq(WebsitOrderSign::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (wost != null){
|
|
|
mxup.setJsdwxtbh(wos.getBrandWebsitId());
|
|
@@ -1342,14 +1333,12 @@ public class InstallProduceDataUploadList {
|
|
|
// 先从售后网点查
|
|
|
WebsitOrderSign wos = websitOrderSignService.lambdaQuery()
|
|
|
.eq(WebsitOrderSign::getWebsitId, mxup.getZjczwdxtbh())
|
|
|
- .eq(WebsitOrderSign::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (wos != null){
|
|
|
mxup.setZjczwdxtbh(wos.getBrandWebsitNumber());
|
|
|
} else {
|
|
|
CustomerInformationWebsit ciwx = customerInformationWebsitService.lambdaQuery()
|
|
|
.eq(CustomerInformationWebsit::getWebsitId, mxup.getZjczwdxtbh())
|
|
|
- .eq(CustomerInformationWebsit::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (ciwx !=null){
|
|
|
mxup.setZjczwdxtbh(ciwx.getRefWebsitId());
|
|
@@ -1364,7 +1353,6 @@ public class InstallProduceDataUploadList {
|
|
|
|
|
|
WebsitOrderSign wost = websitOrderSignService.lambdaQuery()
|
|
|
.eq(WebsitOrderSign::getWebsitId, mxup.getJsdwxtbh())
|
|
|
- .eq(WebsitOrderSign::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (wost != null){
|
|
|
mxup.setJsdwxtbh(wos.getBrandWebsitId());
|
|
@@ -1376,14 +1364,12 @@ public class InstallProduceDataUploadList {
|
|
|
// 先从售后网点查
|
|
|
WebsitOrderSign wos = websitOrderSignService.lambdaQuery()
|
|
|
.eq(WebsitOrderSign::getWebsitId, mxup.getZjczwdxtbh())
|
|
|
- .eq(WebsitOrderSign::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (wos != null){
|
|
|
mxup.setZjczwdxtbh(wos.getBrandWebsitNumber());
|
|
|
} else {
|
|
|
CustomerInformationWebsit ciwx = customerInformationWebsitService.lambdaQuery()
|
|
|
.eq(CustomerInformationWebsit::getWebsitId, mxup.getZjczwdxtbh())
|
|
|
- .eq(CustomerInformationWebsit::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (ciwx !=null){
|
|
|
mxup.setZjczwdxtbh(ciwx.getRefWebsitId());
|
|
@@ -1398,7 +1384,6 @@ public class InstallProduceDataUploadList {
|
|
|
|
|
|
WebsitOrderSign wost = websitOrderSignService.lambdaQuery()
|
|
|
.eq(WebsitOrderSign::getWebsitId, mxup.getJsdwxtbh())
|
|
|
- .eq(WebsitOrderSign::getBrandId, brand.getBrandId())
|
|
|
.one();
|
|
|
if (wost != null){
|
|
|
mxup.setJsdwxtbh(wos.getBrandWebsitId());
|