|
@@ -4,7 +4,6 @@ import com.steerinfo.auth.utils.JwtUtil;
|
|
|
import com.steerinfo.ems.Utils.DateUtils;
|
|
|
import com.steerinfo.ems.tmaintenancefile.model.TMaintenanceFile;
|
|
|
import com.steerinfo.ems.tmaintenancefile.service.ITMaintenanceFileService;
|
|
|
-import com.steerinfo.ems.tsubmitted.model.TSubmitted;
|
|
|
import com.steerinfo.framework.controller.BaseRESTfulController;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import com.steerinfo.framework.service.pagehelper.PageList;
|
|
@@ -48,18 +47,19 @@ import java.util.stream.Collectors;
|
|
|
public class TMaintenanceController extends BaseRESTfulController {
|
|
|
/** 文件保存路径 */
|
|
|
public static final String FILE_DIR = "/static/";
|
|
|
+
|
|
|
@Autowired
|
|
|
ITMaintenanceService tMaintenanceService;
|
|
|
@Autowired
|
|
|
private FtpFileUtil ftpFileUtil;
|
|
|
@Autowired
|
|
|
ITMaintenanceFileService tMaintenanceFileService;
|
|
|
+
|
|
|
@ApiOperation(value="获取列表", notes="分页查询")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
|
@ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
|
|
|
})
|
|
|
- //@RequiresPermissions("tmaintenance:view")
|
|
|
@GetMapping(value = "/")
|
|
|
public RESTfulResult list(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
|
|
|
PageList<TMaintenance> list = tMaintenanceService.queryForPage(parmas, pageNum, pageSize);
|