|
|
@@ -5,10 +5,7 @@ import com.fs.company.service.IStatisticManageService;
|
|
|
import com.fs.statis.param.ComprehensiveStatisticsParam;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.util.Assert;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
@@ -25,9 +22,41 @@ public class StatisticManageController {
|
|
|
@Resource
|
|
|
private IStatisticManageService statisticManageService;
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取统计信息
|
|
|
+ * @param param
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@PostMapping("/statisticMain")
|
|
|
public R statisticMain(@RequestBody ComprehensiveStatisticsParam param) {
|
|
|
Assert.notNull(param.getDimension(), "请选择统计维度");
|
|
|
return R.ok().put("data", statisticManageService.statisticMain(param));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取公司下拉
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getSearchCompanyInfo")
|
|
|
+ public R getSearchCompanyInfo(){
|
|
|
+ return R.ok().put("data", statisticManageService.getSearchCompanyInfo());
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据公司id获取部门下拉
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getSearchDeptInfo")
|
|
|
+ public R getSearchDeptInfo(@RequestParam("id") Long id){
|
|
|
+ return R.ok().put("data", statisticManageService.getSearchDeptInfo(id));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据公司id获取部门下拉
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getSearchUserInfo")
|
|
|
+ public R getSearchUserInfo(@RequestParam("id") Long id){
|
|
|
+ return R.ok().put("data", statisticManageService.getSearchUserInfo(id));
|
|
|
+ }
|
|
|
}
|