UserInfoMapper.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.xinxin.topro.base.mysqlmapper.UserInfoMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.UserInfo" >
  5. <id column="UI_ID" property="uiId" jdbcType="INTEGER" />
  6. <result column="UI_Code" property="uiCode" jdbcType="VARCHAR" />
  7. <result column="SS_Password" property="ssPassword" jdbcType="VARCHAR" />
  8. <result column="UI_Name" property="uiName" jdbcType="VARCHAR" />
  9. <result column="UI_Phone" property="uiPhone" jdbcType="VARCHAR" />
  10. <result column="UI_IDNumber" property="uiIdnumber" jdbcType="VARCHAR" />
  11. <result column="UI_Sex" property="uiSex" jdbcType="INTEGER" />
  12. <result column="UI_Birthday" property="uiBirthday" jdbcType="DATE" />
  13. <result column="UI_Email" property="uiEmail" jdbcType="VARCHAR" />
  14. <result column="UI_EntryData" property="uiEntrydata" jdbcType="DATE" />
  15. <result column="SS_DepartmentID" property="ssDepartmentid" jdbcType="INTEGER" />
  16. <result column="SS_WardID" property="ssWardid" jdbcType="INTEGER" />
  17. <result column="SS_Type" property="ssType" jdbcType="INTEGER" />
  18. <result column="SS_Nature" property="ssNature" jdbcType="INTEGER" />
  19. <result column="SS_PessoalDate" property="ssPessoaldate" jdbcType="DATE" />
  20. <result column="SS_Nativeplace" property="ssNativeplace" jdbcType="VARCHAR" />
  21. <result column="SS_Politics" property="ssPolitics" jdbcType="VARCHAR" />
  22. <result column="SS_WorkDate" property="ssWorkdate" jdbcType="DATE" />
  23. <result column="SS_Degree" property="ssDegree" jdbcType="VARCHAR" />
  24. <result column="SS_MaritalStatus" property="ssMaritalstatus" jdbcType="INTEGER" />
  25. <result column="SS_Nation" property="ssNation" jdbcType="VARCHAR" />
  26. <result column="SS_Level" property="ssLevel" jdbcType="VARCHAR" />
  27. <result column="SS_PinyinCode" property="ssPinyincode" jdbcType="VARCHAR" />
  28. <result column="SS_WubiCode" property="ssWubicode" jdbcType="VARCHAR" />
  29. <result column="SS_OtherCode" property="ssOthercode" jdbcType="VARCHAR" />
  30. <result column="SS_ISDel" property="ssIsdel" jdbcType="INTEGER" />
  31. <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
  32. </resultMap>
  33. <sql id="Base_Column_List" >
  34. UI_ID, UI_Code, SS_Password, UI_Name, UI_Phone, UI_IDNumber, UI_Sex, UI_Birthday,
  35. UI_Email, UI_EntryData, SS_DepartmentID, SS_WardID, SS_Type, SS_Nature, SS_PessoalDate,
  36. SS_Nativeplace, SS_Politics, SS_WorkDate, SS_Degree, SS_MaritalStatus, SS_Nation,
  37. SS_Level, SS_PinyinCode, SS_WubiCode, SS_OtherCode, SS_ISDel, HI_ID
  38. </sql>
  39. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  40. select
  41. <include refid="Base_Column_List" />
  42. from sys_userinfo
  43. where UI_ID = #{uiId,jdbcType=INTEGER}
  44. </select>
  45. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  46. delete from sys_userinfo
  47. where UI_ID = #{uiId,jdbcType=INTEGER}
  48. </delete>
  49. <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.UserInfo" >
  50. insert into sys_userinfo (UI_ID, UI_Code, SS_Password,
  51. UI_Name, UI_Phone, UI_IDNumber,
  52. UI_Sex, UI_Birthday, UI_Email,
  53. UI_EntryData, SS_DepartmentID, SS_WardID,
  54. SS_Type, SS_Nature, SS_PessoalDate,
  55. SS_Nativeplace, SS_Politics, SS_WorkDate,
  56. SS_Degree, SS_MaritalStatus, SS_Nation,
  57. SS_Level, SS_PinyinCode, SS_WubiCode,
  58. SS_OtherCode, SS_ISDel, HI_ID
  59. )
  60. values (#{uiId,jdbcType=INTEGER}, #{uiCode,jdbcType=VARCHAR}, #{ssPassword,jdbcType=VARCHAR},
  61. #{uiName,jdbcType=VARCHAR}, #{uiPhone,jdbcType=VARCHAR}, #{uiIdnumber,jdbcType=VARCHAR},
  62. #{uiSex,jdbcType=INTEGER}, #{uiBirthday,jdbcType=DATE}, #{uiEmail,jdbcType=VARCHAR},
  63. #{uiEntrydata,jdbcType=DATE}, #{ssDepartmentid,jdbcType=INTEGER}, #{ssWardid,jdbcType=INTEGER},
  64. #{ssType,jdbcType=INTEGER}, #{ssNature,jdbcType=INTEGER}, #{ssPessoaldate,jdbcType=DATE},
  65. #{ssNativeplace,jdbcType=VARCHAR}, #{ssPolitics,jdbcType=VARCHAR}, #{ssWorkdate,jdbcType=DATE},
  66. #{ssDegree,jdbcType=VARCHAR}, #{ssMaritalstatus,jdbcType=INTEGER}, #{ssNation,jdbcType=VARCHAR},
  67. #{ssLevel,jdbcType=VARCHAR}, #{ssPinyincode,jdbcType=VARCHAR}, #{ssWubicode,jdbcType=VARCHAR},
  68. #{ssOthercode,jdbcType=VARCHAR}, #{ssIsdel,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}
  69. )
  70. </insert>
  71. <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.UserInfo" >
  72. insert into sys_userinfo
  73. <trim prefix="(" suffix=")" suffixOverrides="," >
  74. <if test="uiId != null" >
  75. UI_ID,
  76. </if>
  77. <if test="uiCode != null" >
  78. UI_Code,
  79. </if>
  80. <if test="ssPassword != null" >
  81. SS_Password,
  82. </if>
  83. <if test="uiName != null" >
  84. UI_Name,
  85. </if>
  86. <if test="uiPhone != null" >
  87. UI_Phone,
  88. </if>
  89. <if test="uiIdnumber != null" >
  90. UI_IDNumber,
  91. </if>
  92. <if test="uiSex != null" >
  93. UI_Sex,
  94. </if>
  95. <if test="uiBirthday != null" >
  96. UI_Birthday,
  97. </if>
  98. <if test="uiEmail != null" >
  99. UI_Email,
  100. </if>
  101. <if test="uiEntrydata != null" >
  102. UI_EntryData,
  103. </if>
  104. <if test="ssDepartmentid != null" >
  105. SS_DepartmentID,
  106. </if>
  107. <if test="ssWardid != null" >
  108. SS_WardID,
  109. </if>
  110. <if test="ssType != null" >
  111. SS_Type,
  112. </if>
  113. <if test="ssNature != null" >
  114. SS_Nature,
  115. </if>
  116. <if test="ssPessoaldate != null" >
  117. SS_PessoalDate,
  118. </if>
  119. <if test="ssNativeplace != null" >
  120. SS_Nativeplace,
  121. </if>
  122. <if test="ssPolitics != null" >
  123. SS_Politics,
  124. </if>
  125. <if test="ssWorkdate != null" >
  126. SS_WorkDate,
  127. </if>
  128. <if test="ssDegree != null" >
  129. SS_Degree,
  130. </if>
  131. <if test="ssMaritalstatus != null" >
  132. SS_MaritalStatus,
  133. </if>
  134. <if test="ssNation != null" >
  135. SS_Nation,
  136. </if>
  137. <if test="ssLevel != null" >
  138. SS_Level,
  139. </if>
  140. <if test="ssPinyincode != null" >
  141. SS_PinyinCode,
  142. </if>
  143. <if test="ssWubicode != null" >
  144. SS_WubiCode,
  145. </if>
  146. <if test="ssOthercode != null" >
  147. SS_OtherCode,
  148. </if>
  149. <if test="ssIsdel != null" >
  150. SS_ISDel,
  151. </if>
  152. <if test="hiId != null" >
  153. HI_ID,
  154. </if>
  155. </trim>
  156. <trim prefix="values (" suffix=")" suffixOverrides="," >
  157. <if test="uiId != null" >
  158. #{uiId,jdbcType=INTEGER},
  159. </if>
  160. <if test="uiCode != null" >
  161. #{uiCode,jdbcType=VARCHAR},
  162. </if>
  163. <if test="ssPassword != null" >
  164. #{ssPassword,jdbcType=VARCHAR},
  165. </if>
  166. <if test="uiName != null" >
  167. #{uiName,jdbcType=VARCHAR},
  168. </if>
  169. <if test="uiPhone != null" >
  170. #{uiPhone,jdbcType=VARCHAR},
  171. </if>
  172. <if test="uiIdnumber != null" >
  173. #{uiIdnumber,jdbcType=VARCHAR},
  174. </if>
  175. <if test="uiSex != null" >
  176. #{uiSex,jdbcType=INTEGER},
  177. </if>
  178. <if test="uiBirthday != null" >
  179. #{uiBirthday,jdbcType=DATE},
  180. </if>
  181. <if test="uiEmail != null" >
  182. #{uiEmail,jdbcType=VARCHAR},
  183. </if>
  184. <if test="uiEntrydata != null" >
  185. #{uiEntrydata,jdbcType=DATE},
  186. </if>
  187. <if test="ssDepartmentid != null" >
  188. #{ssDepartmentid,jdbcType=INTEGER},
  189. </if>
  190. <if test="ssWardid != null" >
  191. #{ssWardid,jdbcType=INTEGER},
  192. </if>
  193. <if test="ssType != null" >
  194. #{ssType,jdbcType=INTEGER},
  195. </if>
  196. <if test="ssNature != null" >
  197. #{ssNature,jdbcType=INTEGER},
  198. </if>
  199. <if test="ssPessoaldate != null" >
  200. #{ssPessoaldate,jdbcType=DATE},
  201. </if>
  202. <if test="ssNativeplace != null" >
  203. #{ssNativeplace,jdbcType=VARCHAR},
  204. </if>
  205. <if test="ssPolitics != null" >
  206. #{ssPolitics,jdbcType=VARCHAR},
  207. </if>
  208. <if test="ssWorkdate != null" >
  209. #{ssWorkdate,jdbcType=DATE},
  210. </if>
  211. <if test="ssDegree != null" >
  212. #{ssDegree,jdbcType=VARCHAR},
  213. </if>
  214. <if test="ssMaritalstatus != null" >
  215. #{ssMaritalstatus,jdbcType=INTEGER},
  216. </if>
  217. <if test="ssNation != null" >
  218. #{ssNation,jdbcType=VARCHAR},
  219. </if>
  220. <if test="ssLevel != null" >
  221. #{ssLevel,jdbcType=VARCHAR},
  222. </if>
  223. <if test="ssPinyincode != null" >
  224. #{ssPinyincode,jdbcType=VARCHAR},
  225. </if>
  226. <if test="ssWubicode != null" >
  227. #{ssWubicode,jdbcType=VARCHAR},
  228. </if>
  229. <if test="ssOthercode != null" >
  230. #{ssOthercode,jdbcType=VARCHAR},
  231. </if>
  232. <if test="ssIsdel != null" >
  233. #{ssIsdel,jdbcType=INTEGER},
  234. </if>
  235. <if test="hiId != null" >
  236. #{hiId,jdbcType=INTEGER},
  237. </if>
  238. </trim>
  239. </insert>
  240. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.UserInfo" >
  241. update sys_userinfo
  242. <set >
  243. <if test="uiCode != null" >
  244. UI_Code = #{uiCode,jdbcType=VARCHAR},
  245. </if>
  246. <if test="ssPassword != null" >
  247. SS_Password = #{ssPassword,jdbcType=VARCHAR},
  248. </if>
  249. <if test="uiName != null" >
  250. UI_Name = #{uiName,jdbcType=VARCHAR},
  251. </if>
  252. <if test="uiPhone != null" >
  253. UI_Phone = #{uiPhone,jdbcType=VARCHAR},
  254. </if>
  255. <if test="uiIdnumber != null" >
  256. UI_IDNumber = #{uiIdnumber,jdbcType=VARCHAR},
  257. </if>
  258. <if test="uiSex != null" >
  259. UI_Sex = #{uiSex,jdbcType=INTEGER},
  260. </if>
  261. <if test="uiBirthday != null" >
  262. UI_Birthday = #{uiBirthday,jdbcType=DATE},
  263. </if>
  264. <if test="uiEmail != null" >
  265. UI_Email = #{uiEmail,jdbcType=VARCHAR},
  266. </if>
  267. <if test="uiEntrydata != null" >
  268. UI_EntryData = #{uiEntrydata,jdbcType=DATE},
  269. </if>
  270. <if test="ssDepartmentid != null" >
  271. SS_DepartmentID = #{ssDepartmentid,jdbcType=INTEGER},
  272. </if>
  273. <if test="ssWardid != null" >
  274. SS_WardID = #{ssWardid,jdbcType=INTEGER},
  275. </if>
  276. <if test="ssType != null" >
  277. SS_Type = #{ssType,jdbcType=INTEGER},
  278. </if>
  279. <if test="ssNature != null" >
  280. SS_Nature = #{ssNature,jdbcType=INTEGER},
  281. </if>
  282. <if test="ssPessoaldate != null" >
  283. SS_PessoalDate = #{ssPessoaldate,jdbcType=DATE},
  284. </if>
  285. <if test="ssNativeplace != null" >
  286. SS_Nativeplace = #{ssNativeplace,jdbcType=VARCHAR},
  287. </if>
  288. <if test="ssPolitics != null" >
  289. SS_Politics = #{ssPolitics,jdbcType=VARCHAR},
  290. </if>
  291. <if test="ssWorkdate != null" >
  292. SS_WorkDate = #{ssWorkdate,jdbcType=DATE},
  293. </if>
  294. <if test="ssDegree != null" >
  295. SS_Degree = #{ssDegree,jdbcType=VARCHAR},
  296. </if>
  297. <if test="ssMaritalstatus != null" >
  298. SS_MaritalStatus = #{ssMaritalstatus,jdbcType=INTEGER},
  299. </if>
  300. <if test="ssNation != null" >
  301. SS_Nation = #{ssNation,jdbcType=VARCHAR},
  302. </if>
  303. <if test="ssLevel != null" >
  304. SS_Level = #{ssLevel,jdbcType=VARCHAR},
  305. </if>
  306. <if test="ssPinyincode != null" >
  307. SS_PinyinCode = #{ssPinyincode,jdbcType=VARCHAR},
  308. </if>
  309. <if test="ssWubicode != null" >
  310. SS_WubiCode = #{ssWubicode,jdbcType=VARCHAR},
  311. </if>
  312. <if test="ssOthercode != null" >
  313. SS_OtherCode = #{ssOthercode,jdbcType=VARCHAR},
  314. </if>
  315. <if test="ssIsdel != null" >
  316. SS_ISDel = #{ssIsdel,jdbcType=INTEGER},
  317. </if>
  318. <if test="hiId != null" >
  319. HI_ID = #{hiId,jdbcType=INTEGER},
  320. </if>
  321. </set>
  322. where UI_ID = #{uiId,jdbcType=INTEGER}
  323. </update>
  324. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.UserInfo" >
  325. update sys_userinfo
  326. set UI_Code = #{uiCode,jdbcType=VARCHAR},
  327. SS_Password = #{ssPassword,jdbcType=VARCHAR},
  328. UI_Name = #{uiName,jdbcType=VARCHAR},
  329. UI_Phone = #{uiPhone,jdbcType=VARCHAR},
  330. UI_IDNumber = #{uiIdnumber,jdbcType=VARCHAR},
  331. UI_Sex = #{uiSex,jdbcType=INTEGER},
  332. UI_Birthday = #{uiBirthday,jdbcType=DATE},
  333. UI_Email = #{uiEmail,jdbcType=VARCHAR},
  334. UI_EntryData = #{uiEntrydata,jdbcType=DATE},
  335. SS_DepartmentID = #{ssDepartmentid,jdbcType=INTEGER},
  336. SS_WardID = #{ssWardid,jdbcType=INTEGER},
  337. SS_Type = #{ssType,jdbcType=INTEGER},
  338. SS_Nature = #{ssNature,jdbcType=INTEGER},
  339. SS_PessoalDate = #{ssPessoaldate,jdbcType=DATE},
  340. SS_Nativeplace = #{ssNativeplace,jdbcType=VARCHAR},
  341. SS_Politics = #{ssPolitics,jdbcType=VARCHAR},
  342. SS_WorkDate = #{ssWorkdate,jdbcType=DATE},
  343. SS_Degree = #{ssDegree,jdbcType=VARCHAR},
  344. SS_MaritalStatus = #{ssMaritalstatus,jdbcType=INTEGER},
  345. SS_Nation = #{ssNation,jdbcType=VARCHAR},
  346. SS_Level = #{ssLevel,jdbcType=VARCHAR},
  347. SS_PinyinCode = #{ssPinyincode,jdbcType=VARCHAR},
  348. SS_WubiCode = #{ssWubicode,jdbcType=VARCHAR},
  349. SS_OtherCode = #{ssOthercode,jdbcType=VARCHAR},
  350. SS_ISDel = #{ssIsdel,jdbcType=INTEGER},
  351. HI_ID = #{hiId,jdbcType=INTEGER}
  352. where UI_ID = #{uiId,jdbcType=INTEGER}
  353. </update>
  354. </mapper>