添加一个birthday
This commit is contained in:
parent
2e3a03a0ca
commit
47d62ab66a
|
|
@ -4,13 +4,12 @@
|
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.message.mapper.WorkerMapper">
|
||||
<insert id="addWorker">
|
||||
insert into pm_worker (worker_name,org_id,sex,phone,create_time)
|
||||
values (#{workerName},#{orgId},#{sex},#{phone},#{createTime})
|
||||
insert into pm_worker (worker_name,org_id,sex,phone,birthday)
|
||||
values (#{workerName},#{orgId},#{sex},#{phone},#{birthday})
|
||||
</insert>
|
||||
<update id="updateWorker">
|
||||
update pm_worker
|
||||
<trim prefix="set" suffixOverrides=",">
|
||||
|
||||
<if test="workerName!= null " >
|
||||
worker_name=#{workerName},
|
||||
</if>
|
||||
|
|
@ -23,8 +22,8 @@
|
|||
<if test="phone!= null " >
|
||||
phone=#{phone},
|
||||
</if>
|
||||
<if test="updateTime!= null " >
|
||||
update_time=#{updateTime},
|
||||
<if test="birthday!= null " >
|
||||
birthday=#{birthday},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
|
|
@ -34,7 +33,7 @@
|
|||
</delete>
|
||||
|
||||
<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
|
||||
left join sys_dept sd on pw.org_id = sd.dept_id
|
||||
where is_active = '1'
|
||||
|
|
@ -56,7 +55,7 @@
|
|||
</if>
|
||||
</select>
|
||||
<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 id="getDeptById" resultType="com.bonus.common.core.domain.entity.SysDept">
|
||||
select dept_id,dept_name from sys_dept where dept_name = #{orgName}
|
||||
|
|
|
|||
|
|
@ -153,6 +153,7 @@
|
|||
btw.send_time,
|
||||
btw.submit_status,
|
||||
btw.reason,
|
||||
btw.update_time,
|
||||
btw.send_status
|
||||
FROM
|
||||
bm_task_record btw
|
||||
|
|
|
|||
Loading…
Reference in New Issue