anderx 1 год назад
Родитель
Сommit
27926d144a

+ 4 - 0
src/main/java/com/goafanti/weChat/controller/AdminReleaseApiController.java

@@ -116,6 +116,10 @@ public class AdminReleaseApiController extends CertifyApiController{
 			res.getError().add(buildError("公出他人企业!需通过审核,才可以打卡!"));
 			return res;
 		}
+		if (x==-2){
+			res.getError().add(buildError("公出他人企业!需通过审核,才可以打卡!"));
+			return res;
+		}
 		res.setData(x);
 		return res;
 	}

+ 3 - 0
src/main/java/com/goafanti/weChat/service/impl/PublicReleaseServiceImpl.java

@@ -980,6 +980,9 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 		if (use.getPublicType()==1||use.getPublicType()==3){
 			return -1;
 		}
+		if (use.getTechStartProcess()==1||use.getTechStartProcess()==3){
+			return -2;
+		}
 		List<OutPublicReleaseDetails> prdList = publicReleaseDetailsMapper.selectByPCid(id);
 		String str = "";
 		boolean flag=false;