提交 ba67e365 编写于 作者: Skyeye云's avatar Skyeye云

邮件模板后台修改

上级 1831fde9
...@@ -28,6 +28,7 @@ public class EmailSendModelServiceImpl implements EmailSendModelService { ...@@ -28,6 +28,7 @@ public class EmailSendModelServiceImpl implements EmailSendModelService {
public void queryEmailSendModelList(InputObject inputObject, OutputObject outputObject) throws Exception { public void queryEmailSendModelList(InputObject inputObject, OutputObject outputObject) throws Exception {
Map<String, Object> inputParams = inputObject.getParams(); Map<String, Object> inputParams = inputObject.getParams();
Page pages = PageHelper.startPage(Integer.parseInt(inputParams.get("page").toString()), Integer.parseInt(inputParams.get("limit").toString())); Page pages = PageHelper.startPage(Integer.parseInt(inputParams.get("page").toString()), Integer.parseInt(inputParams.get("limit").toString()));
inputParams.put("userId", inputObject.getLogParams().get("id"));
List<Map<String, Object>> emailSendModelList = emailSendModelDao.queryEmailSendModelList(inputParams); List<Map<String, Object>> emailSendModelList = emailSendModelDao.queryEmailSendModelList(inputParams);
outputObject.setBeans(emailSendModelList); outputObject.setBeans(emailSendModelList);
outputObject.settotal(pages.getTotal()); outputObject.settotal(pages.getTotal());
......
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
SELECT SELECT
esm.id, esm.id,
esm.title, esm.title,
esm.to_people toPeople,
IFNULL(esm.to_cc, '') toCc,
IFNULL(esm.to_bcc, '') toBcc,
b.user_name createName, b.user_name createName,
CONVERT(esm.create_time, char) createTime, CONVERT(esm.create_time, char) createTime,
c.user_name lastUpdateName, c.user_name lastUpdateName,
...@@ -14,9 +17,9 @@ ...@@ -14,9 +17,9 @@
email_send_model esm email_send_model esm
LEFT JOIN sys_eve_user_staff b ON esm.create_id = b.user_id LEFT JOIN sys_eve_user_staff b ON esm.create_id = b.user_id
LEFT JOIN sys_eve_user_staff c ON esm.last_update_id = c.user_id LEFT JOIN sys_eve_user_staff c ON esm.last_update_id = c.user_id
WHERE 1 = 1 WHERE esm.create_id = #{userId}
<if test="title != null and title != ''"> <if test="title != null and title != ''">
AND esm.title = '%${title}%' AND esm.title LIKE '%${title}%'
</if> </if>
ORDER BY esm.create_time DESC ORDER BY esm.create_time DESC
</select> </select>
......
...@@ -50,7 +50,6 @@ public class ComplexMailDeliveryServiceImpl implements JobMateService { ...@@ -50,7 +50,6 @@ public class ComplexMailDeliveryServiceImpl implements JobMateService {
@Autowired @Autowired
private SystemFoundationSettingsService systemFoundationSettingsService; private SystemFoundationSettingsService systemFoundationSettingsService;
@SuppressWarnings("unchecked")
@Override @Override
public void call(String data) throws Exception { public void call(String data) throws Exception {
Map<String, Object> map = JSONUtil.toBean(data, null); Map<String, Object> map = JSONUtil.toBean(data, null);
......
...@@ -175,6 +175,7 @@ public class JobMateMationServiceImpl implements JobMateMationService { ...@@ -175,6 +175,7 @@ public class JobMateMationServiceImpl implements JobMateMationService {
private void sendJobResultMseeage(String jobId, String status) throws Exception{ private void sendJobResultMseeage(String jobId, String status) throws Exception{
Map<String, Object> jobMation = jobMateMationDao.queryJobMationByJobId(jobId); Map<String, Object> jobMation = jobMateMationDao.queryJobMationByJobId(jobId);
String userId = jobMation.get("createId").toString(); String userId = jobMation.get("createId").toString();
LOGGER.info("job is success, jobId is {}", jobId);
if(MqConstants.JOB_TYPE_IS_SUCCESS.equals(status) || MqConstants.JOB_TYPE_IS_FAIL.equals(status) if(MqConstants.JOB_TYPE_IS_SUCCESS.equals(status) || MqConstants.JOB_TYPE_IS_FAIL.equals(status)
|| MqConstants.JOB_TYPE_IS_PARTIAL_SUCCESS.equals(status)) { || MqConstants.JOB_TYPE_IS_PARTIAL_SUCCESS.equals(status)) {
// 成功/失败/部分成功 // 成功/失败/部分成功
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册