Commit cc5a5a74 by xieshaohua

ctrlservice修改

parent cef4ec8d
...@@ -18,6 +18,7 @@ import io.swagger.annotations.ApiParam; ...@@ -18,6 +18,7 @@ import io.swagger.annotations.ApiParam;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -27,9 +28,7 @@ import java.util.List; ...@@ -27,9 +28,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
@Api(value = "标签相关", tags = "标签相关") @Service
@RestController
//@PreAuthorize("principal.authorities.?[authority.startsWith('ROLE_tagmanager_operator')].size() > 0")
public class TagCtrlService { public class TagCtrlService {
@Autowired @Autowired
......
...@@ -10,6 +10,7 @@ import io.swagger.annotations.Api; ...@@ -10,6 +10,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
...@@ -19,9 +20,7 @@ import java.io.InputStream; ...@@ -19,9 +20,7 @@ import java.io.InputStream;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@Api(value = "文件", tags = "文件") @Service
@RestController
@RequestMapping(value = "/file")
public class TagFileCtrlService { public class TagFileCtrlService {
@Autowired @Autowired
...@@ -57,6 +56,10 @@ public class TagFileCtrlService { ...@@ -57,6 +56,10 @@ public class TagFileCtrlService {
public Page listImportTagLogByPage(String deptIdPath,Integer pageNo,Integer pageSize) { public Page listImportTagLogByPage(String deptIdPath,Integer pageNo,Integer pageSize) {
String userName = UserInfoUtils.getUserName(); String userName = UserInfoUtils.getUserName();
System.out.println(userName);
System.out.println(pageNo);
System.out.println(pageSize);
System.out.println(tagExportService);
return tagExportService.listImportlogByPage(userName, new Page(pageSize, pageNo)); return tagExportService.listImportlogByPage(userName, new Page(pageSize, pageNo));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment