whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
src/main/java/com/fgkj/controller/Chart_ColorController.java
@@ -6,13 +6,14 @@
import com.fgkj.services.Chart_ColorService;
import com.fgkj.util.ActionUtil;
import io.swagger.annotations.Api;
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{
   @Resource
@@ -20,6 +21,7 @@
   //修改用户的颜色组
   @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();
@@ -38,11 +40,11 @@
   //查询用户对应得颜色组
   @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());
         model = service.serchByCondition(ccolor);