| | |
| | | import com.zy.crm.manager.service.CstmrService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | |
| | | return R.ok(cstmrService.getPage(new Page<>(curr, limit) |
| | | , getHostId() |
| | | , String.valueOf(param.get("dept_id")) |
| | | , param.get("condition")) |
| | | , condition) |
| | | ); |
| | | } else { |
| | | if (Cools.isEmpty(param.get("user_id"))) { |
| | | wrapper.andNew(); |
| | | wrapper.eq("user_id", getUserId()); |
| | | } |
| | | return R.ok(cstmrService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | } |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /*************************************** 数据相关 ***********************************************/ |
| | | |
| | | /** |
| | | * excel导入 |
| | | */ |
| | | @PostMapping(value = "/cstmr/excel/import/auth") |
| | | @ManagerAuth |
| | | public R cstmrExcelImport(MultipartFile file) throws IOException { |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * excel导出 |
| | | */ |
| | | @PostMapping(value = "/cstmr/excel/export/auth") |
| | | @ManagerAuth |
| | | public void cstmrExcelExport(HttpServletResponse response) throws IOException { |
| | | |
| | | } |
| | | |
| | | } |