123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649 |
- <?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" >
- <mapper namespace="com.xinxin.topro.sysservice.dao.mysqlmapper.SysUserinfoMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.sysservice.dao.mysqlmodel.SysUserinfo" >
- <id column="UI_ID" property="uiId" jdbcType="INTEGER" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
- <result column="UI_Code" property="uiCode" jdbcType="VARCHAR" />
- <result column="SS_Password" property="ssPassword" jdbcType="VARCHAR" />
- <result column="UI_Name" property="uiName" jdbcType="VARCHAR" />
- <result column="UI_Phone" property="uiPhone" jdbcType="VARCHAR" />
- <result column="UI_IDNumber" property="uiIdnumber" jdbcType="VARCHAR" />
- <result column="UI_Sex" property="uiSex" jdbcType="INTEGER" />
- <result column="UI_Birthday" property="uiBirthday" jdbcType="DATE" />
- <result column="UI_Email" property="uiEmail" jdbcType="VARCHAR" />
- <result column="UI_EntryData" property="uiEntrydata" jdbcType="DATE" />
- <result column="SS_DepartmentID" property="ssDepartmentid" jdbcType="INTEGER" />
- <result column="SS_WardID" property="ssWardid" jdbcType="INTEGER" />
- <result column="SS_Type" property="ssType" jdbcType="INTEGER" />
- <result column="SS_Nature" property="ssNature" jdbcType="INTEGER" />
- <result column="SS_PessoalDate" property="ssPessoaldate" jdbcType="DATE" />
- <result column="SS_Nativeplace" property="ssNativeplace" jdbcType="VARCHAR" />
- <result column="SS_Politics" property="ssPolitics" jdbcType="VARCHAR" />
- <result column="SS_WorkDate" property="ssWorkdate" jdbcType="DATE" />
- <result column="SS_Degree" property="ssDegree" jdbcType="VARCHAR" />
- <result column="SS_MaritalStatus" property="ssMaritalstatus" jdbcType="INTEGER" />
- <result column="SS_Nation" property="ssNation" jdbcType="VARCHAR" />
- <result column="SS_Level" property="ssLevel" jdbcType="VARCHAR" />
- <result column="SS_PinyinCode" property="ssPinyincode" jdbcType="VARCHAR" />
- <result column="SS_WubiCode" property="ssWubicode" jdbcType="VARCHAR" />
- <result column="SS_OtherCode" property="ssOthercode" jdbcType="VARCHAR" />
- <result column="SS_ISDel" property="ssIsdel" jdbcType="INTEGER" />
- <result column="SU_Address" property="suAddress" jdbcType="VARCHAR" />
- <result column="SU_Title_Code" property="suTitleCode" jdbcType="VARCHAR" />
- <result column="SU_Chief_Code" property="suChiefCode" jdbcType="VARCHAR" />
- <result column="SU_Personnel_Dep" property="suPersonnelDep" jdbcType="VARCHAR" />
- <result column="SU_Status" property="suStatus" jdbcType="INTEGER" />
- <result column="SU_Short_Tel" property="suShortTel" jdbcType="VARCHAR" />
- <result column="SU_Credential" property="suCredential" jdbcType="VARCHAR" />
- <result column="SU_Professional_Certificate" property="suProfessionalCertificate" jdbcType="VARCHAR" />
- <result column="SU_Leave_Time" property="suLeaveTime" jdbcType="TIMESTAMP" />
- <result column="SU_Remark" property="suRemark" jdbcType="VARCHAR" />
- <result column="SU_Sign_Img" property="suSignImg" jdbcType="VARCHAR" />
- <result column="SU_Head_Img" property="suHeadImg" jdbcType="VARCHAR" />
- </resultMap>
- <resultMap id="HashMap" type="com.xinxin.topro.sysservice.vo.SysUserinfoDepartmentVO" extends="BaseResultMap">
- <result column="DD_ID" property="ddId" jdbcType="INTEGER" />
- <result column="DD_DepDm" property="ddDepdm" jdbcType="VARCHAR" />
- <result column="DD_DepName" property="ddDepname" jdbcType="VARCHAR" />
- <result column="DW_ID" property="dwId" jdbcType="INTEGER" />
- <result column="DW_WardDm" property="dwWarddm" jdbcType="VARCHAR" />
- <result column="DW_WardName" property="dwWardname" jdbcType="VARCHAR" />
- <result column="titleName" property="titleName" jdbcType="VARCHAR" />
- <result column="chiefName" property="chiefName" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- UI_ID, HI_ID, UI_Code, SS_Password, UI_Name, UI_Phone, UI_IDNumber, UI_Sex, UI_Birthday,
- UI_Email, UI_EntryData, SS_DepartmentID, SS_WardID, SS_Type, SS_Nature, SS_PessoalDate,
- SS_Nativeplace, SS_Politics, SS_WorkDate, SS_Degree, SS_MaritalStatus, SS_Nation,
- SS_Level, SS_PinyinCode, SS_WubiCode, SS_OtherCode, SS_ISDel, SU_Address, SU_Title_Code,
- SU_Chief_Code, SU_Personnel_Dep, SU_Status, SU_Short_Tel, SU_Credential, SU_Professional_Certificate,
- SU_Leave_Time, SU_Remark, SU_Sign_Img, SU_Head_Img
- </sql>
- <sql id="Base_Column_List1" >
- su.UI_ID, su.HI_ID, su.UI_Code, su.SS_Password, su.UI_Name, su.UI_Phone, su.UI_IDNumber, su.UI_Sex, su.UI_Birthday,
- su.UI_Email, su.UI_EntryData, su.SS_DepartmentID, su.SS_WardID, su.SS_Type, su.SS_Nature, su.SS_PessoalDate,
- su.SS_Nativeplace, su.SS_Politics, su.SS_WorkDate, su.SS_Degree, su.SS_MaritalStatus, su.SS_Nation,
- su.SS_Level, su.SS_PinyinCode, su.SS_WubiCode, su.SS_OtherCode, su.SS_ISDel, su.SU_Address, su.SU_Title_Code,
- su.SU_Chief_Code, su.SU_Personnel_Dep, su.SU_Status, su.SU_Short_Tel, su.SU_Credential, su.SU_Professional_Certificate,
- su.SU_Leave_Time, su.SU_Remark, su.SU_Sign_Img, su.SU_Head_Img
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_userinfo
- where SS_ISDel = 0 and UI_ID = #{uiId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from sys_userinfo
- where UI_ID = #{uiId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.SysUserinfo" keyProperty="uiId" keyColumn="UI_ID" useGeneratedKeys="true">
- insert into sys_userinfo (UI_ID, HI_ID, UI_Code,
- SS_Password, UI_Name, UI_Phone,
- UI_IDNumber, UI_Sex, UI_Birthday,
- UI_Email, UI_EntryData, SS_DepartmentID,
- SS_WardID, SS_Type, SS_Nature,
- SS_PessoalDate, SS_Nativeplace, SS_Politics,
- SS_WorkDate, SS_Degree, SS_MaritalStatus,
- SS_Nation, SS_Level, SS_PinyinCode,
- SS_WubiCode, SS_OtherCode, SS_ISDel,
- SU_Address, SU_Title_Code, SU_Chief_Code,
- SU_Personnel_Dep, SU_Status, SU_Short_Tel,
- SU_Credential, SU_Professional_Certificate,
- SU_Leave_Time, SU_Remark, SU_Sign_Img,
- SU_Head_Img)
- values (#{uiId,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}, #{uiCode,jdbcType=VARCHAR},
- #{ssPassword,jdbcType=VARCHAR}, #{uiName,jdbcType=VARCHAR}, #{uiPhone,jdbcType=VARCHAR},
- #{uiIdnumber,jdbcType=VARCHAR}, #{uiSex,jdbcType=INTEGER}, #{uiBirthday,jdbcType=DATE},
- #{uiEmail,jdbcType=VARCHAR}, #{uiEntrydata,jdbcType=DATE}, #{ssDepartmentid,jdbcType=INTEGER},
- #{ssWardid,jdbcType=INTEGER}, #{ssType,jdbcType=INTEGER}, #{ssNature,jdbcType=INTEGER},
- #{ssPessoaldate,jdbcType=DATE}, #{ssNativeplace,jdbcType=VARCHAR}, #{ssPolitics,jdbcType=VARCHAR},
- #{ssWorkdate,jdbcType=DATE}, #{ssDegree,jdbcType=VARCHAR}, #{ssMaritalstatus,jdbcType=INTEGER},
- #{ssNation,jdbcType=VARCHAR}, #{ssLevel,jdbcType=VARCHAR}, #{ssPinyincode,jdbcType=VARCHAR},
- #{ssWubicode,jdbcType=VARCHAR}, #{ssOthercode,jdbcType=VARCHAR}, #{ssIsdel,jdbcType=INTEGER},
- #{suAddress,jdbcType=VARCHAR}, #{suTitleCode,jdbcType=VARCHAR}, #{suChiefCode,jdbcType=VARCHAR},
- #{suPersonnelDep,jdbcType=VARCHAR}, #{suStatus,jdbcType=INTEGER}, #{suShortTel,jdbcType=VARCHAR},
- #{suCredential,jdbcType=VARCHAR}, #{suProfessionalCertificate,jdbcType=VARCHAR},
- now(), #{suRemark,jdbcType=VARCHAR}, #{suSignImg,jdbcType=VARCHAR},
- #{suHeadImg,jdbcType=VARCHAR})
- </insert>
- <insert id="insertUsers" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.SysUserinfo" keyProperty="uiId" keyColumn="UI_ID" useGeneratedKeys="true">
- insert into sys_userinfo ( HI_ID, UI_Code,
- SS_Password, UI_Name, UI_Phone,
- UI_IDNumber, UI_Sex, UI_Birthday,
- UI_Email, UI_EntryData, SS_DepartmentID,
- SS_WardID, SS_Type, SS_Nature,
- SS_PessoalDate, SS_Nativeplace, SS_Politics,
- SS_WorkDate, SS_Degree, SS_MaritalStatus,
- SS_Nation, SS_Level, SS_PinyinCode,
- SS_WubiCode, SS_OtherCode, SS_ISDel,
- SU_Address, SU_Title_Code, SU_Chief_Code,
- SU_Personnel_Dep, SU_Status, SU_Short_Tel,
- SU_Credential, SU_Professional_Certificate,
- SU_Leave_Time, SU_Remark, SU_Sign_Img,
- SU_Head_Img)
- values ( #{hiId,jdbcType=INTEGER}, #{uiCode,jdbcType=VARCHAR},
- #{ssPassword,jdbcType=VARCHAR}, #{uiName,jdbcType=VARCHAR}, #{uiPhone,jdbcType=VARCHAR},
- #{uiIdnumber,jdbcType=VARCHAR}, #{uiSex,jdbcType=INTEGER}, #{uiBirthday,jdbcType=DATE},
- #{uiEmail,jdbcType=VARCHAR}, #{uiEntrydata,jdbcType=DATE}, #{ssDepartmentid,jdbcType=INTEGER},
- #{ssWardid,jdbcType=INTEGER}, #{ssType,jdbcType=INTEGER}, #{ssNature,jdbcType=INTEGER},
- #{ssPessoaldate,jdbcType=DATE}, #{ssNativeplace,jdbcType=VARCHAR}, #{ssPolitics,jdbcType=VARCHAR},
- #{ssWorkdate,jdbcType=DATE}, #{ssDegree,jdbcType=VARCHAR}, #{ssMaritalstatus,jdbcType=INTEGER},
- #{ssNation,jdbcType=VARCHAR}, #{ssLevel,jdbcType=VARCHAR}, #{ssPinyincode,jdbcType=VARCHAR},
- #{ssWubicode,jdbcType=VARCHAR}, #{ssOthercode,jdbcType=VARCHAR}, #{ssIsdel,jdbcType=INTEGER},
- #{suAddress,jdbcType=VARCHAR}, #{suTitleCode,jdbcType=VARCHAR}, #{suChiefCode,jdbcType=VARCHAR},
- #{suPersonnelDep,jdbcType=VARCHAR}, #{suStatus,jdbcType=INTEGER}, #{suShortTel,jdbcType=VARCHAR},
- #{suCredential,jdbcType=VARCHAR}, #{suProfessionalCertificate,jdbcType=VARCHAR},
- now(), #{suRemark,jdbcType=VARCHAR}, #{suSignImg,jdbcType=VARCHAR},
- #{suHeadImg,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.SysUserinfo" >
- insert into sys_userinfo
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="uiId != null" >
- UI_ID,
- </if>
- <if test="hiId != null" >
- HI_ID,
- </if>
- <if test="uiCode != null" >
- UI_Code,
- </if>
- <if test="ssPassword != null" >
- SS_Password,
- </if>
- <if test="uiName != null" >
- UI_Name,
- </if>
- <if test="uiPhone != null" >
- UI_Phone,
- </if>
- <if test="uiIdnumber != null" >
- UI_IDNumber,
- </if>
- <if test="uiSex != null" >
- UI_Sex,
- </if>
- <if test="uiBirthday != null" >
- UI_Birthday,
- </if>
- <if test="uiEmail != null" >
- UI_Email,
- </if>
- <if test="uiEntrydata != null" >
- UI_EntryData,
- </if>
- <if test="ssDepartmentid != null" >
- SS_DepartmentID,
- </if>
- <if test="ssWardid != null" >
- SS_WardID,
- </if>
- <if test="ssType != null" >
- SS_Type,
- </if>
- <if test="ssNature != null" >
- SS_Nature,
- </if>
- <if test="ssPessoaldate != null" >
- SS_PessoalDate,
- </if>
- <if test="ssNativeplace != null" >
- SS_Nativeplace,
- </if>
- <if test="ssPolitics != null" >
- SS_Politics,
- </if>
- <if test="ssWorkdate != null" >
- SS_WorkDate,
- </if>
- <if test="ssDegree != null" >
- SS_Degree,
- </if>
- <if test="ssMaritalstatus != null" >
- SS_MaritalStatus,
- </if>
- <if test="ssNation != null" >
- SS_Nation,
- </if>
- <if test="ssLevel != null" >
- SS_Level,
- </if>
- <if test="ssPinyincode != null" >
- SS_PinyinCode,
- </if>
- <if test="ssWubicode != null" >
- SS_WubiCode,
- </if>
- <if test="ssOthercode != null" >
- SS_OtherCode,
- </if>
- <if test="ssIsdel != null" >
- SS_ISDel,
- </if>
- <if test="suAddress != null" >
- SU_Address,
- </if>
- <if test="suTitleCode != null" >
- SU_Title_Code,
- </if>
- <if test="suChiefCode != null" >
- SU_Chief_Code,
- </if>
- <if test="suPersonnelDep != null" >
- SU_Personnel_Dep,
- </if>
- <if test="suStatus != null" >
- SU_Status,
- </if>
- <if test="suShortTel != null" >
- SU_Short_Tel,
- </if>
- <if test="suCredential != null" >
- SU_Credential,
- </if>
- <if test="suProfessionalCertificate != null" >
- SU_Professional_Certificate,
- </if>
- <if test="suLeaveTime != null" >
- SU_Leave_Time,
- </if>
- <if test="suRemark != null" >
- SU_Remark,
- </if>
- <if test="suSignImg != null" >
- SU_Sign_Img,
- </if>
- <if test="suHeadImg != null" >
- SU_Head_Img,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="uiId != null" >
- #{uiId,jdbcType=INTEGER},
- </if>
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- <if test="uiCode != null" >
- #{uiCode,jdbcType=VARCHAR},
- </if>
- <if test="ssPassword != null" >
- #{ssPassword,jdbcType=VARCHAR},
- </if>
- <if test="uiName != null" >
- #{uiName,jdbcType=VARCHAR},
- </if>
- <if test="uiPhone != null" >
- #{uiPhone,jdbcType=VARCHAR},
- </if>
- <if test="uiIdnumber != null" >
- #{uiIdnumber,jdbcType=VARCHAR},
- </if>
- <if test="uiSex != null" >
- #{uiSex,jdbcType=INTEGER},
- </if>
- <if test="uiBirthday != null" >
- #{uiBirthday,jdbcType=DATE},
- </if>
- <if test="uiEmail != null" >
- #{uiEmail,jdbcType=VARCHAR},
- </if>
- <if test="uiEntrydata != null" >
- #{uiEntrydata,jdbcType=DATE},
- </if>
- <if test="ssDepartmentid != null" >
- #{ssDepartmentid,jdbcType=INTEGER},
- </if>
- <if test="ssWardid != null" >
- #{ssWardid,jdbcType=INTEGER},
- </if>
- <if test="ssType != null" >
- #{ssType,jdbcType=INTEGER},
- </if>
- <if test="ssNature != null" >
- #{ssNature,jdbcType=INTEGER},
- </if>
- <if test="ssPessoaldate != null" >
- #{ssPessoaldate,jdbcType=DATE},
- </if>
- <if test="ssNativeplace != null" >
- #{ssNativeplace,jdbcType=VARCHAR},
- </if>
- <if test="ssPolitics != null" >
- #{ssPolitics,jdbcType=VARCHAR},
- </if>
- <if test="ssWorkdate != null" >
- #{ssWorkdate,jdbcType=DATE},
- </if>
- <if test="ssDegree != null" >
- #{ssDegree,jdbcType=VARCHAR},
- </if>
- <if test="ssMaritalstatus != null" >
- #{ssMaritalstatus,jdbcType=INTEGER},
- </if>
- <if test="ssNation != null" >
- #{ssNation,jdbcType=VARCHAR},
- </if>
- <if test="ssLevel != null" >
- #{ssLevel,jdbcType=VARCHAR},
- </if>
- <if test="ssPinyincode != null" >
- #{ssPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="ssWubicode != null" >
- #{ssWubicode,jdbcType=VARCHAR},
- </if>
- <if test="ssOthercode != null" >
- #{ssOthercode,jdbcType=VARCHAR},
- </if>
- <if test="ssIsdel != null" >
- #{ssIsdel,jdbcType=INTEGER},
- </if>
- <if test="suAddress != null" >
- #{suAddress,jdbcType=VARCHAR},
- </if>
- <if test="suTitleCode != null" >
- #{suTitleCode,jdbcType=VARCHAR},
- </if>
- <if test="suChiefCode != null" >
- #{suChiefCode,jdbcType=VARCHAR},
- </if>
- <if test="suPersonnelDep != null" >
- #{suPersonnelDep,jdbcType=VARCHAR},
- </if>
- <if test="suStatus != null" >
- #{suStatus,jdbcType=INTEGER},
- </if>
- <if test="suShortTel != null" >
- #{suShortTel,jdbcType=VARCHAR},
- </if>
- <if test="suCredential != null" >
- #{suCredential,jdbcType=VARCHAR},
- </if>
- <if test="suProfessionalCertificate != null" >
- #{suProfessionalCertificate,jdbcType=VARCHAR},
- </if>
- <if test="suLeaveTime != null" >
- #{suLeaveTime,jdbcType=TIMESTAMP},
- </if>
- <if test="suRemark != null" >
- #{suRemark,jdbcType=VARCHAR},
- </if>
- <if test="suSignImg != null" >
- #{suSignImg,jdbcType=VARCHAR},
- </if>
- <if test="suHeadImg != null" >
- #{suHeadImg,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.SysUserinfo" >
- update sys_userinfo
- <set >
- <if test="hiId != null" >
- HI_ID = #{hiId,jdbcType=INTEGER},
- </if>
- <if test="uiCode != null" >
- UI_Code = #{uiCode,jdbcType=VARCHAR},
- </if>
- <if test="ssPassword != null" >
- SS_Password = #{ssPassword,jdbcType=VARCHAR},
- </if>
- <if test="uiName != null" >
- UI_Name = #{uiName,jdbcType=VARCHAR},
- </if>
- <if test="uiPhone != null" >
- UI_Phone = #{uiPhone,jdbcType=VARCHAR},
- </if>
- <if test="uiIdnumber != null" >
- UI_IDNumber = #{uiIdnumber,jdbcType=VARCHAR},
- </if>
- <if test="uiSex != null" >
- UI_Sex = #{uiSex,jdbcType=INTEGER},
- </if>
- <if test="uiBirthday != null" >
- UI_Birthday = #{uiBirthday,jdbcType=DATE},
- </if>
- <if test="uiEmail != null" >
- UI_Email = #{uiEmail,jdbcType=VARCHAR},
- </if>
- <if test="uiEntrydata != null" >
- UI_EntryData = #{uiEntrydata,jdbcType=DATE},
- </if>
- <if test="ssDepartmentid != null" >
- SS_DepartmentID = #{ssDepartmentid,jdbcType=INTEGER},
- </if>
- <if test="ssWardid != null" >
- SS_WardID = #{ssWardid,jdbcType=INTEGER},
- </if>
- <if test="ssType != null" >
- SS_Type = #{ssType,jdbcType=INTEGER},
- </if>
- <if test="ssNature != null" >
- SS_Nature = #{ssNature,jdbcType=INTEGER},
- </if>
- <if test="ssPessoaldate != null" >
- SS_PessoalDate = #{ssPessoaldate,jdbcType=DATE},
- </if>
- <if test="ssNativeplace != null" >
- SS_Nativeplace = #{ssNativeplace,jdbcType=VARCHAR},
- </if>
- <if test="ssPolitics != null" >
- SS_Politics = #{ssPolitics,jdbcType=VARCHAR},
- </if>
- <if test="ssWorkdate != null" >
- SS_WorkDate = #{ssWorkdate,jdbcType=DATE},
- </if>
- <if test="ssDegree != null" >
- SS_Degree = #{ssDegree,jdbcType=VARCHAR},
- </if>
- <if test="ssMaritalstatus != null" >
- SS_MaritalStatus = #{ssMaritalstatus,jdbcType=INTEGER},
- </if>
- <if test="ssNation != null" >
- SS_Nation = #{ssNation,jdbcType=VARCHAR},
- </if>
- <if test="ssLevel != null" >
- SS_Level = #{ssLevel,jdbcType=VARCHAR},
- </if>
- <if test="ssPinyincode != null" >
- SS_PinyinCode = #{ssPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="ssWubicode != null" >
- SS_WubiCode = #{ssWubicode,jdbcType=VARCHAR},
- </if>
- <if test="ssOthercode != null" >
- SS_OtherCode = #{ssOthercode,jdbcType=VARCHAR},
- </if>
- <if test="ssIsdel != null" >
- SS_ISDel = #{ssIsdel,jdbcType=INTEGER},
- </if>
- <if test="suAddress != null" >
- SU_Address = #{suAddress,jdbcType=VARCHAR},
- </if>
- <if test="suTitleCode != null" >
- SU_Title_Code = #{suTitleCode,jdbcType=VARCHAR},
- </if>
- <if test="suChiefCode != null" >
- SU_Chief_Code = #{suChiefCode,jdbcType=VARCHAR},
- </if>
- <if test="suPersonnelDep != null" >
- SU_Personnel_Dep = #{suPersonnelDep,jdbcType=VARCHAR},
- </if>
- <if test="suStatus != null" >
- SU_Status = #{suStatus,jdbcType=INTEGER},
- </if>
- <if test="suShortTel != null" >
- SU_Short_Tel = #{suShortTel,jdbcType=VARCHAR},
- </if>
- <if test="suCredential != null" >
- SU_Credential = #{suCredential,jdbcType=VARCHAR},
- </if>
- <if test="suProfessionalCertificate != null" >
- SU_Professional_Certificate = #{suProfessionalCertificate,jdbcType=VARCHAR},
- </if>
- <if test="suLeaveTime != null" >
- SU_Leave_Time = #{suLeaveTime,jdbcType=TIMESTAMP},
- </if>
- <if test="suRemark != null" >
- SU_Remark = #{suRemark,jdbcType=VARCHAR},
- </if>
- <if test="suSignImg != null" >
- SU_Sign_Img = #{suSignImg,jdbcType=VARCHAR},
- </if>
- <if test="suHeadImg != null" >
- SU_Head_Img = #{suHeadImg,jdbcType=VARCHAR},
- </if>
- </set>
- where UI_ID = #{uiId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.SysUserinfo" >
- update sys_userinfo
- set HI_ID = #{hiId,jdbcType=INTEGER},
- UI_Code = #{uiCode,jdbcType=VARCHAR},
- SS_Password = #{ssPassword,jdbcType=VARCHAR},
- UI_Name = #{uiName,jdbcType=VARCHAR},
- UI_Phone = #{uiPhone,jdbcType=VARCHAR},
- UI_IDNumber = #{uiIdnumber,jdbcType=VARCHAR},
- UI_Sex = #{uiSex,jdbcType=INTEGER},
- UI_Birthday = #{uiBirthday,jdbcType=DATE},
- UI_Email = #{uiEmail,jdbcType=VARCHAR},
- UI_EntryData = #{uiEntrydata,jdbcType=DATE},
- SS_DepartmentID = #{ssDepartmentid,jdbcType=INTEGER},
- SS_WardID = #{ssWardid,jdbcType=INTEGER},
- SS_Type = #{ssType,jdbcType=INTEGER},
- SS_Nature = #{ssNature,jdbcType=INTEGER},
- SS_PessoalDate = #{ssPessoaldate,jdbcType=DATE},
- SS_Nativeplace = #{ssNativeplace,jdbcType=VARCHAR},
- SS_Politics = #{ssPolitics,jdbcType=VARCHAR},
- SS_WorkDate = #{ssWorkdate,jdbcType=DATE},
- SS_Degree = #{ssDegree,jdbcType=VARCHAR},
- SS_MaritalStatus = #{ssMaritalstatus,jdbcType=INTEGER},
- SS_Nation = #{ssNation,jdbcType=VARCHAR},
- SS_Level = #{ssLevel,jdbcType=VARCHAR},
- SS_PinyinCode = #{ssPinyincode,jdbcType=VARCHAR},
- SS_WubiCode = #{ssWubicode,jdbcType=VARCHAR},
- SS_OtherCode = #{ssOthercode,jdbcType=VARCHAR},
- SS_ISDel = #{ssIsdel,jdbcType=INTEGER},
- SU_Address = #{suAddress,jdbcType=VARCHAR},
- SU_Title_Code = #{suTitleCode,jdbcType=VARCHAR},
- SU_Chief_Code = #{suChiefCode,jdbcType=VARCHAR},
- SU_Personnel_Dep = #{suPersonnelDep,jdbcType=VARCHAR},
- SU_Status = #{suStatus,jdbcType=INTEGER},
- SU_Short_Tel = #{suShortTel,jdbcType=VARCHAR},
- SU_Credential = #{suCredential,jdbcType=VARCHAR},
- SU_Professional_Certificate = #{suProfessionalCertificate,jdbcType=VARCHAR},
- SU_Leave_Time = #{suLeaveTime,jdbcType=TIMESTAMP},
- SU_Remark = #{suRemark,jdbcType=VARCHAR},
- SU_Sign_Img = #{suSignImg,jdbcType=VARCHAR},
- SU_Head_Img = #{suHeadImg,jdbcType=VARCHAR}
- where UI_ID = #{uiId,jdbcType=INTEGER}
- </update>
- <update id="restUserPwd" parameterType="java.lang.String">
- update sys_userinfo
- set SS_Password = '123456'
- where UI_Code = #{uiCode,jdbcType=VARCHAR}
- </update>
- <select id="selectUserList" resultMap="HashMap">
- select
- su.UI_ID, su.HI_ID, su.UI_Code, su.UI_Name, su.UI_Phone, su.UI_IDNumber, su.UI_Sex, su.UI_Birthday,
- su.UI_Email, su.UI_EntryData, su.SS_DepartmentID, su.SS_WardID, su.SS_Type, su.SS_Nature, su.SS_PessoalDate,
- su.SS_Nativeplace, su.SS_Politics, su.SS_WorkDate, su.SS_Degree, su.SS_MaritalStatus, su.SS_Nation,
- su.SS_Level, su.SS_PinyinCode, su.SS_WubiCode, su.SS_OtherCode, su.SS_ISDel, su.SU_Address, su.SU_Title_Code,
- su.SU_Chief_Code, su.SU_Personnel_Dep, su.SU_Status, su.SU_Short_Tel, su.SU_Credential, su.SU_Professional_Certificate,
- su.SU_Leave_Time, su.SU_Remark, su.SU_Sign_Img, su.SU_Head_Img, dd.DD_ID, dd.DD_DepDm, dd.DD_DepName,
- (select SDD_Detail_Name from sys_dictionary_detail sdd1 where sdd1.SDD_Detail_Code = su.SU_Title_Code and sdd1.SD_ID=(select SD_ID from sys_dictionary where SD_DicDM = 'sys_user_title')) titleName,
- (select SDD_Detail_Name from sys_dictionary_detail sdd2 where sdd2.SDD_Detail_Code = su.SU_Chief_Code and sdd2.SD_ID=(select SD_ID from sys_dictionary where SD_DicDM = 'sys_user_chief')) chiefName
- from
- sys_userinfo su left join dic_department dd on su.SS_DepartmentID = dd.DD_ID
- where su.HI_ID = #{hiId,jdbcType=INTEGER}
- <if test="ssIsdel != null" >
- and su.SS_ISDel = #{ssIsdel,jdbcType=INTEGER}
- </if>
- </select>
- <select id="selectUserByName" resultMap="HashMap">
- select
- su.UI_ID, su.HI_ID, su.UI_Code, su.UI_Name, su.UI_Phone, su.UI_IDNumber, su.UI_Sex, su.UI_Birthday,
- su.UI_Email, su.UI_EntryData, su.SS_DepartmentID, su.SS_WardID, su.SS_Type, su.SS_Nature, su.SS_PessoalDate,
- su.SS_Nativeplace, su.SS_Politics, su.SS_WorkDate, su.SS_Degree, su.SS_MaritalStatus, su.SS_Nation,
- su.SS_Level, su.SS_PinyinCode, su.SS_WubiCode, su.SS_OtherCode, su.SS_ISDel, su.SU_Address, su.SU_Title_Code,
- su.SU_Chief_Code, su.SU_Personnel_Dep, su.SU_Status, su.SU_Short_Tel, su.SU_Credential, su.SU_Professional_Certificate,
- su.SU_Leave_Time, su.SU_Remark, su.SU_Sign_Img, su.SU_Head_Img, dd.DD_ID, dd.DD_DepDm, dd.DD_DepName,
- (select SDD_Detail_Name from sys_dictionary_detail sdd1 where sdd1.SDD_Detail_Code = su.SU_Title_Code and sdd1.SD_ID=(select SD_ID from sys_dictionary where SD_DicDM = 'sys_user_title')) titleName,
- (select SDD_Detail_Name from sys_dictionary_detail sdd2 where sdd2.SDD_Detail_Code = su.SU_Chief_Code and sdd2.SD_ID=(select SD_ID from sys_dictionary where SD_DicDM = 'sys_user_chief')) chiefName
- from
- sys_userinfo su left join dic_department dd on su.SS_DepartmentID = dd.DD_ID
- where
- su.HI_ID = #{hiId,jdbcType=INTEGER}
- and (
- su.UI_Name like concat('%',#{uiName,jdbcType=VARCHAR},'%')
- or su.UI_Code like concat('%',#{uiName,jdbcType=VARCHAR},'%')
- or su.SS_PinyinCode like concat('%',#{uiName,jdbcType=VARCHAR},'%')
- or su.SS_WubiCode like concat('%',#{uiName,jdbcType=VARCHAR},'%'))
- <if test="ssIsdel != null" >
- and su.SS_ISDel = #{ssIsdel,jdbcType=INTEGER}
- </if>
- </select>
- <select id="selectByCode" resultMap="BaseResultMap" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- from sys_userinfo
- where SS_ISDel = 0 and UI_Code = #{uiCode,jdbcType=VARCHAR}
- </select>
- <update id="updateFile" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.SysUserinfo" >
- update sys_userinfo
- <set>
- <if test="suSignImg != null" >
- SU_Sign_Img = #{suSignImg,jdbcType=VARCHAR},
- </if>
- <if test="suHeadImg != null" >
- SU_Head_Img = #{suHeadImg,jdbcType=VARCHAR},
- </if>
- </set>
- where UI_ID = #{uiId,jdbcType=INTEGER}
- </update>
- <!--<update id="updatePassword" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.SysUserinfo" >
- update sys_userinfo
- set
- SS_Password = 123456
- where UI_ID = #{uiId,jdbcType=INTEGER}
- </update>-->
- <select id="getAll" resultMap="BaseResultMap">
- select UI_ID,UI_Name,UI_Code
- from sys_userinfo
- where HI_ID = #{hiId,jdbcType=INTEGER}
- </select>
- <select id="getAllUser" resultMap="BaseResultMap">
- select UI_ID,UI_Name,UI_Code
- from sys_userinfo
- where SS_ISDel = 0
- </select>
- <select id="selectByCodeNum" resultType="java.lang.Integer" parameterType="java.lang.String">
- select
- count(1)
- from sys_userinfo
- where SS_ISDel = 0 and UI_Code = #{uiId,jdbcType=VARCHAR}
- </select>
- <select id="userList" resultType="com.xinxin.topro.sysservice.response.UserInfoResponse">
- SELECT
- su.UI_Code AS uiCode,
- su.UI_Name AS uiName,
- dd.DD_DepName AS depName
- FROM
- sys_userinfo su
- LEFT JOIN dic_department dd ON su.SS_DepartmentID = dd.DD_ID
- WHERE
- su.SS_ISDel = 0
- AND (su.UI_Code like concat(#{searchKey,jdbcType=VARCHAR},'%')
- OR su.UI_Name like concat(#{searchKey,jdbcType=VARCHAR}, '%'))
- </select>
- </mapper>
|