|
@@ -16,6 +16,7 @@
|
|
|
*/
|
|
*/
|
|
|
package org.springblade.modules.desk.service.impl;
|
|
package org.springblade.modules.desk.service.impl;
|
|
|
|
|
|
|
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springblade.bank.cardswallow.entity.CardSwallow;
|
|
import org.springblade.bank.cardswallow.entity.CardSwallow;
|
|
@@ -26,6 +27,8 @@ import org.springblade.bank.message.entity.Message;
|
|
|
import org.springblade.bank.postchange.entity.PostChange;
|
|
import org.springblade.bank.postchange.entity.PostChange;
|
|
|
import org.springblade.bank.returns.entity.Returns;
|
|
import org.springblade.bank.returns.entity.Returns;
|
|
|
import org.springblade.bank.sealhandover.entity.SealHandover;
|
|
import org.springblade.bank.sealhandover.entity.SealHandover;
|
|
|
|
|
+import org.springblade.common.utils.hangxin.HangxinUtil;
|
|
|
|
|
+import org.springblade.common.utils.hangxin.bean.HangxinResultBean;
|
|
|
import org.springblade.core.datascope.annotation.DataAuth;
|
|
import org.springblade.core.datascope.annotation.DataAuth;
|
|
|
import org.springblade.core.datascope.enums.DataScopeEnum;
|
|
import org.springblade.core.datascope.enums.DataScopeEnum;
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl;
|
|
import org.springblade.core.mp.base.BaseServiceImpl;
|
|
@@ -44,6 +47,7 @@ import org.springblade.modules.system.service.IDeptService;
|
|
|
import org.springblade.modules.system.service.IDictService;
|
|
import org.springblade.modules.system.service.IDictService;
|
|
|
import org.springblade.modules.system.service.IRoleService;
|
|
import org.springblade.modules.system.service.IRoleService;
|
|
|
import org.springblade.modules.system.service.IUserService;
|
|
import org.springblade.modules.system.service.IUserService;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
@@ -64,6 +68,8 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeMapper, Notice> imp
|
|
|
private final IDeptService deptService;
|
|
private final IDeptService deptService;
|
|
|
private final IRoleService roleService;
|
|
private final IRoleService roleService;
|
|
|
|
|
|
|
|
|
|
+ private HangxinUtil hangxinUtil;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public IPage<NoticeVO> selectNoticePage(IPage<NoticeVO> page, NoticeVO notice) {
|
|
public IPage<NoticeVO> selectNoticePage(IPage<NoticeVO> page, NoticeVO notice) {
|
|
|
// 若不使用mybatis-plus自带的分页方法,则不会自动带入tenantId,所以我们需要自行注入
|
|
// 若不使用mybatis-plus自带的分页方法,则不会自动带入tenantId,所以我们需要自行注入
|
|
@@ -262,14 +268,18 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeMapper, Notice> imp
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
String title = dept.getDeptName() + "尚未完成" + checkType + "核對工作";
|
|
String title = dept.getDeptName() + "尚未完成" + checkType + "核對工作";
|
|
|
- /*Notice notice = new Notice();
|
|
|
|
|
|
|
+ Notice notice = new Notice();
|
|
|
notice.setTitle(title);
|
|
notice.setTitle(title);
|
|
|
notice.setBusinessType("checklist");
|
|
notice.setBusinessType("checklist");
|
|
|
notice.setDeptId(dept.getId() + "");
|
|
notice.setDeptId(dept.getId() + "");
|
|
|
notice.setRoleId(StringUtil.join(roleIds));
|
|
notice.setRoleId(StringUtil.join(roleIds));
|
|
|
notice.setTargetIds(StringUtil.join(userIds));
|
|
notice.setTargetIds(StringUtil.join(userIds));
|
|
|
- sendNotice(notice);*/
|
|
|
|
|
- return true;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // 發送行信通知
|
|
|
|
|
+ /*HangxinResultBean hangxinResultBean = hangxinUtil.sendMsg(userIds, "提示進度", title);
|
|
|
|
|
+ System.out.println(JSONUtil.toJsonStr(hangxinResultBean));*/
|
|
|
|
|
+ return sendNotice(notice);
|
|
|
|
|
+// return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private String getCategoryName(KeyPwd keyPwd){
|
|
private String getCategoryName(KeyPwd keyPwd){
|