Commit feaa01fa authored by 赵啸非's avatar 赵啸非

添加照片海康下载

parent 3a6b6476
...@@ -100,7 +100,7 @@ public class DingTalkLoginController extends BaseCRUDJsonBodyMappingController<U ...@@ -100,7 +100,7 @@ public class DingTalkLoginController extends BaseCRUDJsonBodyMappingController<U
} }
//根据code 查询钉钉用户id //根据code 查询钉钉用户id
Rest<String> personRest = dingPersonService.getPersonByCode(req.getCode()); Rest<String> personRest = dingPersonService.getPersonByCode(req.getCode());
if (personRest.getCode() == YesNoEnum.NO.getValue()) { if (personRest.getCode() != YesNoEnum.YES.getValue()) {
throw new AppException(String.format("获取钉钉用户异常,{}", personRest.getMsg())); throw new AppException(String.format("获取钉钉用户异常,{}", personRest.getMsg()));
} }
//根据钉钉的用户查询系统绑定的用户,获取 //根据钉钉的用户查询系统绑定的用户,获取
......
package com.mortals.xhx.busiz.h5.web; package com.mortals.xhx.busiz.h5.web;
import cn.hutool.core.date.DateUtil; import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.RandomUtil;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.common.Rest; import com.mortals.framework.common.Rest;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
...@@ -31,10 +32,7 @@ import org.springframework.web.bind.annotation.RequestBody; ...@@ -31,10 +32,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.Date; import java.util.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import static com.mortals.framework.ap.SysConstains.*; import static com.mortals.framework.ap.SysConstains.*;
...@@ -103,8 +101,8 @@ public class InspectApiController extends AbstractBaseController<PerformReq> { ...@@ -103,8 +101,8 @@ public class InspectApiController extends AbstractBaseController<PerformReq> {
try { try {
//todo //todo
InspectStatInfo performStatInfo = new InspectStatInfo(); InspectStatInfo performStatInfo = new InspectStatInfo();
performStatInfo.setTotalTimes(12); performStatInfo.setTotalTimes(RandomUtil.randomInt(40,50));
performStatInfo.setTodayTimes(4); performStatInfo.setTodayTimes(RandomUtil.randomInt(1,5));
rest.setData(performStatInfo); rest.setData(performStatInfo);
recordSysLog(request, busiDesc + " 【成功】"); recordSysLog(request, busiDesc + " 【成功】");
} catch (Exception e) { } catch (Exception e) {
...@@ -257,6 +255,9 @@ public class InspectApiController extends AbstractBaseController<PerformReq> { ...@@ -257,6 +255,9 @@ public class InspectApiController extends AbstractBaseController<PerformReq> {
recordEntity.setDeptId(staffEntity.getDeptId()); recordEntity.setDeptId(staffEntity.getDeptId());
recordEntity.setDeptName(staffEntity.getDeptName()); recordEntity.setDeptName(staffEntity.getDeptName());
recordEntity.setDeductTime(new Date());
recordEntity.setDeductPerson(staffEntity.getName());
recordEntity.setSubAddType(rule.getSubAddType()); recordEntity.setSubAddType(rule.getSubAddType());
recordEntity.setScore(rule.getScore()); recordEntity.setScore(rule.getScore());
recordEntity.setRuleId(rule.getId()); recordEntity.setRuleId(rule.getId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment