yonge 5 anni fa
parent
commit
c4190dc6e0

+ 17 - 19
mec-web/src/main/java/com/ym/mec/web/controller/StudentWithdrawController.java

@@ -7,7 +7,6 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.bind.annotation.RestController;
 
 
@@ -22,22 +21,21 @@ import com.ym.mec.common.controller.BaseController;
 @RestController
 @RestController
 public class StudentWithdrawController extends BaseController {
 public class StudentWithdrawController extends BaseController {
 
 
-    @Autowired
-    private StudentWithdrawService studentWithdrawService;
-
-
-    @PostMapping("confirm")
-    @ApiOperation(value = "确认提现")
-    @PreAuthorize("@pcs.hasPermissions('studentWithdraw/confirm')")
-    public Object confirmWithdraw(Integer id,DealStatusEnum status,String memo,String transNo,TransTypeEnum transType) {
-        studentWithdrawService.confirmWithdraw(withdrawDto);
-        return succeed();
-    }
-
-    @ApiOperation(value = "分页查询")
-    @GetMapping("/queryPage")
-    @PreAuthorize("@pcs.hasPermissions('studentWithdraw/queryPage')")
-    public Object queryPage(WithdrawDto queryInfo) {
-        return succeed(studentWithdrawService.queryPage(queryInfo));
-    }
+	@Autowired
+	private StudentWithdrawService studentWithdrawService;
+
+	@PostMapping("confirm")
+	@ApiOperation(value = "确认提现")
+	@PreAuthorize("@pcs.hasPermissions('studentWithdraw/confirm')")
+	public Object confirmWithdraw(Integer id, DealStatusEnum status, String memo, String transNo, TransTypeEnum transType) {
+		studentWithdrawService.confirmWithdraw(id, status, memo, transNo, transType);
+		return succeed();
+	}
+
+	@ApiOperation(value = "分页查询")
+	@GetMapping("/queryPage")
+	@PreAuthorize("@pcs.hasPermissions('studentWithdraw/queryPage')")
+	public Object queryPage(WithdrawDto queryInfo) {
+		return succeed(studentWithdrawService.queryPage(queryInfo));
+	}
 }
 }