添加字段和表
parent
190ec316eb
commit
8902a34e4a
|
@ -5,10 +5,7 @@ import com.muyu.common.core.domain.Result;
|
|||
import com.muyu.common.domian.NodeJoint;
|
||||
import com.muyu.task.server.service.NodeJointService;
|
||||
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 org.springframework.web.bind.annotation.*;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("nodeJoint")
|
||||
|
@ -27,6 +24,14 @@ public class NodeJointController {
|
|||
return Result.success(save);
|
||||
}
|
||||
|
||||
@GetMapping("/{id}")
|
||||
public Result get(@PathVariable("id") Long id){
|
||||
QueryWrapper<NodeJoint> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq("node_id",id);
|
||||
NodeJoint one = nodeJointService.getOne(wrapper);
|
||||
return Result.success(one);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue