OrganizationDegreeCourseFeeMapper.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.ym.mec.biz.dal.dao.OrganizationDegreeCourseFeeDao">
  4. <resultMap id="OrganizationDegreeCourseFee" type="com.ym.mec.biz.dal.entity.OrganizationDegreeCourseFee">
  5. <!--@mbg.generated-->
  6. <!--@Table organization_degree_course_fee-->
  7. <id column="id_" property="id"/>
  8. <result column="organ_id_" property="organId"/>
  9. <result column="vip_1v1_" property="vip1v1"/>
  10. <result column="vip_1v2_" property="vip1v2"/>
  11. <result column="theory_" property="theory"/>
  12. <result column="create_time_" property="createTime"/>
  13. <result column="update_time_" property="updateTime"/>
  14. </resultMap>
  15. <select id="get" parameterType="java.lang.Integer" resultMap="OrganizationDegreeCourseFee">
  16. <!--@mbg.generated-->
  17. select *
  18. from organization_degree_course_fee
  19. where id_ = #{id}
  20. </select>
  21. <delete id="delete" parameterType="java.lang.Integer">
  22. <!--@mbg.generated-->
  23. delete from organization_degree_course_fee
  24. where id_ = #{id}
  25. </delete>
  26. <insert id="insert" keyColumn="id_" keyProperty="id"
  27. parameterType="com.ym.mec.biz.dal.entity.OrganizationDegreeCourseFee" useGeneratedKeys="true">
  28. <!--@mbg.generated-->
  29. insert into organization_degree_course_fee (organ_id_, vip_1v1_, vip_1v2_,theory_, create_time_, update_time_)
  30. values (#{organId}, #{vip1v1},#{vip1v2}, #{theory}, #{createTime}, #{updateTime})
  31. </insert>
  32. <update id="update" parameterType="com.ym.mec.biz.dal.entity.OrganizationDegreeCourseFee">
  33. <!--@mbg.generated-->
  34. update organization_degree_course_fee
  35. <set>
  36. <if test="organId != null">
  37. organ_id_ = #{organId},
  38. </if>
  39. <if test="vip1v1 != null">
  40. vip_1v1_ = #{vip1v1},
  41. </if>
  42. <if test="vip1v2 != null">
  43. vip_1v12 = #{vip1v2},
  44. </if>
  45. <if test="theory != null">
  46. theory_ = #{theory},
  47. </if>
  48. <if test="createTime != null">
  49. create_time_ = #{createTime},
  50. </if>
  51. <if test="updateTime != null">
  52. update_time_ = #{updateTime},
  53. </if>
  54. </set>
  55. where id_ = #{id}
  56. </update>
  57. <select id="getByOrganId" resultMap="OrganizationDegreeCourseFee">
  58. SELECT *
  59. FROM organization_degree_course_fee
  60. WHERE organ_id_ = #{organId}
  61. </select>
  62. </mapper>