2022-11-09 17:31:40 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.rzyc.mapper.EntEmExpertMapper">
|
|
|
|
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.rzyc.model.EntEmExpert">
|
|
|
|
|
<id column="ent_em_expert_id" property="entEmExpertId" />
|
|
|
|
|
<result column="enterprise_id" property="enterpriseId" />
|
|
|
|
|
<result column="ent_em_expert_name" property="entEmExpertName" />
|
2022-11-11 19:57:18 +08:00
|
|
|
<result column="age" property="age"/>
|
2022-11-09 17:31:40 +08:00
|
|
|
<result column="ent_em_expert_sex" property="entEmExpertSex" />
|
|
|
|
|
<result column="ent_em_expert_phone" property="entEmExpertPhone" />
|
|
|
|
|
<result column="ent_em_expert_class" property="entEmExpertClass" />
|
|
|
|
|
<result column="ent_em_expert_major" property="entEmExpertMajor" />
|
|
|
|
|
<result column="ent_em_expert_category" property="entEmExpertCategory" />
|
|
|
|
|
<result column="ent_em_expert_address" property="entEmExpertAddress" />
|
|
|
|
|
<result column="create_by" property="createBy" />
|
|
|
|
|
<result column="create_time" property="createTime" />
|
|
|
|
|
<result column="modify_by" property="modifyBy" />
|
|
|
|
|
<result column="modify_time" property="modifyTime" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
ent_em_expert_id, enterprise_id, ent_em_expert_name, ent_em_expert_sex, ent_em_expert_phone, ent_em_expert_class, ent_em_expert_major, ent_em_expert_category, ent_em_expert_address, create_by, create_time, modify_by, modify_time
|
|
|
|
|
</sql>
|
|
|
|
|
|
2022-11-11 19:57:18 +08:00
|
|
|
<select id="selectEntEmExpertList" resultMap="BaseResultMap">
|
|
|
|
|
select * from ent_em_expert where enterprise_id = #{enterpriseId} and del_state = 1
|
|
|
|
|
<if test="null != entEmExpertClass and '' != entEmExpertClass">
|
|
|
|
|
and ent_em_expert_class like concat('%',#{entEmExpertClass},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="null != entEmExpertCategory and '' != entEmExpertCategory">
|
|
|
|
|
and ent_em_expert_category like concat('%',#{entEmExpertCategory},'%')
|
|
|
|
|
</if>
|
2022-12-08 19:48:32 +08:00
|
|
|
<if test="null != name and '' != name">
|
|
|
|
|
and ent_em_expert_name like concat('%',#{name},'%')
|
|
|
|
|
</if>
|
2022-11-11 19:57:18 +08:00
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateEntEmExpertUpdate">
|
|
|
|
|
update ent_em_expert set enterprise_id = #{enterpriseId},ent_em_expert_name = #{entEmExpertName},ent_em_expert_sex = #{entEmExpertSex},ent_em_expert_phone = #{entEmExpertPhone},ent_em_expert_class = #{entEmExpertClass},ent_em_expert_major = #{entEmExpertMajor},ent_em_expert_category = #{entEmExpertCategory},
|
|
|
|
|
ent_em_expert_address = #{entEmExpertAddress},age = #{age},modify_by = #{modifyBy},modify_time = #{modifyTime}
|
|
|
|
|
where ent_em_expert_id = #{entEmExpertId}
|
|
|
|
|
</update>
|
2022-11-14 17:51:04 +08:00
|
|
|
|
|
|
|
|
<update id="updateDelState">
|
|
|
|
|
update ent_em_expert set del_state = 2 where ent_em_expert_id = #{id}
|
|
|
|
|
</update>
|
2022-11-09 17:31:40 +08:00
|
|
|
</mapper>
|