ccj преди 2 години
родител
ревизия
7e425e8f82

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

@@ -1569,7 +1569,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
         if (personCharge == null || personCharge.isEmpty()) {
             personCharge = AuthSecurityUtils.getStaffById(AuthSecurityUtils.getCurrentUserId()).getStaffMobilePhone();
         }
-        List<WarehouseBaseInfo> listRedis = cacheComponent.getObjList(Const.SELF_WAREHOUSE+personCharge,WarehouseBaseInfo.class);
+        List<WarehouseBaseInfo> listRedis = cacheComponent.getObjList(Const.SELF_WAREHOUSE+personCharge+compId,WarehouseBaseInfo.class);
         if(listRedis != null && listRedis.size() > 0 ){
             return listRedis;
         }
@@ -1697,7 +1697,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
             }
 
         }
-        cacheComponent.putRaw(Const.SELF_WAREHOUSE+personCharge,JSONObject.toJSONString(warehouseBaseInfoList),60*60*24);
+        cacheComponent.putRaw(Const.SELF_WAREHOUSE+personCharge+compId,JSONObject.toJSONString(warehouseBaseInfoList),60*60*24);
         return warehouseBaseInfoList;
     }
 

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

@@ -277,7 +277,7 @@ public class WarehousingOrderServiceImpl extends ServiceImpl<WarehousingOrderMap
      * 每天16.30点更新
      */
     @Transactional(rollbackFor = Exception.class)
-    @Scheduled(cron = "0 30 16 * * ?")
+//    @Scheduled(cron = "0 30 16 * * ?")
     public String addInfo() {
         //当天零点
         SimpleDateFormat now = new SimpleDateFormat("yyyy-MM-dd 16:30:00");