zouxuan vor 2 Jahren
Ursprung
Commit
f46abfb5cd

+ 3 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/entity/StudentMusicCourseFee.java

@@ -13,6 +13,9 @@ public class StudentMusicCourseFee extends BaseEntity {
 	@ApiModelProperty(value = "收费类型编号",required = false)
 	private Integer id;
 
+	@ApiModelProperty(value = "学员编号",required = false)
+	private Integer userId;
+
 	@ApiModelProperty(value = "收费类型编号",required = false)
 	private Integer organId;
 

+ 7 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentMusicCourseFeeServiceImpl.java

@@ -14,5 +14,12 @@ public class StudentMusicCourseFeeServiceImpl extends ServiceImpl<StudentMusicCo
     public StudentMusicCourseFeeDao getDao() {
         return this.baseMapper;
     }
+
+    @Override
+    public boolean updateById(StudentMusicCourseFee entity) {
+        this.lambdaQuery().eq(StudentMusicCourseFee::getMusicGroupId,entity.getMusicGroupId())
+                .eq(StudentMusicCourseFee::getUserId,entity.getUserId()).one();
+        return super.save(entity);
+    }
 }