Commit 912cfdfd authored by 赵啸非's avatar 赵啸非

添加照片海康下载

parent dc6320a5
...@@ -103,6 +103,7 @@ public class DingTalkLoginController extends BaseCRUDJsonBodyMappingController<U ...@@ -103,6 +103,7 @@ public class DingTalkLoginController extends BaseCRUDJsonBodyMappingController<U
if (personRest.getCode() != YesNoEnum.YES.getValue()) { if (personRest.getCode() != YesNoEnum.YES.getValue()) {
throw new AppException(String.format("获取钉钉用户异常,%s", personRest.getMsg())); throw new AppException(String.format("获取钉钉用户异常,%s", personRest.getMsg()));
} }
log.info(personRest.getData());
if (ObjectUtils.isEmpty(personRest.getData())) if (ObjectUtils.isEmpty(personRest.getData()))
throw new AppException(1012, "未找到响应的钉钉用户!"); throw new AppException(1012, "未找到响应的钉钉用户!");
......
...@@ -92,7 +92,6 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -92,7 +92,6 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
} }
log.info("【{}】【请求体】--> 用户:{}", busiDesc, context.getUser().getRealName()); log.info("【{}】【请求体】--> 用户:{}", busiDesc, context.getUser().getRealName());
try { try {
//todo
CheckAllRecordQuery checkAllRecordQuery = new CheckAllRecordQuery(); CheckAllRecordQuery checkAllRecordQuery = new CheckAllRecordQuery();
checkAllRecordQuery.setSubAddType(SubAddTypeEnum.扣除.getValue()); checkAllRecordQuery.setSubAddType(SubAddTypeEnum.扣除.getValue());
checkAllRecordQuery.setStaffId(context.getUser().getCustomerId()); checkAllRecordQuery.setStaffId(context.getUser().getCustomerId());
...@@ -110,10 +109,9 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -110,10 +109,9 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
List<StaffPerformStatEntity> staffPerformStatEntities = staffPerformStatService.find(staffPerformStatQuery); List<StaffPerformStatEntity> staffPerformStatEntities = staffPerformStatService.find(staffPerformStatQuery);
BigDecimal totalScore=new BigDecimal(0.0); BigDecimal totalScore=new BigDecimal(0.0);
if(ObjectUtils.isEmpty(staffPerformStatEntities)){ if(ObjectUtils.isEmpty(staffPerformStatEntities)){
// staffPerformStatEntities.stream().map(item->item.getTotalSubScore().doubleValue()). totalScore = staffPerformStatEntities.stream().map(item -> item.getTotalSubScore()).reduce(BigDecimal.ZERO, BigDecimal::add);
} }
staffPerformStatQuery.setDay(DateUtil.dayOfMonth(new Date())); staffPerformStatQuery.setDay(DateUtil.dayOfMonth(new Date()));
//今日得分 //今日得分
StaffPerformStatEntity staffPerformStatEntity = staffPerformStatService.selectOne(staffPerformStatQuery); StaffPerformStatEntity staffPerformStatEntity = staffPerformStatService.selectOne(staffPerformStatQuery);
......
...@@ -51,6 +51,7 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID ...@@ -51,6 +51,7 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
log.info("getPersonByCode:{}", code); log.info("getPersonByCode:{}", code);
OapiV2UserGetuserinfoResponse rsp = client.execute(req, getToken()); OapiV2UserGetuserinfoResponse rsp = client.execute(req, getToken());
log.info("OapiV2UserGetuserinfoResponse:{}", rsp.getBody()); log.info("OapiV2UserGetuserinfoResponse:{}", rsp.getBody());
log.info("userid:{}", rsp.getResult().getUserid());
if (rsp.getErrcode() == 0) { if (rsp.getErrcode() == 0) {
return Rest.ok(rsp.getResult().getUserid()); return Rest.ok(rsp.getResult().getUserid());
} else { } else {
......
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