|
|
|
@ -39,18 +39,20 @@ public interface EnServiceCompanyDeviceMapper extends EnServiceCompanyDeviceMapp |
|
|
|
|
int deleteByPrimaryKey(Integer id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into en_service_company_device (device_no, device_type, ", |
|
|
|
|
"credentials_img, `status`, ", |
|
|
|
|
"create_user, create_user_name, ", |
|
|
|
|
"create_time, update_user, ", |
|
|
|
|
"update_user_name, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{deviceNo,jdbcType=VARCHAR}, #{deviceType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{credentialsImg,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createUser,jdbcType=BIGINT}, #{createUserName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=BIGINT}, ", |
|
|
|
|
"#{updateUserName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"insert into en_service_company_device (company_id, device_no, ", |
|
|
|
|
"device_type, credentials_img, ", |
|
|
|
|
"`status`, create_user, ", |
|
|
|
|
"create_user_name, create_time, ", |
|
|
|
|
"update_user, update_user_name, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{deviceNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{deviceType,jdbcType=INTEGER}, #{credentialsImg,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createUser,jdbcType=BIGINT}, ", |
|
|
|
|
"#{createUserName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateUser,jdbcType=BIGINT}, #{updateUserName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(EnServiceCompanyDevice record); |
|
|
|
@ -62,6 +64,7 @@ public interface EnServiceCompanyDeviceMapper extends EnServiceCompanyDeviceMapp |
|
|
|
|
@SelectProvider(type=EnServiceCompanyDeviceSqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="device_no", property="deviceNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="device_type", property="deviceType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="credentials_img", property="credentialsImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -80,13 +83,15 @@ public interface EnServiceCompanyDeviceMapper extends EnServiceCompanyDeviceMapp |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, device_no, device_type, credentials_img, `status`, create_user, create_user_name, ", |
|
|
|
|
"create_time, update_user, update_user_name, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"id, company_id, device_no, device_type, credentials_img, `status`, create_user, ", |
|
|
|
|
"create_user_name, create_time, update_user, update_user_name, update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3", |
|
|
|
|
"from en_service_company_device", |
|
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="device_no", property="deviceNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="device_type", property="deviceType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="credentials_img", property="credentialsImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -114,7 +119,8 @@ public interface EnServiceCompanyDeviceMapper extends EnServiceCompanyDeviceMapp |
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
|
"update en_service_company_device", |
|
|
|
|
"set device_no = #{deviceNo,jdbcType=VARCHAR},", |
|
|
|
|
"set company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
|
"device_no = #{deviceNo,jdbcType=VARCHAR},", |
|
|
|
|
"device_type = #{deviceType,jdbcType=INTEGER},", |
|
|
|
|
"credentials_img = #{credentialsImg,jdbcType=VARCHAR},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|