|
@@ -152,8 +152,17 @@ public class AppraiseApplyController {
|
|
|
|
|
|
@PostMapping("/apply/confirm")
|
|
@PostMapping("/apply/confirm")
|
|
@ApiOperation(value = "评价申诉-审核")
|
|
@ApiOperation(value = "评价申诉-审核")
|
|
- public ResponseHelper applyConfirm(@RequestBody PgAppraiseApplyBean bean) {
|
|
|
|
- appraiseRelaLogic.applyConfirm(bean);
|
|
|
|
|
|
+ public ResponseHelper applyConfirm(@RequestBody PgAppraiseApplyBean bean) throws Exception {
|
|
|
|
+ Lock obtain = redisLockRegistry.obtain(Constant.RedisPrefix.LOCK_ORDER + bean.getId());
|
|
|
|
+ if (!obtain.tryLock(10, TimeUnit.SECONDS)) {
|
|
|
|
+ throw new RemoteServiceException("处理中,请稍后再试");
|
|
|
|
+ }
|
|
|
|
+ try {
|
|
|
|
+ appraiseRelaLogic.applyConfirm(bean);
|
|
|
|
+ } finally {
|
|
|
|
+ obtain.unlock();
|
|
|
|
+ }
|
|
|
|
+
|
|
return ResponseHelper.success();
|
|
return ResponseHelper.success();
|
|
}
|
|
}
|
|
|
|
|