Commit 5b8bdce7 authored by 赵啸非's avatar 赵啸非

修改报表查询

parent adc8626d
......@@ -35,4 +35,6 @@ public class ParamKey {
public static String SYS_PARAM_SMS_PERSON_CARE_TYPE = "25";
public static String SYS_PARAM_SMS_ADMIN_CARE_TYPE = "24";
}
......@@ -83,6 +83,7 @@ public class CareRecordsServiceImpl extends AbstractCRUDServiceImpl<CareRecordsD
noticeEntity.setCreateUserId(1L);
noticeEntity.setCreateUserName("system");
return noticeEntity;
}).collect(Collectors.toList());
......@@ -127,6 +128,24 @@ public class CareRecordsServiceImpl extends AbstractCRUDServiceImpl<CareRecordsD
// resp = HttpUtil.doPost(smsSendUrl, form);
ApiSmsResp<Void> apiSmsResp = JSON.parseObject(resp, new TypeReference<ApiSmsResp<Void>>() {
});
//发送短信给管理员
UserEntity userEntity = new UserEntity();
userEntity.setUserType(UserType.SYSTEM.getValue());
userEntity = userService.selectOne(userEntity);
if (!ObjectUtils.isEmpty(userEntity) && !ObjectUtils.isEmpty(userEntity.getMobile())) {
smsThirdPartyReq = new SmsThirdPartyReq();
smsThirdPartyReq.setAppid(apiId);
smsThirdPartyReq.setPhone(userEntity.getMobile());
smsThirdPartyReq.setType(ParamKey.SYS_PARAM_SMS_ADMIN_CARE_TYPE);
smsThirdPartyReq.setJson("[]");
form = BeanUtil.beanToMap(smsThirdPartyReq, false, true);
log.info("sms req sendUrl:{} params:{}", smsSendUrl, JSON.toJSONString(form));
cn.hutool.http.HttpUtil.post(smsSendUrl, form);
log.info("sms resp:{}", resp);
}
//更新发送数量
CareRecordsQuery condition = new CareRecordsQuery();
condition.setId(careRecordsEntity.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