|
@@ -1,29 +1,16 @@
|
|
package com.management.platform.controller;
|
|
package com.management.platform.controller;
|
|
|
|
|
|
|
|
|
|
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.management.platform.entity.BusinessTrip;
|
|
import com.management.platform.entity.BusinessTrip;
|
|
-import com.management.platform.entity.Department;
|
|
|
|
-import com.management.platform.entity.LeaveSheet;
|
|
|
|
-import com.management.platform.entity.User;
|
|
|
|
-import com.management.platform.entity.vo.SysRichFunction;
|
|
|
|
-import com.management.platform.mapper.DepartmentMapper;
|
|
|
|
-import com.management.platform.mapper.SysFunctionMapper;
|
|
|
|
import com.management.platform.mapper.UserMapper;
|
|
import com.management.platform.mapper.UserMapper;
|
|
import com.management.platform.service.BusinessTripService;
|
|
import com.management.platform.service.BusinessTripService;
|
|
-import com.management.platform.service.DepartmentService;
|
|
|
|
-import com.management.platform.service.LeaveSheetService;
|
|
|
|
import com.management.platform.util.HttpRespMsg;
|
|
import com.management.platform.util.HttpRespMsg;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
-
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
-import java.util.ArrayList;
|
|
|
|
-import java.util.List;
|
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -64,8 +51,8 @@ public class BusinessTripController {
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping("/list")
|
|
@RequestMapping("/list")
|
|
- public HttpRespMsg list(BusinessTrip sheet, @RequestParam Integer pageIndex, @RequestParam Integer pageSize) {
|
|
|
|
- return businessTripService.queryList(sheet, pageIndex, pageSize);
|
|
|
|
|
|
+ public HttpRespMsg list(BusinessTrip sheet, @RequestParam Integer pageIndex, @RequestParam Integer pageSize,@RequestParam(defaultValue = "0") Integer checkState) {
|
|
|
|
+ return businessTripService.queryList(sheet, pageIndex, pageSize,checkState);
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping("/approve")
|
|
@RequestMapping("/approve")
|