|
@@ -27,8 +27,8 @@ public class PropertyCompanyController {
|
|
|
* @param [pageNum, pageSize]
|
|
|
* @return cn.com.xwy.boot.web.dto.RestResponse
|
|
|
*/
|
|
|
- public RestResponse propertyCompanies(@RequestParam Integer pageNum, @RequestParam Integer pageSize) {
|
|
|
- return propertyCompanyService.propertyCompanyListResponse(pageNum, pageSize);
|
|
|
+ public RestResponse propertyCompanies(@RequestParam Long mtCompanyId,@RequestParam Integer pageNum, @RequestParam Integer pageSize) {
|
|
|
+ return propertyCompanyService.propertyCompanyListResponse(mtCompanyId,pageNum, pageSize);
|
|
|
}
|
|
|
|
|
|
@GetMapping("/{id}")
|
|
@@ -51,33 +51,33 @@ public class PropertyCompanyController {
|
|
|
/**
|
|
|
* @description 根据客户名称分页获取客户列表
|
|
|
* @date 2019/11/27 11:37
|
|
|
- * @param [name, current, size]
|
|
|
+ * @param [name, mtCompanyId, current, size]
|
|
|
* @return cn.com.xwy.boot.web.dto.RestResponse
|
|
|
*/
|
|
|
- public RestResponse propertyCompaniesFromName(@RequestParam String name, @RequestParam Integer pageNum, @RequestParam Integer pageSize) {
|
|
|
- return propertyCompanyService.propertyCompaniesFromRowName(pageNum, pageSize, "name", name);
|
|
|
+ public RestResponse propertyCompaniesFromName(@RequestParam String name,@RequestParam Long mtCompanyId, @RequestParam Integer pageNum, @RequestParam Integer pageSize) {
|
|
|
+ return propertyCompanyService.propertyCompaniesFromRowName(mtCompanyId,pageNum, pageSize, "name", name);
|
|
|
}
|
|
|
|
|
|
@GetMapping("/list/address")
|
|
|
/**
|
|
|
* @description 根据客户地址分页获取客户列表
|
|
|
* @date 2019/11/27 11:38
|
|
|
- * @param [address, current, size]
|
|
|
+ * @param [address, mtCompanyId, current, size]
|
|
|
* @return cn.com.xwy.boot.web.dto.RestResponse
|
|
|
*/
|
|
|
- public RestResponse propertyCompaniesFromAddress(@RequestParam String address, @RequestParam Integer pageNum, @RequestParam Integer pageSize) {
|
|
|
- return propertyCompanyService.propertyCompaniesFromRowName(pageNum, pageSize, "address", address);
|
|
|
+ public RestResponse propertyCompaniesFromAddress(@RequestParam String address,@RequestParam Long mtCompanyId, @RequestParam Integer pageNum, @RequestParam Integer pageSize) {
|
|
|
+ return propertyCompanyService.propertyCompaniesFromRowName(mtCompanyId,pageNum, pageSize, "address", address);
|
|
|
}
|
|
|
|
|
|
@GetMapping("/list/phone")
|
|
|
/**
|
|
|
* @description 根据客户电话分页获取客户列表
|
|
|
* @date 2019/11/27 11:39
|
|
|
- * @param [phone, current, size]
|
|
|
+ * @param [phone, mtCompanyId, current, size]
|
|
|
* @return cn.com.xwy.boot.web.dto.RestResponse
|
|
|
*/
|
|
|
- public RestResponse propertyCompaniesFromPhone(@RequestParam String phone, @RequestParam Integer pageNum, @RequestParam Integer pageSize) {
|
|
|
- return propertyCompanyService.propertyCompaniesFromRowName(pageNum, pageSize, "telephone", phone);
|
|
|
+ public RestResponse propertyCompaniesFromPhone(@RequestParam String phone, @RequestParam Long mtCompanyId,@RequestParam Integer pageNum, @RequestParam Integer pageSize) {
|
|
|
+ return propertyCompanyService.propertyCompaniesFromRowName(mtCompanyId,pageNum, pageSize, "telephone", phone);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/add")
|
|
@@ -132,4 +132,24 @@ public class PropertyCompanyController {
|
|
|
|
|
|
return RestResponse.ok(null, propertyCompanyService.delete(id));
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/list/current")
|
|
|
+ public RestResponse currentProject(@RequestParam Long id) {
|
|
|
+ //分页查询正在服务的项目列表
|
|
|
+ //分页查询正在服务的项目列表
|
|
|
+ //分页查询正在服务的项目列表
|
|
|
+ //分页查询正在服务的项目列表
|
|
|
+ //分页查询正在服务的项目列表
|
|
|
+ return RestResponse.ok(null, "待实现");
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/list/previous")
|
|
|
+ public RestResponse previousProject(@RequestParam Long id) {
|
|
|
+ //分页查询曾经服务的项目列表
|
|
|
+ //分页查询曾经服务的项目列表
|
|
|
+ //分页查询曾经服务的项目列表
|
|
|
+ //分页查询曾经服务的项目列表
|
|
|
+ //分页查询曾经服务的项目列表
|
|
|
+ return RestResponse.ok(null, "待实现");
|
|
|
+ }
|
|
|
}
|