| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!-- namespace:该mapper.xml映射文件的 唯一标识 --> |
| | | <mapper namespace="com.hx.phip.dao.mapper.UserDiagnosisDoctorMapper"> |
| | | |
| | | <!-- 整个实体类修改,表字段=实体类字段--> |
| | | <sql id="Update_Column_All"> |
| | | <trim prefixOverrides=","> |
| | | ,approveStatus = #{approveStatus},approveId = #{approveId},type = #{type},monthStr = #{monthStr},dayStr = #{dayStr},opId = #{opId},opName = #{opName},opShopId = #{opShopId},opShopName = #{opShopName},opRoleId = #{opRoleId},opRoleName = #{opRoleName},opRoleTypeId = #{opRoleTypeId},opRoleStr = #{opRoleStr},operatorRemark = #{operatorRemark},userId = #{userId},userName = #{userName},userCiq = #{userCiq},userNo = #{userNo},userLevel = #{userLevel},userCorpId = #{userCorpId},userCorpName = #{userCorpName},userShopId = #{userShopId},userShopName = #{userShopName},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | ,approveStatus = #{approveStatus},approveId = #{approveId},type = #{type},startTime = #{startTime},endTime = #{endTime},reasonType = #{reasonType},opId = #{opId},opName = #{opName},opShopId = #{opShopId},opShopName = #{opShopName},opRoleId = #{opRoleId},opRoleName = #{opRoleName},opRoleTypeId = #{opRoleTypeId},opRoleStr = #{opRoleStr},operatorRemark = #{operatorRemark},userId = #{userId},userName = #{userName},userCiq = #{userCiq},userNo = #{userNo},userLevel = #{userLevel},userCorpId = #{userCorpId},userCorpName = #{userCorpName},userShopId = #{userShopId},userShopName = #{userShopName},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | </trim> |
| | | </sql> |
| | | |
| | | |
| | | <!-- 后续通过 namespace.id--> |
| | | <!--parameterType:输入参数的类型 |
| | | resultType:查询返回结果值的类型 ,返回类型 --> |
| | | <insert id="insert" parameterType="com.hx.phiappt.model.user.UserDiagnosisDoctor"> |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into user_diagnosis_doctor (id,approveStatus,approveId,type,monthStr,dayStr,opId,opName,opShopId,opShopName,opRoleId,opRoleName,opRoleTypeId,opRoleStr,operatorRemark,userId,userName,userCiq,userNo,userLevel,userCorpId,userCorpName,userShopId,userShopName,isDel,createTime,editTime) values (#{id},#{approveStatus},#{approveId},#{type},#{monthStr},#{dayStr},#{opId},#{opName},#{opShopId},#{opShopName},#{opRoleId},#{opRoleName},#{opRoleTypeId},#{opRoleStr},#{operatorRemark},#{userId},#{userName},#{userCiq},#{userNo},#{userLevel},#{userCorpId},#{userCorpName},#{userShopId},#{userShopName},#{isDel},#{createTime},#{editTime}) |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into user_diagnosis_doctor (id,approveStatus,approveId,type,startTime,endTime,reasonType,opId,opName,opShopId,opShopName,opRoleId,opRoleName,opRoleTypeId,opRoleStr,operatorRemark,userId,userName,userCiq,userNo,userLevel,userCorpId,userCorpName,userShopId,userShopName,isDel,createTime,editTime) values (#{id},#{approveStatus},#{approveId},#{type},#{startTime},#{endTime},#{reasonType},#{opId},#{opName},#{opShopId},#{opShopName},#{opRoleId},#{opRoleName},#{opRoleTypeId},#{opRoleStr},#{operatorRemark},#{userId},#{userName},#{userCiq},#{userNo},#{userLevel},#{userCorpId},#{userCorpName},#{userShopId},#{userShopName},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <insert id="insertById" parameterType="com.hx.phiappt.model.user.UserDiagnosisDoctor"> |
| | | insert into user_diagnosis_doctor (id,approveStatus,approveId,type,monthStr,dayStr,opId,opName,opShopId,opShopName,opRoleId,opRoleName,opRoleTypeId,opRoleStr,operatorRemark,userId,userName,userCiq,userNo,userLevel,userCorpId,userCorpName,userShopId,userShopName,isDel,createTime,editTime) values (#{id},#{approveStatus},#{approveId},#{type},#{monthStr},#{dayStr},#{opId},#{opName},#{opShopId},#{opShopName},#{opRoleId},#{opRoleName},#{opRoleTypeId},#{opRoleStr},#{operatorRemark},#{userId},#{userName},#{userCiq},#{userNo},#{userLevel},#{userCorpId},#{userCorpName},#{userShopId},#{userShopName},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | insert into user_diagnosis_doctor (id,approveStatus,approveId,type,startTime,endTime,reasonType,opId,opName,opShopId,opShopName,opRoleId,opRoleName,opRoleTypeId,opRoleStr,operatorRemark,userId,userName,userCiq,userNo,userLevel,userCorpId,userCorpName,userShopId,userShopName,isDel,createTime,editTime) values (#{id},#{approveStatus},#{approveId},#{type},#{startTime},#{endTime},#{reasonType},#{opId},#{opName},#{opShopId},#{opShopName},#{opRoleId},#{opRoleName},#{opRoleTypeId},#{opRoleStr},#{operatorRemark},#{userId},#{userName},#{userCiq},#{userNo},#{userLevel},#{userCorpId},#{userCorpName},#{userShopId},#{userShopName},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phiappt.model.user.UserDiagnosisDoctor" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectListMap" resultType="java.util.Map" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOne" resultType="com.hx.phiappt.model.user.UserDiagnosisDoctor" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOneMap" resultType="java.util.Map" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | <select id="selectOneMap" resultType="java.util.Map" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectCount" resultType="int" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | select |
| | | COUNT(*) |
| | | from user_diagnosis_doctor |
| | | WHERE ${sqlSentence} |
| | | </select> |
| | | select |
| | | COUNT(*) |
| | | from user_diagnosis_doctor |
| | | WHERE ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectCountSql" resultType="int" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | <select id="selectCountSql" resultType="int" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.user.UserDiagnosisDoctor" parameterType="java.lang.Object" > |
| | | select |
| | | id,approveStatus,approveId,type,monthStr,dayStr,opId,opName,opShopId,opShopName,opRoleId,opRoleName,opRoleTypeId,opRoleStr,operatorRemark,userId,userName,userCiq,userNo,userLevel,userCorpId,userCorpName,userShopId,userShopName,isDel,createTime,editTime |
| | | select |
| | | id,approveStatus,approveId,type,startTime,endTime,reasonType,opId,opName,opShopId,opShopName,opRoleId,opRoleName,opRoleTypeId,opRoleStr,operatorRemark,userId,userName,userCiq,userNo,userLevel,userCorpId,userCorpName,userShopId,userShopName,isDel,createTime,editTime |
| | | from user_diagnosis_doctor |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.user.UserDiagnosisDoctor" parameterType="java.lang.Object" > |
| | | select |
| | | id,approveStatus,approveId,type,monthStr,dayStr,opId,opName,opShopId,opShopName,opRoleId,opRoleName,opRoleTypeId,opRoleStr,operatorRemark,userId,userName,userCiq,userNo,userLevel,userCorpId,userCorpName,userShopId,userShopName,isDel,createTime,editTime |
| | | select |
| | | id,approveStatus,approveId,type,startTime,endTime,reasonType,opId,opName,opShopId,opShopName,opRoleId,opRoleName,opRoleTypeId,opRoleStr,operatorRemark,userId,userName,userCiq,userNo,userLevel,userCorpId,userCorpName,userShopId,userShopName,isDel,createTime,editTime |
| | | from user_diagnosis_doctor |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <update id="updateWhere" parameterType="com.hx.mybatisTool.SqlSentence"> |
| | | update |
| | | user_diagnosis_doctor |
| | | SET ${sqlSentence} |
| | | user_diagnosis_doctor |
| | | SET ${sqlSentence} |
| | | </update> |
| | | |
| | | <update id="updateAll" parameterType="com.hx.phiappt.model.user.UserDiagnosisDoctor"> |
| | | update user_diagnosis_doctor |
| | | SET <include refid="Update_Column_All"/> |
| | | SET <include refid="Update_Column_All"/> |
| | | WHERE id = #{id} |
| | | </update> |
| | | |
| | |
| | | <delete id="deleteById" parameterType="java.lang.Object"> |
| | | delete from user_diagnosis_doctor WHERE id = #{value} |
| | | </delete> |
| | | |
| | | |
| | | </mapper> |