|
@@ -0,0 +1,57 @@
|
|
|
+<?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.leromro.serve.mapper.VolunteerInfoMapper">
|
|
|
+ <insert id="newVolunteerByUserId">
|
|
|
+ INSERT INTO l_volunteer_info (
|
|
|
+ <if test="info.userId != null">user_id,</if>
|
|
|
+ <if test="info.name != null">name,</if>
|
|
|
+ <if test="info.idCard != null">id_card,</if>
|
|
|
+ <if test="info.picture != null">picture,</if>
|
|
|
+ <if test="info.serviceCategory != null">service_category,</if>
|
|
|
+ <if test="info.serviceType != null">service_type,</if>
|
|
|
+ <if test="info.serviceSubject != null">service_subject,</if>
|
|
|
+ <if test="info.skillDescribe != null">skill_describe,</if>
|
|
|
+ <if test="info.phonenumber != null">phonenumber,</if>
|
|
|
+ <if test="info.sex != null">sex,</if>
|
|
|
+ <if test="volunteerInfoVO.status != null">status,</if>
|
|
|
+ <if test="volunteerInfoVO.certificate != null">certificate,</if>
|
|
|
+ <if test="volunteerInfoVO.workedCompany != null">worked_company,</if>
|
|
|
+ <if test="volunteerInfoVO.level != null">level,</if>
|
|
|
+ <if test="volunteerInfoVO.isOnJob != null">is_on_job,</if>
|
|
|
+ <if test="volunteerInfoVO.city != null">city,</if>
|
|
|
+ <if test="volunteerInfoVO.address != null">address,</if>
|
|
|
+ <if test="volunteerInfoVO.createTime != null">create_time,</if>
|
|
|
+ <if test="volunteerInfoVO.updateTime != null">update_time,</if>
|
|
|
+ <if test="volunteerInfoVO.remark != null">remark</if>
|
|
|
+ )
|
|
|
+ VALUES (
|
|
|
+ <if test="volunteerInfoVO.userId != null">#{volunteerInfoVO.userId},</if>
|
|
|
+ <if test="volunteerInfoVO.name != null">#{volunteerInfoVO.name},</if>
|
|
|
+ <if test="volunteerInfoVO.idCard != null">#{volunteerInfoVO.idCard},</if>
|
|
|
+ <if test="volunteerInfoVO.picture != null">#{volunteerInfoVO.picture},</if>
|
|
|
+ <if test="volunteerInfoVO.serviceCategory != null">#{volunteerInfoVO.serviceCategory},</if>
|
|
|
+ <if test="volunteerInfoVO.serviceType != null">#{volunteerInfoVO.serviceType},</if>
|
|
|
+ <if test="volunteerInfoVO.serviceSubject != null">#{volunteerInfoVO.serviceSubject},</if>
|
|
|
+ <if test="volunteerInfoVO.skillDescribe != null">#{volunteerInfoVO.skillDescribe},</if>
|
|
|
+ <if test="volunteerInfoVO.phonenumber != null">#{volunteerInfoVO.phonenumber},</if>
|
|
|
+ <if test="volunteerInfoVO.sex != null">#{volunteerInfoVO.sex},</if>
|
|
|
+ <if test="volunteerInfoVO.status != null">#{volunteerInfoVO.status},</if>
|
|
|
+ <if test="volunteerInfoVO.certificate != null">#{volunteerInfoVO.certificate},</if>
|
|
|
+ <if test="volunteerInfoVO.workedCompany != null">#{volunteerInfoVO.workedCompany},</if>
|
|
|
+ <if test="volunteerInfoVO.level != null">#{volunteerInfoVO.level},</if>
|
|
|
+ <if test="volunteerInfoVO.isOnJob != null">#{volunteerInfoVO.isOnJob},</if>
|
|
|
+ <if test="volunteerInfoVO.city != null">#{volunteerInfoVO.city},</if>
|
|
|
+ <if test="volunteerInfoVO.address != null">#{volunteerInfoVO.address},</if>
|
|
|
+ <if test="volunteerInfoVO.createTime != null">#{volunteerInfoVO.createTime},</if>
|
|
|
+ <if test="volunteerInfoVO.updateTime != null">#{volunteerInfoVO.updateTime},</if>
|
|
|
+ <if test="volunteerInfoVO.remark != null">#{volunteerInfoVO.remark}</if>
|
|
|
+ )
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </insert>
|
|
|
+
|
|
|
+
|
|
|
+</mapper>
|