|
@@ -2,11 +2,13 @@ package com.gyee.backconfig.controller;
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.gyee.backconfig.config.CacheContext;
|
|
|
import com.gyee.backconfig.config.R;
|
|
|
import com.gyee.backconfig.model.auto.ProBasicLine;
|
|
|
import com.gyee.backconfig.service.auto.IProBasicLineService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -26,7 +28,8 @@ import java.util.Arrays;
|
|
|
public class ProBasicLineController {
|
|
|
@Resource
|
|
|
private IProBasicLineService proBasicLineService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private CacheContext cacheContext;
|
|
|
/**
|
|
|
* 查询
|
|
|
* @param id
|
|
@@ -65,6 +68,7 @@ public class ProBasicLineController {
|
|
|
public R addModifyProjectPlan(@RequestBody ProBasicLine proBasicLine){
|
|
|
boolean saveOrUpdate = proBasicLineService.saveOrUpdate(proBasicLine);
|
|
|
if (saveOrUpdate) {
|
|
|
+ cacheContext.initLineList();
|
|
|
return R.ok().data("保存或更新成功");
|
|
|
}else{
|
|
|
return R.error().message("保存失败");
|