添加一个birthday

This commit is contained in:
方亮 2026-02-03 11:16:59 +08:00
parent 2e3a03a0ca
commit 47d62ab66a
2 changed files with 7 additions and 7 deletions

View File

@ -4,13 +4,12 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bonus.message.mapper.WorkerMapper"> <mapper namespace="com.bonus.message.mapper.WorkerMapper">
<insert id="addWorker"> <insert id="addWorker">
insert into pm_worker (worker_name,org_id,sex,phone,create_time) insert into pm_worker (worker_name,org_id,sex,phone,birthday)
values (#{workerName},#{orgId},#{sex},#{phone},#{createTime}) values (#{workerName},#{orgId},#{sex},#{phone},#{birthday})
</insert> </insert>
<update id="updateWorker"> <update id="updateWorker">
update pm_worker update pm_worker
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<if test="workerName!= null " > <if test="workerName!= null " >
worker_name=#{workerName}, worker_name=#{workerName},
</if> </if>
@ -23,8 +22,8 @@
<if test="phone!= null " > <if test="phone!= null " >
phone=#{phone}, phone=#{phone},
</if> </if>
<if test="updateTime!= null " > <if test="birthday!= null " >
update_time=#{updateTime}, birthday=#{birthday},
</if> </if>
</trim> </trim>
where id = #{id} where id = #{id}
@ -34,7 +33,7 @@
</delete> </delete>
<select id="getWorkerList" resultType="com.bonus.message.dao.WorkerVo"> <select id="getWorkerList" resultType="com.bonus.message.dao.WorkerVo">
select pw.id,pw.worker_name,pw.org_id,pw.sex,pw.phone, sd.dept_name as orgName select pw.id,pw.worker_name,pw.org_id,pw.sex,pw.phone, sd.dept_name as orgName,pw.birthday
from pm_worker pw from pm_worker pw
left join sys_dept sd on pw.org_id = sd.dept_id left join sys_dept sd on pw.org_id = sd.dept_id
where is_active = '1' where is_active = '1'
@ -56,7 +55,7 @@
</if> </if>
</select> </select>
<select id="getWorkerByPhone" resultType="com.bonus.message.dao.WorkerVo"> <select id="getWorkerByPhone" resultType="com.bonus.message.dao.WorkerVo">
select id,worker_name,org_id,sex,phone from pm_worker where phone = #{phone} and is_active = '1' select id,worker_name,org_id,sex,phone,birthday from pm_worker where phone = #{phone} and is_active = '1'
</select> </select>
<select id="getDeptById" resultType="com.bonus.common.core.domain.entity.SysDept"> <select id="getDeptById" resultType="com.bonus.common.core.domain.entity.SysDept">
select dept_id,dept_name from sys_dept where dept_name = #{orgName} select dept_id,dept_name from sys_dept where dept_name = #{orgName}

View File

@ -153,6 +153,7 @@
btw.send_time, btw.send_time,
btw.submit_status, btw.submit_status,
btw.reason, btw.reason,
btw.update_time,
btw.send_status btw.send_status
FROM FROM
bm_task_record btw bm_task_record btw