|
@@ -112,7 +112,7 @@ public class MOMainController implements ApplicationContextAware {
|
|
|
" on mo.cPersonCode = hr1.cPsn_Num " +
|
|
|
" left join foreigncurrency curr " +
|
|
|
" on mo.cexch_name = curr.cexch_name " +
|
|
|
- " where mo.iVerifyStateNew = 2 and (mo.dVerifyTime>'"+lasttimeSf+"' or mo.dChangeVerifyTime >'"+lasttimeSf+"') and cDefine16 is null order by mo.dCreateTime desc";
|
|
|
+ " where mo.iVerifyStateNew = 2 and ((mo.dVerifyTime>'"+lasttimeSf+"' or mo.dChangeVerifyTime >'"+lasttimeSf+"' and cDefine16 is null) or (mo.dVerifyTime>'"+lasttimeSf+"' or mo.dChangeVerifyTime >'"+lasttimeSf+"' and cDefine16 =1)) order by mo.dCreateTime desc";
|
|
|
|
|
|
List<Map<String, Object>> list = senYuDataSourceOne.queryForList(sql);
|
|
|
for(Map<String, Object> map:list){
|
|
@@ -137,7 +137,7 @@ public class MOMainController implements ApplicationContextAware {
|
|
|
" on mo.cPersonCode = hr1.cPsn_Num " +
|
|
|
" left join foreigncurrency curr " +
|
|
|
" on mo.cexch_name = curr.cexch_name " +
|
|
|
- " where mo.iVerifyStateNew = 2 and (mo.dVerifyTime>'"+lasttimeSf+"' or mo.dChangeVerifyTime >'"+lasttimeSf+"') and cDefine16 is null order by mo.dCreateTime desc";
|
|
|
+ " where mo.iVerifyStateNew = 2 and ((mo.dVerifyTime>'"+lasttimeSf+"' or mo.dChangeVerifyTime >'"+lasttimeSf+"' and cDefine16 is null) or (mo.dVerifyTime>'"+lasttimeSf+"' or mo.dChangeVerifyTime >'"+lasttimeSf+"' and cDefine16 =1)) order by mo.dCreateTime desc";
|
|
|
|
|
|
List<Map<String, Object>> list = senYuDataSourceTwo.queryForList(sql);
|
|
|
for(Map<String, Object> map:list){
|
|
@@ -162,7 +162,7 @@ public class MOMainController implements ApplicationContextAware {
|
|
|
" on mo.cPersonCode = hr1.cPsn_Num " +
|
|
|
" left join foreigncurrency curr " +
|
|
|
" on mo.cexch_name = curr.cexch_name " +
|
|
|
- " where mo.iVerifyStateNew = 2 and (mo.dVerifyTime>'"+lasttimeSf+"' or mo.dChangeVerifyTime >'"+lasttimeSf+"') and cDefine16 is null order by mo.dCreateTime desc";
|
|
|
+ " where mo.iVerifyStateNew = 2 and ((mo.dVerifyTime>'"+lasttimeSf+"' or mo.dChangeVerifyTime >'"+lasttimeSf+"' and cDefine16 is null) or (mo.dVerifyTime>'"+lasttimeSf+"' or mo.dChangeVerifyTime >'"+lasttimeSf+"' and cDefine16 =1)) order by mo.dCreateTime desc";
|
|
|
|
|
|
List<Map<String, Object>> list = iSenYuDataSourceThree.queryForList(sql);
|
|
|
for(Map<String, Object> map:list){
|