Przeglądaj źródła

公出撤销逻辑调整

anderx 1 rok temu
rodzic
commit
fb3a529bf4

+ 10 - 9
src/main/java/com/goafanti/weChat/service/impl/PublicReleaseServiceImpl.java

@@ -368,15 +368,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 			throw new BusinessException("转换异常");
 		}
 		Map checkOrderNo =null;
-		if (in.getType() == 1) {
-			checkOrderNo = checkOrderNoDuration(in);
-			boolean isValid = (boolean) checkOrderNo.get("code");
-			if (isValid){
-				in.setTechStartProcess(0);
-			}else {
-				in.setTechStartProcess(1);
-			}
-		}
+
 		List<User> uses=null;
 		PublicRelease use = publicReleaseMapper.selectByPrimaryKey(in.getId());
 		in.setCreateTime(use.getCreateTime());
@@ -384,6 +376,15 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 		PublicReleaseLog log=new PublicReleaseLog(in.getId(),TokenManager.getAdminId(),null,in.getReason(),date);
 		in.setUserNames(userNames);
 		if(in.getStatus()==null||in.getStatus()!=3) {
+			if (in.getType() == 1) {
+				checkOrderNo = checkOrderNoDuration(in);
+				boolean isValid = (boolean) checkOrderNo.get("code");
+				if (isValid){
+					in.setTechStartProcess(0);
+				}else {
+					in.setTechStartProcess(1);
+				}
+			}
 			if (in.getUids()!=null){
 				List<String> split = Arrays.asList(in.getUids().split(","));
 				List<OutPublicReleaseDetails> prList = publicReleaseDetailsMapper.selectByPCid(in.getId());