|
|
|
@ -41,8 +41,8 @@ public interface BsTradeOrderMapper extends BsTradeOrderMapperExt { |
|
|
|
|
@Insert({ |
|
|
|
|
"insert into bs_trade_order (company_id, agent_id, ", |
|
|
|
|
"salesman_id, salesman_name, ", |
|
|
|
|
"mer_id, mer_name, mer_no, ", |
|
|
|
|
"store_id, store_name, ", |
|
|
|
|
"mer_id, mer_name, mer_abbreviate, ", |
|
|
|
|
"mer_no, store_id, store_name, ", |
|
|
|
|
"device_id, device_sn, ", |
|
|
|
|
"qr_code_id, qr_code_sn, ", |
|
|
|
|
"platform_type, platform_mer_no, ", |
|
|
|
@ -75,8 +75,8 @@ public interface BsTradeOrderMapper extends BsTradeOrderMapperExt { |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{salesmanId,jdbcType=BIGINT}, #{salesmanName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merId,jdbcType=BIGINT}, #{merName,jdbcType=VARCHAR}, #{merNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{storeId,jdbcType=BIGINT}, #{storeName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merId,jdbcType=BIGINT}, #{merName,jdbcType=VARCHAR}, #{merAbbreviate,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merNo,jdbcType=VARCHAR}, #{storeId,jdbcType=BIGINT}, #{storeName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{deviceId,jdbcType=BIGINT}, #{deviceSn,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{qrCodeId,jdbcType=BIGINT}, #{qrCodeSn,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{platformType,jdbcType=INTEGER}, #{platformMerNo,jdbcType=VARCHAR}, ", |
|
|
|
@ -124,6 +124,7 @@ public interface BsTradeOrderMapper extends BsTradeOrderMapperExt { |
|
|
|
|
@Result(column="salesman_name", property="salesmanName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_abbreviate", property="merAbbreviate", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_no", property="merNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -193,12 +194,12 @@ public interface BsTradeOrderMapper extends BsTradeOrderMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, company_id, agent_id, salesman_id, salesman_name, mer_id, mer_name, mer_no, ", |
|
|
|
|
"store_id, store_name, device_id, device_sn, qr_code_id, qr_code_sn, platform_type, ", |
|
|
|
|
"platform_mer_no, platform_trade_no, platform_log_no, platform_appid, platform_rate, ", |
|
|
|
|
"platform_commission, pay_appid, pay_user_id, pay_mode, out_trade_no, trade_amount, ", |
|
|
|
|
"store_discount_satisfy, store_discount_id, store_discount_name, store_discount_type, ", |
|
|
|
|
"store_discount_condition, store_discount_price, store_discount_final_cost_price, ", |
|
|
|
|
"id, company_id, agent_id, salesman_id, salesman_name, mer_id, mer_name, mer_abbreviate, ", |
|
|
|
|
"mer_no, store_id, store_name, device_id, device_sn, qr_code_id, qr_code_sn, ", |
|
|
|
|
"platform_type, platform_mer_no, platform_trade_no, platform_log_no, platform_appid, ", |
|
|
|
|
"platform_rate, platform_commission, pay_appid, pay_user_id, pay_mode, out_trade_no, ", |
|
|
|
|
"trade_amount, store_discount_satisfy, store_discount_id, store_discount_name, ", |
|
|
|
|
"store_discount_type, store_discount_condition, store_discount_price, store_discount_final_cost_price, ", |
|
|
|
|
"store_discount_actual_price, store_discount_profit_price, user_id, user_phone, ", |
|
|
|
|
"user_discount_id, user_discount_name, user_discount_type, user_discount_price, ", |
|
|
|
|
"user_discount_actual_price, trade_actual_amount, income_amount, acc_trade_no, ", |
|
|
|
@ -218,6 +219,7 @@ public interface BsTradeOrderMapper extends BsTradeOrderMapperExt { |
|
|
|
|
@Result(column="salesman_name", property="salesmanName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_abbreviate", property="merAbbreviate", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_no", property="merNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -302,6 +304,7 @@ public interface BsTradeOrderMapper extends BsTradeOrderMapperExt { |
|
|
|
|
"salesman_name = #{salesmanName,jdbcType=VARCHAR},", |
|
|
|
|
"mer_id = #{merId,jdbcType=BIGINT},", |
|
|
|
|
"mer_name = #{merName,jdbcType=VARCHAR},", |
|
|
|
|
"mer_abbreviate = #{merAbbreviate,jdbcType=VARCHAR},", |
|
|
|
|
"mer_no = #{merNo,jdbcType=VARCHAR},", |
|
|
|
|
"store_id = #{storeId,jdbcType=BIGINT},", |
|
|
|
|
"store_name = #{storeName,jdbcType=VARCHAR},", |
|
|
|
|