Browse Source

训练营报备审核添加备注

mac 2 years ago
parent
commit
ad065b99b9

+ 2 - 6
kxs-system/kxs-system-biz/src/main/java/com/kxs/system/biz/service/impl/KxsCampReportServiceImpl.java

@@ -81,11 +81,8 @@ public class KxsCampReportServiceImpl extends ServiceImpl<KxsCampReportMapper, K
             throw new GlobalCustomerException("该报备已审核");
         }
         campReport.setCreateBy(param.getCreateBy());
-        //审核拒绝
-        if(param.getStatus() == -1) {
-            campReport.setStatus(param.getStatus());
-            campReport.setRemark(param.getRemark());
-        }
+        campReport.setStatus(param.getStatus());
+        campReport.setRemark(param.getRemark());
         KxsCamp kxsCamp = kxsCampMapper.selectById(campReport.getCampId());
         Optional.ofNullable(kxsCamp).orElseThrow(() -> new GlobalCustomerException("训练营不存在"));
         //审核通过
@@ -94,7 +91,6 @@ public class KxsCampReportServiceImpl extends ServiceImpl<KxsCampReportMapper, K
 
                 throw new GlobalCustomerException("该报备已失效");
             }
-            campReport.setStatus(param.getStatus());
 
             KxsCampUser kxsCampUser = kxsCampUserMapper.selectOne(Wrappers.<KxsCampUser>lambdaQuery()
                     .eq(KxsCampUser::getCampId, kxsCamp.getId())