|
@@ -15,6 +15,7 @@ import com.kxs.system.api.vo.admin.camp.ReportCampPageVO;
|
|
|
import com.kxs.system.biz.constant.enums.CampStatusEnum;
|
|
import com.kxs.system.biz.constant.enums.CampStatusEnum;
|
|
|
import com.kxs.system.biz.service.*;
|
|
import com.kxs.system.biz.service.*;
|
|
|
import com.pig4cloud.plugin.excel.annotation.RequestExcel;
|
|
import com.pig4cloud.plugin.excel.annotation.RequestExcel;
|
|
|
|
|
+import com.pig4cloud.plugin.excel.annotation.ResponseExcel;
|
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.Valid;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springdoc.core.annotations.ParameterObject;
|
|
import org.springdoc.core.annotations.ParameterObject;
|
|
@@ -160,14 +161,25 @@ public class SysCampController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/pageLog")
|
|
@GetMapping("/pageLog")
|
|
|
// @PreAuthorize("@pms.hasPermission('sys_camp_change_list')")
|
|
// @PreAuthorize("@pms.hasPermission('sys_camp_change_list')")
|
|
|
- public R pageLog(Page<CampBonusLogVO> page, @ParameterObject CampPageLogDTO param) {
|
|
|
|
|
|
|
+ public R pageLog(Page<CampBonusLogVO> page, @Valid @ParameterObject CampPageLogDTO param) {
|
|
|
|
|
|
|
|
- if(param.getCampId() == null){
|
|
|
|
|
- return R.failed("训练营ID不能为空");
|
|
|
|
|
- }
|
|
|
|
|
return R.ok(kxsCampBonusLogService.getSysPage(page, param));
|
|
return R.ok(kxsCampBonusLogService.getSysPage(page, param));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 训练营-日志列表
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param param 查询实体
|
|
|
|
|
+ * @return 训练营-扣除记录
|
|
|
|
|
+ */
|
|
|
|
|
+ @ResponseExcel
|
|
|
|
|
+ @GetMapping("/exportLog")
|
|
|
|
|
+// @PreAuthorize("@pms.hasPermission('sys_camp_change_list')")
|
|
|
|
|
+ public List<CampBonusLogVO> exportLog(@Valid @ParameterObject CampPageLogDTO param) {
|
|
|
|
|
+
|
|
|
|
|
+ return kxsCampBonusLogService.exportLog(param);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 训练营-报备列表
|
|
* 训练营-报备列表
|
|
|
*
|
|
*
|