| | |
| | | SELECT user_id, `name`, phone |
| | | FROM sys_user WHERE `type` = 1 AND phone = #{phone} |
| | | </select> |
| | | <insert id="insertComActDpc"> |
| | | insert into com_act_dpc |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="comActDpc.id != null"> |
| | | id, |
| | | </if> |
| | | <if test="comActDpc.name != null and comActDpc.name != ''"> |
| | | name, |
| | | </if> |
| | | <if test="comActDpc.phone != null and comActDpc.phone != ''"> |
| | | phone, |
| | | </if> |
| | | <if test="comActDpc.nation != null and comActDpc.nation != ''"> |
| | | nation, |
| | | </if> |
| | | <if test="comActDpc.sex != null"> |
| | | sex, |
| | | </if> |
| | | <if test="comActDpc.area != null and comActDpc.area != ''"> |
| | | area, |
| | | </if> |
| | | <if test="comActDpc.belong != null and comActDpc.belong != ''"> |
| | | belong, |
| | | </if> |
| | | <if test="comActDpc.category != null and comActDpc.category != ''"> |
| | | category, |
| | | </if> |
| | | <if test="comActDpc.position != null and comActDpc.position != ''"> |
| | | position, |
| | | </if> |
| | | <if test="comActDpc.photo != null and comActDpc.photo != ''"> |
| | | photo, |
| | | </if> |
| | | <if test="comActDpc.communityId != null"> |
| | | community_id, |
| | | </if> |
| | | <if test="comActDpc.createdBy != null "> |
| | | created_by, |
| | | </if> |
| | | <if test="comActDpc.createdAt != null "> |
| | | created_at, |
| | | </if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="comActDpc.id != null"> |
| | | #{comActDpc.id}, |
| | | </if> |
| | | <if test="comActDpc.name != null and comActDpc.name != ''"> |
| | | #{comActDpc.name}, |
| | | </if> |
| | | <if test="comActDpc.phone != null and comActDpc.phone != ''"> |
| | | #{comActDpc.phone}, |
| | | </if> |
| | | <if test="comActDpc.nation != null and comActDpc.nation != ''"> |
| | | #{comActDpc.nation}, |
| | | </if> |
| | | <if test="comActDpc.sex != null"> |
| | | #{comActDpc.sex}, |
| | | </if> |
| | | <if test="comActDpc.area != null and comActDpc.area != ''"> |
| | | #{comActDpc.area}, |
| | | </if> |
| | | <if test="comActDpc.belong != null and comActDpc.belong != ''"> |
| | | #{comActDpc.belong}, |
| | | </if> |
| | | <if test="comActDpc.category != null and comActDpc.category != ''"> |
| | | #{comActDpc.category}, |
| | | </if> |
| | | <if test="comActDpc.position != null and comActDpc.position != ''"> |
| | | #{comActDpc.position}, |
| | | </if> |
| | | <if test="comActDpc.photo != null and comActDpc.photo != ''"> |
| | | #{comActDpc.photo}, |
| | | </if> |
| | | <if test="comActDpc.communityId != null "> |
| | | #{comActDpc.communityId}, |
| | | </if> |
| | | <if test="comActDpc.createdBy != null "> |
| | | #{comActDpc.createdBy}, |
| | | </if> |
| | | <if test="comActDpc.createdAt != null "> |
| | | #{comActDpc.createdAt}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | </mapper> |
| | | |