Jelajahi Sumber

Merge branch 'online1' of http://git.dayaedu.com/yonge/mec

zouxuan 4 tahun lalu
induk
melakukan
5af076296b

+ 14 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/dto/MusicArrearageStudentDto.java

@@ -1,5 +1,8 @@
 package com.ym.mec.biz.dal.dto;
 
+import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender;
+import io.swagger.annotations.ApiModelProperty;
+
 import java.math.BigDecimal;
 
 /**
@@ -32,6 +35,17 @@ public class MusicArrearageStudentDto {
 
     private BigDecimal noPaymentAmount;
 
+    @ApiModelProperty(value = "缴费类型", required = false)
+    private MusicGroupPaymentCalender.PaymentType paymentType;
+
+    public MusicGroupPaymentCalender.PaymentType getPaymentType() {
+        return paymentType;
+    }
+
+    public void setPaymentType(MusicGroupPaymentCalender.PaymentType paymentType) {
+        this.paymentType = paymentType;
+    }
+
     public Integer getUserId() {
         return userId;
     }

+ 21 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/entity/SysMusicScoreAccompaniment.java

@@ -52,6 +52,27 @@ public class SysMusicScoreAccompaniment {
 	/**  */
 	private java.util.Date updateTime;
 
+	//是否显示指法
+	private Boolean isShowFingering = true;
+
+	private String memo;
+
+	public Boolean getIsShowFingering() {
+		return isShowFingering;
+	}
+
+	public void setIsShowFingering(Boolean showFingering) {
+		isShowFingering = showFingering;
+	}
+
+	public String getMemo() {
+		return memo;
+	}
+
+	public void setMemo(String memo) {
+		this.memo = memo;
+	}
+
 	public Integer getCategoriesId() {
 		return categoriesId;
 	}

+ 13 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/page/ArrearageStudentsQueryInfo.java

@@ -1,6 +1,8 @@
 package com.ym.mec.biz.dal.page;
 
+import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender;
 import com.ym.mec.common.page.QueryInfo;
+import io.swagger.annotations.ApiModelProperty;
 
 /**
  * @Author Joburgess
@@ -16,6 +18,17 @@ public class ArrearageStudentsQueryInfo extends QueryInfo {
 
     private Integer eduTeacherId;
 
+    @ApiModelProperty(value = "缴费类型", required = false)
+    private MusicGroupPaymentCalender.PaymentType paymentType;
+
+    public MusicGroupPaymentCalender.PaymentType getPaymentType() {
+        return paymentType;
+    }
+
+    public void setPaymentType(MusicGroupPaymentCalender.PaymentType paymentType) {
+        this.paymentType = paymentType;
+    }
+
     public String getOrganIds() {
         return organIds;
     }

+ 10 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/page/SysExamSongQueryInfo.java

@@ -21,6 +21,16 @@ public class SysExamSongQueryInfo extends QueryInfo {
 
     private Integer parentId;
 
+    private Boolean isShowFingering;
+
+    public Boolean getIsShowFingering() {
+        return isShowFingering;
+    }
+
+    public void setIsShowFingering(Boolean showFingering) {
+        isShowFingering = showFingering;
+    }
+
     public Integer getParentId() {
         return parentId;
     }

+ 6 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/TeacherSalaryModifyLogServiceImpl.java

@@ -44,6 +44,12 @@ public class TeacherSalaryModifyLogServiceImpl extends BaseServiceImpl<Long, Tea
 		if(modifyLog.getCurrentExpectSalary().compareTo(modifyLog.getCurrentReduceSalary()) < 0){
 			throw new BizException("应发金额不应小于扣款金额");
 		}
+		if(salary.getExpectSalary() == null){
+			salary.setExpectSalary(BigDecimal.ZERO);
+		}
+		if(salary.getReduceSalary() == null){
+			salary.setReduceSalary(BigDecimal.ZERO);
+		}
 		modifyLog.setPreExpectSalary(salary.getExpectSalary());
 		modifyLog.setPreReduceSalary(salary.getReduceSalary());
 		modifyLog.setOperatorId(sysUser.getId());

+ 5 - 0
mec-biz/src/main/resources/config/mybatis/MusicGroupPaymentCalenderDetailMapper.xml

@@ -419,6 +419,7 @@
 		<result property="parentName" column="parent_name_"/>
 		<result property="phone" column="phone_"/>
 		<result property="noPaymentAmount" column="no_payment_amount_"/>
+		<result property="paymentType" column="payment_type_" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 	</resultMap>
 
 	<sql id="queryArrearageStudentsCondition">
@@ -445,6 +446,9 @@
 			<if test="search!=null and search!=''">
 				AND (mgpcd.user_id_=#{search} OR su.username_ LIKE CONCAT('%', #{search}, '%'))
 			</if>
+			<if test="paymentType!=null">
+				AND mgpc.payment_type_=#{paymentType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
+			</if>
 		</where>
 	</sql>
 
@@ -457,6 +461,7 @@
 			co.name_ cooperation_name_,
 		    mgpc.music_group_id_,
 			mg.name_ music_group_name_,
+		    mgpc.payment_type_,
 			edu.real_name_ edu_teacher_name_,
 			MAX( sub.name_ ) subject_name_,
 			su.gender_ gender_,

+ 19 - 2
mec-biz/src/main/resources/config/mybatis/SysMusicScoreAccompanimentMapper.xml

@@ -22,6 +22,8 @@
 		<result column="speed_" property="speed" />
 		<result column="create_time_" property="createTime" />
 		<result column="update_time_" property="updateTime" />
+		<result column="is_show_fingering_" property="isShowFingering" />
+		<result column="memo_" property="memo" />
 	</resultMap>
 
 	<delete id="deleteBySongId">
@@ -48,10 +50,10 @@
 		VALUES(#{examSongId},#{subjectId},#{mp3Url},#{speed},#{xmlUrl},NOW(),NOW())
 	</insert>
     <insert id="batchInsert">
-		INSERT INTO sys_music_score_accompaniment (exam_song_id_,subject_id_,mp3_url_,speed_,xml_url_,create_time_,update_time_)
+		INSERT INTO sys_music_score_accompaniment (exam_song_id_,subject_id_,mp3_url_,speed_,xml_url_,create_time_,update_time_,is_show_fingering_,memo_)
 		VALUES
 		<foreach collection="sysMusicScoreAccompaniments" item="item"  separator=",">
-			(#{sysMusicScoreId},#{item.subjectId},#{item.mp3Url},#{item.speed},#{item.xmlUrl},NOW(),NOW())
+			(#{sysMusicScoreId},#{item.subjectId},#{item.mp3Url},#{item.speed},#{item.xmlUrl},NOW(),NOW(),#{item.isShowFingering},#{item.memo})
 		</foreach>
 	</insert>
 
@@ -59,6 +61,12 @@
 	<update id="update" parameterType="com.ym.mec.biz.dal.entity.SysMusicScoreAccompaniment">
 		UPDATE sys_music_score_accompaniment
 		<set>
+		<if test="isShowFingering != null">
+			is_show_fingering_ = #{isShowFingering},
+		</if>
+		<if test="memo != null">
+			memo_ = #{memo},
+		</if>
 		<if test="subjectId != null">
 			subject_id_ = #{subjectId},
 		</if>
@@ -87,6 +95,12 @@
 		<foreach collection="sysMusicScoreAccompaniments" item="item" separator=";">
 			UPDATE sys_music_score_accompaniment
 			<set>
+				<if test="item.isShowFingering != null">
+					is_show_fingering_ = #{item.isShowFingering},
+				</if>
+				<if test="item.memo != null">
+					memo_ = #{item.memo},
+				</if>
 				<if test="item.speed != null">
 					speed_ = #{item.speed},
 				</if>
@@ -188,6 +202,9 @@
 			<if test="subjectId != null">
 				AND sesa.subject_id_ = #{subjectId}
 			</if>
+			<if test="isShowFingering != null">
+				AND sesa.is_show_fingering_ = #{isShowFingering}
+			</if>
 			<if test="type != null and type == 'COMMON'">
 				AND ses.type_ = #{type}
 			</if>