|
@@ -220,7 +220,6 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
List<TenantCovenantInfoAddBo> tenantCovenantInfoAddBos = JSONArray.parseArray(deliveryAddress, TenantCovenantInfoAddBo.class);
|
|
|
if (!tenantCovenantInfoAddBos.isEmpty()) {
|
|
|
TenantCovenantInfoAddBo tenantCovenantInfoAddBo = tenantCovenantInfoAddBos.get(0);
|
|
|
- tenantCovenantInfoAddBo.setYiCompanyName(tenantId.getTenantName());
|
|
|
return tenantCovenantInfoAddBo;
|
|
|
}
|
|
|
}
|
|
@@ -500,7 +499,8 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
public Boolean insertYiInfo(TenantCovenantInfoAddBo bo) {
|
|
|
SysTenant tenantId = iSysTenantService.getById(ServletUtils.getRequest().getHeader("TenantId"));
|
|
|
List<TenantCovenantInfoAddBo> tenantCovenantInfoAddBoList = new ArrayList<>();
|
|
|
- if (ObjectUtils.isNotNull(tenantId.getDeliveryAddress())) {
|
|
|
+ tenantCovenantInfoAddBoList.add(bo);
|
|
|
+ /* if (ObjectUtils.isNotNull(tenantId.getDeliveryAddress())) {
|
|
|
String deliveryAddress = tenantId.getDeliveryAddress();
|
|
|
List<TenantCovenantInfoAddBo> tenantCovenantInfoAddBos = JSONArray.parseArray(deliveryAddress, TenantCovenantInfoAddBo.class);
|
|
|
tenantCovenantInfoAddBos.forEach(item -> {
|
|
@@ -518,7 +518,7 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
}
|
|
|
tenantCovenantInfoAddBoList.add(bo);
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
tenantId.setDeliveryAddress(JSON.toJSONString(tenantCovenantInfoAddBoList));
|
|
|
return iSysTenantService.updateById(tenantId);
|
|
|
|