ccj пре 2 година
родитељ
комит
f12e11ec14

+ 2 - 2
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/controller/BiInfoController.java

@@ -140,7 +140,7 @@ public class BiInfoController {
     public List<BiViewInfo> selectBiInfoNew(String compId, String seachMoth) {
         List<BiViewInfo> listRedis = cacheComponent.getObjList(Const.ADMIN_BI_INFO, BiViewInfo.class);
         if (listRedis != null && listRedis.size() > 0) {
-//            return listRedis;
+            return listRedis;
         }
         companyId = compId;
         List<BiViewInfo> biViewInfos = new ArrayList<>();
@@ -161,7 +161,7 @@ public class BiInfoController {
         // 在途
         getTranProess(biViewInfos);
 
-        cacheComponent.putRaw(Const.ADMIN_BI_INFO, JSONObject.toJSONString(biViewInfos), 60 * 60);
+        cacheComponent.putRaw(Const.ADMIN_BI_INFO, JSONObject.toJSONString(biViewInfos), 60 * 20);
         return biViewInfos;
     }
 

+ 2 - 1
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/WarehousingOrderServiceImpl.java

@@ -52,6 +52,7 @@ import org.apache.poi.ss.util.CellRangeAddress;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.mock.web.MockMultipartFile;
+import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.util.CollectionUtils;
@@ -249,7 +250,7 @@ public class WarehousingOrderServiceImpl extends ServiceImpl<WarehousingOrderMap
      * 每天16.30点更新
      */
     @Transactional
-//    @Scheduled(cron = "0 30 16 * * ?")
+    @Scheduled(cron = "0 30 16 * * ?")
     public String addInfo() {
         //当天零点
         SimpleDateFormat now = new SimpleDateFormat("yyyy-MM-dd 16:30:00");

+ 1 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/WarehouseInOutInfoMapper.xml

@@ -320,5 +320,6 @@
        where
         in_out_flag = ${type} AND  (in_out_date BETWEEN #{start} ANd #{end})
         and delete_flag = "0"
+        and status_flag = 3
     </select>
 </mapper>