|
@@ -92,8 +92,8 @@ public class MOMainController implements ApplicationContextAware {
|
|
|
for (String str : pkorgSplit) {
|
|
|
String pkorgStr = str;
|
|
|
String pkorgValue[] = pkorgStr.split(":");
|
|
|
- String ac = pkorgValue[1];
|
|
|
- if (pkorgValue[0].equals("one")) {//mo.cPersonCode as 'salerId',hr.cPsn_Num as 'buyerId',
|
|
|
+ String ac = pkorgValue[1]; //or mo.dChangeVerifyTime >'"+lasttimeSf+"'
|
|
|
+ if (pkorgValue[0].equals("one")) {
|
|
|
String sql = "select mo.MOID as 'moId',mo.MOID as 'moId','"+ac+"' as accId,'"+pkorgValue[0]+"' as pkorg,mo.cState as 'poStatus'," +
|
|
|
"mo.cCode as 'poNum','SUBCONTRACTOR_PO' as 'poType',mo.cVenCode as 'supplierNumber',ven.cVenName as 'supplierName'," +
|
|
|
"ven.cVenPerson as 'supplierContacts',ven.cVenBranchPhone as 'supplierContactsPhone',mo.cPersonCode as 'salerCode',hr.cPsn_Num as 'headerAttributeString9'," +
|
|
@@ -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) or (mo.dVerifyTime>'"+lasttimeSf+"' or mo.dChangeVerifyTime >'"+lasttimeSf+"' and cDefine16 =1)) order by mo.dCreateTime desc";
|
|
|
+ " where mo.iVerifyStateNew = 2 and ((mo.dVerifyTime>'"+lasttimeSf+"' and cDefine16 is null) or (mo.dVerifyTime>'"+lasttimeSf+"' and cDefine16 =1)) and mo.dChangeVerifyTime is null 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) or (mo.dVerifyTime>'"+lasttimeSf+"' or mo.dChangeVerifyTime >'"+lasttimeSf+"' and cDefine16 =1)) order by mo.dCreateTime desc";
|
|
|
+ " where mo.iVerifyStateNew = 2 and ((mo.dVerifyTime>'"+lasttimeSf+"' and cDefine16 is null) or (mo.dVerifyTime>'"+lasttimeSf+"' and cDefine16 =1)) and mo.dChangeVerifyTime is null 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) or (mo.dVerifyTime>'"+lasttimeSf+"' or mo.dChangeVerifyTime >'"+lasttimeSf+"' and cDefine16 =1)) order by mo.dCreateTime desc";
|
|
|
+ " where mo.iVerifyStateNew = 2 and ((mo.dVerifyTime>'"+lasttimeSf+"' and cDefine16 is null) or (mo.dVerifyTime>'"+lasttimeSf+"' and cDefine16 =1)) and mo.dChangeVerifyTime is null order by mo.dCreateTime desc";
|
|
|
|
|
|
List<Map<String, Object>> list = iSenYuDataSourceThree.queryForList(sql);
|
|
|
for(Map<String, Object> map:list){
|