@@ -32,7 +32,7 @@ public class PreviewMenuTreeService { | |||||
public R treeAll(@SwParam("module") String module, UserSession us) { | public R treeAll(@SwParam("module") String module, UserSession us) { | ||||
String prj_id = ModelProjectCache.getInstance().getIdByModule(module); | String prj_id = ModelProjectCache.getInstance().getIdByModule(module); | ||||
if(!SwConsts.SYS_DEBUG){ | |||||
if(!SwConsts.SysParam.SYS_DEBUG){ | |||||
List<MenuVO> menuVOList = buildMenu(prj_id, module, us); | List<MenuVO> menuVOList = buildMenu(prj_id, module, us); | ||||
if (PubUtil.isNotEmpty(menuVOList)) { | if (PubUtil.isNotEmpty(menuVOList)) { | ||||
return R.success(menuVOList); | return R.success(menuVOList); | ||||
@@ -47,9 +47,9 @@ public class FlowHelper { | |||||
" where r.trl_dst_task_id=? and t.tsk_handler=?", task_id, user_id); | " where r.trl_dst_task_id=? and t.tsk_handler=?", task_id, user_id); | ||||
} | } | ||||
public static void stopTask(long billId) { | |||||
public static void stopTask(long billId, long tskId) { | |||||
DbEngine.getInstance().update("update " + EntityHelper.getSchemaTableName(Task.ENTITY_NAME) + | DbEngine.getInstance().update("update " + EntityHelper.getSchemaTableName(Task.ENTITY_NAME) + | ||||
" set tsk_statu=? where tsk_pri_id=? and tsk_statu<?", FlowConst.ActivityStatu.STOP.value, billId, FlowConst.ActivityStatu.SUBMIT.value); | |||||
" set tsk_statu=? where tsk_pri_id=? and tsk_id<>? and tsk_statu<?", FlowConst.ActivityStatu.STOP.value, billId,tskId, FlowConst.ActivityStatu.SUBMIT.value); | |||||
} | } | ||||
/** | /** | ||||
@@ -799,8 +799,9 @@ public class FlowInstance { | |||||
buildRejectTask(toTask, listInsertTask, listInsertCand, listTaskRel, listTaskComment); | buildRejectTask(toTask, listInsertTask, listInsertCand, listTaskRel, listTaskComment); | ||||
} | } | ||||
actInst.setStatu(FlowConst.ActivityStatu.REJECT.value); | |||||
//先停止其他待办或办理中的任务 | //先停止其他待办或办理中的任务 | ||||
FlowHelper.stopTask(procInst.getId()); | |||||
FlowHelper.stopTask(procInst.getId(), actInst.getId()); | |||||
//保存入库 | //保存入库 | ||||
if (!listInsertTask.isEmpty()) { | if (!listInsertTask.isEmpty()) { | ||||
getTaskDao().batchInsertEntity(listInsertTask); | getTaskDao().batchInsertEntity(listInsertTask); | ||||
@@ -1,6 +1,5 @@ | |||||
package cc.smtweb.framework.core.cache; | package cc.smtweb.framework.core.cache; | ||||
import cc.smtweb.framework.core.CoreAutoConfiguration; | |||||
import cc.smtweb.framework.core.annotation.SwCache; | import cc.smtweb.framework.core.annotation.SwCache; | ||||
import cc.smtweb.framework.core.cache.redis.RedisBroadcastEvent; | import cc.smtweb.framework.core.cache.redis.RedisBroadcastEvent; | ||||
import cc.smtweb.framework.core.cache.redis.RedisManager; | import cc.smtweb.framework.core.cache.redis.RedisManager; | ||||
@@ -110,7 +109,7 @@ public abstract class AbstractCache<T extends Serializable> implements ISwCache< | |||||
* 否则,非lazy,从数据库加载,并更新redis | * 否则,非lazy,从数据库加载,并更新redis | ||||
*/ | */ | ||||
protected void init() { | protected void init() { | ||||
if (!SwConsts.SYS_DEBUG && RedisManager.getInstance().exists(getIdent())) { | |||||
if (!SwConsts.SysParam.SYS_DEBUG && RedisManager.getInstance().exists(getIdent())) { | |||||
log.info("从redis同步缓存!(" + getTitle() + ")"); | log.info("从redis同步缓存!(" + getTitle() + ")"); | ||||
//从缓存服务器下载到本地 | //从缓存服务器下载到本地 | ||||
syncCache(); | syncCache(); | ||||
@@ -5,13 +5,13 @@ package cc.smtweb.framework.core.common; | |||||
*/ | */ | ||||
public interface SwConsts { | public interface SwConsts { | ||||
class SysParam { | class SysParam { | ||||
//开发调试模式 | |||||
public static final boolean SYS_DEBUG = true; | |||||
//系统启动完成 | //系统启动完成 | ||||
public static boolean SYS_STARTED = false; | public static boolean SYS_STARTED = false; | ||||
//运行的项目,多个用半角逗号分隔 | //运行的项目,多个用半角逗号分隔 | ||||
public static String RUN_PROJECTS = "bpm"; | public static String RUN_PROJECTS = "bpm"; | ||||
} | } | ||||
//开发调试模式 | |||||
boolean SYS_DEBUG = true; | |||||
int DEFAULT_ORDER = 1; | int DEFAULT_ORDER = 1; | ||||