فهرست منبع

add:建团日志

yonge 5 سال پیش
والد
کامیت
283901578e

+ 9 - 0
mec-web/src/main/java/com/ym/mec/web/dal/dao/MusicGroupBuildLogDao.java

@@ -0,0 +1,9 @@
+package com.ym.mec.web.dal.dao;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.web.dal.entity.MusicGroupBuildLog;
+
+public interface MusicGroupBuildLogDao extends BaseDAO<Integer, MusicGroupBuildLog> {
+
+	
+}

+ 81 - 0
mec-web/src/main/java/com/ym/mec/web/dal/entity/MusicGroupBuildLog.java

@@ -0,0 +1,81 @@
+package com.ym.mec.web.dal.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(music_group_build_log):
+ */
+public class MusicGroupBuildLog {
+
+	/**  */
+	private Integer id;
+	
+	/**  */
+	private Integer musicGroupId;
+	
+	/** 事件 */
+	private String event;
+	
+	/**  */
+	private Integer operator;
+	
+	/**  */
+	private String memo;
+	
+	/**  */
+	private java.util.Date createTime;
+	
+	public void setId(Integer id){
+		this.id = id;
+	}
+	
+	public Integer getId(){
+		return this.id;
+	}
+			
+	public void setMusicGroupId(Integer musicGroupId){
+		this.musicGroupId = musicGroupId;
+	}
+	
+	public Integer getMusicGroupId(){
+		return this.musicGroupId;
+	}
+			
+	public void setEvent(String event){
+		this.event = event;
+	}
+	
+	public String getEvent(){
+		return this.event;
+	}
+			
+	public void setOperator(Integer operator){
+		this.operator = operator;
+	}
+	
+	public Integer getOperator(){
+		return this.operator;
+	}
+			
+	public void setMemo(String memo){
+		this.memo = memo;
+	}
+	
+	public String getMemo(){
+		return this.memo;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 8 - 0
mec-web/src/main/java/com/ym/mec/web/service/MusicGroupBuildLogService.java

@@ -0,0 +1,8 @@
+package com.ym.mec.web.service;
+
+import com.ym.mec.common.service.BaseService;
+import com.ym.mec.web.dal.entity.MusicGroupBuildLog;
+
+public interface MusicGroupBuildLogService extends BaseService<Integer, MusicGroupBuildLog> {
+
+}

+ 23 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/MusicGroupBuildLogServiceImpl.java

@@ -0,0 +1,23 @@
+package com.ym.mec.web.service.impl;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.common.service.impl.BaseServiceImpl;
+import com.ym.mec.web.dal.dao.MusicGroupBuildLogDao;
+import com.ym.mec.web.dal.entity.MusicGroupBuildLog;
+import com.ym.mec.web.service.MusicGroupBuildLogService;
+
+@Service
+public class MusicGroupBuildLogServiceImpl extends BaseServiceImpl<Integer, MusicGroupBuildLog>  implements MusicGroupBuildLogService {
+	
+	@Autowired
+	private MusicGroupBuildLogDao musicGroupBuildLogDao;
+
+	@Override
+	public BaseDAO<Integer, MusicGroupBuildLog> getDAO() {
+		return musicGroupBuildLogDao;
+	}
+	
+}

+ 76 - 0
mec-web/src/main/resources/config/mybatis/MusicGroupBuildLogMapper.xml

@@ -0,0 +1,76 @@
+<?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.web.dal.dao.MusicGroupBuildLogDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.MusicGroupBuildLog" id="MusicGroupBuildLog">
+		<result column="id_" property="id" />
+		<result column="music_group_id_" property="musicGroupId" />
+		<result column="event_" property="event" />
+		<result column="operator_" property="operator" />
+		<result column="memo_" property="memo" />
+		<result column="create_time_" property="createTime" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="MusicGroupBuildLog" >
+		SELECT * FROM music_group_build_log WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="MusicGroupBuildLog">
+		SELECT * FROM music_group_build_log ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.MusicGroupBuildLog" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO music_group_build_log (id_,music_group_id_,event_,operator_,memo_,create_time_) VALUES(#{id},#{musicGroupId},#{event},#{operator},#{memo},#{createTime})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.MusicGroupBuildLog">
+		UPDATE music_group_build_log <set>
+<if test="operator != null">
+operator_ = #{operator},
+</if>
+<if test="event != null">
+event_ = #{event},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="memo != null">
+memo_ = #{memo},
+</if>
+<if test="musicGroupId != null">
+music_group_id_ = #{musicGroupId},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM music_group_build_log WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="MusicGroupBuildLog" parameterType="map">
+		SELECT * FROM music_group_build_log ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM music_group_build_log
+	</select>
+</mapper>