whycrzh
2021-01-23 d1491636bcc06c9bb23b4955c3d8d0bfe7749e6d
src/main/java/com/fgkj/controller/Chart_ColorController.java
@@ -1,21 +1,21 @@
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 org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@RequestMapping("chartColor")
@RestController
@Api
public class Chart_ColorController{
   @Autowired
   @Resource
   private Chart_ColorService service;
   //修改用户的颜色组
@@ -26,7 +26,7 @@
      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);
@@ -44,7 +44,7 @@
      if(obj!=null){
         User_inf user = (User_inf)obj;
         Chart_Color ccolor = new Chart_Color();
         ccolor.setUid(user.getUId());
         ccolor.setuId(user.getuId());
         model = service.serchByCondition(ccolor);
      }else{
         model.setCode(0);