抢修和检修优化
This commit is contained in:
@ -3,6 +3,7 @@ package org.dromara.inspection.service.impl;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.apache.seata.spring.annotation.GlobalTransactional;
|
||||
import org.dromara.common.core.domain.R;
|
||||
import org.dromara.common.core.exception.ServiceException;
|
||||
import org.dromara.common.core.utils.MapstructUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
@ -115,8 +116,11 @@ public class OpsInspectionRepairServiceImpl implements IOpsInspectionRepairServi
|
||||
public Boolean insertByBo(OpsInspectionRepairBo bo) {
|
||||
OpsInspectionRepair add = MapstructUtils.convert(bo, OpsInspectionRepair.class);
|
||||
validEntityBeforeSave(add);
|
||||
if (add == null){
|
||||
throw new ServiceException("新增数据不能为空!!");
|
||||
}
|
||||
|
||||
if (add.getFileId() != null){
|
||||
if (add.getFileId() != null || !add.getFileId().isEmpty()){
|
||||
String[] split = add.getFileId().split(",");
|
||||
List<String> urls = new ArrayList<>();
|
||||
for (String s : split) {
|
||||
|
||||
@ -129,7 +129,7 @@ public class OpsInspectionReportServiceImpl implements IOpsInspectionReportServi
|
||||
return false;
|
||||
}
|
||||
|
||||
if (add.getFileId() != null){
|
||||
if (add.getFileId() != null || !add.getFileId().isEmpty()){
|
||||
String[] split = add.getFileId().split(",");
|
||||
List<String> urls = new ArrayList<>();
|
||||
for (String s : split) {
|
||||
|
||||
Reference in New Issue
Block a user