|
@@ -245,6 +245,17 @@ public class AppraiseRelaLogic {
|
|
|
throw new RemoteServiceException("申诉理由不能为空");
|
|
|
}
|
|
|
|
|
|
+ if (isAdd) {
|
|
|
+
|
|
|
+ Integer count = pgAppraiseApplyService.lambdaQuery()
|
|
|
+ .eq(PgAppraiseApply::getIsSecond, false)
|
|
|
+ .eq(PgAppraiseApply::getOrderBaseId, bean.getOrderBaseId())
|
|
|
+ .count();
|
|
|
+ if (count > 0) {
|
|
|
+ throw new RemoteServiceException("已申诉, 提交失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
final PgOrderBase orderBase = pgOrderBaseService.getById(bean.getOrderBaseId());
|
|
|
|
|
|
if (adminUser.getType() == 0 && !adminUser.getAdminWebsitIds().contains(orderBase.getWebsitId())) {
|
|
@@ -292,17 +303,6 @@ public class AppraiseRelaLogic {
|
|
|
|
|
|
|
|
|
if (superCount == 0) {
|
|
|
- if (isAdd) {
|
|
|
-
|
|
|
- Integer count = pgAppraiseApplyService.lambdaQuery()
|
|
|
- .eq(PgAppraiseApply::getIsSecond, false)
|
|
|
- .eq(PgAppraiseApply::getOrderBaseId, bean.getOrderBaseId())
|
|
|
- .count();
|
|
|
- if (count > 0) {
|
|
|
- throw new RemoteServiceException("已申诉, 提交失败");
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
Date overTime = Objects.nonNull(orderBase.getOverTime()) ? orderBase.getOverTime() : orderBase.getWebsitOverTime();
|
|
|
DateTime endTime;
|
|
|
|
|
@@ -327,6 +327,7 @@ public class AppraiseRelaLogic {
|
|
|
}
|
|
|
bean.setIsSecond(applyCount > 1);
|
|
|
|
|
|
+
|
|
|
|
|
|
Integer waitCount = pgAppraiseApplyService.lambdaQuery()
|
|
|
.eq(PgAppraiseApply::getOrderBaseId, bean.getOrderBaseId())
|