|
|
@@ -3,14 +3,15 @@ package com.zhongzheng.modules.bs.covenant.service.impl;
|
|
|
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.core.domain.model.LoginUser;
|
|
|
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;
|
|
|
@@ -23,13 +24,14 @@ import com.zhongzheng.modules.bs.covenant.bo.*;
|
|
|
import com.zhongzheng.modules.bs.covenant.domain.BsCovenant;
|
|
|
import com.zhongzheng.modules.bs.covenant.domain.BsCovenantBusiness;
|
|
|
import com.zhongzheng.modules.bs.covenant.domain.BsCovenantGoods;
|
|
|
-import com.zhongzheng.modules.bs.covenant.domain.TenantCovenantInfo;
|
|
|
import com.zhongzheng.modules.bs.covenant.mapper.BsCovenantMapper;
|
|
|
import com.zhongzheng.modules.bs.covenant.service.*;
|
|
|
import com.zhongzheng.modules.bs.covenant.vo.BsCovenantBusinessVo;
|
|
|
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;
|
|
|
@@ -38,28 +40,22 @@ import com.zhongzheng.modules.goods.domain.Goods;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
import com.zhongzheng.modules.records.bo.CovenantCheckRecordAddBo;
|
|
|
import com.zhongzheng.modules.records.bo.CovenantCheckRecordQueryBo;
|
|
|
-import com.zhongzheng.modules.records.domain.CovenantCheckRecord;
|
|
|
import com.zhongzheng.modules.records.service.ICovenantCheckRecordService;
|
|
|
import com.zhongzheng.modules.records.vo.CovenantCheckRecordVo;
|
|
|
import com.zhongzheng.modules.system.domain.SysTenant;
|
|
|
import com.zhongzheng.modules.system.service.ISysMenuService;
|
|
|
import com.zhongzheng.modules.system.service.ISysTenantService;
|
|
|
-import com.zhongzheng.modules.system.vo.SysTenantAccountVo;
|
|
|
-import org.apache.poi.hssf.record.DVALRecord;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.security.core.token.TokenService;
|
|
|
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 org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import springfox.documentation.spring.web.json.Json;
|
|
|
|
|
|
import java.io.*;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
-import static io.github.classgraph.utils.VersionFinder.OS;
|
|
|
-
|
|
|
/**
|
|
|
* 企业协议Service业务层处理
|
|
|
*
|
|
|
@@ -92,8 +88,6 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
@Autowired
|
|
|
private OssService ossService;
|
|
|
@Autowired
|
|
|
- private ITenantCovenantInfoService iTenantCovenantInfoService;
|
|
|
- @Autowired
|
|
|
private ISysMenuService iSysMenuService;
|
|
|
@Autowired
|
|
|
private ICovenantCheckRecordService iCovenantCheckRecordService;
|
|
|
@@ -112,15 +106,11 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
bsCovenantVos.forEach(bsCovenantVo -> {
|
|
|
bsCovenantVo.setCycleWarning(bo.getCycleWarning());
|
|
|
bsCovenantVo.setJiaCompanyName(iCompanyService.getById(bsCovenantVo.getCompanyId()).getCompanyName());
|
|
|
- Company yiCompany = iCompanyService.getById(bsCovenantVo.getYiCompanyId());
|
|
|
- if (ObjectUtils.isNotNull(yiCompany)) {
|
|
|
- bsCovenantVo.setYiCompanyName(yiCompany.getCompanyName());
|
|
|
- }
|
|
|
BsCovenantBusinessQueryBo bsCovenantBusinessQueryBo = new BsCovenantBusinessQueryBo();
|
|
|
bsCovenantBusinessQueryBo.setCovenantId(bsCovenantVo.getCovenantId());
|
|
|
bsCovenantBusinessQueryBo.setStatus(1);
|
|
|
List<BsCovenantBusinessVo> bsCovenantBusinessVos = iBsCovenantBusinessService.queryList(bsCovenantBusinessQueryBo);
|
|
|
- List<BsCovenantBusinessVo> newBusinessVos= new ArrayList<>();
|
|
|
+ List<BsCovenantBusinessVo> newBusinessVos = new ArrayList<>();
|
|
|
bsCovenantBusinessVos.forEach(bsCovenantBusiness -> {
|
|
|
bsCovenantBusiness.setBusinessName(iCourseBusinessService.getById(bsCovenantBusiness.getBusinessId()).getBusinessName());
|
|
|
bsCovenantBusiness.setEducationTypeName(iCourseEducationTypeService.getById(bsCovenantBusiness.getEducationTypeId()).getEducationName());
|
|
|
@@ -147,145 +137,85 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
return covenantVoArrayList;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@Override
|
|
|
- @Transactional
|
|
|
- public Boolean insertByAddBo(BsCovenantAddBo bo) {
|
|
|
- BsCovenant add = BeanUtil.toBean(bo, BsCovenant.class);
|
|
|
- add.setFormApp(2L);
|
|
|
- String companyId = ServletUtils.getRequest().getHeader("companyId");
|
|
|
- add.setCompanyId(Long.valueOf(companyId));
|
|
|
- add.setCreateTime(DateUtils.getNowTime());
|
|
|
- add.setUpdateTime(DateUtils.getNowTime());
|
|
|
- TenantCovenantInfo tenantCovenantInfo = iTenantCovenantInfoService.getOne(new LambdaQueryWrapper<TenantCovenantInfo>().eq(TenantCovenantInfo::getStatus, 1));
|
|
|
- add.setYiCompanyId(tenantCovenantInfo.getInfoId());
|
|
|
- add.setYiCompanyContract(tenantCovenantInfo.getYiCompanyContract());
|
|
|
- add.setYiCompanyAddress(tenantCovenantInfo.getYiCompanyAddress());
|
|
|
- add.setYiCompanyPhone(tenantCovenantInfo.getYiCompanyPhone());
|
|
|
- int insert = this.baseMapper.insert(add);
|
|
|
- BsCovenant newBsCovenant = this.getOne(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getCovenantNum, bo.getCovenantNum()).eq(BsCovenant::getStatus, 1));
|
|
|
- //写入协议审核流程
|
|
|
- SysTenant sysTenant = iSysTenantService.getById(ServletUtils.getRequest().getHeader("TenantId"));
|
|
|
- if (ObjectUtils.isNotNull(sysTenant)) {
|
|
|
- List<String> list = Arrays.asList(sysTenant.getAppList());
|
|
|
- list.forEach(item -> {
|
|
|
- BsCovenantCheckAddBo bsCovenantCheckAddBo = new BsCovenantCheckAddBo();
|
|
|
- bsCovenantCheckAddBo.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
- bsCovenantCheckAddBo.setCompanyId(Long.valueOf(companyId));
|
|
|
- List<String> list1 = Arrays.asList(item.split(","));
|
|
|
- List<Long> longList = list1.stream().map(Long::parseLong).collect(Collectors.toList());
|
|
|
- longList.forEach(num -> {
|
|
|
- bsCovenantCheckAddBo.setAppId(num);
|
|
|
- if (num == 1L) {
|
|
|
- bsCovenantCheckAddBo.setSort(4);
|
|
|
- } else if (num == 2L) {
|
|
|
- bsCovenantCheckAddBo.setSort(1);
|
|
|
- bsCovenantCheckAddBo.setCurrentStatus(1);
|
|
|
- } else if (num == 3L) {
|
|
|
- bsCovenantCheckAddBo.setSort(2);
|
|
|
- } else if (num == 4L) {
|
|
|
- bsCovenantCheckAddBo.setSort(3);
|
|
|
- }
|
|
|
- bsCovenantCheckAddBo.setStatus(1);
|
|
|
- bsCovenantCheckAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
- bsCovenantCheckAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantCheckService.insertByAddBo(bsCovenantCheckAddBo);
|
|
|
- });
|
|
|
- });
|
|
|
- }
|
|
|
- if (Validator.isNotEmpty(bo.getCopyCovenantNum())) {
|
|
|
- BsCovenant bs = this.getOne(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getCovenantNum, bo.getCopyCovenantNum()).eq(BsCovenant::getStatus, 1));
|
|
|
- if (ObjectUtils.isNotNull(bo.getCopyStatus())) {
|
|
|
- if (bo.getCopyStatus() == 1) {
|
|
|
- //复制协议时删除复制协议相关信息
|
|
|
- if (ObjectUtils.isNotNull(bs)) {
|
|
|
- bs.setStatus(0);
|
|
|
- this.updateById(bs);
|
|
|
- iBsCovenantBusinessService.update(new LambdaUpdateWrapper<BsCovenantBusiness>().set(BsCovenantBusiness::getStatus, 0).eq(BsCovenantBusiness::getCovenantId, bs.getCovenantId()));
|
|
|
- iBsCovenantGoodsService.update(new LambdaUpdateWrapper<BsCovenantGoods>().eq(BsCovenantGoods::getCovenantId, bs.getCovenantId()).set(BsCovenantGoods::getStatus, 0));
|
|
|
- } else {
|
|
|
- throw new CustomException("当前协议不存在");
|
|
|
- }
|
|
|
- } else if (bo.getCopyStatus() == 0) {
|
|
|
- if (!bo.getBsCovenantBusinessList().isEmpty()) {
|
|
|
- //写入协议业务类型
|
|
|
- bo.getBsCovenantBusinessList().forEach(bsCovenantBusinessVo -> {
|
|
|
- BsCovenantBusinessAddBo covenantBusiness = BeanUtil.toBean(bsCovenantBusinessVo, BsCovenantBusinessAddBo.class);
|
|
|
- covenantBusiness.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
- covenantBusiness.setCreateTime(DateUtils.getNowTime());
|
|
|
- covenantBusiness.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantBusinessService.insertByAddBo(covenantBusiness);
|
|
|
- if (!bsCovenantBusinessVo.getBsCovenantGoods().isEmpty()) {
|
|
|
- BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, bsCovenantBusinessVo.getBusinessId())
|
|
|
- .eq(BsCovenantBusiness::getEducationTypeId, bsCovenantBusinessVo.getEducationTypeId())
|
|
|
- .eq(BsCovenantBusiness::getProjectId, bsCovenantBusinessVo.getProjectId())
|
|
|
- .eq(BsCovenantBusiness::getStatus, 1));
|
|
|
- //写入协议业务类型有关商品
|
|
|
- bsCovenantBusinessVo.getBsCovenantGoods().forEach(bsCovenantGoodsVo -> {
|
|
|
- BsCovenantGoodsAddBo covenantGoodsAddBo = BeanUtil.toBean(bsCovenantGoodsVo, BsCovenantGoodsAddBo.class);
|
|
|
- covenantGoodsAddBo.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
- covenantGoodsAddBo.setCovenantBusinessId(bsCovenantBusiness.getCovenantBusinessId());
|
|
|
- covenantGoodsAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
- covenantGoodsAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantGoodsService.insertByAddBo(covenantGoodsAddBo);
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ public BsCovenant getLastJiaInfo(BsCovenantQueryBo bo) {
|
|
|
+ //筛选当前用户 当前应用 当前甲方上一次协议信息缓存
|
|
|
+ if (bo.getCompanyId() != null) {
|
|
|
+ BsCovenant bsCovenant = this.getOne(new LambdaQueryWrapper<BsCovenant>().orderByDesc(BsCovenant::getCreateTime)
|
|
|
+ .eq(BsCovenant::getUserId, bo.getUserId()).eq(BsCovenant::getFormApp, 1).eq(BsCovenant::getCompanyId, bo.getCompanyId())
|
|
|
+ .last("limit 1"));
|
|
|
+ //筛选 当前用户 当前应用 上一次乙方信息
|
|
|
+ BsCovenant bsCovenant1 = this.getOne(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getUserId, bo.getUserId())
|
|
|
+ .eq(BsCovenant::getFormApp, 1).orderByDesc(BsCovenant::getCreateTime).last("limit 1"));
|
|
|
+ BsCovenant newBsCovenant = new BsCovenant();
|
|
|
+ SysTenant tenantId = iSysTenantService.getById(ServletUtils.getRequest().getHeader("TenantId"));
|
|
|
+ if (ObjectUtils.isNull(tenantId)) {
|
|
|
+ throw new CustomException("当前乙方信息为空");
|
|
|
+ } else {
|
|
|
+ String deliveryAddress = tenantId.getDeliveryAddress();
|
|
|
+ if (Validator.isNotEmpty(deliveryAddress)) {
|
|
|
+ List<TenantCovenantInfoAddBo> tenantCovenantInfoAddBos = JSONArray.parseArray(deliveryAddress, TenantCovenantInfoAddBo.class);
|
|
|
+ if (!tenantCovenantInfoAddBos.isEmpty()) {
|
|
|
+ TenantCovenantInfoAddBo tenantCovenantInfoAddBo = tenantCovenantInfoAddBos.get(0);
|
|
|
+ newBsCovenant.setYiCompanyAddress(tenantCovenantInfoAddBo.getYiCompanyAddress());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- throw new CustomException("请选择是否复制协议数据");
|
|
|
+ Company byId = iCompanyService.getById(bo.getCompanyId());
|
|
|
+ newBsCovenant.setCompanyId(byId.getCompanyId());
|
|
|
+ newBsCovenant.setJiaCompanyName(byId.getCompanyName());
|
|
|
+ newBsCovenant.setJiaCompanyAddress(byId.getCompanyAddress());
|
|
|
+ newBsCovenant.setJiaCompanyContract(byId.getCompanyContacts());
|
|
|
+ newBsCovenant.setJiaCompanyPhone(byId.getContactPhone());
|
|
|
+ newBsCovenant.setJiaRecipients(bsCovenant.getJiaRecipients());
|
|
|
+ newBsCovenant.setJiaRecipientsAddress(bsCovenant.getJiaRecipientsAddress());
|
|
|
+ newBsCovenant.setJiaRecipientsPhone(bsCovenant.getJiaRecipientsPhone());
|
|
|
+ newBsCovenant.setJiaRecipientsRemark(bsCovenant.getJiaRecipientsRemark());
|
|
|
+ newBsCovenant.setYiCompanyName(tenantId.getTenantName());
|
|
|
+ newBsCovenant.setYiCompanyContract(bsCovenant1.getYiCompanyContract());
|
|
|
+ newBsCovenant.setYiCompanyPhone(bsCovenant1.getYiCompanyPhone());
|
|
|
+ newBsCovenant.setYiRecipients(bsCovenant.getYiRecipients());
|
|
|
+ newBsCovenant.setYiCompanyContract(bsCovenant.getYiCompanyContract());
|
|
|
+ newBsCovenant.setYiRecipientsPhone(bsCovenant.getYiRecipientsPhone());
|
|
|
+ newBsCovenant.setYiRecipientsRemark(bsCovenant.getYiRecipientsRemark());
|
|
|
+ return newBsCovenant;
|
|
|
+ } else {
|
|
|
+ throw new CustomException("请选择甲方");
|
|
|
}
|
|
|
- bo.getBsCovenantBusinessList().forEach(bsCovenantBusinessVo -> {
|
|
|
- BsCovenantBusinessAddBo covenantBusiness = BeanUtil.toBean(bsCovenantBusinessVo, BsCovenantBusinessAddBo.class);
|
|
|
- covenantBusiness.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
- covenantBusiness.setCreateTime(DateUtils.getNowTime());
|
|
|
- covenantBusiness.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantBusinessService.insertByAddBo(covenantBusiness);
|
|
|
- if (!bsCovenantBusinessVo.getBsCovenantGoods().isEmpty()) {
|
|
|
- BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, covenantBusiness.getBusinessId())
|
|
|
- .eq(BsCovenantBusiness::getEducationTypeId, covenantBusiness.getEducationTypeId())
|
|
|
- .eq(BsCovenantBusiness::getProjectId, covenantBusiness.getProjectId())
|
|
|
- .eq(BsCovenantBusiness::getStatus, 1));
|
|
|
- //写入协议业务类型有关商品
|
|
|
- bsCovenantBusinessVo.getBsCovenantGoods().forEach(bsCovenantGoodsVo -> {
|
|
|
- BsCovenantGoodsAddBo covenantGoodsAddBo = BeanUtil.toBean(bsCovenantGoodsVo, BsCovenantGoodsAddBo.class);
|
|
|
- covenantGoodsAddBo.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
- covenantGoodsAddBo.setCovenantBusinessId(bsCovenantBusiness.getCovenantBusinessId());
|
|
|
- covenantGoodsAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
- covenantGoodsAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantGoodsService.insertByAddBo(covenantGoodsAddBo);
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- if (insert == 1) {
|
|
|
- return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public TenantCovenantInfoAddBo getYiInfo() {
|
|
|
+ SysTenant tenantId = iSysTenantService.getById(ServletUtils.getRequest().getHeader("TenantId"));
|
|
|
+ if (ObjectUtils.isNull(tenantId)) {
|
|
|
+ throw new CustomException("当前乙方信息为空");
|
|
|
} else {
|
|
|
- return false;
|
|
|
+ String deliveryAddress = tenantId.getDeliveryAddress();
|
|
|
+ if (Validator.isNotEmpty(deliveryAddress)) {
|
|
|
+ List<TenantCovenantInfoAddBo> tenantCovenantInfoAddBos = JSONArray.parseArray(deliveryAddress, TenantCovenantInfoAddBo.class);
|
|
|
+ if (!tenantCovenantInfoAddBos.isEmpty()) {
|
|
|
+ TenantCovenantInfoAddBo tenantCovenantInfoAddBo = tenantCovenantInfoAddBos.get(0);
|
|
|
+ tenantCovenantInfoAddBo.setYiCompanyName(tenantId.getTenantName());
|
|
|
+ return tenantCovenantInfoAddBo;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
@Transactional
|
|
|
- public Boolean insertYXTByAddBo(BsCovenantAddBo bo) {
|
|
|
+ public Boolean insertByAddBo(BsCovenantAddBo bo) {
|
|
|
BsCovenant add = BeanUtil.toBean(bo, BsCovenant.class);
|
|
|
- if (ObjectUtils.isNotNull(bo.getCompanyId())) {
|
|
|
- Company byId = iCompanyService.getById(bo.getCompanyId());
|
|
|
- add.setJiaCompanyAddress(byId.getCompanyAddress());
|
|
|
- add.setJiaCompanyContract(byId.getCompanyContacts());
|
|
|
- add.setJiaCompanyPhone(byId.getContactPhone());
|
|
|
- }
|
|
|
+ add.setFormApp(2L);
|
|
|
String companyId = ServletUtils.getRequest().getHeader("companyId");
|
|
|
- if (Validator.isNotEmpty(companyId)) {
|
|
|
- add.setCompanyId(Long.valueOf(companyId));
|
|
|
- }
|
|
|
+ add.setCompanyId(Long.valueOf(companyId));
|
|
|
add.setCreateTime(DateUtils.getNowTime());
|
|
|
add.setUpdateTime(DateUtils.getNowTime());
|
|
|
- TenantCovenantInfo tenantCovenantInfo = iTenantCovenantInfoService.getOne(new LambdaQueryWrapper<TenantCovenantInfo>().eq(TenantCovenantInfo::getStatus, 1));
|
|
|
- add.setYiCompanyId(tenantCovenantInfo.getInfoId());
|
|
|
- add.setYiCompanyContract(tenantCovenantInfo.getYiCompanyContract());
|
|
|
- add.setYiCompanyAddress(tenantCovenantInfo.getYiCompanyAddress());
|
|
|
- add.setYiCompanyPhone(tenantCovenantInfo.getYiCompanyPhone());
|
|
|
+ SysTenant yiSysTenant = iSysTenantService.getOne(new LambdaQueryWrapper<SysTenant>().eq(SysTenant::getTenantId, ServletUtils.getRequest().getHeader("TenantId")));
|
|
|
+ add.setYiCompanyContract(yiSysTenant.getLinkMan());
|
|
|
+ add.setYiCompanyPhone(yiSysTenant.getCompanyPh());
|
|
|
int insert = this.baseMapper.insert(add);
|
|
|
BsCovenant newBsCovenant = this.getOne(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getCovenantNum, bo.getCovenantNum()).eq(BsCovenant::getStatus, 1));
|
|
|
//写入协议审核流程
|
|
|
@@ -295,7 +225,7 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
list.forEach(item -> {
|
|
|
BsCovenantCheckAddBo bsCovenantCheckAddBo = new BsCovenantCheckAddBo();
|
|
|
bsCovenantCheckAddBo.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
- bsCovenantCheckAddBo.setCompanyId(bo.getCompanyId());
|
|
|
+ bsCovenantCheckAddBo.setCompanyId(Long.valueOf(companyId));
|
|
|
List<String> list1 = Arrays.asList(item.split(","));
|
|
|
List<Long> longList = list1.stream().map(Long::parseLong).collect(Collectors.toList());
|
|
|
longList.forEach(num -> {
|
|
|
@@ -304,10 +234,10 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
bsCovenantCheckAddBo.setSort(4);
|
|
|
} else if (num == 2L) {
|
|
|
bsCovenantCheckAddBo.setSort(1);
|
|
|
+ bsCovenantCheckAddBo.setCurrentStatus(1);
|
|
|
} else if (num == 3L) {
|
|
|
bsCovenantCheckAddBo.setSort(2);
|
|
|
} else if (num == 4L) {
|
|
|
- bsCovenantCheckAddBo.setCurrentStatus(1);
|
|
|
bsCovenantCheckAddBo.setSort(3);
|
|
|
}
|
|
|
bsCovenantCheckAddBo.setStatus(1);
|
|
|
@@ -333,27 +263,25 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
} else if (bo.getCopyStatus() == 0) {
|
|
|
if (!bo.getBsCovenantBusinessList().isEmpty()) {
|
|
|
//写入协议业务类型
|
|
|
- bo.getBsCovenantBusinessList().forEach(bsCovenantBusinessVo -> {
|
|
|
- BsCovenantBusinessAddBo covenantBusiness = BeanUtil.toBean(bsCovenantBusinessVo, BsCovenantBusinessAddBo.class);
|
|
|
- covenantBusiness.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
- covenantBusiness.setCompanyId(bo.getCompanyId());
|
|
|
- covenantBusiness.setCreateTime(DateUtils.getNowTime());
|
|
|
- covenantBusiness.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantBusinessService.insertByAddBo(covenantBusiness);
|
|
|
- if (!bsCovenantBusinessVo.getBsCovenantGoods().isEmpty()) {
|
|
|
- BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, bsCovenantBusinessVo.getBusinessId())
|
|
|
- .eq(BsCovenantBusiness::getEducationTypeId, bsCovenantBusinessVo.getEducationTypeId())
|
|
|
- .eq(BsCovenantBusiness::getProjectId, bsCovenantBusinessVo.getProjectId())
|
|
|
+ bo.getBsCovenantBusinessList().forEach(bsCovenantBusinessAddBo -> {
|
|
|
+ CourseBusiness courseBusiness = iCourseBusinessService.getOne(new LambdaQueryWrapper<CourseBusiness>().eq(CourseBusiness::getProjectId, bsCovenantBusinessAddBo.getProjectId()).eq(CourseBusiness::getStatus, 1));
|
|
|
+ bsCovenantBusinessAddBo.setBusinessId(courseBusiness.getId());
|
|
|
+ bsCovenantBusinessAddBo.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
+ bsCovenantBusinessAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ bsCovenantBusinessAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantBusinessService.insertByAddBo(bsCovenantBusinessAddBo);
|
|
|
+ if (!bsCovenantBusinessAddBo.getBsCovenantGoods().isEmpty()) {
|
|
|
+ BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, bsCovenantBusinessAddBo.getBusinessId())
|
|
|
+ .eq(BsCovenantBusiness::getEducationTypeId, bsCovenantBusinessAddBo.getEducationTypeId())
|
|
|
+ .eq(BsCovenantBusiness::getProjectId, bsCovenantBusinessAddBo.getProjectId())
|
|
|
.eq(BsCovenantBusiness::getStatus, 1));
|
|
|
//写入协议业务类型有关商品
|
|
|
- bsCovenantBusinessVo.getBsCovenantGoods().forEach(bsCovenantGoodsVo -> {
|
|
|
- BsCovenantGoodsAddBo covenantGoodsAddBo = BeanUtil.toBean(bsCovenantGoodsVo, BsCovenantGoodsAddBo.class);
|
|
|
- covenantGoodsAddBo.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
- covenantGoodsAddBo.setCovenantBusinessId(bsCovenantBusiness.getCovenantBusinessId());
|
|
|
- covenantGoodsAddBo.setCompanyId(bo.getCompanyId());
|
|
|
- covenantGoodsAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
- covenantGoodsAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantGoodsService.insertByAddBo(covenantGoodsAddBo);
|
|
|
+ bsCovenantBusinessAddBo.getBsCovenantGoods().forEach(bsCovenantGoodsAddBo -> {
|
|
|
+ bsCovenantGoodsAddBo.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
+ bsCovenantGoodsAddBo.setCovenantBusinessId(bsCovenantBusiness.getCovenantBusinessId());
|
|
|
+ bsCovenantGoodsAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ bsCovenantGoodsAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantGoodsService.insertByAddBo(bsCovenantGoodsAddBo);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
@@ -362,28 +290,24 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
}
|
|
|
throw new CustomException("请选择是否复制协议数据");
|
|
|
}
|
|
|
- bo.getBsCovenantBusinessList().forEach(bsCovenantBusinessVo -> {
|
|
|
- BsCovenantBusinessAddBo covenantBusiness = BeanUtil.toBean(bsCovenantBusinessVo, BsCovenantBusinessAddBo.class);
|
|
|
- covenantBusiness.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
- covenantBusiness.setCompanyId(bo.getCompanyId());
|
|
|
- covenantBusiness.setCreateTime(DateUtils.getNowTime());
|
|
|
- covenantBusiness.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantBusinessService.insertByAddBo(covenantBusiness);
|
|
|
- if (!bsCovenantBusinessVo.getBsCovenantGoods().isEmpty()) {
|
|
|
- BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, covenantBusiness.getBusinessId())
|
|
|
- .eq(BsCovenantBusiness::getEducationTypeId, covenantBusiness.getEducationTypeId())
|
|
|
- .eq(BsCovenantBusiness::getProjectId, covenantBusiness.getProjectId())
|
|
|
- .eq(BsCovenantBusiness::getCovenantId,newBsCovenant.getCovenantId())
|
|
|
+ bo.getBsCovenantBusinessList().forEach(bsCovenantBusinessAddBo -> {
|
|
|
+ CourseBusiness courseBusiness = iCourseBusinessService.getOne(new LambdaQueryWrapper<CourseBusiness>().eq(CourseBusiness::getProjectId, bsCovenantBusinessAddBo.getProjectId()).eq(CourseBusiness::getStatus, 1));
|
|
|
+ bsCovenantBusinessAddBo.setBusinessId(courseBusiness.getId());
|
|
|
+ bsCovenantBusinessAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ bsCovenantBusinessAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantBusinessService.insertByAddBo(bsCovenantBusinessAddBo);
|
|
|
+ if (!bsCovenantBusinessAddBo.getBsCovenantGoods().isEmpty()) {
|
|
|
+ BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, bsCovenantBusinessAddBo.getBusinessId())
|
|
|
+ .eq(BsCovenantBusiness::getEducationTypeId, bsCovenantBusinessAddBo.getEducationTypeId())
|
|
|
+ .eq(BsCovenantBusiness::getProjectId, bsCovenantBusinessAddBo.getProjectId())
|
|
|
.eq(BsCovenantBusiness::getStatus, 1));
|
|
|
//写入协议业务类型有关商品
|
|
|
- bsCovenantBusinessVo.getBsCovenantGoods().forEach(bsCovenantGoodsVo -> {
|
|
|
- BsCovenantGoodsAddBo covenantGoodsAddBo = BeanUtil.toBean(bsCovenantGoodsVo, BsCovenantGoodsAddBo.class);
|
|
|
- covenantGoodsAddBo.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
- covenantGoodsAddBo.setCompanyId(bo.getCompanyId());
|
|
|
- covenantGoodsAddBo.setCovenantBusinessId(bsCovenantBusiness.getCovenantBusinessId());
|
|
|
- covenantGoodsAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
- covenantGoodsAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantGoodsService.insertByAddBo(covenantGoodsAddBo);
|
|
|
+ bsCovenantBusinessAddBo.getBsCovenantGoods().forEach(bsCovenantGoodsAddBo -> {
|
|
|
+ bsCovenantGoodsAddBo.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
+ bsCovenantGoodsAddBo.setCovenantBusinessId(bsCovenantBusiness.getCovenantBusinessId());
|
|
|
+ bsCovenantGoodsAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ bsCovenantGoodsAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantGoodsService.insertByAddBo(bsCovenantGoodsAddBo);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
@@ -396,24 +320,56 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
|
|
|
@Override
|
|
|
@Transactional
|
|
|
- public Boolean updateByEditBo(BsCovenantEditBo bo) {
|
|
|
- BsCovenant update = BeanUtil.toBean(bo, BsCovenant.class);
|
|
|
- if (ObjectUtils.isNotNull(bo.getCovenantId())) {
|
|
|
- update.setUpdateTime(DateUtils.getNowTime());
|
|
|
- this.updateById(update);
|
|
|
- //删除当前协议有关业务类型
|
|
|
- List<BsCovenantBusiness> bsCovenantBusinessList = iBsCovenantBusinessService.list(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getCovenantId, bo.getCovenantId())
|
|
|
- .eq(BsCovenantBusiness::getStatus, 1));
|
|
|
- if (!bsCovenantBusinessList.isEmpty()) {
|
|
|
- List<Long> covenantBusinessIds = bsCovenantBusinessList.stream().map(BsCovenantBusiness::getCovenantBusinessId).collect(Collectors.toList());
|
|
|
- iBsCovenantBusinessService.deleteWithValidByIds(covenantBusinessIds, true);
|
|
|
+ public Boolean insertYXTByAddBo(BsCovenantAddBo bo) {
|
|
|
+ if (bo.getCovenantId() != null) {
|
|
|
+ BsCovenantVo bsCovenantVo = this.queryById(bo.getCovenantId());
|
|
|
+ this.update(new LambdaUpdateWrapper<BsCovenant>().set(BsCovenant::getStatus, 7).eq(BsCovenant::getCovenantId, bsCovenantVo.getCovenantId()));
|
|
|
+ iBsCovenantBusinessService.update(new LambdaUpdateWrapper<BsCovenantBusiness>().set(BsCovenantBusiness::getStatus, 0).eq(BsCovenantBusiness::getCovenantId, bsCovenantVo.getCovenantId()));
|
|
|
+ iBsCovenantGoodsService.update(new LambdaUpdateWrapper<BsCovenantGoods>().eq(BsCovenantGoods::getCovenantId, bsCovenantVo.getCovenantId()).set(BsCovenantGoods::getStatus, 0));
|
|
|
+ } else {
|
|
|
+ BsCovenant add = BeanUtil.toBean(bo, BsCovenant.class);
|
|
|
+ if (ObjectUtils.isNotNull(bo.getCompanyId())) {
|
|
|
+ Company byId = iCompanyService.getById(bo.getCompanyId());
|
|
|
+ add.setJiaCompanyAddress(byId.getCompanyAddress());
|
|
|
+ add.setJiaCompanyContract(byId.getCompanyContacts());
|
|
|
+ add.setJiaCompanyPhone(byId.getContactPhone());
|
|
|
+ }
|
|
|
+ String companyId = ServletUtils.getRequest().getHeader("companyId");
|
|
|
+ if (Validator.isNotEmpty(companyId)) {
|
|
|
+ add.setCompanyId(Long.valueOf(companyId));
|
|
|
}
|
|
|
- //删除当前协议相关商品信息
|
|
|
- List<BsCovenantGoods> bsCovenantGoodsList = iBsCovenantGoodsService.list(new LambdaQueryWrapper<BsCovenantGoods>().eq(BsCovenantGoods::getCovenantId, bo.getCovenantId())
|
|
|
- .eq(BsCovenantGoods::getStatus, 1));
|
|
|
- if (!bsCovenantGoodsList.isEmpty()) {
|
|
|
- List<Long> covenantGoodsIds = bsCovenantGoodsList.stream().map(BsCovenantGoods::getCovenantGoodsId).collect(Collectors.toList());
|
|
|
- iBsCovenantGoodsService.deleteWithValidByIds(covenantGoodsIds, true);
|
|
|
+ add.setCreateTime(DateUtils.getNowTime());
|
|
|
+ add.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ this.baseMapper.insert(add);
|
|
|
+ BsCovenant newBsCovenant = this.getOne(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getCovenantNum, bo.getCovenantNum()).eq(BsCovenant::getStatus, 1));
|
|
|
+ //写入协议审核流程
|
|
|
+ SysTenant sysTenant = iSysTenantService.getById(ServletUtils.getRequest().getHeader("TenantId"));
|
|
|
+ if (ObjectUtils.isNotNull(sysTenant)) {
|
|
|
+ List<String> list = Arrays.asList(sysTenant.getAppList());
|
|
|
+ list.forEach(item -> {
|
|
|
+ BsCovenantCheckAddBo bsCovenantCheckAddBo = new BsCovenantCheckAddBo();
|
|
|
+ bsCovenantCheckAddBo.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
+ bsCovenantCheckAddBo.setCompanyId(bo.getCompanyId());
|
|
|
+ List<String> list1 = Arrays.asList(item.split(","));
|
|
|
+ List<Long> longList = list1.stream().map(Long::parseLong).collect(Collectors.toList());
|
|
|
+ longList.forEach(num -> {
|
|
|
+ bsCovenantCheckAddBo.setAppId(num);
|
|
|
+ if (num == 1L) {
|
|
|
+ bsCovenantCheckAddBo.setSort(4);
|
|
|
+ } else if (num == 2L) {
|
|
|
+ bsCovenantCheckAddBo.setSort(1);
|
|
|
+ } else if (num == 3L) {
|
|
|
+ bsCovenantCheckAddBo.setSort(2);
|
|
|
+ } else if (num == 4L) {
|
|
|
+ bsCovenantCheckAddBo.setCurrentStatus(1);
|
|
|
+ bsCovenantCheckAddBo.setSort(3);
|
|
|
+ }
|
|
|
+ bsCovenantCheckAddBo.setStatus(1);
|
|
|
+ bsCovenantCheckAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ bsCovenantCheckAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantCheckService.insertByAddBo(bsCovenantCheckAddBo);
|
|
|
+ });
|
|
|
+ });
|
|
|
}
|
|
|
if (Validator.isNotEmpty(bo.getCopyCovenantNum())) {
|
|
|
BsCovenant bs = this.getOne(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getCovenantNum, bo.getCopyCovenantNum()).eq(BsCovenant::getStatus, 1));
|
|
|
@@ -431,25 +387,26 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
} else if (bo.getCopyStatus() == 0) {
|
|
|
if (!bo.getBsCovenantBusinessList().isEmpty()) {
|
|
|
//写入协议业务类型
|
|
|
- bo.getBsCovenantBusinessList().forEach(bsCovenantBusinessVo -> {
|
|
|
- BsCovenantBusinessAddBo covenantBusiness = BeanUtil.toBean(bsCovenantBusinessVo, BsCovenantBusinessAddBo.class);
|
|
|
- covenantBusiness.setCovenantId(bo.getCovenantId());
|
|
|
- covenantBusiness.setCreateTime(DateUtils.getNowTime());
|
|
|
- covenantBusiness.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantBusinessService.insertByAddBo(covenantBusiness);
|
|
|
- if (!bsCovenantBusinessVo.getBsCovenantGoods().isEmpty()) {
|
|
|
- BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, bsCovenantBusinessVo.getBusinessId())
|
|
|
- .eq(BsCovenantBusiness::getEducationTypeId, bsCovenantBusinessVo.getEducationTypeId())
|
|
|
- .eq(BsCovenantBusiness::getProjectId, bsCovenantBusinessVo.getProjectId())
|
|
|
+ bo.getBsCovenantBusinessList().forEach(bsCovenantBusinessAddBo -> {
|
|
|
+ CourseBusiness courseBusiness = iCourseBusinessService.getOne(new LambdaQueryWrapper<CourseBusiness>().eq(CourseBusiness::getProjectId, bsCovenantBusinessAddBo.getProjectId()).eq(CourseBusiness::getStatus, 1));
|
|
|
+ bsCovenantBusinessAddBo.setBusinessId(courseBusiness.getId());
|
|
|
+ bsCovenantBusinessAddBo.setCompanyId(bo.getCompanyId());
|
|
|
+ bsCovenantBusinessAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ bsCovenantBusinessAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantBusinessService.insertByAddBo(bsCovenantBusinessAddBo);
|
|
|
+ if (!bsCovenantBusinessAddBo.getBsCovenantGoods().isEmpty()) {
|
|
|
+ BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, bsCovenantBusinessAddBo.getBusinessId())
|
|
|
+ .eq(BsCovenantBusiness::getEducationTypeId, bsCovenantBusinessAddBo.getEducationTypeId())
|
|
|
+ .eq(BsCovenantBusiness::getProjectId, bsCovenantBusinessAddBo.getProjectId())
|
|
|
.eq(BsCovenantBusiness::getStatus, 1));
|
|
|
//写入协议业务类型有关商品
|
|
|
- bsCovenantBusinessVo.getBsCovenantGoods().forEach(bsCovenantGoodsVo -> {
|
|
|
- BsCovenantGoodsAddBo covenantGoodsAddBo = BeanUtil.toBean(bsCovenantGoodsVo, BsCovenantGoodsAddBo.class);
|
|
|
- covenantGoodsAddBo.setCovenantId(bo.getCovenantId());
|
|
|
- covenantGoodsAddBo.setCovenantBusinessId(bsCovenantBusiness.getCovenantBusinessId());
|
|
|
- covenantGoodsAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
- covenantGoodsAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantGoodsService.insertByAddBo(covenantGoodsAddBo);
|
|
|
+ bsCovenantBusinessAddBo.getBsCovenantGoods().forEach(bsCovenantGoodsAddBo-> {
|
|
|
+ bsCovenantGoodsAddBo.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
+ bsCovenantGoodsAddBo.setCovenantBusinessId(bsCovenantBusiness.getCovenantBusinessId());
|
|
|
+ bsCovenantGoodsAddBo.setCompanyId(bo.getCompanyId());
|
|
|
+ bsCovenantGoodsAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ bsCovenantGoodsAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantGoodsService.insertByAddBo(bsCovenantGoodsAddBo);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
@@ -458,30 +415,157 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
}
|
|
|
throw new CustomException("请选择是否复制协议数据");
|
|
|
}
|
|
|
- bo.getBsCovenantBusinessList().forEach(bsCovenantBusinessVo -> {
|
|
|
- BsCovenantBusinessAddBo covenantBusiness = BeanUtil.toBean(bsCovenantBusinessVo, BsCovenantBusinessAddBo.class);
|
|
|
- covenantBusiness.setCovenantId(bo.getCovenantId());
|
|
|
- covenantBusiness.setCreateTime(DateUtils.getNowTime());
|
|
|
- covenantBusiness.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantBusinessService.insertByAddBo(covenantBusiness);
|
|
|
- if (!bsCovenantBusinessVo.getBsCovenantGoods().isEmpty()) {
|
|
|
- BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, covenantBusiness.getBusinessId())
|
|
|
- .eq(BsCovenantBusiness::getEducationTypeId, covenantBusiness.getEducationTypeId())
|
|
|
- .eq(BsCovenantBusiness::getProjectId, covenantBusiness.getProjectId())
|
|
|
+ bo.getBsCovenantBusinessList().forEach(bsCovenantBusinessAddBo -> {
|
|
|
+ CourseBusiness courseBusiness = iCourseBusinessService.getOne(new LambdaQueryWrapper<CourseBusiness>().eq(CourseBusiness::getProjectId, bsCovenantBusinessAddBo.getProjectId()).eq(CourseBusiness::getStatus, 1));
|
|
|
+ bsCovenantBusinessAddBo.setBusinessId(courseBusiness.getId());
|
|
|
+ bsCovenantBusinessAddBo.setCompanyId(bo.getCompanyId());
|
|
|
+ bsCovenantBusinessAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ bsCovenantBusinessAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantBusinessService.insertByAddBo(bsCovenantBusinessAddBo);
|
|
|
+ if (!bsCovenantBusinessAddBo.getBsCovenantGoods().isEmpty()) {
|
|
|
+ BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, bsCovenantBusinessAddBo.getBusinessId())
|
|
|
+ .eq(BsCovenantBusiness::getEducationTypeId, bsCovenantBusinessAddBo.getEducationTypeId())
|
|
|
+ .eq(BsCovenantBusiness::getProjectId, bsCovenantBusinessAddBo.getProjectId())
|
|
|
+ .eq(BsCovenantBusiness::getCovenantId, newBsCovenant.getCovenantId())
|
|
|
.eq(BsCovenantBusiness::getStatus, 1));
|
|
|
//写入协议业务类型有关商品
|
|
|
- bsCovenantBusinessVo.getBsCovenantGoods().forEach(bsCovenantGoodsVo -> {
|
|
|
- BsCovenantGoodsAddBo covenantGoodsAddBo = BeanUtil.toBean(bsCovenantGoodsVo, BsCovenantGoodsAddBo.class);
|
|
|
- covenantGoodsAddBo.setCovenantId(bo.getCovenantId());
|
|
|
- covenantGoodsAddBo.setCovenantBusinessId(bsCovenantBusiness.getCovenantBusinessId());
|
|
|
- covenantGoodsAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
- covenantGoodsAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
- iBsCovenantGoodsService.insertByAddBo(covenantGoodsAddBo);
|
|
|
+ bsCovenantBusinessAddBo.getBsCovenantGoods().forEach(bsCovenantGoodsAddBo -> {
|
|
|
+ bsCovenantGoodsAddBo.setCovenantId(newBsCovenant.getCovenantId());
|
|
|
+ bsCovenantGoodsAddBo.setCompanyId(bo.getCompanyId());
|
|
|
+ bsCovenantGoodsAddBo.setCovenantBusinessId(bsCovenantBusiness.getCovenantBusinessId());
|
|
|
+ bsCovenantGoodsAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ bsCovenantGoodsAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantGoodsService.insertByAddBo(bsCovenantGoodsAddBo);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Boolean insertYiInfo(TenantCovenantInfoAddBo bo) {
|
|
|
+ SysTenant tenantId = iSysTenantService.getById(ServletUtils.getRequest().getHeader("TenantId"));
|
|
|
+ List<TenantCovenantInfoAddBo> tenantCovenantInfoAddBoList = new ArrayList<>();
|
|
|
+ if (ObjectUtils.isNotNull(tenantId.getDeliveryAddress())) {
|
|
|
+ String deliveryAddress = tenantId.getDeliveryAddress();
|
|
|
+ List<TenantCovenantInfoAddBo> tenantCovenantInfoAddBos = JSONArray.parseArray(deliveryAddress, TenantCovenantInfoAddBo.class);
|
|
|
+ tenantCovenantInfoAddBos.forEach(item -> {
|
|
|
+ if (item.getYiCompanyAddress().equals(bo.getYiCompanyAddress())) {
|
|
|
+ item.setYiCompanyAddress(bo.getYiCompanyAddress());
|
|
|
+ }
|
|
|
+ tenantCovenantInfoAddBoList.add(item);
|
|
|
+ });
|
|
|
+ List<String> collect = tenantCovenantInfoAddBos.stream().map(TenantCovenantInfoAddBo::getYiCompanyAddress).collect(Collectors.toList());
|
|
|
+ if (!collect.contains(bo.getYiCompanyAddress())) {
|
|
|
+ if (bo.getStatus() == 1) {
|
|
|
+ bo.setStatus(1L);
|
|
|
+ } else {
|
|
|
+ bo.setStatus(0L);
|
|
|
+ }
|
|
|
+ tenantCovenantInfoAddBoList.add(bo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ tenantId.setDeliveryAddress(JSON.toJSONString(tenantCovenantInfoAddBoList));
|
|
|
+ return iSysTenantService.updateById(tenantId);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional
|
|
|
+ public Boolean updateByEditBo(BsCovenantEditBo bo) {
|
|
|
+ if (bo.getCovenantId() == null) {
|
|
|
+ throw new CustomException("请选择协议");
|
|
|
} else {
|
|
|
- throw new CustomException("未选择");
|
|
|
+ BsCovenantVo bsCovenantVo = queryById(bo.getCovenantId());
|
|
|
+ if (bsCovenantVo.getStatus() != 4) {
|
|
|
+ throw new CustomException("当前协议未处于审核不通过状态");
|
|
|
+ } else {
|
|
|
+ BsCovenant update = BeanUtil.toBean(bo, BsCovenant.class);
|
|
|
+ update.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ this.updateById(update);
|
|
|
+ //删除当前协议有关业务类型
|
|
|
+ List<BsCovenantBusiness> bsCovenantBusinessList = iBsCovenantBusinessService.list(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getCovenantId, bo.getCovenantId())
|
|
|
+ .eq(BsCovenantBusiness::getStatus, 1));
|
|
|
+ if (!bsCovenantBusinessList.isEmpty()) {
|
|
|
+ List<Long> covenantBusinessIds = bsCovenantBusinessList.stream().map(BsCovenantBusiness::getCovenantBusinessId).collect(Collectors.toList());
|
|
|
+ iBsCovenantBusinessService.deleteWithValidByIds(covenantBusinessIds, true);
|
|
|
+ }
|
|
|
+ //删除当前协议相关商品信息
|
|
|
+ List<BsCovenantGoods> bsCovenantGoodsList = iBsCovenantGoodsService.list(new LambdaQueryWrapper<BsCovenantGoods>().eq(BsCovenantGoods::getCovenantId, bo.getCovenantId())
|
|
|
+ .eq(BsCovenantGoods::getStatus, 1));
|
|
|
+ if (!bsCovenantGoodsList.isEmpty()) {
|
|
|
+ List<Long> covenantGoodsIds = bsCovenantGoodsList.stream().map(BsCovenantGoods::getCovenantGoodsId).collect(Collectors.toList());
|
|
|
+ iBsCovenantGoodsService.deleteWithValidByIds(covenantGoodsIds, true);
|
|
|
+ }
|
|
|
+ if (Validator.isNotEmpty(bo.getCopyCovenantNum())) {
|
|
|
+ BsCovenant bs = this.getOne(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getCovenantNum, bo.getCopyCovenantNum()).eq(BsCovenant::getStatus, 1));
|
|
|
+ if (ObjectUtils.isNotNull(bo.getCopyStatus())) {
|
|
|
+ if (bo.getCopyStatus() == 1) {
|
|
|
+ //复制协议时删除复制协议相关信息
|
|
|
+ if (ObjectUtils.isNotNull(bs)) {
|
|
|
+ bs.setStatus(0);
|
|
|
+ this.updateById(bs);
|
|
|
+ iBsCovenantBusinessService.update(new LambdaUpdateWrapper<BsCovenantBusiness>().set(BsCovenantBusiness::getStatus, 0).eq(BsCovenantBusiness::getCovenantId, bs.getCovenantId()));
|
|
|
+ iBsCovenantGoodsService.update(new LambdaUpdateWrapper<BsCovenantGoods>().eq(BsCovenantGoods::getCovenantId, bs.getCovenantId()).set(BsCovenantGoods::getStatus, 0));
|
|
|
+ } else {
|
|
|
+ throw new CustomException("当前协议不存在");
|
|
|
+ }
|
|
|
+ } else if (bo.getCopyStatus() == 0) {
|
|
|
+ if (!bo.getBsCovenantBusinessList().isEmpty()) {
|
|
|
+ //写入协议业务类型
|
|
|
+ bo.getBsCovenantBusinessList().forEach(bsCovenantBusinessVo -> {
|
|
|
+ CourseBusiness courseBusiness = iCourseBusinessService.getOne(new LambdaQueryWrapper<CourseBusiness>().eq(CourseBusiness::getProjectId, bsCovenantBusinessVo.getProjectId()).eq(CourseBusiness::getStatus, 1));
|
|
|
+ BsCovenantBusinessAddBo covenantBusiness = BeanUtil.toBean(bsCovenantBusinessVo, BsCovenantBusinessAddBo.class);
|
|
|
+ covenantBusiness.setBusinessId(courseBusiness.getId());
|
|
|
+ covenantBusiness.setCreateTime(DateUtils.getNowTime());
|
|
|
+ covenantBusiness.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantBusinessService.insertByAddBo(covenantBusiness);
|
|
|
+ if (!bsCovenantBusinessVo.getBsCovenantGoods().isEmpty()) {
|
|
|
+ BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, bsCovenantBusinessVo.getBusinessId())
|
|
|
+ .eq(BsCovenantBusiness::getEducationTypeId, bsCovenantBusinessVo.getEducationTypeId())
|
|
|
+ .eq(BsCovenantBusiness::getProjectId, bsCovenantBusinessVo.getProjectId())
|
|
|
+ .eq(BsCovenantBusiness::getStatus, 1));
|
|
|
+ //写入协议业务类型有关商品
|
|
|
+ bsCovenantBusinessVo.getBsCovenantGoods().forEach(bsCovenantGoodsVo -> {
|
|
|
+ BsCovenantGoodsAddBo covenantGoodsAddBo = BeanUtil.toBean(bsCovenantGoodsVo, BsCovenantGoodsAddBo.class);
|
|
|
+ covenantGoodsAddBo.setCovenantId(bo.getCovenantId());
|
|
|
+ covenantGoodsAddBo.setCovenantBusinessId(bsCovenantBusiness.getCovenantBusinessId());
|
|
|
+ covenantGoodsAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ covenantGoodsAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantGoodsService.insertByAddBo(covenantGoodsAddBo);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ throw new CustomException("请选择是否复制协议数据");
|
|
|
+ }
|
|
|
+ bo.getBsCovenantBusinessList().forEach(bsCovenantBusinessVo -> {
|
|
|
+ CourseBusiness courseBusiness = iCourseBusinessService.getOne(new LambdaQueryWrapper<CourseBusiness>().eq(CourseBusiness::getProjectId, bsCovenantBusinessVo.getProjectId()).eq(CourseBusiness::getStatus, 1));
|
|
|
+ BsCovenantBusinessAddBo covenantBusiness = BeanUtil.toBean(bsCovenantBusinessVo, BsCovenantBusinessAddBo.class);
|
|
|
+ covenantBusiness.setBusinessId(courseBusiness.getId());
|
|
|
+ covenantBusiness.setCreateTime(DateUtils.getNowTime());
|
|
|
+ covenantBusiness.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantBusinessService.insertByAddBo(covenantBusiness);
|
|
|
+ if (!bsCovenantBusinessVo.getBsCovenantGoods().isEmpty()) {
|
|
|
+ BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, covenantBusiness.getBusinessId())
|
|
|
+ .eq(BsCovenantBusiness::getEducationTypeId, covenantBusiness.getEducationTypeId())
|
|
|
+ .eq(BsCovenantBusiness::getProjectId, covenantBusiness.getProjectId())
|
|
|
+ .eq(BsCovenantBusiness::getStatus, 1));
|
|
|
+ //写入协议业务类型有关商品
|
|
|
+ bsCovenantBusinessVo.getBsCovenantGoods().forEach(bsCovenantGoodsVo -> {
|
|
|
+ BsCovenantGoodsAddBo covenantGoodsAddBo = BeanUtil.toBean(bsCovenantGoodsVo, BsCovenantGoodsAddBo.class);
|
|
|
+ covenantGoodsAddBo.setCovenantId(bo.getCovenantId());
|
|
|
+ covenantGoodsAddBo.setCovenantBusinessId(bsCovenantBusiness.getCovenantBusinessId());
|
|
|
+ covenantGoodsAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ covenantGoodsAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iBsCovenantGoodsService.insertByAddBo(covenantGoodsAddBo);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
@@ -520,19 +604,10 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getCovenantNum(Long businessId, Long projectId) {
|
|
|
- BsCovenantBusiness bsCovenantBusiness = iBsCovenantBusinessService.getOne(new LambdaQueryWrapper<BsCovenantBusiness>().eq(BsCovenantBusiness::getBusinessId, businessId)
|
|
|
- .eq(BsCovenantBusiness::getProjectId, projectId).eq(BsCovenantBusiness::getStatus, 1));
|
|
|
- if (ObjectUtils.isNotNull(bsCovenantBusiness)) {
|
|
|
- Long covenantId = bsCovenantBusiness.getCovenantId();
|
|
|
- BsCovenant byId = this.getById(covenantId);
|
|
|
- if (ObjectUtils.isNotNull(byId)) {
|
|
|
- return byId.getCovenantNum();
|
|
|
- } else {
|
|
|
- throw new CustomException("当前协议不存在协议编号");
|
|
|
- }
|
|
|
- }
|
|
|
- return null;
|
|
|
+ public String getJudgeBusiness(Long businessId,Long userId) {
|
|
|
+ CourseBusiness courseBusiness = iCourseBusinessService.getOne(new LambdaQueryWrapper<CourseBusiness>().eq(CourseBusiness::getId, businessId).eq(CourseBusiness::getStatus, 1));
|
|
|
+ return iBsCovenantBusinessService.getCovenantNumByProjectId(Long.valueOf(courseBusiness.getProjectId()), userId, courseBusiness.getId());
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -545,11 +620,10 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
TenantAccountBo sysTenantAccountVo = new TenantAccountBo();
|
|
|
if (!listSysTenant.isEmpty()) {
|
|
|
SysTenant sysTenant = listSysTenant.get(0);
|
|
|
- String replace = sysTenant.getAccountInformation().replace("[", "").replace("]", "");
|
|
|
- JSONObject jsonObject = JSON.parseObject(replace);
|
|
|
- sysTenantAccountVo.setOpeningBank(jsonObject.getString("openingBank"));
|
|
|
- sysTenantAccountVo.setProceedsAccount(jsonObject.getString("proceedsAccount"));
|
|
|
- sysTenantAccountVo.setOpeningName(jsonObject.getString("openingName"));
|
|
|
+ List<TenantAccountBo> tenantAccountBos = JSONArray.parseArray(sysTenant.getAccountInformation(), TenantAccountBo.class);
|
|
|
+ if (!tenantAccountBos.isEmpty()) {
|
|
|
+ sysTenantAccountVo = tenantAccountBos.get(0);
|
|
|
+ }
|
|
|
}
|
|
|
BsCovenantExportVo bean = BeanUtil.toBean(bsCovenantVo, BsCovenantExportVo.class);
|
|
|
String zhiyuan = System.getProperty("user.dir");
|
|
|
@@ -621,7 +695,7 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public boolean updateCheckStatus(NoCheckInfo noCheckInfo,Long userId) {
|
|
|
+ public boolean updateCheckStatus(NoCheckInfo noCheckInfo, Long userId) {
|
|
|
List<SysMenu> listSysMenuByTenant = iSysMenuService.selectMenuList(userId);
|
|
|
List<String> menuNameList = listSysMenuByTenant.stream().map(SysMenu::getMenuName).collect(Collectors.toList());
|
|
|
//判断当前用户是否存在改路由
|
|
|
@@ -653,7 +727,7 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public boolean updateStopCheck(NoCheckInfo noCheckInfo,Long userId) {
|
|
|
+ public boolean updateStopCheck(NoCheckInfo noCheckInfo, Long userId) {
|
|
|
List<SysMenu> listSysMenuByTenant = iSysMenuService.selectMenuList(userId);
|
|
|
List<String> menuNameList = listSysMenuByTenant.stream().map(SysMenu::getMenuName).collect(Collectors.toList());
|
|
|
if (menuNameList.contains("协议审核")) {
|
|
|
@@ -664,7 +738,7 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
if (bsCovenantVo.getStopStatus() != 1) {
|
|
|
throw new CustomException("当前协议未处于终止待审核状态");
|
|
|
}
|
|
|
- if (noCheckInfo.getStatus()==3){
|
|
|
+ if (noCheckInfo.getStatus() == 3) {
|
|
|
CovenantCheckRecordAddBo covenantCheckRecord = new CovenantCheckRecordAddBo();
|
|
|
covenantCheckRecord.setCovenantId(noCheckInfo.getCovenantId());
|
|
|
covenantCheckRecord.setUserId(userId);
|
|
|
@@ -688,15 +762,15 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
if (ObjectUtils.isNull(bsCovenantVo)) {
|
|
|
throw new CustomException("当前协议不存在");
|
|
|
}
|
|
|
- if (bsCovenantVo.getStatus()!=2){
|
|
|
+ if (bsCovenantVo.getStatus() != 2) {
|
|
|
throw new CustomException("当前协议未审核通过");
|
|
|
}
|
|
|
- if(ObjectUtils.isNull(paths)){
|
|
|
- throw new CustomException("为上传协议");
|
|
|
+ if (ObjectUtils.isNull(paths)) {
|
|
|
+ throw new CustomException("未上传协议");
|
|
|
}
|
|
|
BsCovenant bsCovenant = BeanUtil.toBean(bsCovenantVo, BsCovenant.class);
|
|
|
bsCovenant.setUploadStatus(1);
|
|
|
- bsCovenant.setCovenantImg(paths.toString());
|
|
|
+ bsCovenant.setCovenantImg(JSON.toJSONString(paths));
|
|
|
bsCovenant.setUpdateTime(DateUtils.getNowTime());
|
|
|
return updateById(bsCovenant);
|
|
|
}
|
|
|
@@ -707,7 +781,7 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
if (ObjectUtils.isNull(bsCovenantVo)) {
|
|
|
throw new CustomException("当前协议不存在");
|
|
|
}
|
|
|
- if (bsCovenantVo.getUploadStatus()!=1){
|
|
|
+ if (bsCovenantVo.getUploadStatus() != 1) {
|
|
|
throw new CustomException("当前协议未上传");
|
|
|
}
|
|
|
BsCovenant bean = BeanUtil.toBean(bsCovenantVo, BsCovenant.class);
|
|
|
@@ -718,19 +792,23 @@ public class BsCovenantServiceImpl extends ServiceImpl<BsCovenantMapper, BsCoven
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Integer countNoCheckNum() {
|
|
|
- return this.baseMapper.selectCount(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getStatus, 1).eq(BsCovenant::getStopStatus, 0));
|
|
|
+ public Integer countNoCheckNum(Long userId, Long formApp) {
|
|
|
+ return this.baseMapper.selectCount(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getStatus, 1).eq(BsCovenant::getStopStatus, 0)
|
|
|
+ .eq(BsCovenant::getUserId, userId).eq(BsCovenant::getFormApp, formApp));
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Integer countStopNoCheckNum() {
|
|
|
- return this.baseMapper.selectCount(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getStopStatus, 1).eq(BsCovenant::getStatus,5));
|
|
|
+ public Integer countStopNoCheckNum(Long userId, Long formApp) {
|
|
|
+ return this.baseMapper.selectCount(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getStopStatus, 1).eq(BsCovenant::getStatus, 5)
|
|
|
+ .eq(BsCovenant::getUserId, userId).eq(BsCovenant::getFormApp, formApp));
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Map<String, Object> countUploadImgNum() {
|
|
|
- Integer noUpload = this.baseMapper.selectCount(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getUploadStatus, 0).eq(BsCovenant::getStatus, 2));
|
|
|
- Integer noAssert = this.baseMapper.selectCount(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getUploadStatus, 1).eq(BsCovenant::getStatus, 2));
|
|
|
+ public Map<String, Object> countUploadImgNum(Long userId, Long formApp) {
|
|
|
+ Integer noUpload = this.baseMapper.selectCount(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getUploadStatus, 0).eq(BsCovenant::getStatus, 2)
|
|
|
+ .eq(BsCovenant::getStopStatus, 0).eq(BsCovenant::getUserId, userId).eq(BsCovenant::getFormApp, formApp));
|
|
|
+ Integer noAssert = this.baseMapper.selectCount(new LambdaQueryWrapper<BsCovenant>().eq(BsCovenant::getUploadStatus, 1).eq(BsCovenant::getStatus, 2)
|
|
|
+ .eq(BsCovenant::getStopStatus, 0).eq(BsCovenant::getUserId, userId).eq(BsCovenant::getFormApp, formApp));
|
|
|
HashMap<String, Object> stringObjectHashMap = new HashMap<>();
|
|
|
stringObjectHashMap.put("noUpload", noUpload);
|
|
|
stringObjectHashMap.put("noAssert", noAssert);
|