|
@@ -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+"' and cDefine16 is null) or (mo.dVerifyTime>'"+lasttimeSf+"' and cDefine16 =1)) and mo.dChangeVerifyTime 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)) 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+"' and cDefine16 is null) or (mo.dVerifyTime>'"+lasttimeSf+"' and cDefine16 =1)) and mo.dChangeVerifyTime 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)) 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+"' and cDefine16 is null) or (mo.dVerifyTime>'"+lasttimeSf+"' and cDefine16 =1)) and mo.dChangeVerifyTime 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)) and mo.dChangeVerifyTime is null order by mo.dCreateTime desc";
|
|
|
|
|
|
List<Map<String, Object>> list = iSenYuDataSourceThree.queryForList(sql);
|
|
|
for(Map<String, Object> map:list){
|
|
@@ -178,7 +178,7 @@ public class MOMainController implements ApplicationContextAware {
|
|
|
|
|
|
Gson userGson = new GsonBuilder().create();
|
|
|
JSONObject jf = new JSONObject();
|
|
|
- jf.put("organizationId","36");
|
|
|
+ jf.put("organizationId","32");
|
|
|
result.put("pathVariableMap",jf);
|
|
|
result.put("payload", userGson.toJson(JsonChangeUtils.toMoMainJson(map)));
|
|
|
log.info("查询到的数据:" + result);
|