|
@@ -87,8 +87,7 @@ public class POPomainController implements ApplicationContextAware {
|
|
String pkorgValue[] = pkorgStr.split(":");
|
|
String pkorgValue[] = pkorgStr.split(":");
|
|
String ac = pkorgValue[1];
|
|
String ac = pkorgValue[1];
|
|
if (pkorgValue[0].equals("one")) {
|
|
if (pkorgValue[0].equals("one")) {
|
|
- //ven.cVenName,mo.cVenCode mo.cPersonCode as salerId,hr.cPsn_Num as 'buyerId',
|
|
|
|
- //cAuditTime>'"+lasttimeSf+"' and mo.iverifystateex = 2
|
|
|
|
|
|
+ //or cChangAuditTime >'"+lasttimeSf+"'
|
|
String sql = "select mo.POID as 'moId','"+ac+"' as accId,'"+pkorgValue[0]+"' as pkorg,mo.cState as 'poStatus',mo.cPOID as 'poNum','STANDARD_PO' as 'poType'," +
|
|
String sql = "select mo.POID as 'moId','"+ac+"' as accId,'"+pkorgValue[0]+"' as pkorg,mo.cState as 'poStatus',mo.cPOID as 'poNum','STANDARD_PO' as 'poType'," +
|
|
"mo.cVenCode as 'supplierNumber','采购业务实体名称' as 'poBusinessUnitCode',ven.cVenName as 'supplierName',mo.cPersonCode as salerCode,hr.cPsn_Num as 'headerAttributeString9'," +
|
|
"mo.cVenCode as 'supplierNumber','采购业务实体名称' as 'poBusinessUnitCode',ven.cVenName as 'supplierName',mo.cPersonCode as salerCode,hr.cPsn_Num as 'headerAttributeString9'," +
|
|
"ven.cVenPerson as 'supplierContacts',ven.cVenBranchPhone as 'supplierContactsPhone'," +
|
|
"ven.cVenPerson as 'supplierContacts',ven.cVenBranchPhone as 'supplierContactsPhone'," +
|
|
@@ -106,7 +105,7 @@ public class POPomainController implements ApplicationContextAware {
|
|
"on mo.cPersonCode = hr1.cPsn_Num " +
|
|
"on mo.cPersonCode = hr1.cPsn_Num " +
|
|
"left join foreigncurrency curr " +
|
|
"left join foreigncurrency curr " +
|
|
"on mo.cexch_name = curr.cexch_name " +
|
|
"on mo.cexch_name = curr.cexch_name " +
|
|
- "where ((cAuditTime>'"+lasttimeSf+"' or cChangAuditTime >'"+lasttimeSf+"' and cDefine16 is null) or(cAuditTime>'"+lasttimeSf+"' or cChangAuditTime >'"+lasttimeSf+"' and cDefine16 = 1)) and mo.iverifystateex = 2 order by mo.cAuditTime desc";
|
|
|
|
|
|
+ "where ((cAuditTime>'"+lasttimeSf+"' and cDefine16 is null) or(cAuditTime>'"+lasttimeSf+"' and cDefine16 = 1)) and mo.iverifystateex = 2 and mo.cChangAuditTime is null order by mo.cAuditTime desc";
|
|
List<Map<String, Object>> list = senYuDataSourceOne.queryForList(sql);
|
|
List<Map<String, Object>> list = senYuDataSourceOne.queryForList(sql);
|
|
for(Map<String, Object> map:list){
|
|
for(Map<String, Object> map:list){
|
|
sumlist.add(map);
|
|
sumlist.add(map);
|
|
@@ -131,7 +130,7 @@ public class POPomainController implements ApplicationContextAware {
|
|
"on mo.cPersonCode = hr1.cPsn_Num " +
|
|
"on mo.cPersonCode = hr1.cPsn_Num " +
|
|
"left join foreigncurrency curr " +
|
|
"left join foreigncurrency curr " +
|
|
"on mo.cexch_name = curr.cexch_name " +
|
|
"on mo.cexch_name = curr.cexch_name " +
|
|
- "where ((cAuditTime>'"+lasttimeSf+"' or cChangAuditTime >'"+lasttimeSf+"' and cDefine16 is null) or(cAuditTime>'"+lasttimeSf+"' or cChangAuditTime >'"+lasttimeSf+"' and cDefine16 = 1)) and mo.iverifystateex = 2 order by mo.cAuditTime desc";
|
|
|
|
|
|
+ "where ((cAuditTime>'"+lasttimeSf+"' and cDefine16 is null) or(cAuditTime>'"+lasttimeSf+"' and cDefine16 = 1)) and mo.iverifystateex = 2 and mo.cChangAuditTime is null order by mo.cAuditTime desc";
|
|
List<Map<String, Object>> list = senYuDataSourceTwo.queryForList(sql);
|
|
List<Map<String, Object>> list = senYuDataSourceTwo.queryForList(sql);
|
|
for(Map<String, Object> map:list){
|
|
for(Map<String, Object> map:list){
|
|
sumlist.add(map);
|
|
sumlist.add(map);
|
|
@@ -155,7 +154,7 @@ public class POPomainController implements ApplicationContextAware {
|
|
"on mo.cPersonCode = hr1.cPsn_Num " +
|
|
"on mo.cPersonCode = hr1.cPsn_Num " +
|
|
"left join foreigncurrency curr " +
|
|
"left join foreigncurrency curr " +
|
|
"on mo.cexch_name = curr.cexch_name " +
|
|
"on mo.cexch_name = curr.cexch_name " +
|
|
- "where ((cAuditTime>'"+lasttimeSf+"' or cChangAuditTime >'"+lasttimeSf+"' and cDefine16 is null) or(cAuditTime>'"+lasttimeSf+"' or cChangAuditTime >'"+lasttimeSf+"' and cDefine16 = 1)) and mo.iverifystateex = 2 order by mo.cAuditTime desc";
|
|
|
|
|
|
+ "where ((cAuditTime>'"+lasttimeSf+"' and cDefine16 is null) or(cAuditTime>'"+lasttimeSf+"' and cDefine16 = 1)) and mo.iverifystateex = 2 and mo.cChangAuditTime is null order by mo.cAuditTime desc";
|
|
List<Map<String, Object>> list = iSenYuDataSourceThree.queryForList(sql);
|
|
List<Map<String, Object>> list = iSenYuDataSourceThree.queryForList(sql);
|
|
for(Map<String, Object> map:list){
|
|
for(Map<String, Object> map:list){
|
|
sumlist.add(map);
|
|
sumlist.add(map);
|