|
@@ -17,6 +17,8 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
@Controller
|
|
@Controller
|
|
@RequestMapping(value = "MaintenanceFundsManagementController")
|
|
@RequestMapping(value = "MaintenanceFundsManagementController")
|
|
@Api(tags = "专项维修资金")
|
|
@Api(tags = "专项维修资金")
|
|
@@ -27,58 +29,70 @@ public class MaintenanceFundsManagementController extends BaseController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 分页
|
|
* 分页
|
|
|
|
+ *
|
|
* @param tablepar
|
|
* @param tablepar
|
|
* @param model
|
|
* @param model
|
|
* @param dt
|
|
* @param dt
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @PostMapping(value = "list",produces = {"application/json;charset=UTF-8"})
|
|
|
|
|
|
+ @PostMapping(value = "list", produces = {"application/json;charset=UTF-8"})
|
|
@ResponseBody
|
|
@ResponseBody
|
|
- public Object list(Tablepar tablepar, ContractManageDto model, DateTrans dt){
|
|
|
|
- PageInfo<ContractManageDto> page= modelService.listByModel(tablepar,model,dt);
|
|
|
|
|
|
+ public Object list(Tablepar tablepar, ContractManageDto model, DateTrans dt) {
|
|
|
|
+ PageInfo<ContractManageDto> page = modelService.listByModel(tablepar, model, dt);
|
|
TableSplitResult<ContractManageDto> result = new TableSplitResult<ContractManageDto>(page.getPageNum(), page.getTotal(), page.getList());
|
|
TableSplitResult<ContractManageDto> result = new TableSplitResult<ContractManageDto>(page.getPageNum(), page.getTotal(), page.getList());
|
|
- return result;
|
|
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping(value = "listAll", produces = {"application/json;charset=UTF-8"})
|
|
|
|
+ @ResponseBody
|
|
|
|
+ public Object listAll(ContractManageDto model) {
|
|
|
|
+ List<ContractManageDto> result = modelService.listAll(model);
|
|
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 收款登记
|
|
* 收款登记
|
|
|
|
+ *
|
|
* @param model
|
|
* @param model
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @PostMapping(value = "add",produces = {"application/json;charset=UTF-8"})
|
|
|
|
|
|
+ @PostMapping(value = "add", produces = {"application/json;charset=UTF-8"})
|
|
@ResponseBody
|
|
@ResponseBody
|
|
- public AjaxResult add(MaintenanceFundsManagement model){
|
|
|
|
|
|
+ public AjaxResult add(MaintenanceFundsManagement model) {
|
|
int result = modelService.add(model);
|
|
int result = modelService.add(model);
|
|
return result(result);
|
|
return result(result);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 收款登记 修改
|
|
* 收款登记 修改
|
|
|
|
+ *
|
|
* @param model
|
|
* @param model
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @PostMapping(value = "edit",produces = {"application/json;charset=UTF-8"})
|
|
|
|
|
|
+ @PostMapping(value = "edit", produces = {"application/json;charset=UTF-8"})
|
|
@ResponseBody
|
|
@ResponseBody
|
|
- public AjaxResult edit(MaintenanceFundsManagement model){
|
|
|
|
|
|
+ public AjaxResult edit(MaintenanceFundsManagement model) {
|
|
int result = modelService.edit(model);
|
|
int result = modelService.edit(model);
|
|
return result(result);
|
|
return result(result);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询对应的银行
|
|
* 查询对应的银行
|
|
|
|
+ *
|
|
* @param contractId
|
|
* @param contractId
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @PostMapping(value = "getBankByFloor",produces = {"application/json;charset=UTF-8"})
|
|
|
|
|
|
+ @PostMapping(value = "getBankByFloor", produces = {"application/json;charset=UTF-8"})
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public Object getBankByFloor(String contractId) {
|
|
public Object getBankByFloor(String contractId) {
|
|
- if(!StringUtils.isNotEmpty(contractId)){
|
|
|
|
|
|
+ if (!StringUtils.isNotEmpty(contractId)) {
|
|
return AjaxResult.error(503, "参数不能为空");
|
|
return AjaxResult.error(503, "参数不能为空");
|
|
}
|
|
}
|
|
return modelService.getBankByFloor(contractId);
|
|
return modelService.getBankByFloor(contractId);
|
|
}
|
|
}
|
|
|
|
|
|
- @PostMapping(value = "getById",produces = {"application/json;charset=UTF-8"})
|
|
|
|
|
|
+ @PostMapping(value = "getById", produces = {"application/json;charset=UTF-8"})
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public Object getById(String id) {
|
|
public Object getById(String id) {
|
|
|
|
|
|
@@ -86,7 +100,4 @@ public class MaintenanceFundsManagementController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|