待办代码回滚3
This commit is contained in:
parent
78f7f84776
commit
37d00e3ec5
|
@ -40,16 +40,15 @@ public class BacklogServiceHandle extends AbstractServiceHandler {
|
||||||
|
|
||||||
private static final Log logger = LogFactory.getLog(BacklogServiceHandle.class);
|
private static final Log logger = LogFactory.getLog(BacklogServiceHandle.class);
|
||||||
|
|
||||||
private static final Object shkd_type =SystemParamServiceHelper.getPublicParameter("shkd_type");
|
|
||||||
|
|
||||||
private static final DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache();
|
|
||||||
|
|
||||||
public void createToDo(MessageContext ctx, ToDoInfo todoInfo) {
|
public void createToDo(MessageContext ctx, ToDoInfo todoInfo) {
|
||||||
logger.info("###创建待办_createToDo");
|
logger.info("###创建待办_createToDo");
|
||||||
boolean b = allowMobApprove(ctx, todoInfo);
|
boolean b = allowMobApprove(ctx, todoInfo);
|
||||||
logger.info("###推送结果为:" + b + "(true为不推送,false为推送)");
|
logger.info("###推送结果为:" + b + "(true为不推送,false为推送)");
|
||||||
|
Object shkd_type =SystemParamServiceHelper.getPublicParameter("shkd_type");
|
||||||
|
logger.info("###shkd_type参数为"+shkd_type);
|
||||||
|
|
||||||
if (!b) {
|
if (!b) {
|
||||||
logger.info("###shkd_type参数为"+shkd_type);
|
|
||||||
if (Objects.equals(shkd_type, "0")) {
|
if (Objects.equals(shkd_type, "0")) {
|
||||||
//旧 eoss 环境
|
//旧 eoss 环境
|
||||||
getToDoFormal(ctx, todoInfo);
|
getToDoFormal(ctx, todoInfo);
|
||||||
|
@ -64,6 +63,7 @@ public class BacklogServiceHandle extends AbstractServiceHandler {
|
||||||
logger.info("###结束待办_createToDo");
|
logger.info("###结束待办_createToDo");
|
||||||
try {
|
try {
|
||||||
//判断是否包含cache值
|
//判断是否包含cache值
|
||||||
|
DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache();
|
||||||
boolean contains = cache.contains(ctx.getBusinessKey());
|
boolean contains = cache.contains(ctx.getBusinessKey());
|
||||||
if(contains){
|
if(contains){
|
||||||
return;
|
return;
|
||||||
|
@ -236,6 +236,9 @@ public class BacklogServiceHandle extends AbstractServiceHandler {
|
||||||
form.append("}");
|
form.append("}");
|
||||||
Object shkd_cache = SystemParamServiceHelper.getPublicParameter("shkd_cache");
|
Object shkd_cache = SystemParamServiceHelper.getPublicParameter("shkd_cache");
|
||||||
int z = 0;
|
int z = 0;
|
||||||
|
DistributeSessionlessCache cache = CacheFactory.getCommonCacheFactory().getDistributeSessionlessCache();
|
||||||
|
Object shkd_type =SystemParamServiceHelper.getPublicParameter("shkd_type");
|
||||||
|
logger.info("###shkd_type参数为"+shkd_type);
|
||||||
if (Objects.equals(shkd_type, "0")) {
|
if (Objects.equals(shkd_type, "0")) {
|
||||||
//旧 eoss 环境 待办
|
//旧 eoss 环境 待办
|
||||||
CreateToDoHandler.get_CreateToDoHandler().sendCreateToDo(form.toString(), title, next.getLong("fid").toString(), userName1, next.getString("fbillno"));
|
CreateToDoHandler.get_CreateToDoHandler().sendCreateToDo(form.toString(), title, next.getLong("fid").toString(), userName1, next.getString("fbillno"));
|
||||||
|
@ -286,6 +289,8 @@ public class BacklogServiceHandle extends AbstractServiceHandler {
|
||||||
logger.info("###创建已办_dealToDo");
|
logger.info("###创建已办_dealToDo");
|
||||||
boolean b = allowMobApprove(ctx, info);
|
boolean b = allowMobApprove(ctx, info);
|
||||||
logger.info("###推送结果为:" + b + "(true为不推送,false为推送)");
|
logger.info("###推送结果为:" + b + "(true为不推送,false为推送)");
|
||||||
|
Object shkd_type =SystemParamServiceHelper.getPublicParameter("shkd_type");
|
||||||
|
logger.info("###shkd_type参数为"+shkd_type);
|
||||||
if (!b) {
|
if (!b) {
|
||||||
logger.info("###shkd_type参数为"+shkd_type);
|
logger.info("###shkd_type参数为"+shkd_type);
|
||||||
if (Objects.equals(shkd_type, "0")) {
|
if (Objects.equals(shkd_type, "0")) {
|
||||||
|
@ -308,6 +313,8 @@ public class BacklogServiceHandle extends AbstractServiceHandler {
|
||||||
logger.info("###创建撤销_deleteToDo");
|
logger.info("###创建撤销_deleteToDo");
|
||||||
boolean b = allowMobApprove(ctx, info);
|
boolean b = allowMobApprove(ctx, info);
|
||||||
logger.info("###推送结果为:" + b + "(true为不推送,false为推送)");
|
logger.info("###推送结果为:" + b + "(true为不推送,false为推送)");
|
||||||
|
Object shkd_type =SystemParamServiceHelper.getPublicParameter("shkd_type");
|
||||||
|
logger.info("###shkd_type参数为"+shkd_type);
|
||||||
if (!b) {
|
if (!b) {
|
||||||
logger.info("###shkd_type参数为"+shkd_type);
|
logger.info("###shkd_type参数为"+shkd_type);
|
||||||
if (Objects.equals(shkd_type, "0")) {
|
if (Objects.equals(shkd_type, "0")) {
|
||||||
|
|
Loading…
Reference in New Issue