Kaynağa Gözat

时间获取修改

zxl 4 yıl önce
ebeveyn
işleme
4492416d53

+ 2 - 2
src/main/java/com/uas/eis/serviceImpl/LingxingServiceImpl.java

@@ -45,12 +45,12 @@ public class LingxingServiceImpl implements LingxingService {
             Calendar calendar = Calendar.getInstance();
             calendar.add(Calendar.DATE, -1);
             //判断是否有对接记录13
-            int count = baseDao.getCountByCondition("MESSAGELOGLX", "MLL_RESULT='对接订单完成'");
+            int count = baseDao.getCountByCondition("MESSAGELOGLX", "MLL_RESULT='对接订单完成' and MLL_APPID = '"+appId+"'");
             if (count == 0) {
                 startdate = new SimpleDateFormat("yyyy-MM-dd").format(calendar.getTime());
                 enddate = new SimpleDateFormat("yyyy-MM-dd").format(calendar.getTime());
             } else {
-                Object start = baseDao.getFieldDataByCondition("MESSAGELOGLX", "max(to_char(MLL_DATE,'yyyy-mm-dd'))", "MLL_RESULT='对接订单完成'");
+                Object start = baseDao.getFieldDataByCondition("MESSAGELOGLX", "max(to_char(MLL_DATE,'yyyy-mm-dd'))", "MLL_RESULT='对接订单完成' and MLL_APPID = '"+appId+"'");
                 startdate = start.toString();
                 enddate = new SimpleDateFormat("yyyy-MM-dd").format(calendar.getTime());
             }