|
|
|
@ -45,18 +45,20 @@ public interface HighDeviceMapper extends HighDeviceMapperExt { |
|
|
|
|
"mer_store_name, device_name, ", |
|
|
|
|
"device_sn, device_key, ", |
|
|
|
|
"device_imei, device_iccid, ", |
|
|
|
|
"`status`, create_time, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"receipt_top, receipt_source, ", |
|
|
|
|
"receipt_bottom, `status`, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{type,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{companyName,jdbcType=VARCHAR}, #{merId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{merName,jdbcType=VARCHAR}, #{merStoreId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{merStoreName,jdbcType=VARCHAR}, #{deviceName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{deviceSn,jdbcType=VARCHAR}, #{deviceKey,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{deviceImei,jdbcType=VARCHAR}, #{deviceIccid,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{receiptTop,jdbcType=VARCHAR}, #{receiptSource,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{receiptBottom,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(HighDevice record); |
|
|
|
@ -80,6 +82,9 @@ public interface HighDeviceMapper extends HighDeviceMapperExt { |
|
|
|
|
@Result(column="device_key", property="deviceKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="device_imei", property="deviceImei", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="device_iccid", property="deviceIccid", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="receipt_top", property="receiptTop", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="receipt_source", property="receiptSource", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="receipt_bottom", property="receiptBottom", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -92,8 +97,9 @@ public interface HighDeviceMapper extends HighDeviceMapperExt { |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, `type`, company_id, company_name, mer_id, mer_name, mer_store_id, mer_store_name, ", |
|
|
|
|
"device_name, device_sn, device_key, device_imei, device_iccid, `status`, create_time, ", |
|
|
|
|
"update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"device_name, device_sn, device_key, device_imei, device_iccid, receipt_top, ", |
|
|
|
|
"receipt_source, receipt_bottom, `status`, create_time, update_time, ext_1, ext_2, ", |
|
|
|
|
"ext_3", |
|
|
|
|
"from high_device", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -111,6 +117,9 @@ public interface HighDeviceMapper extends HighDeviceMapperExt { |
|
|
|
|
@Result(column="device_key", property="deviceKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="device_imei", property="deviceImei", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="device_iccid", property="deviceIccid", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="receipt_top", property="receiptTop", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="receipt_source", property="receiptSource", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="receipt_bottom", property="receiptBottom", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -143,6 +152,9 @@ public interface HighDeviceMapper extends HighDeviceMapperExt { |
|
|
|
|
"device_key = #{deviceKey,jdbcType=VARCHAR},", |
|
|
|
|
"device_imei = #{deviceImei,jdbcType=VARCHAR},", |
|
|
|
|
"device_iccid = #{deviceIccid,jdbcType=VARCHAR},", |
|
|
|
|
"receipt_top = #{receiptTop,jdbcType=VARCHAR},", |
|
|
|
|
"receipt_source = #{receiptSource,jdbcType=VARCHAR},", |
|
|
|
|
"receipt_bottom = #{receiptBottom,jdbcType=VARCHAR},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
|