|
@@ -4,14 +4,12 @@ import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.zhongzheng.common.core.domain.entity.SysMenu;
|
|
|
import com.zhongzheng.common.exception.CustomException;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
-import com.zhongzheng.common.utils.Threads;
|
|
|
import com.zhongzheng.common.utils.file.FileUtils;
|
|
|
import com.zhongzheng.common.utils.pdf.PdfUtils;
|
|
|
import com.zhongzheng.common.utils.pdf.bo.BsCovenantExportVo;
|
|
@@ -31,7 +29,6 @@ import com.zhongzheng.modules.bs.covenant.vo.BsCovenantGoodsVo;
|
|
|
import com.zhongzheng.modules.bs.covenant.vo.BsCovenantVo;
|
|
|
import com.zhongzheng.modules.bs.covenant.vo.NoCheckInfo;
|
|
|
import com.zhongzheng.modules.course.domain.CourseBusiness;
|
|
|
-import com.zhongzheng.modules.course.domain.CourseProjectType;
|
|
|
import com.zhongzheng.modules.course.service.ICourseBusinessService;
|
|
|
import com.zhongzheng.modules.course.service.ICourseEducationTypeService;
|
|
|
import com.zhongzheng.modules.course.service.ICourseProjectTypeService;
|
|
@@ -50,7 +47,6 @@ import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
-import springfox.documentation.spring.web.json.Json;
|
|
|
|
|
|
import java.io.*;
|
|
|
import java.util.*;
|
|
@@ -570,15 +566,6 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 保存前的数据校验
|
|
|
- *
|
|
|
- * @param entity 实体类数据
|
|
|
- */
|
|
|
- private void validEntityBeforeSave(BsCovenant entity) {
|
|
|
- //TODO 做一些数据校验,如唯一约束
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
@Transactional
|
|
|
public Boolean deleteWithValidByIds(Long covenantId) {
|
|
@@ -650,8 +637,8 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
|
|
|
@Override
|
|
|
public String judgeExistYW(Long companyId) {
|
|
|
- List<BsCovenant> bsCovenants = this.list(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getCompanyId, companyId).in(BsCovenant::getStatus, 0));
|
|
|
- List<BsCovenant> bsCovenants1 = this.list(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getCompanyId, companyId).in(BsCovenant::getStatus, 5));
|
|
|
+ List<BsCovenant> bsCovenants = this.list(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getCompanyId, companyId).in(BsCovenant::getStatus, 1));
|
|
|
+ List<BsCovenant> bsCovenants1 = this.list(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getCompanyId, companyId).notIn(BsCovenant::getStopStatus, 0));
|
|
|
if (!bsCovenants.isEmpty()) {
|
|
|
return "当前甲方存在协议正在审核中,无法新增协议";
|
|
|
}
|