Przeglądaj źródła

信息采集0元支付 用户信息校验

wjj 2 tygodni temu
rodzic
commit
750f61f6eb

+ 4 - 0
fs-service/src/main/java/com/fs/his/service/impl/FsPackageOrderServiceImpl.java

@@ -688,6 +688,10 @@ public class FsPackageOrderServiceImpl implements IFsPackageOrderService
         if (collection != null) {
 
             if (collection.getIsPackage() == 1 &&  !(collection.getAmount().compareTo(new BigDecimal(0))==1) && collection.getPayType() == 2) {
+                if (!collection.getUserId().equals(param.getUserId())) {
+                    TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
+                    return R.error("用户信息不匹配");
+                }
                 FsUserInformationCollectionSchedule schedule = scheduleMapper.selectCollectionScheduleByCollectionId(collection.getId());
                 if (schedule != null&&schedule.getStatus() != 1) {
                     TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();