|
@@ -45,6 +45,8 @@ import java.util.*;
|
|
|
public class InvestmentOpportunityServiceImpl extends FlowServiceFactory implements IInvestmentOpportunityService
|
|
public class InvestmentOpportunityServiceImpl extends FlowServiceFactory implements IInvestmentOpportunityService
|
|
|
{
|
|
{
|
|
|
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
|
|
|
+ @Value("${spring.profiles.active}")
|
|
|
|
|
+ private String active;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private InvestmentOpportunityMapper investmentOpportunityMapper;
|
|
private InvestmentOpportunityMapper investmentOpportunityMapper;
|
|
|
|
|
|
|
@@ -223,8 +225,10 @@ public class InvestmentOpportunityServiceImpl extends FlowServiceFactory impleme
|
|
|
if (flowBaseInfo.isFlag()) {
|
|
if (flowBaseInfo.isFlag()) {
|
|
|
getAssignee(tProjectPool, flowBaseInfo);
|
|
getAssignee(tProjectPool, flowBaseInfo);
|
|
|
}
|
|
}
|
|
|
- //todo 短信
|
|
|
|
|
- //sendMessage(flowBaseInfo,"");
|
|
|
|
|
|
|
+ if (Objects.equals(active, "druid")) {
|
|
|
|
|
+ //todo 短信
|
|
|
|
|
+ sendMessage(flowBaseInfo,"");
|
|
|
|
|
+ }
|
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
|
}
|
|
}
|
|
|
return AjaxResult.error();
|
|
return AjaxResult.error();
|
|
@@ -394,8 +398,10 @@ public class InvestmentOpportunityServiceImpl extends FlowServiceFactory impleme
|
|
|
if(flow.isFlag()){
|
|
if(flow.isFlag()){
|
|
|
getAssignee(tProjectPool,flow);
|
|
getAssignee(tProjectPool,flow);
|
|
|
}
|
|
}
|
|
|
- //todo 短信
|
|
|
|
|
- //sendMessage(flow,result);
|
|
|
|
|
|
|
+ if (Objects.equals(active, "druid")) {
|
|
|
|
|
+ //todo 短信
|
|
|
|
|
+ sendMessage(flow,result);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
|
}
|
|
}
|