feat: There is no way the

This commit is contained in:
super_liu
2021-10-12 14:40:39 +08:00
parent a016139168
commit a616db878d
@@ -42,6 +42,7 @@ import org.activiti.engine.task.Task;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@@ -64,6 +65,9 @@ import io.swagger.annotations.ApiOperation;
@RestController @RestController
public class TodoTaskController extends BaseAction { public class TodoTaskController extends BaseAction {
@Value("${oa.flag}")
private Boolean oaFlag;
@Autowired @Autowired
private TaskService taskService; private TaskService taskService;
@Autowired @Autowired
@@ -348,8 +352,10 @@ public class TodoTaskController extends BaseAction {
//发送OA已办 //发送OA已办
try { try {
//发送OA已办 if(oaFlag){
webServiceOAService.completeOA(task); //发送OA已办
webServiceOAService.completeOA(task);
}
}catch (Exception e){ }catch (Exception e){
logger.error(e.toString()); logger.error(e.toString());
} }
@@ -375,8 +381,11 @@ public class TodoTaskController extends BaseAction {
formValsService.saveFormVals(formSubmitDto, task.getTaskDefinitionKey()); formValsService.saveFormVals(formSubmitDto, task.getTaskDefinitionKey());
try { try {
//发送OA已办 if(oaFlag){
webServiceOAService.completeOA(task); //发送OA已办
webServiceOAService.completeOA(task);
}
}catch (Exception e){ }catch (Exception e){
logger.error(e.toString()); logger.error(e.toString());
} }