|
|
|
@ -1,24 +1,16 @@ |
|
|
|
|
package com.yipin.liuwanr.controller; |
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
import com.yipin.liuwanr.entity.*; |
|
|
|
|
import com.yipin.liuwanr.service.ProjectManagementService; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
|
import org.springframework.web.bind.annotation.CrossOrigin; |
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
import com.yipin.liuwanr.entity.ProjectManagement; |
|
|
|
|
import com.yipin.liuwanr.service.ProjectManagementService; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
@Api(value = "项目管理", tags = "项目管理相关方法") |
|
|
|
|
@RestController |
|
|
|
@ -168,7 +160,8 @@ public class ProjectManagementController { |
|
|
|
|
@ApiParam(name = "systemId", value = "系统id", required = true) @RequestParam(required = false) Integer systemId, |
|
|
|
|
@ApiParam(name = "userId", value = "用户id", required = true) @RequestParam(required = false) Integer userId, |
|
|
|
|
@ApiParam(name = "pageNo", value = "第几页,页码", required = true) @RequestParam Integer pageNo, |
|
|
|
|
@ApiParam(name = "pageSize", value = "每页展示的数据条数", required = true) @RequestParam Integer pageSize) { |
|
|
|
|
@ApiParam(name = "pageSize", value = "每页展示的数据条数", required = true) @RequestParam Integer pageSize, |
|
|
|
|
@ApiParam(name = "projectName", value = "项目名称", required = true) @RequestParam String projectName) { |
|
|
|
|
Response resp = new Response(); |
|
|
|
|
ProjectManagement vo = new ProjectManagement(); |
|
|
|
|
if (null != systemId) { |
|
|
|
@ -177,6 +170,9 @@ public class ProjectManagementController { |
|
|
|
|
if (null != userId) { |
|
|
|
|
vo.setUserId(userId); |
|
|
|
|
} |
|
|
|
|
if (null != projectName) { |
|
|
|
|
vo.setProjectName(projectName); |
|
|
|
|
} |
|
|
|
|
HashMap<String, Object> ret = service.queryManagements(vo,pageNo,pageSize); |
|
|
|
|
int status = (int) ret.get("retcode"); |
|
|
|
|
if (status == 200) { |
|
|
|
|