|
@@ -22,7 +22,6 @@ import com.rongwei.bsentity.dto.outside.OutsideInspectionInsertRequest;
|
|
|
import com.rongwei.bsentity.dto.outside.OutsideInspectionUpdateRequest;
|
|
|
import com.rongwei.bsentity.vo.*;
|
|
|
import com.rongwei.commonservice.serial.service.SysSerialNumberService;
|
|
|
-import com.rongwei.rwadmincommon.system.domain.SysModuleDo;
|
|
|
import com.rongwei.rwadmincommon.system.service.SysGeneralCRUDService;
|
|
|
import com.rongwei.rwadmincommon.system.vo.SysUserVo;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
@@ -1159,7 +1158,13 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
|
|
|
recordList.add(record);
|
|
|
}
|
|
|
|
|
|
- bsPlatformService.syncOutsideInpection(syncDtoList);
|
|
|
+ R result = bsPlatformService.syncOutsideInpection(syncDtoList);
|
|
|
+
|
|
|
+ if(ObjectUtil.isNull(result) || !"200".equals(result.getCode())) {
|
|
|
+ log.error("请求结果:{}", result);
|
|
|
+ throw new CustomException("同步失败,请联系管理员!");
|
|
|
+ }
|
|
|
+
|
|
|
//保存同步记录
|
|
|
syncRecordService.saveBatch(recordList);
|
|
|
}
|