|
@@ -10,6 +10,7 @@ import com.tourism.common.core.upload.UploadStoreInfo;
|
|
|
import com.tourism.common.log.annotation.OperationLog;
|
|
|
import com.tourism.common.log.model.constant.SysOperationLogType;
|
|
|
import com.github.pagehelper.page.PageMethod;
|
|
|
+import com.tourism.webadmin.back.model.constant.AuditState;
|
|
|
import com.tourism.webadmin.back.vo.*;
|
|
|
import com.tourism.webadmin.back.dto.*;
|
|
|
import com.tourism.webadmin.back.model.*;
|
|
@@ -121,6 +122,9 @@ public class TourismProjectTravelNotesWriteController {
|
|
|
if (errorMessage != null) {
|
|
|
return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, errorMessage);
|
|
|
}
|
|
|
+ if(tourismProjectTravelNotesWriteDto.getState().equals(AuditState.UNAUDITSTATE)){
|
|
|
+ return ResponseResult.error(ErrorCodeEnum.DATA_VALIDATED_FAILED, "审核状态不能为未审核");
|
|
|
+ }
|
|
|
TourismProjectTravelNotesWrite tourismProjectTravelNotesWrite = MyModelUtil.copyTo(tourismProjectTravelNotesWriteDto, TourismProjectTravelNotesWrite.class);
|
|
|
TourismProjectTravelNotesWrite originalTourismProjectTravelNotesWrite = tourismProjectTravelNotesWriteService.getById(tourismProjectTravelNotesWrite.getId());
|
|
|
if (originalTourismProjectTravelNotesWrite == null) {
|