|
|
@@ -22,7 +22,9 @@
|
|
|
<result column="create_time_" property="createTime" />
|
|
|
<result column="update_time_" property="updateTime" />
|
|
|
<result column="tenant_id_" property="tenantId" />
|
|
|
- <result column="memo_" property="memo" />
|
|
|
+ <result column="audit_" property="audit" />
|
|
|
+ <result column="audit_name_" property="auditName" />
|
|
|
+ <result column="audit_time_" property="auditTime" />
|
|
|
<result column="status_" property="status" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
</resultMap>
|
|
|
|
|
|
@@ -42,7 +44,8 @@
|
|
|
payment_user_num_,period_,member_rank_setting_id_,actual_amount_,original_amount_,
|
|
|
operator_,create_time_,update_time_,tenant_id_,memo_,status_)
|
|
|
VALUES(#{name},#{remark},#{memberNum},#{userNum},#{paymentUserNum},#{period,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
- #{memberRankSettingId},#{actualAmount},#{originalAmount},#{operator},NOW(),NOW(),#{tenantId},#{memo},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
|
+ #{memberRankSettingId},#{actualAmount},#{originalAmount},#{operator},
|
|
|
+ NOW(),NOW(),#{tenantId},#{memo},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
|
@@ -54,6 +57,12 @@
|
|
|
<if test="memo != null">
|
|
|
memo_ = #{memo},
|
|
|
</if>
|
|
|
+ <if test="audit != null">
|
|
|
+ audit_ = #{audit},
|
|
|
+ </if>
|
|
|
+ <if test="auditTime != null">
|
|
|
+ audit_time_ = #{auditTime},
|
|
|
+ </if>
|
|
|
<if test="operator != null">
|
|
|
operator_ = #{operator},
|
|
|
</if>
|
|
|
@@ -120,8 +129,9 @@
|
|
|
|
|
|
<!-- 分页查询 -->
|
|
|
<select id="queryPage" resultMap="CloudCoachPaymentProgram" parameterType="map">
|
|
|
- SELECT ccpp.*,su.real_name_ operator_name_ FROM cloud_coach_payment_program ccpp
|
|
|
+ SELECT ccpp.*,su.real_name_ operator_name_,su1.real_name_ audit_name_ FROM cloud_coach_payment_program ccpp
|
|
|
LEFT JOIN sys_user su ON su.id_ = ccpp.operator_
|
|
|
+ LEFT JOIN sys_user su1 ON su1.id_ = ccpp.audit_
|
|
|
<include refid="queryPageSql"/>
|
|
|
ORDER BY ccpp.id_ DESC
|
|
|
<include refid="global.limit"/>
|