|
@@ -34,14 +34,13 @@ public class MktMailStatusServiceImpl extends MyBaseServiceImpl<MktMailStatusMap
|
|
|
}
|
|
}
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- Date now = new Date();
|
|
|
|
|
|
|
+
|
|
|
MktMailStatusEntity row = new MktMailStatusEntity();
|
|
MktMailStatusEntity row = new MktMailStatusEntity();
|
|
|
row.setMailId(mail.getId());
|
|
row.setMailId(mail.getId());
|
|
|
row.setSendStatus(mail.getStatus() == null ? 0 : mail.getStatus());
|
|
row.setSendStatus(mail.getStatus() == null ? 0 : mail.getStatus());
|
|
|
row.setOpened(0);
|
|
row.setOpened(0);
|
|
|
row.setIsRead(0);
|
|
row.setIsRead(0);
|
|
|
row.setReplied(0);
|
|
row.setReplied(0);
|
|
|
- row.setStatusUpdatedAt(now);
|
|
|
|
|
row.setOwnerBy(mail.getOwnerBy());
|
|
row.setOwnerBy(mail.getOwnerBy());
|
|
|
row.setCreateBy(mail.getCreateBy() == null ? mail.getOwnerBy() : mail.getCreateBy());
|
|
row.setCreateBy(mail.getCreateBy() == null ? mail.getOwnerBy() : mail.getCreateBy());
|
|
|
row.setIsDelete(CommonConstant.DEL_FLAG_0);
|
|
row.setIsDelete(CommonConstant.DEL_FLAG_0);
|
|
@@ -115,14 +114,12 @@ public class MktMailStatusServiceImpl extends MyBaseServiceImpl<MktMailStatusMap
|
|
|
if (getByMailId(mailId) != null) {
|
|
if (getByMailId(mailId) != null) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- Date now = new Date();
|
|
|
|
|
MktMailStatusEntity row = new MktMailStatusEntity();
|
|
MktMailStatusEntity row = new MktMailStatusEntity();
|
|
|
row.setMailId(mailId);
|
|
row.setMailId(mailId);
|
|
|
row.setSendStatus(0);
|
|
row.setSendStatus(0);
|
|
|
row.setOpened(0);
|
|
row.setOpened(0);
|
|
|
row.setIsRead(0);
|
|
row.setIsRead(0);
|
|
|
row.setReplied(0);
|
|
row.setReplied(0);
|
|
|
- row.setStatusUpdatedAt(now);
|
|
|
|
|
row.setIsDelete(CommonConstant.DEL_FLAG_0);
|
|
row.setIsDelete(CommonConstant.DEL_FLAG_0);
|
|
|
row.setEnabled(Boolean.TRUE);
|
|
row.setEnabled(Boolean.TRUE);
|
|
|
try {
|
|
try {
|