zouxuan 4 年之前
父節點
當前提交
27350dea39

+ 11 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/entity/StudentGoodsSell.java

@@ -17,6 +17,9 @@ public class StudentGoodsSell {
 	
 	@ApiModelProperty(value = "用户编号",required = true)
 	private Integer userId;
+
+	@ApiModelProperty(value = "学生名称",required = true)
+	private String userName;
 	
 	@ApiModelProperty(value = "教师编号",required = true)
 	private Integer teacherId;
@@ -52,6 +55,14 @@ public class StudentGoodsSell {
 	@ApiModelProperty(value = "分部编号", required = false)
 	private Integer organId;
 
+	public String getUserName() {
+		return userName;
+	}
+
+	public void setUserName(String userName) {
+		this.userName = userName;
+	}
+
 	public Integer getOrganId() {
 		return organId;
 	}

+ 4 - 1
mec-student/src/main/java/com/ym/mec/student/controller/RepairController.java

@@ -144,6 +144,9 @@ public class RepairController extends BaseController {
     @ApiOperation(value = "获取学员商品订单")
     @GetMapping("/getStudentGoodsOrder")
     public Object getStudentGoodsOrder(Integer goodsSellId) {
-        return succeed(studentGoodsSellService.get(goodsSellId));
+        StudentGoodsSell studentGoodsSell = studentGoodsSellService.get(goodsSellId);
+        SysUser sysUser = sysUserFeignService.queryUserById(studentGoodsSell.getUserId());
+        studentGoodsSell.setUserName(sysUser.getUsername());
+        return succeed(studentGoodsSell);
     }
 }