Browse Source

优化积余订餐推送的代码

longmeizhen@avic-s.com 2 years ago
parent
commit
c39cbaa09a

+ 5 - 0
src/main/java/com/palmnest/service/dinner/service/impl/PlaceAnOrderServiceImpl.java

@@ -1637,6 +1637,11 @@ public class PlaceAnOrderServiceImpl implements PlaceAnOrderService{
 
 
 		if(StringUtils.isNotEmpty(orgId)){
 		if(StringUtils.isNotEmpty(orgId)){
 			orgIds = orgId;
 			orgIds = orgId;
+			OrderDinnerSet orderDinnerSet = orderDinnerSetManager.findByOrgId(Integer.parseInt(orgId));
+			if(null != orderDinnerSet && "0".equals(orderDinnerSet.getStatus())){
+				LOG.info("sendTempMsg orgId:"+orgId +";该项目未开启订餐提醒,不推送");
+				return;
+			}
 		}else{
 		}else{
 			String newOrgs=serviceProjectAllocationManager.getServiceProjectByServiceCode("DCFW");
 			String newOrgs=serviceProjectAllocationManager.getServiceProjectByServiceCode("DCFW");
 			LOG.info("sendTempMsg/orgIds:"+newOrgs);
 			LOG.info("sendTempMsg/orgIds:"+newOrgs);