gaodd 2 anni fa
parent
commit
51b3ed7ebd

+ 4 - 2
src/main/java/com/chinaitop/depot/business/service/impl/ReceiveNoticeServiceImpl.java

@@ -467,9 +467,11 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
467 467
         example.setOrderByClause("receive_time desc");
468 468
         List<BusinessNoticeReceive> list = businessNoticeReceiveMapper.selectByExample(example);
469 469
 		if(list.size()>0 && !list.get(0).getAuditState().equals(5)){
470
-			return 0;//都是审批过的
470
+			//查询到有未审批的数据
471
+			return 1;
471 472
 		}else{
472
-			return 1;//有未审批的
473
+			//没有查询到数据 或者都审批通过 就直接保存
474
+			return 0;
473 475
 		}
474 476
 		
475 477
 	}