|
@@ -28,42 +28,46 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<insert id="insertDomainInformation" parameterType="cn.com.countrygarden.bi.main.model.dmn.DnmDomainInformation">
|
|
|
+ <!-- 注意这里的改动 拿到自增的id -->
|
|
|
+ <selectKey keyProperty="id" resultType="java.lang.Integer" order="AFTER">
|
|
|
+ SELECT LAST_INSERT_ID()
|
|
|
+ </selectKey>
|
|
|
INSERT INTO dnm_domain_information (domain_name,
|
|
|
- domain_coupon_number,
|
|
|
- owner,
|
|
|
- audit_status,
|
|
|
- application_time,
|
|
|
- agency_id,
|
|
|
- renewal_id,
|
|
|
- renewal_time,
|
|
|
- renewal_amount,
|
|
|
- business_model,
|
|
|
- department_used,
|
|
|
- registrar,
|
|
|
- registration_time,
|
|
|
- account_id,
|
|
|
- auditor,
|
|
|
- defalg,
|
|
|
- draft_status_type_id,
|
|
|
- cost_information_id)
|
|
|
+ domain_coupon_number,
|
|
|
+ owner,
|
|
|
+ audit_status,
|
|
|
+ application_time,
|
|
|
+ agency_id,
|
|
|
+ renewal_id,
|
|
|
+ renewal_time,
|
|
|
+ renewal_amount,
|
|
|
+ business_model,
|
|
|
+ department_used,
|
|
|
+ registrar,
|
|
|
+ registration_time,
|
|
|
+ account_id,
|
|
|
+ auditor,
|
|
|
+ defalg,
|
|
|
+ draft_status_type_id,
|
|
|
+ cost_information_id)
|
|
|
VALUES (#{domainName},
|
|
|
- #{domainCouponNumber},
|
|
|
- #{owner},
|
|
|
- #{auditStatus},
|
|
|
- #{applicationTime},
|
|
|
- #{agencyId},
|
|
|
- #{renewalId},
|
|
|
- #{renewalTime},
|
|
|
- #{renewalAmount},
|
|
|
- #{businessModel},
|
|
|
- #{departmentUsed},
|
|
|
- #{registrar},
|
|
|
- #{registrationTime},
|
|
|
- #{accountId},
|
|
|
- #{auditor},
|
|
|
- #{defalg},
|
|
|
- #{draftStatusTypeId},
|
|
|
- #{costInformationId})
|
|
|
+ #{domainCouponNumber},
|
|
|
+ #{owner},
|
|
|
+ #{auditStatus},
|
|
|
+ #{applicationTime},
|
|
|
+ #{agencyId},
|
|
|
+ #{renewalId},
|
|
|
+ #{renewalTime},
|
|
|
+ #{renewalAmount},
|
|
|
+ #{businessModel},
|
|
|
+ #{departmentUsed},
|
|
|
+ #{registrar},
|
|
|
+ #{registrationTime},
|
|
|
+ #{accountId},
|
|
|
+ #{auditor},
|
|
|
+ #{defalg},
|
|
|
+ #{draftStatusTypeId},
|
|
|
+ #{costInformationId})
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateDnmDomainInformation">
|