|
|
|
@ -1,10 +1,9 @@
|
|
|
|
|
package com.ruoyi.business.anHuiEnterprise.controller;
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
|
@ -15,6 +14,7 @@ import com.ruoyi.business.anHuiEnterprise.service.ITbVerificationUserDetailsServ
|
|
|
|
|
import com.ruoyi.business.companyInformationReporting.domain.TbCompanyInformationReporting;
|
|
|
|
|
import com.ruoyi.business.companyInformationReporting.domain.TbCompanyInformationReportingDetails;
|
|
|
|
|
import com.ruoyi.common.constant.HttpStatus;
|
|
|
|
|
import com.ruoyi.common.core.domain.R;
|
|
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
|
@ -65,7 +65,8 @@ public class TbCompanyVerificationController extends BaseController {
|
|
|
|
|
@ApiImplicitParam(name = "endTime", value = "结束时间", dataType = "Date", dataTypeClass = Date.class),
|
|
|
|
|
@ApiImplicitParam(name = "beginTime", value = "开始时间", dataType = "Date", dataTypeClass = Date.class),
|
|
|
|
|
@ApiImplicitParam(name = "verificationType", value = "审核类型 1人员背景审核 2重点岗位审查 3业务咨询 4法律咨询", dataType = "String", dataTypeClass = String.class),
|
|
|
|
|
@ApiImplicitParam(name = "readState", value = "读取状态 0已读 1未读", dataType = "String", dataTypeClass = String.class)
|
|
|
|
|
@ApiImplicitParam(name = "readState", value = "读取状态 0已读 1未读", dataType = "String", dataTypeClass = String.class),
|
|
|
|
|
@ApiImplicitParam(name = "companyId", value = "企业id", dataType = "String", dataTypeClass = String.class,required = true)
|
|
|
|
|
})
|
|
|
|
|
public TableDataInfo list(TbCompanyVerification tbCompanyVerification) {
|
|
|
|
|
startPage();
|
|
|
|
@ -248,4 +249,39 @@ public class TbCompanyVerificationController extends BaseController {
|
|
|
|
|
{
|
|
|
|
|
return toAjax(tbCompanyVerificationService.deleteTbCompanyVerificationByIds(ids));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/readCount")
|
|
|
|
|
@ApiOperation("获取已读未读数量")
|
|
|
|
|
@ApiOperationSupport(author = "张二富", order = 25)
|
|
|
|
|
@ApiImplicitParam(name = "companyId", value = "企业id", required = true)
|
|
|
|
|
public R<Map<String,Object>> readCount(TbCompanyVerification tbCompanyVerification){
|
|
|
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
|
|
|
|
|
|
|
|
QueryWrapper<TbCompanyVerification> total = new QueryWrapper<>();
|
|
|
|
|
total.eq(StringUtils.camelToUnderline(TbCompanyVerification.Fields.isDel),"1");
|
|
|
|
|
total.eq(StringUtils.camelToUnderline(TbCompanyVerification.Fields.auditState),"0");
|
|
|
|
|
total.eq(StringUtils.camelToUnderline(TbCompanyVerification.Fields.companyId),tbCompanyVerification.getCompanyId());
|
|
|
|
|
List<TbCompanyVerification> totalList = tbCompanyVerificationService.list(total);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QueryWrapper<TbCompanyVerification> readTrue = new QueryWrapper<>();
|
|
|
|
|
readTrue.eq(StringUtils.camelToUnderline(TbCompanyVerification.Fields.isDel),"1");
|
|
|
|
|
readTrue.eq(StringUtils.camelToUnderline(TbCompanyVerification.Fields.auditState),"0");
|
|
|
|
|
readTrue.eq(StringUtils.camelToUnderline(TbCompanyVerification.Fields.readState),"0");
|
|
|
|
|
readTrue.eq(StringUtils.camelToUnderline(TbCompanyVerification.Fields.companyId),tbCompanyVerification.getCompanyId());
|
|
|
|
|
|
|
|
|
|
List<TbCompanyVerification> readTrueList = tbCompanyVerificationService.list(readTrue);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QueryWrapper<TbCompanyVerification> readFalse = new QueryWrapper<>();
|
|
|
|
|
readFalse.eq(StringUtils.camelToUnderline(TbCompanyVerification.Fields.isDel),"1");
|
|
|
|
|
readFalse.eq(StringUtils.camelToUnderline(TbCompanyVerification.Fields.auditState),"0");
|
|
|
|
|
readFalse.eq(StringUtils.camelToUnderline(TbCompanyVerification.Fields.readState),"1");
|
|
|
|
|
readFalse.eq(StringUtils.camelToUnderline(TbCompanyVerification.Fields.companyId),tbCompanyVerification.getCompanyId());
|
|
|
|
|
List<TbCompanyVerification> readFalseList =tbCompanyVerificationService.list(readTrue);
|
|
|
|
|
map.put("totalCount",totalList.size());
|
|
|
|
|
map.put("readTrueCount",readTrueList.size());
|
|
|
|
|
map.put("readFalseCount",readFalseList.size());
|
|
|
|
|
return getResultand(map);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|