Selaa lähdekoodia

update 增加云教练+

周箭河 4 vuotta sitten
vanhempi
commit
5f64d2fc44

+ 6 - 2
mec-biz/src/main/resources/config/mybatis/OrganizationCloudTeacherFeeMapper.xml

@@ -7,6 +7,7 @@
         <id column="id_" property="id"/>
         <result column="organ_id_" property="organId"/>
         <result column="price_" property="price"/>
+        <result column="plus_price_" property="plusPrice"/>
         <result column="create_time_" property="createTime"/>
         <result column="update_time_" property="updateTime"/>
         <result column="organName" property="organName"/>
@@ -30,8 +31,8 @@
     <insert id="insert" parameterType="com.ym.mec.biz.dal.entity.OrganizationCloudTeacherFee"
             useGeneratedKeys="true" keyColumn="id_" keyProperty="id">
         INSERT INTO organization_cloud_teacher_fee
-            (organ_id_, price_, create_time_, update_time_)
-        VALUES (#{organId}, #{price}, NOW(), NOW())
+            (organ_id_, price_,plus_price_, create_time_, update_time_)
+        VALUES (#{organId}, #{price},#{plusPrice}, NOW(), NOW())
     </insert>
 
     <!-- 根据主键查询一条记录 -->
@@ -41,6 +42,9 @@
             <if test="price != null">
                 price_ = #{price},
             </if>
+            <if test="plusPrice != null">
+                plus_price_ = #{plusPrice},
+            </if>
             update_time_=NOW()
         </set>
         WHERE id_ = #{id}