|
@@ -2,10 +2,10 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.caimei.mapper.cmMapper.DoctorMapper">
|
|
|
<insert id="insertDoctor" keyColumn="id" keyProperty="id" useGeneratedKeys="true" parameterType="com.caimei.model.po.CmBrandDoctorPo">
|
|
|
- insert into cm_brand_doctor (authUserId, authId, doctorType, name, certificateNo, clubName, image, status,
|
|
|
+ insert into cm_brand_doctor (authUserId, authId, doctorType, name,englishName, certificateNo, clubName, image, status,
|
|
|
createTime, createBy,
|
|
|
auditStatus, auditBy, auditTime, checkFlag)
|
|
|
- values (#{authUserId}, #{authId}, #{doctorType}, #{name}, #{certificateNo}, #{clubName}, #{image}, #{status},
|
|
|
+ values (#{authUserId}, #{authId}, #{doctorType}, #{name},#{englishName}, #{certificateNo}, #{clubName}, #{image}, #{status},
|
|
|
NOW(), #{createBy}, #{auditStatus}, #{auditBy}, #{auditTime}, #{checkFlag})
|
|
|
</insert>
|
|
|
<insert id="insertBanner">
|
|
@@ -34,6 +34,7 @@
|
|
|
set authId = #{authId},
|
|
|
doctorType = #{doctorType},
|
|
|
name = #{name},
|
|
|
+ englishName = #{englishName},
|
|
|
certificateNo = #{certificateNo},
|
|
|
clubName = #{clubName},
|
|
|
image = #{image},
|
|
@@ -70,7 +71,7 @@
|
|
|
delete from cm_brand_doctor_param where doctorId = #{doctorId}
|
|
|
</delete>
|
|
|
<select id="getDoctorList" resultType="com.caimei.model.vo.DoctorListVo">
|
|
|
- select id as doctorId, a.name as doctorName,a.certificateNo, a.status, a.auditStatus, a.createTime, cu.name as createBy,
|
|
|
+ select id as doctorId, a.name as doctorName, a.certificateNo, a.status, a.auditStatus, a.createTime, cu.name as createBy,
|
|
|
ifnull(au.loginAccount,au.name) as auditBy,a.auditTime,a.invalidReason, a.checkFlag
|
|
|
from cm_brand_doctor a
|
|
|
left join cm_brand_auth_user cu on a.createBy = cu.authUserId
|
|
@@ -101,6 +102,7 @@
|
|
|
select id,
|
|
|
authId,
|
|
|
name,
|
|
|
+ englishName,
|
|
|
authUserId,
|
|
|
certificateNo,
|
|
|
clubName,
|