|
|
@ -45,22 +45,22 @@ public interface BsDeviceMapper extends BsDeviceMapperExt { |
|
|
|
"mer_no, mer_name, ", |
|
|
|
"mer_no, mer_name, ", |
|
|
|
"device_name, device_sn, ", |
|
|
|
"device_name, device_sn, ", |
|
|
|
"device_key, device_imei, ", |
|
|
|
"device_key, device_imei, ", |
|
|
|
"device_iccid, receipt_top, ", |
|
|
|
"device_iccid, receipt_out_content, ", |
|
|
|
"receipt_source, receipt_bottom, ", |
|
|
|
"receipt_top, receipt_source, ", |
|
|
|
"`status`, create_time, ", |
|
|
|
"receipt_bottom, `status`, ", |
|
|
|
"update_time, ext_1, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{type,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{type,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
"#{companyName,jdbcType=VARCHAR}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
"#{companyName,jdbcType=VARCHAR}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
"#{agentName,jdbcType=VARCHAR}, #{merId,jdbcType=BIGINT}, ", |
|
|
|
"#{agentName,jdbcType=VARCHAR}, #{merId,jdbcType=BIGINT}, ", |
|
|
|
"#{merNo,jdbcType=VARCHAR}, #{merName,jdbcType=VARCHAR}, ", |
|
|
|
"#{merNo,jdbcType=VARCHAR}, #{merName,jdbcType=VARCHAR}, ", |
|
|
|
"#{deviceName,jdbcType=VARCHAR}, #{deviceSn,jdbcType=VARCHAR}, ", |
|
|
|
"#{deviceName,jdbcType=VARCHAR}, #{deviceSn,jdbcType=VARCHAR}, ", |
|
|
|
"#{deviceKey,jdbcType=VARCHAR}, #{deviceImei,jdbcType=VARCHAR}, ", |
|
|
|
"#{deviceKey,jdbcType=VARCHAR}, #{deviceImei,jdbcType=VARCHAR}, ", |
|
|
|
"#{deviceIccid,jdbcType=VARCHAR}, #{receiptTop,jdbcType=VARCHAR}, ", |
|
|
|
"#{deviceIccid,jdbcType=VARCHAR}, #{receiptOutContent,jdbcType=INTEGER}, ", |
|
|
|
"#{receiptSource,jdbcType=VARCHAR}, #{receiptBottom,jdbcType=VARCHAR}, ", |
|
|
|
"#{receiptTop,jdbcType=VARCHAR}, #{receiptSource,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{receiptBottom,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(BsDevice record); |
|
|
|
int insert(BsDevice record); |
|
|
@ -85,6 +85,7 @@ public interface BsDeviceMapper extends BsDeviceMapperExt { |
|
|
|
@Result(column="device_key", property="deviceKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="device_key", property="deviceKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="device_imei", property="deviceImei", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="device_imei", property="deviceImei", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="device_iccid", property="deviceIccid", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="device_iccid", property="deviceIccid", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="receipt_out_content", property="receiptOutContent", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="receipt_top", property="receiptTop", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="receipt_top", property="receiptTop", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="receipt_source", property="receiptSource", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="receipt_source", property="receiptSource", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="receipt_bottom", property="receiptBottom", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="receipt_bottom", property="receiptBottom", jdbcType=JdbcType.VARCHAR), |
|
|
@ -100,9 +101,9 @@ public interface BsDeviceMapper extends BsDeviceMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, `type`, company_id, company_name, agent_id, agent_name, mer_id, mer_no, ", |
|
|
|
"id, `type`, company_id, company_name, agent_id, agent_name, mer_id, mer_no, ", |
|
|
|
"mer_name, device_name, device_sn, device_key, device_imei, device_iccid, receipt_top, ", |
|
|
|
"mer_name, device_name, device_sn, device_key, device_imei, device_iccid, receipt_out_content, ", |
|
|
|
"receipt_source, receipt_bottom, `status`, create_time, update_time, ext_1, ext_2, ", |
|
|
|
"receipt_top, receipt_source, receipt_bottom, `status`, create_time, update_time, ", |
|
|
|
"ext_3", |
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
"from bs_device", |
|
|
|
"from bs_device", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -121,6 +122,7 @@ public interface BsDeviceMapper extends BsDeviceMapperExt { |
|
|
|
@Result(column="device_key", property="deviceKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="device_key", property="deviceKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="device_imei", property="deviceImei", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="device_imei", property="deviceImei", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="device_iccid", property="deviceIccid", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="device_iccid", property="deviceIccid", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="receipt_out_content", property="receiptOutContent", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="receipt_top", property="receiptTop", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="receipt_top", property="receiptTop", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="receipt_source", property="receiptSource", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="receipt_source", property="receiptSource", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="receipt_bottom", property="receiptBottom", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="receipt_bottom", property="receiptBottom", jdbcType=JdbcType.VARCHAR), |
|
|
@ -157,6 +159,7 @@ public interface BsDeviceMapper extends BsDeviceMapperExt { |
|
|
|
"device_key = #{deviceKey,jdbcType=VARCHAR},", |
|
|
|
"device_key = #{deviceKey,jdbcType=VARCHAR},", |
|
|
|
"device_imei = #{deviceImei,jdbcType=VARCHAR},", |
|
|
|
"device_imei = #{deviceImei,jdbcType=VARCHAR},", |
|
|
|
"device_iccid = #{deviceIccid,jdbcType=VARCHAR},", |
|
|
|
"device_iccid = #{deviceIccid,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"receipt_out_content = #{receiptOutContent,jdbcType=INTEGER},", |
|
|
|
"receipt_top = #{receiptTop,jdbcType=VARCHAR},", |
|
|
|
"receipt_top = #{receiptTop,jdbcType=VARCHAR},", |
|
|
|
"receipt_source = #{receiptSource,jdbcType=VARCHAR},", |
|
|
|
"receipt_source = #{receiptSource,jdbcType=VARCHAR},", |
|
|
|
"receipt_bottom = #{receiptBottom,jdbcType=VARCHAR},", |
|
|
|
"receipt_bottom = #{receiptBottom,jdbcType=VARCHAR},", |
|
|
|