package cn.com.lzt.common.controller; import org.jeecgframework.core.common.controller.BaseController; import org.jeecgframework.core.common.model.json.AjaxJson; import org.jeecgframework.core.util.MutiLangUtil; import org.jeecgframework.core.util.oConvertUtils; import org.jeecgframework.web.cgform.service.build.DataBaseService; import org.jeecgframework.web.system.service.SystemService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; /** * 公共处理的controller * @author yulong.zhao * @date 2017年8月4日下午1:34:49 * */ @Controller @RequestMapping("/pubController") public class PubController extends BaseController { @Autowired private SystemService systemService; @Autowired private DataBaseService dataBaseService; /**pubController.do?checkRetractable * 根据流程实例判断流程是否可以撤回 * @param procInstId * @return */ @RequestMapping(params = "checkRetractable") @ResponseBody public AjaxJson checkRetractable(String procInstId) { AjaxJson j = new AjaxJson(); try{ if (oConvertUtils.isNotEmpty(procInstId)) { j.setSuccess(systemService.isShowRetract(procInstId)); }else { j.setSuccess(false); } j.setMsg("申请中不可撤回!"); }catch(Exception e){ e.printStackTrace(); } return j; } }