|
|
|
@ -0,0 +1,28 @@ |
|
|
|
package com.spring.modules.project.controller; |
|
|
|
|
|
|
|
|
|
|
|
import com.spring.common.utils.R; |
|
|
|
import com.spring.modules.project.data.PlmProjectPartData; |
|
|
|
import com.spring.modules.project.entity.PlmProjectPart; |
|
|
|
import com.spring.modules.project.service.ProjectService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
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.RestController; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/project/part") |
|
|
|
public class ProjectPartController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ProjectService projectService; |
|
|
|
|
|
|
|
@PostMapping |
|
|
|
public R queryProjectPart(@RequestBody PlmProjectPart part){ |
|
|
|
List<PlmProjectPart> list = projectService.queryProjectPart(part); |
|
|
|
return R.ok().put("rows", list); |
|
|
|
} |
|
|
|
} |