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/Chart_ColorController.java |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/src/main/java/com/fgkj/controller/Chart_ColorController.java b/src/main/java/com/fgkj/controller/Chart_ColorController.java
index bc0f231..480ca48 100644
--- a/src/main/java/com/fgkj/controller/Chart_ColorController.java
+++ b/src/main/java/com/fgkj/controller/Chart_ColorController.java
@@ -1,32 +1,34 @@
 package com.fgkj.controller;
 
-import com.fgkj.util.*;
-
 import com.fgkj.dto.Chart_Color;
 import com.fgkj.dto.ServiceModel;
 import com.fgkj.dto.User_inf;
 import com.fgkj.services.Chart_ColorService;
+import com.fgkj.util.ActionUtil;
 import io.swagger.annotations.Api;
-import org.springframework.beans.factory.annotation.Autowired;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
 
 @RequestMapping("chartColor")
 @RestController
-@Api
+@Api(tags = "chartColor鎺ュ彛")
 public class Chart_ColorController{
 
-	@Autowired
+	@Resource
 	private Chart_ColorService service;
 
 	//淇敼鐢ㄦ埛鐨勯鑹茬粍
 	@PutMapping("/")
+	@ApiOperation(notes = "",value="淇敼鐢ㄦ埛鐨勯鑹茬粍")
 	public ServiceModel update(@RequestBody Chart_Color ccolor) {
 		// Chart_Color ccolor=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Chart_Color.class);
 		Object obj = ActionUtil.getUser();
 		ServiceModel model = new ServiceModel();
 		if(obj != null){
 			User_inf user = (User_inf)obj;
-			ccolor.setUid(user.getUId());
+			ccolor.setuId(user.getuId());
 			model=service.update(ccolor);
 		}else{
 			model.setCode(0);
@@ -38,13 +40,13 @@
 
 	//鏌ヨ鐢ㄦ埛瀵瑰簲寰楅鑹茬粍
 	@GetMapping("byCondition")
+	@ApiOperation(notes = "",value="鏌ヨ鐢ㄦ埛瀵瑰簲寰楅鑹茬粍")
     public ServiceModel serchByCondition() {
-		Object obj = (User_inf) ActionUtil.getUser();
+		User_inf user = (User_inf) ActionUtil.getUser();
 		ServiceModel model = new ServiceModel();
-		if(obj!=null){
-			User_inf user = (User_inf)obj;
+		if(user!=null){
 			Chart_Color ccolor = new Chart_Color();
-			ccolor.setUid(user.getUId());
+			ccolor.setuId(user.getuId());
 			model = service.serchByCondition(ccolor);
 		}else{
 			model.setCode(0);

--
Gitblit v1.9.1