fix 组织架构sql问题
This commit is contained in:
parent
b589056585
commit
7df8602e97
|
|
@ -74,7 +74,7 @@ public class OrgChartServiceImpl extends Service implements OrgChartService {
|
|||
}
|
||||
|
||||
String whereSql = " where 1 = 1 ";
|
||||
whereSql += " and (fdatebegin <= '"+ date +"' and fdateend >= '"+ date +"') or (fdatebegin <= '"+ date +"' and fdateend is null ) ";
|
||||
whereSql += " and ((fdatebegin <= '"+ date +"' and fdateend >= '"+ date +"') or (fdatebegin <= '"+ date +"' and fdateend is null )) ";
|
||||
whereSql += " and fclass = " + fclass +" ";
|
||||
|
||||
if("0".equals(fisvitual)) {
|
||||
|
|
@ -158,7 +158,7 @@ public class OrgChartServiceImpl extends Service implements OrgChartService {
|
|||
}
|
||||
|
||||
String whereSql = " where 1 = 1 ";
|
||||
whereSql += " and (t.fdatebegin <= '"+ date +"' and t.fdateend >= '"+ date +"') or (t.fdatebegin <= '"+ date +"' and t.fdateend is null ) ";
|
||||
whereSql += " and ((t.fdatebegin <= '"+ date +"' and t.fdateend >= '"+ date +"') or (t.fdatebegin <= '"+ date +"' and t.fdateend is null )) ";
|
||||
whereSql += " and t.fclass = " + fclass +" ";
|
||||
|
||||
if("0".equals(fisvitual)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue