Bläddra i källkod

政策-审核修改

yangzian 3 år sedan
förälder
incheckning
f539b9f05d

+ 13 - 5
jeecg-boot-finance/src/main/java/org/jeecg/ctop/finance/policy/controller/CwjsPolicyInfoController.java

@@ -128,11 +128,19 @@ public class CwjsPolicyInfoController {
 	  * @param approvalContent 审核内容
 	  * @return
 	  */
-	 @GetMapping(value = "/policyApproval")
-	 public Result policyApproval(@RequestParam(name="id") Integer id,
-	 							@RequestParam(name="type") Integer type,
-								  @RequestParam(name="userId") String userId,
-								@RequestParam(name="approvalContent",required=false) String approvalContent) {
+	 @PostMapping(value = "/policyApproval")
+	 public Result policyApproval(@RequestBody JSONObject object
+	 		//@RequestParam(name="id") Integer id,
+	 							//@RequestParam(name="type") Integer type,
+								  //@RequestParam(name="userId") String userId,
+								//@RequestParam(name="approvalContent",required=false) String approvalContent
+								   ) {
+
+	 	Integer id = object.getInteger("id");
+		 Integer type = object.getInteger("type");
+		 String userId = object.getString("userId");
+		 String approvalContent = object.getString("approvalContent");
+
 
 		 CwjsPolicyInfo cwjsPolicyInfo = cwjsPolicyInfoService.getById(id);
 		 if (cwjsPolicyInfo == null) {