From 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4 Mon Sep 17 00:00:00 2001
From: whycrzg <ruanzhigang@whycst.com>
Date: 星期二, 23 二月 2021 17:19:23 +0800
Subject: [PATCH] update

---
 src/main/java/com/fgkj/controller/User_battmaint_check_processController.java |   28 ++++++++++++++++------------
 1 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/src/main/java/com/fgkj/controller/User_battmaint_check_processController.java b/src/main/java/com/fgkj/controller/User_battmaint_check_processController.java
index e0de996..7311b08 100644
--- a/src/main/java/com/fgkj/controller/User_battmaint_check_processController.java
+++ b/src/main/java/com/fgkj/controller/User_battmaint_check_processController.java
@@ -1,28 +1,32 @@
 package com.fgkj.controller;
 
+import com.fgkj.util.*;
+
 import com.fgkj.dto.ServiceModel;
 import com.fgkj.dto.User_battmaint_check;
 import com.fgkj.services.User_battmaint_check_processService;
-import com.opensymphony.xwork2.ActionSupport;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
 
 @RequestMapping("mainCheckProcess")
 @RestController
-@Api
+@Api(tags = "mainCheckProcess鎺ュ彛")
 public class User_battmaint_check_processController{
-	@Autowired
+	@Resource
 	private User_battmaint_check_processService service;
 
 	//4.10鏍规嵁User_battmaint_check鐨刵um鏌ヨUser_battmaint_check_process瀵瑰簲鐨勬暟鎹�
-	@GetMapping("byCondition")
-    public ServiceModel serchByCondition(@RequestBody User_battmaint_check ubc){
-    	ServiceModel model=service.serchByCondition(ubc);
-    	return model;
-    }
+	@PostMapping("byCondition")
+	@ApiOperation(notes = "where task_rec_id=#{num}",value="鏍规嵁User_battmaint_check鐨刵um鏌ヨUser_battmaint_check_process瀵瑰簲鐨勬暟鎹�")
+    public ServiceModel serchByCondition(@RequestParam Integer num) {
+		User_battmaint_check ubc = new User_battmaint_check();
+		ubc.setNum(num);
+		ServiceModel model = service.serchByCondition(ubc);
+		return model;
+	}
 
 }

--
Gitblit v1.9.1