zouxuan 5 years ago
parent
commit
a2d8ec7ad2

+ 7 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/dao/TeacherSalaryModifyLogDao.java

@@ -0,0 +1,7 @@
+package com.ym.mec.biz.dal.dao;
+
+import com.ym.mec.biz.dal.entity.TeacherSalaryModifyLog;
+import com.ym.mec.common.dal.BaseDAO;
+
+public interface TeacherSalaryModifyLogDao extends BaseDAO<Long, TeacherSalaryModifyLog> {
+}

+ 106 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/entity/TeacherSalaryModifyLog.java

@@ -0,0 +1,106 @@
+package com.ym.mec.biz.dal.entity;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class TeacherSalaryModifyLog {
+	private Long id;
+
+	private Integer teacherId;
+
+	private Long courseScheduleId;
+
+	private BigDecimal preExpectSalary;
+
+	private BigDecimal preReduceSalary;
+
+	private BigDecimal currentExpectSalary;
+
+	private BigDecimal currentReduceSalary;
+
+	private String memo;
+
+	private Integer operatorId;
+
+	private Date createTime;
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public Integer getTeacherId() {
+		return teacherId;
+	}
+
+	public void setTeacherId(Integer teacherId) {
+		this.teacherId = teacherId;
+	}
+
+	public Long getCourseScheduleId() {
+		return courseScheduleId;
+	}
+
+	public void setCourseScheduleId(Long courseScheduleId) {
+		this.courseScheduleId = courseScheduleId;
+	}
+
+	public BigDecimal getPreExpectSalary() {
+		return preExpectSalary;
+	}
+
+	public void setPreExpectSalary(BigDecimal preExpectSalary) {
+		this.preExpectSalary = preExpectSalary;
+	}
+
+	public BigDecimal getPreReduceSalary() {
+		return preReduceSalary;
+	}
+
+	public void setPreReduceSalary(BigDecimal preReduceSalary) {
+		this.preReduceSalary = preReduceSalary;
+	}
+
+	public BigDecimal getCurrentExpectSalary() {
+		return currentExpectSalary;
+	}
+
+	public void setCurrentExpectSalary(BigDecimal currentExpectSalary) {
+		this.currentExpectSalary = currentExpectSalary;
+	}
+
+	public BigDecimal getCurrentReduceSalary() {
+		return currentReduceSalary;
+	}
+
+	public void setCurrentReduceSalary(BigDecimal currentReduceSalary) {
+		this.currentReduceSalary = currentReduceSalary;
+	}
+
+	public String getMemo() {
+		return memo;
+	}
+
+	public void setMemo(String memo) {
+		this.memo = memo;
+	}
+
+	public Integer getOperatorId() {
+		return operatorId;
+	}
+
+	public void setOperatorId(Integer operatorId) {
+		this.operatorId = operatorId;
+	}
+
+	public Date getCreateTime() {
+		return createTime;
+	}
+
+	public void setCreateTime(Date createTime) {
+		this.createTime = createTime;
+	}
+}

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

@@ -0,0 +1,7 @@
+package com.ym.mec.biz.service;
+
+import com.ym.mec.biz.dal.entity.TeacherSalaryModifyLog;
+import com.ym.mec.common.service.BaseService;
+
+public interface TeacherSalaryModifyLogService extends BaseService<Long, TeacherSalaryModifyLog> {
+}

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

@@ -0,0 +1,21 @@
+package com.ym.mec.biz.service.impl;
+
+import com.ym.mec.biz.dal.dao.TeacherSalaryModifyLogDao;
+import com.ym.mec.biz.dal.entity.TeacherSalaryModifyLog;
+import com.ym.mec.biz.service.TeacherSalaryModifyLogService;
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.common.service.impl.BaseServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class TeacherSalaryModifyLogServiceImpl extends BaseServiceImpl<Long, TeacherSalaryModifyLog>  implements TeacherSalaryModifyLogService {
+	
+	@Autowired
+	private TeacherSalaryModifyLogDao teacherSalaryModifyLogDao;
+
+	@Override
+	public BaseDAO<Long, TeacherSalaryModifyLog> getDAO() {
+		return teacherSalaryModifyLogDao;
+	}
+}

+ 38 - 0
mec-biz/src/main/resources/config/mybatis/TeacherSalaryModifyLogMapper.xml

@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.biz.dal.dao.TeacherSalaryModifyLogDao">
+
+    <resultMap type="com.ym.mec.biz.dal.entity.TeacherSalaryModifyLog" id="TeacherSalaryModifyLog">
+        <result column="id_" property="id"/>
+        <result column="teacher_id_" property="teacherId"/>
+        <result column="course_schedule_id_" property="courseScheduleId"/>
+        <result column="pre_expect_salary_" property="preExpectSalary"/>
+        <result column="pre_reduce_salary_" property="preReduceSalary"/>
+        <result column="current_expect_salary_" property="currentExpectSalary"/>
+        <result column="current_reduce_salary_" property="currentReduceSalary"/>
+        <result column="memo_" property="memo"/>
+        <result column="operator_id_" property="operatorId"/>
+        <result column="create_time_" property="createTime"/>
+    </resultMap>
+
+    <!-- 根据主键查询一条记录 -->
+    <select id="get" resultMap="TeacherSalaryModifyLog">
+		SELECT * FROM teacher_salary_modify_log WHERE id_ = #{id}
+	</select>
+
+    <!-- 全查询 -->
+    <select id="findAll" resultMap="TeacherSalaryModifyLog">
+		SELECT * FROM teacher_salary_modify_log ORDER BY id_
+	</select>
+
+    <!-- 向数据库增加一条记录 -->
+    <insert id="insert" parameterType="com.ym.mec.biz.dal.entity.TeacherSalaryModifyLog" useGeneratedKeys="true" keyColumn="id"
+            keyProperty="id">
+        INSERT INTO teacher_salary_modify_log (teacher_id_,course_schedule_id_,pre_expect_salary_,pre_reduce_salary_,current_expect_salary_,current_reduce_salary_,memo_,operator_id_,create_time_)
+        VALUES(#{teacherId},#{courseScheduleId},#{preExpectSalary},#{preReduceSalary},#{currentExpectSalary},#{currentReduceSalary},#{memo},#{operatorId},NOW())
+    </insert>
+</mapper>

+ 45 - 0
mec-web/src/main/java/com/ym/mec/web/controller/TeacherSalaryModifyLogController.java

@@ -0,0 +1,45 @@
+package com.ym.mec.web.controller;
+
+import com.ym.mec.auth.api.client.SysUserFeignService;
+import com.ym.mec.auth.api.entity.SysUser;
+import com.ym.mec.biz.dal.dto.ClassGroup4MixDto;
+import com.ym.mec.biz.dal.dto.HighClassGroupDto;
+import com.ym.mec.biz.dal.dto.TestDto;
+import com.ym.mec.biz.dal.entity.ClassGroup;
+import com.ym.mec.biz.dal.entity.ClassGroupTeacherMapper;
+import com.ym.mec.biz.dal.entity.TeacherSalaryModifyLog;
+import com.ym.mec.biz.dal.enums.ClassGroupTypeEnum;
+import com.ym.mec.biz.dal.enums.GroupType;
+import com.ym.mec.biz.dal.enums.SalarySettlementTypeEnum;
+import com.ym.mec.biz.dal.page.EndCourseScheduleQueryInfo;
+import com.ym.mec.biz.dal.page.queryMusicGroupCourseScheduleQueryInfo;
+import com.ym.mec.biz.service.ClassGroupService;
+import com.ym.mec.biz.service.ClassGroupTeacherMapperService;
+import com.ym.mec.biz.service.TeacherSalaryModifyLogService;
+import com.ym.mec.common.controller.BaseController;
+import com.ym.mec.common.entity.HttpResponseResult;
+import com.ym.mec.common.page.QueryInfo;
+import io.swagger.annotations.*;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Date;
+import java.util.List;
+
+@RequestMapping("teacherSalaryModifyLog")
+@Api(tags = "班级服务")
+@RestController
+public class TeacherSalaryModifyLogController extends BaseController {
+
+    @Autowired
+    private TeacherSalaryModifyLogService teacherSalaryModifyLogService;
+
+    @ApiOperation(value = "终极班级信息获取")
+    @RequestMapping("/add")
+    @PreAuthorize("@pcs.hasPermissions('teacherSalaryModifyLog/add')")
+    public Object add(TeacherSalaryModifyLog modifyLog){
+        return succeed(teacherSalaryModifyLogService.insert(modifyLog));
+    }
+}