|
@@ -7,6 +7,7 @@ import com.fs.company.service.workflow.prompt.SystemPromptService;
|
|
|
import com.fs.framework.security.LoginUser;
|
|
import com.fs.framework.security.LoginUser;
|
|
|
import com.fs.framework.service.TokenService;
|
|
import com.fs.framework.service.TokenService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.context.annotation.Profile;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -120,7 +121,7 @@ public class LobsterPromptController extends BaseController {
|
|
|
@DeleteMapping("/{id}")
|
|
@DeleteMapping("/{id}")
|
|
|
public AjaxResult delete(@PathVariable Long id) {
|
|
public AjaxResult delete(@PathVariable Long id) {
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
- jdbcTemplate.update("UPDATE " + TABLE + " SET enabled=0, update_time=NOW() WHERE id=? AND company_id=?",
|
|
|
|
|
|
|
+ jdbcTemplate.update("UPDATE " + TABLE + " SET enabled=0, update_time=NOW() WHERE id=? AND company_id=?",
|
|
|
id, loginUser.getCompany().getCompanyId());
|
|
id, loginUser.getCompany().getCompanyId());
|
|
|
if (promptService != null) promptService.refreshCache();
|
|
if (promptService != null) promptService.refreshCache();
|
|
|
return AjaxResult.success("删除成功");
|
|
return AjaxResult.success("删除成功");
|