|
@@ -129,7 +129,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
}
|
|
}
|
|
|
|
|
|
public void option(){
|
|
public void option(){
|
|
- FormulaOption formulaOption = this.formulaOptionService.getOne(Wrappers.<FormulaOption>lambdaQuery().eq(FormulaOption::getParentId, tec.getCurrentNode().getRelateId()).eq(FormulaOption::getContractId, tec.getContractId()));
|
|
|
|
|
|
+ FormulaOption formulaOption = this.formulaOptionService.getById(tec.getCurrentNode().getPkId());
|
|
if (formulaOption != null) {
|
|
if (formulaOption != null) {
|
|
tec.constantMap.put(FMOT, JSON.parseObject(formulaOption.getVal(), LinkedHashMap.class));
|
|
tec.constantMap.put(FMOT, JSON.parseObject(formulaOption.getVal(), LinkedHashMap.class));
|
|
}
|
|
}
|
|
@@ -709,7 +709,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
}
|
|
}
|
|
});
|
|
});
|
|
if(dateList.size()>0){
|
|
if(dateList.size()>0){
|
|
- List<Map<String,Object>> listMap= this.jdbcTemplate.queryForList(" select DATE(b.record_time) ds,b.weather from m_project_contract_area a join u_weather_info b on a.id=contract_area_id where a.contract_id="+tec.getContractId()+" and DATE(b.record_time) in('"+ String.join(",", dateList) +"')");
|
|
|
|
|
|
+ List<Map<String,Object>> listMap= this.jdbcTemplate.queryForList(" select DATE(b.record_time) ds,b.weather from m_project_contract_area a join u_weather_info b on a.id=contract_area_id where a.contract_id="+tec.getContractId()+" and DATE(b.record_time) in('"+ dateList.stream().distinct().collect(Collectors.joining("','")) +"')");
|
|
Map<String,String> map= new HashMap<>();
|
|
Map<String,String> map= new HashMap<>();
|
|
listMap.forEach(m->{
|
|
listMap.forEach(m->{
|
|
map.put(Func.toStr(m.get("ds")),Func.toStr(m.get("weather")));
|
|
map.put(Func.toStr(m.get("ds")),Func.toStr(m.get("weather")));
|