|
@@ -121,20 +121,32 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeMapper, Notice> imp
|
|
|
@Override
|
|
@Override
|
|
|
public boolean sendKeyPwdNotice(KeyPwd keyPwd, boolean isEdit, boolean isComplete) {
|
|
public boolean sendKeyPwdNotice(KeyPwd keyPwd, boolean isEdit, boolean isComplete) {
|
|
|
//有關XXX(分類+種類+鎖匙/密碼)的交接登記已於X年X月X日完成;交出人﹕XXX;接收人﹕XXX
|
|
//有關XXX(分類+種類+鎖匙/密碼)的交接登記已於X年X月X日完成;交出人﹕XXX;接收人﹕XXX
|
|
|
|
|
+ // ORM-通知
|
|
|
|
|
+ //【網點鎖匙/密碼/實物交接登記表】
|
|
|
|
|
+ //分行用戶提交了有關(分類種類)的交接登記,請登入系統進行確認。
|
|
|
String categoryName = getCategoryName(keyPwd);
|
|
String categoryName = getCategoryName(keyPwd);
|
|
|
String now = DateUtil.formatDate(DateUtil.now());
|
|
String now = DateUtil.formatDate(DateUtil.now());
|
|
|
- String title = "";
|
|
|
|
|
|
|
+ String title = "ORM-通知【網點鎖匙/密碼/實物交接登記表】";
|
|
|
if (isEdit){
|
|
if (isEdit){
|
|
|
- title = "更正:";
|
|
|
|
|
|
|
+ title += "更正:";
|
|
|
}
|
|
}
|
|
|
- String HandoverName = keyPwd.getHandoverPersonName() != null ? keyPwd.getHandoverPersonName() : "上級單位";
|
|
|
|
|
- String ReceiverName = keyPwd.getReceiverName() != null ? keyPwd.getReceiverName() : "上級單位";
|
|
|
|
|
|
|
+ Dept dept = deptService.getById(AuthUtil.getDeptId());
|
|
|
|
|
+ String HandoverName = (StringUtil.isBlank(keyPwd.getHandoverPersonName()) && dept.getDeptCategory().equals(1)) ? "分行用戶" : keyPwd.getHandoverPersonName();
|
|
|
|
|
+ String ReceiverName = (StringUtil.isBlank(keyPwd.getReceiverName()) && dept.getDeptCategory().equals(1)) ? "分行用戶" : keyPwd.getReceiverName();
|
|
|
|
|
|
|
|
- if (isComplete){
|
|
|
|
|
- title += "有關(" + categoryName + ")的交接登記已於" + now + "完成;交出人:" + HandoverName + ";接收人:" + ReceiverName;
|
|
|
|
|
|
|
+ if (!isComplete){
|
|
|
|
|
+ title += HandoverName + "提交了" + "有關 (" + categoryName + ") 的交接登記" + ",請登入系統進行確認。";
|
|
|
}else{
|
|
}else{
|
|
|
- title += HandoverName + "提交了" + "有關 (" + categoryName + ") 的交接登記" + ",請登入系統進行確認";
|
|
|
|
|
|
|
+ if (keyPwd.getIsTurnIn().equals(0)){
|
|
|
|
|
+ //非上繳
|
|
|
|
|
+ title += "有關(" + categoryName + ")的交接登記,已於" + now + "完成;交出人:" + HandoverName + ";接收人:" + ReceiverName + "。";
|
|
|
|
|
+ }
|
|
|
|
|
+ if (keyPwd.getIsTurnIn().equals(1)) {
|
|
|
|
|
+ // 上繳
|
|
|
|
|
+ title += "有關(" + categoryName + ")的交接登記,已於" + now + "完成上繳。";
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
User user1 = userService.getUserByEhr(keyPwd.getHandoverPersonNo());
|
|
User user1 = userService.getUserByEhr(keyPwd.getHandoverPersonNo());
|
|
|
User user2 = userService.getUserByEhr(keyPwd.getReceiverNo());
|
|
User user2 = userService.getUserByEhr(keyPwd.getReceiverNo());
|
|
|
|
|
|
|
@@ -160,9 +172,9 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeMapper, Notice> imp
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public boolean sendCardSwallowNotice(CardSwallow cardSwallow, boolean isEdit) {
|
|
public boolean sendCardSwallowNotice(CardSwallow cardSwallow, boolean isEdit) {
|
|
|
- String title = "";
|
|
|
|
|
|
|
+ String title = "ORM-通知【自助設備吞卡資料】";
|
|
|
if (isEdit){
|
|
if (isEdit){
|
|
|
- title = "更正:";
|
|
|
|
|
|
|
+ title += "更正:";
|
|
|
}
|
|
}
|
|
|
title += "營運部已發佈新消息,請查閱";
|
|
title += "營運部已發佈新消息,請查閱";
|
|
|
Dept dept = deptService.getByOrgNo(cardSwallow.getSendOrgNo());
|
|
Dept dept = deptService.getByOrgNo(cardSwallow.getSendOrgNo());
|
|
@@ -177,9 +189,9 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeMapper, Notice> imp
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public boolean sendReturnsNotice(Returns returns, boolean isEdit) {
|
|
public boolean sendReturnsNotice(Returns returns, boolean isEdit) {
|
|
|
- String title = "";
|
|
|
|
|
|
|
+ String title = "ORM-通知【新開戶退件登記表】";
|
|
|
if (isEdit){
|
|
if (isEdit){
|
|
|
- title = "更正:";
|
|
|
|
|
|
|
+ title += "更正:";
|
|
|
}
|
|
}
|
|
|
title += "營運部已發佈新消息,請查閱";
|
|
title += "營運部已發佈新消息,請查閱";
|
|
|
Dept dept = deptService.getByOrgNo(returns.getSubOrgNo());
|
|
Dept dept = deptService.getByOrgNo(returns.getSubOrgNo());
|
|
@@ -194,9 +206,9 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeMapper, Notice> imp
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public boolean sendMessageNotice(Message message, boolean isEdit) {
|
|
public boolean sendMessageNotice(Message message, boolean isEdit) {
|
|
|
- String title = "";
|
|
|
|
|
|
|
+ String title = "ORM-通知【信息發佈】";
|
|
|
if (isEdit){
|
|
if (isEdit){
|
|
|
- title = "更正:";
|
|
|
|
|
|
|
+ title += "更正:";
|
|
|
}
|
|
}
|
|
|
title += "營運部已發佈新消息,請查閱";
|
|
title += "營運部已發佈新消息,請查閱";
|
|
|
Notice notice = new Notice();
|
|
Notice notice = new Notice();
|
|
@@ -236,16 +248,26 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeMapper, Notice> imp
|
|
|
userList.add(user2.getId());
|
|
userList.add(user2.getId());
|
|
|
userEhrList.add(user2.getEhr());
|
|
userEhrList.add(user2.getEhr());
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- String title = "";
|
|
|
|
|
|
|
+ String title = "ORM-通知【業務印章交接登記表】";
|
|
|
if (isEdit){
|
|
if (isEdit){
|
|
|
- title = "更正:";
|
|
|
|
|
|
|
+ title += "更正:";
|
|
|
}
|
|
}
|
|
|
- if (isComplete){
|
|
|
|
|
- title += "有關 (" + seal_type + sealHandover.getSealNo() + ") 的交接登記已於" + now + "完成;交出人:" + sealHandover.getHandoverPersonName() + ";接收人:" + sealHandover.getReceiverName();
|
|
|
|
|
|
|
+ Dept dept = deptService.getById(AuthUtil.getDeptId());
|
|
|
|
|
+ String HandoverName = (StringUtil.isBlank(sealHandover.getHandoverPersonName()) && dept.getDeptCategory().equals(1)) ? "分行用戶" : sealHandover.getHandoverPersonName();
|
|
|
|
|
+ String ReceiverName = (StringUtil.isBlank(sealHandover.getReceiverName()) && dept.getDeptCategory().equals(1)) ? "分行用戶" : sealHandover.getReceiverName();
|
|
|
|
|
+
|
|
|
|
|
+ if (!isComplete){
|
|
|
|
|
+ if (sealHandover.getIsTurnIn().equals(0)){
|
|
|
|
|
+ title += HandoverName + "提交了" + "有關 (" + seal_type + sealHandover.getSealNo() + ") 的交接登記" + ",請登入系統進行確認。";
|
|
|
|
|
+ }
|
|
|
}else{
|
|
}else{
|
|
|
- title += sealHandover.getHandoverPersonName() + "提交了" + "有關 (" + seal_type + sealHandover.getSealNo() + ") 的交接登記" + ",請登入系統進行確認";
|
|
|
|
|
|
|
+ if (sealHandover.getIsTurnIn().equals(0)){
|
|
|
|
|
+ title += "有關 (" + seal_type + sealHandover.getSealNo() + ") 的交接登記已於" + now + "完成;交出人:" + HandoverName + ";接收人:" + ReceiverName + "。";
|
|
|
|
|
+ }else{
|
|
|
|
|
+ title += "有關 (" + seal_type + sealHandover.getSealNo() + ") 的交接登記已於" + now + "完成上繳;交出人:" + HandoverName + ";接收人:" + ReceiverName + "。";
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
Notice notice = new Notice();
|
|
Notice notice = new Notice();
|
|
|
notice.setTitle(title);
|
|
notice.setTitle(title);
|
|
|
notice.setBusinessType("sealhandover");
|
|
notice.setBusinessType("sealhandover");
|
|
@@ -255,13 +277,18 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeMapper, Notice> imp
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public boolean sendPostChangeNotice(PostChange postChange, boolean isEdit) {
|
|
|
|
|
|
|
+ public boolean sendPostChangeNotice(PostChange postChange, boolean isEdit, boolean isComplete) {
|
|
|
Dept dept = deptService.getByOrgNo(postChange.getOrgNo());
|
|
Dept dept = deptService.getByOrgNo(postChange.getOrgNo());
|
|
|
- String title = "";
|
|
|
|
|
|
|
+ String title = "ORM-通知【網點出納主管及專管員崗位變更記錄表】";
|
|
|
if (isEdit){
|
|
if (isEdit){
|
|
|
- title = "更正:";
|
|
|
|
|
|
|
+ title += "更正:";
|
|
|
|
|
+ }
|
|
|
|
|
+ if (isComplete){
|
|
|
|
|
+ title += dept.getDeptName() + "機構已提交網點出納主管及專管員崗位變更記錄表,請登陸系統查詢";
|
|
|
|
|
+ }else{
|
|
|
|
|
+ User user = userService.getById(postChange.getCreateUser());
|
|
|
|
|
+ title += user.getName() + "已提交網點出納主管及專管員崗位變更記錄表,請登陸系統查詢";
|
|
|
}
|
|
}
|
|
|
- title += dept.getDeptName() + "機構已提交網點出納主管及專管員崗位變更記錄表,請登陸系統查詢";
|
|
|
|
|
|
|
|
|
|
Notice notice = new Notice();
|
|
Notice notice = new Notice();
|
|
|
notice.setTitle(title);
|
|
notice.setTitle(title);
|
|
@@ -277,11 +304,11 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeMapper, Notice> imp
|
|
|
@Override
|
|
@Override
|
|
|
public boolean sendGoodsUseNotice(GoodsUse goodsUse, boolean isEdit) {
|
|
public boolean sendGoodsUseNotice(GoodsUse goodsUse, boolean isEdit) {
|
|
|
//用戶1指派XXX請登入系統進行確認
|
|
//用戶1指派XXX請登入系統進行確認
|
|
|
- String title = "";
|
|
|
|
|
|
|
+ String title = "ORM-通知【使用及出入庫登記表】";
|
|
|
if (isEdit){
|
|
if (isEdit){
|
|
|
- title = "更正:";
|
|
|
|
|
|
|
+ title += "更正:";
|
|
|
}
|
|
}
|
|
|
- title += goodsUse.getFillingName() + "提交了使用及出入庫登記表,請登入系統進行確認";
|
|
|
|
|
|
|
+ title += goodsUse.getFillingName() + "提交了使用及出入庫登記表,請登入系統進行確認。";
|
|
|
|
|
|
|
|
Notice notice = new Notice();
|
|
Notice notice = new Notice();
|
|
|
notice.setTitle(title);
|
|
notice.setTitle(title);
|
|
@@ -319,7 +346,7 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeMapper, Notice> imp
|
|
|
checkType = "每週";
|
|
checkType = "每週";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- String title = dept.getDeptName() + "尚未完成" + checkType + "核對工作";
|
|
|
|
|
|
|
+ String title = "ORM-通知【核對記錄表】" + dept.getDeptName() + "尚未完成" + checkType + "核對工作";
|
|
|
Notice notice = new Notice();
|
|
Notice notice = new Notice();
|
|
|
notice.setTitle(title);
|
|
notice.setTitle(title);
|
|
|
notice.setBusinessType("checklist");
|
|
notice.setBusinessType("checklist");
|