From 576e64f01f88f2b3d4cd6bd35f875280f311aa73 Mon Sep 17 00:00:00 2001
From: suerwei <18810552194@163.com>
Date: 星期五, 17 五月 2024 16:43:39 +0800
Subject: [PATCH] 人员管理调整字段,附件上传,附件查看功能
---
javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectPersonMapper.xml | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectPersonMapper.xml b/javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectPersonMapper.xml
index 3044abd..b878eed 100644
--- a/javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectPersonMapper.xml
+++ b/javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectPersonMapper.xml
@@ -11,7 +11,8 @@
<result property="name" column="name" />
<result property="type" column="type" />
<result property="phone" column="phone" />
- <result property="address" column="address" />
+ <result property="idCard" column="id_card" />
+ <result property="personGroup" column="person_group" />
<result property="responsibility" column="responsibility" />
<result property="status" column="status" />
<result property="isDeleted" column="is_deleted" />
@@ -23,12 +24,13 @@
</resultMap>
<sql id="selectProjectPersonVo">
- select ids, project_id, hole_id, name, type, phone, address, responsibility, status, is_deleted, create_by, create_time, update_by, update_time, remark from js_project_person
+ select ids, project_id, hole_id, name, type, phone, id_card , person_group , responsibility, status, is_deleted, create_by, create_time, update_by, update_time, remark from js_project_person
</sql>
<select id="selectProjectPersonList" parameterType="ProjectPerson" resultMap="ProjectPersonResult">
<include refid="selectProjectPersonVo"/>
- <where>
+ <where>
+ <if test="projectId != null and projectId != ''"> and project_id = #{projectId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
@@ -50,7 +52,8 @@
<if test="name != null and name != ''">name,</if>
<if test="type != null and type != ''">type,</if>
<if test="phone != null and phone != ''">phone,</if>
- <if test="address != null and address != ''">address,</if>
+ <if test="idCard != null and idCard != ''">id_card,</if>
+ <if test="personGroup != null and personGroup != ''">person_group,</if>
<if test="responsibility != null and responsibility != ''">responsibility,</if>
<if test="status != null and status != ''">status,</if>
<if test="isDeleted != null and isDeleted != ''">is_deleted,</if>
@@ -67,7 +70,8 @@
<if test="name != null and name != ''">#{name},</if>
<if test="type != null and type != ''">#{type},</if>
<if test="phone != null and phone != ''">#{phone},</if>
- <if test="address != null and address != ''">#{address},</if>
+ <if test="idCard != null and idCard != ''">#{idCard},</if>
+ <if test="personGroup != null and personGroup != ''">#{personGroup},</if>
<if test="responsibility != null and responsibility != ''">#{responsibility},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="isDeleted != null and isDeleted != ''">#{isDeleted},</if>
@@ -87,7 +91,8 @@
<if test="name != null and name != ''">name = #{name},</if>
<if test="type != null and type != ''">type = #{type},</if>
<if test="phone != null and phone != ''">phone = #{phone},</if>
- <if test="address != null and address != ''">address = #{address},</if>
+ <if test="idCard != null and idCard != ''">id_card = #{idCard},</if>
+ <if test="personGroup != null and personGroup != ''">person_group = #{personGroup},</if>
<if test="responsibility != null and responsibility != ''">responsibility = #{responsibility},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="isDeleted != null and isDeleted != ''">is_deleted = #{isDeleted},</if>
--
Gitblit v1.9.1