|
@@ -11,8 +11,6 @@
|
|
|
<result property="idCard" column="id_card" />
|
|
|
<result property="score" column="score" />
|
|
|
<result property="serviceCategory" column="service_category" />
|
|
|
- <result property="serviceType" column="service_type" />
|
|
|
- <result property="serviceSubject" column="service_subject" />
|
|
|
<result property="skillDescribe" column="skill_describe" />
|
|
|
<result property="phonenumber" column="phonenumber" />
|
|
|
<result property="sex" column="sex" />
|
|
@@ -31,7 +29,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectLVolunteerInfoVo">
|
|
|
- select volunteer_id, name, id_card, score, service_category, service_type, service_subject, skill_describe, phonenumber, sex, status, id_card_picture, certification_picture, volunteer_picture, worked_company, level, is_on_job, city, address, create_time, update_time, remark from l_volunteer_info
|
|
|
+ select volunteer_id, name, id_card, score, service_category, skill_describe, phonenumber, sex, status, id_card_picture, certification_picture, volunteer_picture, worked_company, level, is_on_job, city, address, create_time, update_time, remark from l_volunteer_info
|
|
|
</sql>
|
|
|
|
|
|
|
|
@@ -43,8 +41,6 @@
|
|
|
<if test="idCard != null">id_card,</if>
|
|
|
<if test="idCardPicture != null">id_card_picture,</if>
|
|
|
<if test="serviceCategory != null">service_category,</if>
|
|
|
- <if test="serviceType != null">service_type,</if>
|
|
|
- <if test="serviceSubject != null">service_subject,</if>
|
|
|
<if test="skillDescribe != null">skill_describe,</if>
|
|
|
<if test="phonenumber != null">phonenumber,</if>
|
|
|
<if test="sex != null">sex,</if>
|
|
@@ -70,8 +66,6 @@
|
|
|
<if test="idCard != null">#{idCard},</if>
|
|
|
<if test="idCardPicture != null">#{idCardPicture},</if>
|
|
|
<if test="serviceCategory != null">#{serviceCategory},</if>
|
|
|
- <if test="serviceType != null">#{serviceType},</if>
|
|
|
- <if test="serviceSubject != null">#{serviceSubject},</if>
|
|
|
<if test="skillDescribe != null">#{skillDescribe},</if>
|
|
|
<if test="phonenumber != null">#{phonenumber},</if>
|
|
|
<if test="sex != null">#{sex},</if>
|
|
@@ -99,8 +93,6 @@
|
|
|
<if test="name != null and name != ''"> and lvi.name like concat('%', #{name}, '%')</if>
|
|
|
<if test="score != null "> and lvi.score = #{score}</if>
|
|
|
<if test="serviceCategory != null "> and lvi.service_category = #{serviceCategory}</if>
|
|
|
- <if test="serviceType != null "> and lvi.service_type = #{serviceType}</if>
|
|
|
- <if test="serviceSubject != null "> and lvi.service_subject = #{serviceSubject}</if>
|
|
|
<if test="skillDescribe != null and skillDescribe != ''"> and lvi.skill_describe = #{skillDescribe}</if>
|
|
|
<if test="level != null and level != ''"> and lvi.level = #{level}</if>
|
|
|
<if test="city != null and city != ''"> and lvi.city = #{city}</if>
|
|
@@ -109,7 +101,7 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
<select id="selectLVolunteerInfoByVolunteerId" resultType="com.leromro.core.domain.VolunteerInfo">
|
|
|
- select name , service_category ,service_subject, phonenumber,address ,skill_describe , age ,certification_picture ,volunteer_id ,score from l_volunteer_info
|
|
|
+ select name , service_category , phonenumber,address ,skill_describe , age ,certification_picture ,volunteer_id ,score from l_volunteer_info
|
|
|
where volunteer_id = #{volunteerId} and service_category = #{serviceCategory}
|
|
|
</select>
|
|
|
<select id="selectVolunteerInfoSimple" resultType="com.leromro.core.domain.vo.VolunteerInfoVO">
|
|
@@ -119,8 +111,6 @@
|
|
|
<if test="name != null and name != ''"> and lvi.name like concat('%', #{name}, '%')</if>
|
|
|
<if test="score != null "> and lvi.score = #{score}</if>
|
|
|
<if test="serviceCategory != null and serviceCategory != ''"> and lvi.service_category = #{serviceCategory}</if>
|
|
|
- <if test="serviceType != null "> and lvi.service_type = #{serviceType}</if>
|
|
|
- <if test="serviceSubject != null "> and lvi.service_subject = #{serviceSubject}</if>
|
|
|
<if test="skillDescribe != null and skillDescribe != ''"> and lvi.skill_describe = #{skillDescribe}</if>
|
|
|
<if test="level != null and level != ''"> and lvi.level = #{level}</if>
|
|
|
<if test="city != null and city != ''"> and lvi.city = #{city}</if>
|