EntityPmScheduleViewWeekAction.java
package com.mycim.webapp.actions.equipmentpm;
import com.mycim.webapp.actions.EmsSetupAction;
import com.mycim.webapp.forms.EntityPmScheduleWeekForm;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* PM 周计划查询
*
* @author pinyan.song
* @version 6.0.0
* @date 2019-12-9 16:04
**/
public class EntityPmScheduleViewWeekAction extends EmsSetupAction {
@Override
public ActionForward init(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
return cancel(mapping, form, request, response);
}
/**
* 在原代码逻辑中,只有在PM 取消时会跳转到这里.但是,又存在错误导致了回到EntityPmScheduleViewAction. 所以在此处,目前直接回到init方法.后续如果有功能需求,再行迁移
*/
public ActionForward view(ActionMapping mapping, EntityPmScheduleWeekForm theform, HttpServletRequest request,
HttpServletResponse response) throws Exception {
return init(mapping, theform, request, response);
}
}