大王椰组件跳转工作流提醒接口初始化
parent
56d1bbc49e
commit
80b9bb6de4
@ -0,0 +1,15 @@
|
|||||||
|
package com.api.organization.web;
|
||||||
|
|
||||||
|
import javax.ws.rs.Path;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author liang.cheng
|
||||||
|
* @Date 2024/4/11 2:21 PM
|
||||||
|
* @Description: 消息提醒
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
@Path("/bs/hrmorganization/remind")
|
||||||
|
public class RemindMessageController extends com.engine.organization.web.RemindMessageController{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.engine.organization.entity.chart.params;
|
||||||
|
|
||||||
|
import com.engine.organization.enums.OperateTypeEnum;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author liang.cheng
|
||||||
|
* @Date 2024/4/11 4:51 PM
|
||||||
|
* @Description: 快速调整界面发送默认工作流提醒
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Builder
|
||||||
|
public class QuickChangeMessageParam {
|
||||||
|
|
||||||
|
private OperateTypeEnum operateType;
|
||||||
|
|
||||||
|
private Integer companyId;
|
||||||
|
|
||||||
|
private Integer departmentIdFrom;
|
||||||
|
|
||||||
|
private Integer departmentIdTo;
|
||||||
|
|
||||||
|
private String content;
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.engine.organization.service;
|
||||||
|
|
||||||
|
import com.engine.organization.entity.chart.params.QuickChangeMessageParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author liang.cheng
|
||||||
|
* @Date 2024/4/11 2:30 PM
|
||||||
|
* @Description: TODO
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
public interface RemindMessageService {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 快速调整界面 操作提醒系统默认工作流
|
||||||
|
* @Author: liang.cheng
|
||||||
|
* @Date: 2024/4/11 5:04 PM
|
||||||
|
* @param: [param]
|
||||||
|
* @return: java.lang.String
|
||||||
|
*/
|
||||||
|
String remindWorkflow(QuickChangeMessageParam param);
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.engine.organization.service;
|
||||||
|
|
||||||
|
import com.engine.core.impl.Service;
|
||||||
|
import com.engine.organization.entity.chart.params.QuickChangeMessageParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author liang.cheng
|
||||||
|
* @Date 2024/4/11 2:30 PM
|
||||||
|
* @Description:
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
public class RemindMessageServiceImpl extends Service implements RemindMessageService {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String remindWorkflow(QuickChangeMessageParam param) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,45 @@
|
|||||||
|
package com.engine.organization.web;
|
||||||
|
|
||||||
|
import com.engine.common.util.ServiceUtil;
|
||||||
|
import com.engine.organization.entity.chart.params.QuickChangeMessageParam;
|
||||||
|
import com.engine.organization.service.RemindMessageService;
|
||||||
|
import com.engine.organization.service.RemindMessageServiceImpl;
|
||||||
|
import com.engine.organization.util.response.ReturnResult;
|
||||||
|
import io.swagger.v3.oas.annotations.parameters.RequestBody;
|
||||||
|
import weaver.hrm.HrmUserVarify;
|
||||||
|
import weaver.hrm.User;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import javax.ws.rs.POST;
|
||||||
|
import javax.ws.rs.Path;
|
||||||
|
import javax.ws.rs.Produces;
|
||||||
|
import javax.ws.rs.core.Context;
|
||||||
|
import javax.ws.rs.core.MediaType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author liang.cheng
|
||||||
|
* @Date 2024/4/11 2:20 PM
|
||||||
|
* @Description: 触发消息提醒 工作流提醒
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
public class RemindMessageController {
|
||||||
|
|
||||||
|
public RemindMessageService getRemindMessageService(User user) {
|
||||||
|
return ServiceUtil.getService(RemindMessageServiceImpl.class,user);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("/quickly/workflow/message")
|
||||||
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
|
public ReturnResult remindWorkflow(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QuickChangeMessageParam param) {
|
||||||
|
try {
|
||||||
|
User user = HrmUserVarify.getUser(request, response);
|
||||||
|
return ReturnResult.successed(getRemindMessageService(user).remindWorkflow(param));
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ReturnResult.exceptionHandle(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue