|
@@ -28,31 +28,33 @@ public class RefundManageController extends BaseController {
|
|
|
|
|
|
/**
|
|
|
* 根据身份证号带出关联房屋
|
|
|
+ *
|
|
|
* @param identityCard
|
|
|
* @return
|
|
|
*/
|
|
|
- @PostMapping(value = "getHouseListByIdCard",produces = {"application/json;charset=UTF-8"})
|
|
|
+ @PostMapping(value = "getHouseListByIdCard", produces = {"application/json;charset=UTF-8"})
|
|
|
@ResponseBody
|
|
|
- public List<ParkRoomResponse> getHouseListByIdCard(String identityCard){
|
|
|
+ public List<ParkRoomResponse> getHouseListByIdCard(String identityCard) {
|
|
|
|
|
|
List<ParkRoomResponse> result = modelService.getHouseListByIdCard(identityCard);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
- @PostMapping(value = "getById",produces = {"application/json;charset=UTF-8"})
|
|
|
+ @PostMapping(value = "getById", produces = {"application/json;charset=UTF-8"})
|
|
|
@ResponseBody
|
|
|
- public Object getById(String id){
|
|
|
+ public Object getById(String id) {
|
|
|
return modelService.getById(id);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 新增退款
|
|
|
+ *
|
|
|
* @param model
|
|
|
* @return
|
|
|
*/
|
|
|
- @PostMapping(value = "add",produces = {"application/json;charset=UTF-8"})
|
|
|
+ @PostMapping(value = "add", produces = {"application/json;charset=UTF-8"})
|
|
|
@ResponseBody
|
|
|
- public AjaxResult add(RefundManageDto model){
|
|
|
+ public AjaxResult add(RefundManageDto model) {
|
|
|
int result = modelService.add(model);
|
|
|
return result(result);
|
|
|
}
|
|
@@ -60,26 +62,32 @@ public class RefundManageController extends BaseController {
|
|
|
|
|
|
/**
|
|
|
* 编辑退款
|
|
|
+ *
|
|
|
* @param model
|
|
|
* @return
|
|
|
*/
|
|
|
- @PostMapping(value = "edit",produces = {"application/json;charset=UTF-8"})
|
|
|
+ @PostMapping(value = "edit", produces = {"application/json;charset=UTF-8"})
|
|
|
@ResponseBody
|
|
|
- public AjaxResult edit(RefundManageDto model){
|
|
|
+ public AjaxResult edit(RefundManageDto model) {
|
|
|
int result = modelService.edit(model);
|
|
|
return result(result);
|
|
|
}
|
|
|
|
|
|
|
|
|
- @PostMapping(value = "list",produces = {"application/json;charset=UTF-8"})
|
|
|
+ @PostMapping(value = "list", produces = {"application/json;charset=UTF-8"})
|
|
|
@ResponseBody
|
|
|
- public Object list(Tablepar tablepar, RefundManageDto model, DateTrans dt){
|
|
|
- PageInfo<RefundManageDto> page= modelService.listByModel(tablepar,model,dt);
|
|
|
+ public Object list(Tablepar tablepar, RefundManageDto model, DateTrans dt) {
|
|
|
+ PageInfo<RefundManageDto> page = modelService.listByModel(tablepar, model, dt);
|
|
|
TableSplitResult<RefundManageDto> result = new TableSplitResult<RefundManageDto>(page.getPageNum(), page.getTotal(), page.getList());
|
|
|
- return result;
|
|
|
+ return result;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ @PostMapping(value = "listAll", produces = {"application/json;charset=UTF-8"})
|
|
|
+ @ResponseBody
|
|
|
+ public Object list(RefundManageDto model) {
|
|
|
+ List<RefundManageDto> result = modelService.listAll(model);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|