修改xhpc_ic_card_info对应的mapper、domain

This commit is contained in:
wen 2022-01-25 10:55:43 +08:00
parent 51e97eb6a5
commit e6aa02a4a7
3 changed files with 215 additions and 219 deletions

View File

@ -7,12 +7,10 @@ import java.util.Date;
/** /**
* xhpc_ic_card_info * xhpc_ic_card_info
*
* @author WH * @author WH
*/ */
@Data @Data
public class XhpcIcCardInfo implements Serializable { public class XhpcIcCardInfo implements Serializable {
/** /**
* 记录id * 记录id
*/ */
@ -94,5 +92,4 @@ public class XhpcIcCardInfo implements Serializable {
private Long delFlag; private Long delFlag;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

View File

@ -6,7 +6,7 @@ import com.xhpc.common.domain.XhpcIcCardInfo;
* XhpcIcCardInfoMapper * XhpcIcCardInfoMapper
* *
* @author WH * @author WH
* @date 2022/1/25 10:15 * @date 2022/1/25 10:54
* @since version-1.0 * @since version-1.0
*/ */
public interface XhpcIcCardInfoMapper { public interface XhpcIcCardInfoMapper {
@ -22,5 +22,4 @@ public interface XhpcIcCardInfoMapper {
int updateByPrimaryKeySelective(XhpcIcCardInfo record); int updateByPrimaryKeySelective(XhpcIcCardInfo record);
int updateByPrimaryKey(XhpcIcCardInfo record); int updateByPrimaryKey(XhpcIcCardInfo record);
} }

View File

@ -2,220 +2,220 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!--suppress ALL --> <!--suppress ALL -->
<mapper namespace="com.xhpc.common.iccard.mapper.XhpcIcCardInfoMapper"> <mapper namespace="com.xhpc.common.iccard.mapper.XhpcIcCardInfoMapper">
<resultMap id="BaseResultMap" type="com.xhpc.common.domain.XhpcIcCardInfo"> <resultMap id="BaseResultMap" type="com.xhpc.common.domain.XhpcIcCardInfo">
<id column="id" jdbcType="INTEGER" property="id"/> <id column="id" jdbcType="INTEGER" property="id"/>
<result column="t_iccard_info_id" jdbcType="VARCHAR" property="tIccardInfoId"/> <result column="t_iccard_info_id" jdbcType="VARCHAR" property="tIccardInfoId"/>
<result column="use_status" jdbcType="BIGINT" property="useStatus"/> <result column="use_status" jdbcType="BIGINT" property="useStatus"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/> <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/> <result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/>
<result column="grant_operator_id" jdbcType="VARCHAR" property="grantOperatorId"/> <result column="grant_operator_id" jdbcType="VARCHAR" property="grantOperatorId"/>
<result column="user_id" jdbcType="INTEGER" property="userId"/> <result column="user_id" jdbcType="INTEGER" property="userId"/>
<result column="user_account" jdbcType="VARCHAR" property="userAccount"/> <result column="user_account" jdbcType="VARCHAR" property="userAccount"/>
<result column="user_type" jdbcType="BIGINT" property="userType"/> <result column="user_type" jdbcType="BIGINT" property="userType"/>
<result column="user_name" jdbcType="VARCHAR" property="userName"/> <result column="user_name" jdbcType="VARCHAR" property="userName"/>
<result column="user_id_card" jdbcType="VARCHAR" property="userIdCard"/> <result column="user_id_card" jdbcType="VARCHAR" property="userIdCard"/>
<result column="user_age" jdbcType="BIGINT" property="userAge"/> <result column="user_age" jdbcType="BIGINT" property="userAge"/>
<result column="user_sex" jdbcType="BIGINT" property="userSex"/> <result column="user_sex" jdbcType="BIGINT" property="userSex"/>
<result column="user_phone" jdbcType="VARCHAR" property="userPhone"/> <result column="user_phone" jdbcType="VARCHAR" property="userPhone"/>
<result column="user_vehicle" jdbcType="VARCHAR" property="userVehicle"/> <result column="user_vehicle" jdbcType="VARCHAR" property="userVehicle"/>
<result column="del_flag" jdbcType="BIGINT" property="delFlag"/> <result column="del_flag" jdbcType="BIGINT" property="delFlag"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id id
, t_iccard_info_id, use_status, create_time, tenant_id, grant_operator_id, user_id, , t_iccard_info_id, use_status, create_time, tenant_id, grant_operator_id, user_id,
user_account, user_type, user_name, user_id_card, user_age, user_sex, user_phone, user_account, user_type, user_name, user_id_card, user_age, user_sex, user_phone,
user_vehicle, del_flag user_vehicle, del_flag
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from xhpc_ic_card_info from xhpc_ic_card_info
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete delete
from xhpc_ic_card_info from xhpc_ic_card_info
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.xhpc.common.domain.XhpcIcCardInfo" <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.xhpc.common.domain.XhpcIcCardInfo"
useGeneratedKeys="true"> useGeneratedKeys="true">
insert into xhpc_ic_card_info (t_iccard_info_id, use_status, create_time, insert into xhpc_ic_card_info (t_iccard_info_id, use_status, create_time,
tenant_id, grant_operator_id, user_id, tenant_id, grant_operator_id, user_id,
user_account, user_type, user_name, user_account, user_type, user_name,
user_id_card, user_age, user_sex, user_id_card, user_age, user_sex,
user_phone, user_vehicle, del_flag) user_phone, user_vehicle, del_flag)
values (#{tIccardInfoId,jdbcType=VARCHAR}, #{useStatus,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, values (#{tIccardInfoId,jdbcType=VARCHAR}, #{useStatus,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{tenantId,jdbcType=VARCHAR}, #{grantOperatorId,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}, #{tenantId,jdbcType=VARCHAR}, #{grantOperatorId,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER},
#{userAccount,jdbcType=VARCHAR}, #{userType,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, #{userAccount,jdbcType=VARCHAR}, #{userType,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR},
#{userIdCard,jdbcType=VARCHAR}, #{userAge,jdbcType=BIGINT}, #{userSex,jdbcType=BIGINT}, #{userIdCard,jdbcType=VARCHAR}, #{userAge,jdbcType=BIGINT}, #{userSex,jdbcType=BIGINT},
#{userPhone,jdbcType=VARCHAR}, #{userVehicle,jdbcType=VARCHAR}, #{delFlag,jdbcType=BIGINT}) #{userPhone,jdbcType=VARCHAR}, #{userVehicle,jdbcType=VARCHAR}, #{delFlag,jdbcType=BIGINT})
</insert> </insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xhpc.common.domain.XhpcIcCardInfo" <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.xhpc.common.domain.XhpcIcCardInfo"
useGeneratedKeys="true"> useGeneratedKeys="true">
insert into xhpc_ic_card_info insert into xhpc_ic_card_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="tIccardInfoId != null"> <if test="tIccardInfoId != null">
t_iccard_info_id, t_iccard_info_id,
</if> </if>
<if test="useStatus != null"> <if test="useStatus != null">
use_status, use_status,
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
</if> </if>
<if test="tenantId != null"> <if test="tenantId != null">
tenant_id, tenant_id,
</if> </if>
<if test="grantOperatorId != null"> <if test="grantOperatorId != null">
grant_operator_id, grant_operator_id,
</if> </if>
<if test="userId != null"> <if test="userId != null">
user_id, user_id,
</if> </if>
<if test="userAccount != null"> <if test="userAccount != null">
user_account, user_account,
</if> </if>
<if test="userType != null"> <if test="userType != null">
user_type, user_type,
</if> </if>
<if test="userName != null"> <if test="userName != null">
user_name, user_name,
</if> </if>
<if test="userIdCard != null"> <if test="userIdCard != null">
user_id_card, user_id_card,
</if> </if>
<if test="userAge != null"> <if test="userAge != null">
user_age, user_age,
</if> </if>
<if test="userSex != null"> <if test="userSex != null">
user_sex, user_sex,
</if> </if>
<if test="userPhone != null"> <if test="userPhone != null">
user_phone, user_phone,
</if> </if>
<if test="userVehicle != null"> <if test="userVehicle != null">
user_vehicle, user_vehicle,
</if> </if>
<if test="delFlag != null"> <if test="delFlag != null">
del_flag, del_flag,
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="tIccardInfoId != null"> <if test="tIccardInfoId != null">
#{tIccardInfoId,jdbcType=VARCHAR}, #{tIccardInfoId,jdbcType=VARCHAR},
</if> </if>
<if test="useStatus != null"> <if test="useStatus != null">
#{useStatus,jdbcType=BIGINT}, #{useStatus,jdbcType=BIGINT},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="tenantId != null"> <if test="tenantId != null">
#{tenantId,jdbcType=VARCHAR}, #{tenantId,jdbcType=VARCHAR},
</if> </if>
<if test="grantOperatorId != null"> <if test="grantOperatorId != null">
#{grantOperatorId,jdbcType=VARCHAR}, #{grantOperatorId,jdbcType=VARCHAR},
</if> </if>
<if test="userId != null"> <if test="userId != null">
#{userId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER},
</if> </if>
<if test="userAccount != null"> <if test="userAccount != null">
#{userAccount,jdbcType=VARCHAR}, #{userAccount,jdbcType=VARCHAR},
</if> </if>
<if test="userType != null"> <if test="userType != null">
#{userType,jdbcType=BIGINT}, #{userType,jdbcType=BIGINT},
</if> </if>
<if test="userName != null"> <if test="userName != null">
#{userName,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR},
</if> </if>
<if test="userIdCard != null"> <if test="userIdCard != null">
#{userIdCard,jdbcType=VARCHAR}, #{userIdCard,jdbcType=VARCHAR},
</if> </if>
<if test="userAge != null"> <if test="userAge != null">
#{userAge,jdbcType=BIGINT}, #{userAge,jdbcType=BIGINT},
</if> </if>
<if test="userSex != null"> <if test="userSex != null">
#{userSex,jdbcType=BIGINT}, #{userSex,jdbcType=BIGINT},
</if> </if>
<if test="userPhone != null"> <if test="userPhone != null">
#{userPhone,jdbcType=VARCHAR}, #{userPhone,jdbcType=VARCHAR},
</if> </if>
<if test="userVehicle != null"> <if test="userVehicle != null">
#{userVehicle,jdbcType=VARCHAR}, #{userVehicle,jdbcType=VARCHAR},
</if> </if>
<if test="delFlag != null"> <if test="delFlag != null">
#{delFlag,jdbcType=BIGINT}, #{delFlag,jdbcType=BIGINT},
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.xhpc.common.domain.XhpcIcCardInfo"> <update id="updateByPrimaryKeySelective" parameterType="com.xhpc.common.domain.XhpcIcCardInfo">
update xhpc_ic_card_info update xhpc_ic_card_info
<set> <set>
<if test="tIccardInfoId != null"> <if test="tIccardInfoId != null">
t_iccard_info_id = #{tIccardInfoId,jdbcType=VARCHAR}, t_iccard_info_id = #{tIccardInfoId,jdbcType=VARCHAR},
</if> </if>
<if test="useStatus != null"> <if test="useStatus != null">
use_status = #{useStatus,jdbcType=BIGINT}, use_status = #{useStatus,jdbcType=BIGINT},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="tenantId != null"> <if test="tenantId != null">
tenant_id = #{tenantId,jdbcType=VARCHAR}, tenant_id = #{tenantId,jdbcType=VARCHAR},
</if> </if>
<if test="grantOperatorId != null"> <if test="grantOperatorId != null">
grant_operator_id = #{grantOperatorId,jdbcType=VARCHAR}, grant_operator_id = #{grantOperatorId,jdbcType=VARCHAR},
</if> </if>
<if test="userId != null"> <if test="userId != null">
user_id = #{userId,jdbcType=INTEGER}, user_id = #{userId,jdbcType=INTEGER},
</if> </if>
<if test="userAccount != null"> <if test="userAccount != null">
user_account = #{userAccount,jdbcType=VARCHAR}, user_account = #{userAccount,jdbcType=VARCHAR},
</if> </if>
<if test="userType != null"> <if test="userType != null">
user_type = #{userType,jdbcType=BIGINT}, user_type = #{userType,jdbcType=BIGINT},
</if> </if>
<if test="userName != null"> <if test="userName != null">
user_name = #{userName,jdbcType=VARCHAR}, user_name = #{userName,jdbcType=VARCHAR},
</if> </if>
<if test="userIdCard != null"> <if test="userIdCard != null">
user_id_card = #{userIdCard,jdbcType=VARCHAR}, user_id_card = #{userIdCard,jdbcType=VARCHAR},
</if> </if>
<if test="userAge != null"> <if test="userAge != null">
user_age = #{userAge,jdbcType=BIGINT}, user_age = #{userAge,jdbcType=BIGINT},
</if> </if>
<if test="userSex != null"> <if test="userSex != null">
user_sex = #{userSex,jdbcType=BIGINT}, user_sex = #{userSex,jdbcType=BIGINT},
</if> </if>
<if test="userPhone != null"> <if test="userPhone != null">
user_phone = #{userPhone,jdbcType=VARCHAR}, user_phone = #{userPhone,jdbcType=VARCHAR},
</if> </if>
<if test="userVehicle != null"> <if test="userVehicle != null">
user_vehicle = #{userVehicle,jdbcType=VARCHAR}, user_vehicle = #{userVehicle,jdbcType=VARCHAR},
</if> </if>
<if test="delFlag != null"> <if test="delFlag != null">
del_flag = #{delFlag,jdbcType=BIGINT}, del_flag = #{delFlag,jdbcType=BIGINT},
</if> </if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.xhpc.common.domain.XhpcIcCardInfo"> <update id="updateByPrimaryKey" parameterType="com.xhpc.common.domain.XhpcIcCardInfo">
update xhpc_ic_card_info update xhpc_ic_card_info
set t_iccard_info_id = #{tIccardInfoId,jdbcType=VARCHAR}, set t_iccard_info_id = #{tIccardInfoId,jdbcType=VARCHAR},
use_status = #{useStatus,jdbcType=BIGINT}, use_status = #{useStatus,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
tenant_id = #{tenantId,jdbcType=VARCHAR}, tenant_id = #{tenantId,jdbcType=VARCHAR},
grant_operator_id = #{grantOperatorId,jdbcType=VARCHAR}, grant_operator_id = #{grantOperatorId,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=INTEGER}, user_id = #{userId,jdbcType=INTEGER},
user_account = #{userAccount,jdbcType=VARCHAR}, user_account = #{userAccount,jdbcType=VARCHAR},
user_type = #{userType,jdbcType=BIGINT}, user_type = #{userType,jdbcType=BIGINT},
user_name = #{userName,jdbcType=VARCHAR}, user_name = #{userName,jdbcType=VARCHAR},
user_id_card = #{userIdCard,jdbcType=VARCHAR}, user_id_card = #{userIdCard,jdbcType=VARCHAR},
user_age = #{userAge,jdbcType=BIGINT}, user_age = #{userAge,jdbcType=BIGINT},
user_sex = #{userSex,jdbcType=BIGINT}, user_sex = #{userSex,jdbcType=BIGINT},
user_phone = #{userPhone,jdbcType=VARCHAR}, user_phone = #{userPhone,jdbcType=VARCHAR},
user_vehicle = #{userVehicle,jdbcType=VARCHAR}, user_vehicle = #{userVehicle,jdbcType=VARCHAR},
del_flag = #{delFlag,jdbcType=BIGINT} del_flag = #{delFlag,jdbcType=BIGINT}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
</mapper> </mapper>