package com.zy.crm.manager.controller;
|
|
import com.baomidou.mybatisplus.mapper.EntityWrapper;
|
import com.core.annotations.ManagerAuth;
|
import com.core.common.R;
|
import com.zy.crm.common.web.BaseController;
|
import com.zy.crm.manager.entity.Plan;
|
import com.zy.crm.manager.service.PlanService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
import java.util.Map;
|
|
@RestController
|
public class BIController extends BaseController {
|
|
@Autowired
|
private PlanService planService;
|
|
@RequestMapping(value = "/pending/approval/auth")
|
@ManagerAuth
|
public R get() {
|
// 传入用户id查询规划单 区分,通过区分出来的规划单类型查询 规划申请单
|
//
|
EntityWrapper<Plan> wrapper = new EntityWrapper<>();
|
wrapper.setSqlSelect("user_id");
|
wrapper.eq("settle",2).eq("assistant_host_sign",0).groupBy("user_id");
|
List<Map<String, Object>> maps = planService.selectMaps(wrapper);
|
return R.ok().add(maps);
|
}
|
}
|