|
@@ -103,9 +103,6 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
if (!bsCovenantVos.isEmpty()) {
|
|
|
bsCovenantVos.forEach(bsCovenantVo -> {
|
|
|
SysTenant tenantId = iSysTenantService.getById(ServletUtils.getRequest().getHeader("TenantId"));
|
|
|
- if (!bsCovenantVo.getCovenantImg().isEmpty()){
|
|
|
- bsCovenantVo.setCovenantImg(bsCovenantVo.getCovenantImg().replace("[","").replace("]",""));
|
|
|
- }
|
|
|
String deliveryAddress = tenantId.getDeliveryAddress();
|
|
|
if (Validator.isNotEmpty(deliveryAddress)) {
|
|
|
List<TenantCovenantInfoAddBo> tenantCovenantInfoAddBos = JSONArray.parseArray(deliveryAddress, TenantCovenantInfoAddBo.class);
|
|
@@ -808,7 +805,7 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public boolean uploadImg(Long covenantId, List<String> paths) {
|
|
|
+ public boolean uploadImg(Long covenantId, String paths) {
|
|
|
BsCovenantVo bsCovenantVo = this.queryById(covenantId);
|
|
|
if (ObjectUtils.isNull(bsCovenantVo)) {
|
|
|
throw new CustomException("当前协议不存在");
|
|
@@ -821,7 +818,7 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
}
|
|
|
BsCovenant bsCovenant = BeanUtil.toBean(bsCovenantVo, BsCovenant.class);
|
|
|
bsCovenant.setUploadStatus(1);
|
|
|
- bsCovenant.setCovenantImg(JSON.toJSONString(paths));
|
|
|
+ bsCovenant.setCovenantImg(paths);
|
|
|
bsCovenant.setUpdateTime(DateUtils.getNowTime());
|
|
|
return updateById(bsCovenant);
|
|
|
}
|