|
|
@@ -5,15 +5,21 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.constant.CommonConstant;
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
+import org.jeecg.common.system.vo.LoginUser;
|
|
|
+import org.jeecg.common.system.vo.SysUserCacheInfo;
|
|
|
+import org.jeecg.config.shiro.ShiroRealm;
|
|
|
+import org.jeecg.modules.smscheck.configs.CheckStateCode;
|
|
|
import org.jeecg.modules.smscheck.entity.SmsCheckCustomerInfo;
|
|
|
import org.jeecg.modules.smscheck.entity.SmsCheckWorkLog;
|
|
|
import org.jeecg.modules.smscheck.service.ISmsCheckCustomerInfoService;
|
|
|
@@ -22,190 +28,255 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.util.Arrays;
|
|
|
+import java.util.List;
|
|
|
|
|
|
- /**
|
|
|
- * @description 客户信息
|
|
|
+/**
|
|
|
* @author jeecg-boot
|
|
|
- * @date 2022-06-22
|
|
|
* @version V1.0
|
|
|
+ * @description 客户信息
|
|
|
+ * @date 2022-06-22
|
|
|
*/
|
|
|
-@Api(tags="客户信息")
|
|
|
+@Api(tags = "客户信息")
|
|
|
@RestController
|
|
|
@RequestMapping("/smsCheck/customerInfo")
|
|
|
@Slf4j
|
|
|
public class SmsCheckCustomerInfoController extends JeecgController<SmsCheckCustomerInfo, ISmsCheckCustomerInfoService> {
|
|
|
- @Autowired
|
|
|
- private ISmsCheckCustomerInfoService smsCheckCustomerInfoService;
|
|
|
+ @Autowired
|
|
|
+ private ISmsCheckCustomerInfoService smsCheckCustomerInfoService;
|
|
|
+ @Autowired
|
|
|
+ private ShiroRealm shiroRealm;
|
|
|
+
|
|
|
@Autowired
|
|
|
private ISmsCheckWorkLogService workLogService;
|
|
|
|
|
|
- /**
|
|
|
- * 分页列表查询
|
|
|
- *
|
|
|
- * @param smsCheckCustomerInfo 对象
|
|
|
- * @param pageNo 页码
|
|
|
- * @param pageSize 每页条数
|
|
|
- * @param request 请求
|
|
|
- * @return 结果
|
|
|
- */
|
|
|
- //@AutoLog(value = "客户信息-分页列表查询")
|
|
|
- @ApiOperation(value="客户信息-分页列表查询", notes="客户信息-分页列表查询")
|
|
|
- @GetMapping(value = "/list")
|
|
|
- public Result<IPage<SmsCheckCustomerInfo>> queryPageList(SmsCheckCustomerInfo smsCheckCustomerInfo,
|
|
|
- @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
|
- @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
|
- HttpServletRequest request) {
|
|
|
- QueryWrapper<SmsCheckCustomerInfo> queryWrapper = QueryGenerator.initQueryWrapper(smsCheckCustomerInfo, request.getParameterMap());
|
|
|
- Page<SmsCheckCustomerInfo> page = new Page<>(pageNo, pageSize);
|
|
|
- IPage<SmsCheckCustomerInfo> pageList = smsCheckCustomerInfoService.page(page, queryWrapper);
|
|
|
- return Result.OK(pageList);
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 分页列表查询
|
|
|
+ *
|
|
|
+ * @param smsCheckCustomerInfo 对象
|
|
|
+ * @param pageNo 页码
|
|
|
+ * @param pageSize 每页条数
|
|
|
+ * @param request 请求
|
|
|
+ * @return 结果
|
|
|
+ */
|
|
|
+ //@AutoLog(value = "客户信息-分页列表查询")
|
|
|
+ @ApiOperation(value = "客户信息-分页列表查询", notes = "客户信息-分页列表查询")
|
|
|
+ @GetMapping(value = "/list")
|
|
|
+ public Result<IPage<SmsCheckCustomerInfo>> queryPageList(SmsCheckCustomerInfo smsCheckCustomerInfo,
|
|
|
+ @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
+ @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
+ HttpServletRequest request) {
|
|
|
+ LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ QueryWrapper<SmsCheckCustomerInfo> queryWrapper = QueryGenerator.initQueryWrapper(smsCheckCustomerInfo, request.getParameterMap());
|
|
|
+ Page<SmsCheckCustomerInfo> page = new Page<>(pageNo, pageSize);
|
|
|
+ IPage<SmsCheckCustomerInfo> pageList = smsCheckCustomerInfoService.page(page, queryWrapper);
|
|
|
+ return Result.OK(pageList);
|
|
|
+ }
|
|
|
|
|
|
- /**
|
|
|
- * 添加
|
|
|
- *
|
|
|
- * @param smsCheckCustomerInfo 对象
|
|
|
- * @return 结果
|
|
|
- */
|
|
|
- @AutoLog(value = "客户信息-添加")
|
|
|
- @ApiOperation(value="客户信息-添加", notes="客户信息-添加")
|
|
|
- @PostMapping(value = "/add")
|
|
|
- public Result<String> add(@RequestBody SmsCheckCustomerInfo smsCheckCustomerInfo) {
|
|
|
- smsCheckCustomerInfoService.save(smsCheckCustomerInfo);
|
|
|
- return Result.OK("添加成功!");
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 分页列表查询
|
|
|
+ *
|
|
|
+ * @param smsCheckCustomerInfo 对象
|
|
|
+ * @param pageNo 页码
|
|
|
+ * @param pageSize 每页条数
|
|
|
+ * @param request 请求
|
|
|
+ * @return 结果
|
|
|
+ */
|
|
|
+ //@AutoLog(value = "客户信息-分页列表查询")
|
|
|
+ @ApiOperation(value = "当前用户的客户信息-分页列表查询", notes = "当前用户的客户信息-分页列表查询")
|
|
|
+ @GetMapping(value = "staff/list")
|
|
|
+ public Result<IPage<SmsCheckCustomerInfo>> queryPageListStaffNo(SmsCheckCustomerInfo smsCheckCustomerInfo,
|
|
|
+ @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
+ @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
+ HttpServletRequest request) {
|
|
|
+ LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ String workNo = sysUser.getWorkNo();
|
|
|
+ if (StringUtils.isEmpty(workNo)){
|
|
|
+ return Result.error("该用户不存在");
|
|
|
+ }
|
|
|
+ smsCheckCustomerInfo.setStaffNo(workNo);
|
|
|
+ QueryWrapper<SmsCheckCustomerInfo> queryWrapper = QueryGenerator.initQueryWrapper(smsCheckCustomerInfo, request.getParameterMap());
|
|
|
+ Page<SmsCheckCustomerInfo> page = new Page<>(pageNo, pageSize);
|
|
|
+ queryWrapper.orderByAsc("create_time");
|
|
|
+ IPage<SmsCheckCustomerInfo> pageList = smsCheckCustomerInfoService.page(page, queryWrapper);
|
|
|
+ return Result.OK(pageList);
|
|
|
+ }
|
|
|
|
|
|
- /**
|
|
|
- * 编辑
|
|
|
- *
|
|
|
- * @param smsCheckCustomerInfo 对象
|
|
|
- * @return 结果
|
|
|
- */
|
|
|
- @AutoLog(value = "客户信息-编辑")
|
|
|
- @ApiOperation(value="客户信息-编辑", notes="客户信息-编辑")
|
|
|
- @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
|
- public Result<String> edit(@RequestBody SmsCheckCustomerInfo smsCheckCustomerInfo) {
|
|
|
- smsCheckCustomerInfoService.updateById(smsCheckCustomerInfo);
|
|
|
- return Result.OK("编辑成功!");
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 通过id删除
|
|
|
- *
|
|
|
- * @param id 主键
|
|
|
- * @return 结果
|
|
|
- */
|
|
|
- @AutoLog(value = "客户信息-通过id删除")
|
|
|
- @ApiOperation(value="客户信息-通过id删除", notes="客户信息-通过id删除")
|
|
|
- @DeleteMapping(value = "/delete")
|
|
|
- public Result<String> delete(@RequestParam(name="id") String id) {
|
|
|
- smsCheckCustomerInfoService.removeById(id);
|
|
|
- return Result.OK("删除成功!");
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 批量删除
|
|
|
- *
|
|
|
- * @param ids 主键
|
|
|
- * @return 结果
|
|
|
- */
|
|
|
- @AutoLog(value = "客户信息-批量删除")
|
|
|
- @ApiOperation(value="客户信息-批量删除", notes="客户信息-批量删除")
|
|
|
- @DeleteMapping(value = "/deleteBatch")
|
|
|
- public Result<String> deleteBatch(@RequestParam(name="ids") String ids) {
|
|
|
- this.smsCheckCustomerInfoService.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
- return Result.OK("批量删除成功!");
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 通过id查询
|
|
|
- *
|
|
|
- * @param id 主键
|
|
|
- * @return 数据
|
|
|
- */
|
|
|
- //@AutoLog(value = "客户信息-通过id查询")
|
|
|
- @ApiOperation(value="客户信息-通过id查询", notes="客户信息-通过id查询")
|
|
|
- @GetMapping(value = "/queryById")
|
|
|
- public Result<SmsCheckCustomerInfo> queryById(@RequestParam(name="id") String id) {
|
|
|
- SmsCheckCustomerInfo smsCheckCustomerInfo = smsCheckCustomerInfoService.getById(id);
|
|
|
- if(smsCheckCustomerInfo==null) {
|
|
|
- return Result.error("未找到对应数据");
|
|
|
- }
|
|
|
- return Result.OK(smsCheckCustomerInfo);
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 添加
|
|
|
+ *
|
|
|
+ * @param smsCheckCustomerInfo 对象
|
|
|
+ * @return 结果
|
|
|
+ */
|
|
|
+ @AutoLog(value = "客户信息-添加")
|
|
|
+ @ApiOperation(value = "客户信息-添加", notes = "客户信息-添加")
|
|
|
+ @PostMapping(value = "/add")
|
|
|
+ public Result<String> add(@RequestBody SmsCheckCustomerInfo smsCheckCustomerInfo) {
|
|
|
+ smsCheckCustomerInfoService.save(smsCheckCustomerInfo);
|
|
|
+ return Result.OK("添加成功!");
|
|
|
+ }
|
|
|
|
|
|
- /**
|
|
|
- * 导出excel
|
|
|
- *
|
|
|
- * @param request 请求
|
|
|
- * @param smsCheckCustomerInfo 对象
|
|
|
- * @return excel文件
|
|
|
- */
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 添加
|
|
|
+ *
|
|
|
+ * @param smsCheckCustomerInfo 对象
|
|
|
+ * @return 结果
|
|
|
+ */
|
|
|
+ @AutoLog(value = "当前客户信息-添加")
|
|
|
+ @ApiOperation(value = "当前客户信息-添加", notes = "当前客户信息-添加")
|
|
|
+ @PostMapping(value = "/staff/add")
|
|
|
+ public Result<String> staffAdd(@RequestBody SmsCheckCustomerInfo smsCheckCustomerInfo) {
|
|
|
+ LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ String workNo = sysUser.getWorkNo();
|
|
|
+ if (StringUtils.isEmpty(workNo)){
|
|
|
+ return Result.error("请重新登录");
|
|
|
+ }
|
|
|
+ if (StringUtils.isEmpty(smsCheckCustomerInfo.getUserNo())){
|
|
|
+ return Result.error("用户编号为空");
|
|
|
+ }
|
|
|
+ LambdaQueryWrapper<SmsCheckCustomerInfo> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(SmsCheckCustomerInfo::getUserNo,smsCheckCustomerInfo.getUserNo());
|
|
|
+ List<SmsCheckCustomerInfo> list = smsCheckCustomerInfoService.list(queryWrapper);
|
|
|
+ if (list.size()>0){
|
|
|
+ return Result.error("该用户已经存在");
|
|
|
+ }
|
|
|
+ String realname = sysUser.getRealname();
|
|
|
+ smsCheckCustomerInfo.setStaffNo(workNo);
|
|
|
+ smsCheckCustomerInfo.setStaffName(realname);
|
|
|
+ smsCheckCustomerInfo.setCheckState(CheckStateCode.CHECK_STSTE_1);
|
|
|
+ smsCheckCustomerInfoService.save(smsCheckCustomerInfo);
|
|
|
+ return Result.OK("添加成功!");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @AutoLog(value = "客户信息-编辑")
|
|
|
+ @ApiOperation(value = "客户信息-编辑", notes = "客户信息-编辑")
|
|
|
+ @RequestMapping(value = "/edit/", method = {RequestMethod.PUT, RequestMethod.POST})
|
|
|
+ public Result<String> edit(@RequestBody SmsCheckCustomerInfo smsCheckCustomerInfo) {
|
|
|
+ smsCheckCustomerInfoService.updateById(smsCheckCustomerInfo);
|
|
|
+ return Result.OK("编辑成功!");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 通过id删除
|
|
|
+ *
|
|
|
+ * @param id 主键
|
|
|
+ * @return 结果
|
|
|
+ */
|
|
|
+ @AutoLog(value = "客户信息-通过id删除")
|
|
|
+ @ApiOperation(value = "客户信息-通过id删除", notes = "客户信息-通过id删除")
|
|
|
+ @DeleteMapping(value = "/delete")
|
|
|
+ public Result<String> delete(@RequestParam(name = "id") String id) {
|
|
|
+ smsCheckCustomerInfoService.removeById(id);
|
|
|
+ return Result.OK("删除成功!");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 批量删除
|
|
|
+ *
|
|
|
+ * @param ids 主键
|
|
|
+ * @return 结果
|
|
|
+ */
|
|
|
+ @AutoLog(value = "客户信息-批量删除")
|
|
|
+ @ApiOperation(value = "客户信息-批量删除", notes = "客户信息-批量删除")
|
|
|
+ @DeleteMapping(value = "/deleteBatch")
|
|
|
+ public Result<String> deleteBatch(@RequestParam(name = "ids") String ids) {
|
|
|
+ this.smsCheckCustomerInfoService.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
+ return Result.OK("批量删除成功!");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 通过id查询
|
|
|
+ *
|
|
|
+ * @param id 主键
|
|
|
+ * @return 数据
|
|
|
+ */
|
|
|
+ //@AutoLog(value = "客户信息-通过id查询")
|
|
|
+ @ApiOperation(value = "客户信息-通过id查询", notes = "客户信息-通过id查询")
|
|
|
+ @GetMapping(value = "/queryById")
|
|
|
+ public Result<SmsCheckCustomerInfo> queryById(@RequestParam(name = "id") String id) {
|
|
|
+ SmsCheckCustomerInfo smsCheckCustomerInfo = smsCheckCustomerInfoService.getById(id);
|
|
|
+ if (smsCheckCustomerInfo == null) {
|
|
|
+ return Result.error("未找到对应数据");
|
|
|
+ }
|
|
|
+ return Result.OK(smsCheckCustomerInfo);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导出excel
|
|
|
+ *
|
|
|
+ * @param request 请求
|
|
|
+ * @param smsCheckCustomerInfo 对象
|
|
|
+ * @return excel文件
|
|
|
+ */
|
|
|
@RequestMapping(value = "/exportXls")
|
|
|
public ModelAndView exportXls(HttpServletRequest request, SmsCheckCustomerInfo smsCheckCustomerInfo) {
|
|
|
return super.exportXls(request, smsCheckCustomerInfo, SmsCheckCustomerInfo.class, "客户信息");
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 通过excel导入数据
|
|
|
- *
|
|
|
- * @param request 请求
|
|
|
- * @param response 响应
|
|
|
- * @return 导入结果
|
|
|
- */
|
|
|
+ /**
|
|
|
+ * 通过excel导入数据
|
|
|
+ *
|
|
|
+ * @param request 请求
|
|
|
+ * @param response 响应
|
|
|
+ * @return 导入结果
|
|
|
+ */
|
|
|
@PostMapping(value = "/importExcel")
|
|
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
|
return super.importExcel(request, response, SmsCheckCustomerInfo.class);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 通过id查询 稽核统计数
|
|
|
- *
|
|
|
- * @param id 主键
|
|
|
- * @return 数据
|
|
|
- */
|
|
|
- //@AutoLog(value = "客户信息-通过id查询")
|
|
|
- @ApiOperation(value="客户信息-通过id查询 稽核统计数", notes="客户信息-通过id查询 稽核统计数")
|
|
|
- @GetMapping(value = "/count")
|
|
|
- public Result<Dict> count(@RequestParam(name="id") String id) {
|
|
|
- Dict dict = Dict.create();
|
|
|
- // 客户总数
|
|
|
- long count = smsCheckCustomerInfoService.count(new LambdaQueryWrapper<SmsCheckCustomerInfo>()
|
|
|
- .eq(SmsCheckCustomerInfo::getTaskId, id)
|
|
|
- .eq(SmsCheckCustomerInfo::getDelFlag, CommonConstant.DEL_FLAG_0));
|
|
|
- // 未处理数
|
|
|
- long undoCount = smsCheckCustomerInfoService.count(new LambdaQueryWrapper<SmsCheckCustomerInfo>()
|
|
|
- .eq(SmsCheckCustomerInfo::getTaskId, id)
|
|
|
- .in(SmsCheckCustomerInfo::getCheckState, Arrays.asList(0,1))
|
|
|
- .eq(SmsCheckCustomerInfo::getDelFlag, CommonConstant.DEL_FLAG_0));
|
|
|
-
|
|
|
- // 待稽核数
|
|
|
- long uncheckCount = smsCheckCustomerInfoService.count(new LambdaQueryWrapper<SmsCheckCustomerInfo>()
|
|
|
- .eq(SmsCheckCustomerInfo::getTaskId, id)
|
|
|
- .in(SmsCheckCustomerInfo::getCheckState, Arrays.asList(2,4))
|
|
|
- .eq(SmsCheckCustomerInfo::getDelFlag, CommonConstant.DEL_FLAG_0));
|
|
|
- // 待整改数
|
|
|
- long checkedCount = smsCheckCustomerInfoService.count(new LambdaQueryWrapper<SmsCheckCustomerInfo>()
|
|
|
- .eq(SmsCheckCustomerInfo::getTaskId, id)
|
|
|
- .eq(SmsCheckCustomerInfo::getCheckState, 3)
|
|
|
- .eq(SmsCheckCustomerInfo::getDelFlag, CommonConstant.DEL_FLAG_0));
|
|
|
- // 稽核完成数
|
|
|
- long passedCount = smsCheckCustomerInfoService.count(new LambdaQueryWrapper<SmsCheckCustomerInfo>()
|
|
|
- .eq(SmsCheckCustomerInfo::getTaskId, id)
|
|
|
- .eq(SmsCheckCustomerInfo::getCheckState, 5)
|
|
|
- .eq(SmsCheckCustomerInfo::getDelFlag, CommonConstant.DEL_FLAG_0));
|
|
|
-
|
|
|
- dict.put("count", count);
|
|
|
- dict.put("undoCount", undoCount);
|
|
|
- dict.put("uncheckCount", uncheckCount);
|
|
|
- dict.put("checkedCount", checkedCount);
|
|
|
- dict.put("passedCount", passedCount);
|
|
|
-
|
|
|
- return Result.OK(dict);
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 通过id查询 稽核统计数
|
|
|
+ *
|
|
|
+ * @param id 主键
|
|
|
+ * @return 数据
|
|
|
+ */
|
|
|
+ //@AutoLog(value = "客户信息-通过id查询")
|
|
|
+ @ApiOperation(value = "客户信息-通过id查询 稽核统计数", notes = "客户信息-通过id查询 稽核统计数")
|
|
|
+ @GetMapping(value = "/count")
|
|
|
+ public Result<Dict> count(@RequestParam(name = "id") String id) {
|
|
|
+ Dict dict = Dict.create();
|
|
|
+ // 客户总数
|
|
|
+ long count = smsCheckCustomerInfoService.count(new LambdaQueryWrapper<SmsCheckCustomerInfo>()
|
|
|
+ .eq(SmsCheckCustomerInfo::getTaskId, id)
|
|
|
+ .eq(SmsCheckCustomerInfo::getDelFlag, CommonConstant.DEL_FLAG_0));
|
|
|
+ // 未处理数
|
|
|
+ long undoCount = smsCheckCustomerInfoService.count(new LambdaQueryWrapper<SmsCheckCustomerInfo>()
|
|
|
+ .eq(SmsCheckCustomerInfo::getTaskId, id)
|
|
|
+ .in(SmsCheckCustomerInfo::getCheckState, Arrays.asList(0, 1))
|
|
|
+ .eq(SmsCheckCustomerInfo::getDelFlag, CommonConstant.DEL_FLAG_0));
|
|
|
+
|
|
|
+ // 待稽核数
|
|
|
+ long uncheckCount = smsCheckCustomerInfoService.count(new LambdaQueryWrapper<SmsCheckCustomerInfo>()
|
|
|
+ .eq(SmsCheckCustomerInfo::getTaskId, id)
|
|
|
+ .in(SmsCheckCustomerInfo::getCheckState, Arrays.asList(2, 4))
|
|
|
+ .eq(SmsCheckCustomerInfo::getDelFlag, CommonConstant.DEL_FLAG_0));
|
|
|
+ // 待整改数
|
|
|
+ long checkedCount = smsCheckCustomerInfoService.count(new LambdaQueryWrapper<SmsCheckCustomerInfo>()
|
|
|
+ .eq(SmsCheckCustomerInfo::getTaskId, id)
|
|
|
+ .eq(SmsCheckCustomerInfo::getCheckState, 3)
|
|
|
+ .eq(SmsCheckCustomerInfo::getDelFlag, CommonConstant.DEL_FLAG_0));
|
|
|
+ // 稽核完成数
|
|
|
+ long passedCount = smsCheckCustomerInfoService.count(new LambdaQueryWrapper<SmsCheckCustomerInfo>()
|
|
|
+ .eq(SmsCheckCustomerInfo::getTaskId, id)
|
|
|
+ .eq(SmsCheckCustomerInfo::getCheckState, 5)
|
|
|
+ .eq(SmsCheckCustomerInfo::getDelFlag, CommonConstant.DEL_FLAG_0));
|
|
|
+
|
|
|
+ dict.put("count", count);
|
|
|
+ dict.put("undoCount", undoCount);
|
|
|
+ dict.put("uncheckCount", uncheckCount);
|
|
|
+ dict.put("checkedCount", checkedCount);
|
|
|
+ dict.put("passedCount", passedCount);
|
|
|
+
|
|
|
+ return Result.OK(dict);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 稽核客户信息
|
|
|
@@ -237,4 +308,7 @@ public class SmsCheckCustomerInfoController extends JeecgController<SmsCheckCust
|
|
|
return Result.error("稽核失败!");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|