SystemLogTwoMapper.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  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.chinaitop.depot.system.mapper.SystemLogTwoMapper" >
  4. <resultMap id="BaseResultMap" type="com.chinaitop.depot.system.model.SystemLogTwo" >
  5. <result column="id" property="id" jdbcType="VARCHAR" />
  6. <result column="org_id" property="orgId" jdbcType="INTEGER" />
  7. <result column="user_id" property="userId" jdbcType="INTEGER" />
  8. <result column="user_zh" property="userZh" jdbcType="VARCHAR" />
  9. <result column="user_name" property="userName" jdbcType="VARCHAR" />
  10. <result column="user_role" property="userRole" jdbcType="VARCHAR" />
  11. <result column="user_address" property="userAddress" jdbcType="VARCHAR" />
  12. <result column="dl_time" property="dlTime" jdbcType="TIMESTAMP" />
  13. <result column="zx_time" property="zxTime" jdbcType="TIMESTAMP" />
  14. <result column="func_id" property="funcId" jdbcType="INTEGER" />
  15. <result column="func_name" property="funcName" jdbcType="VARCHAR" />
  16. <result column="btn_id" property="btnId" jdbcType="INTEGER" />
  17. <result column="method_name" property="methodName" jdbcType="VARCHAR" />
  18. <result column="oper_result" property="operResult" jdbcType="VARCHAR" />
  19. <result column="parameter" property="parameter" jdbcType="VARCHAR" />
  20. <result column="rtn_param" property="rtnParam" jdbcType="VARCHAR" />
  21. <result column="describes" property="describes" jdbcType="VARCHAR" />
  22. <result column="type" property="type" jdbcType="VARCHAR" />
  23. <result column="device_ip" property="deviceIp" jdbcType="VARCHAR" />
  24. <result column="system_identify" property="systemIdentify" jdbcType="VARCHAR" />
  25. <result column="operation_time" property="operationTime" jdbcType="TIMESTAMP" />
  26. </resultMap>
  27. <sql id="Example_Where_Clause" >
  28. <where >
  29. <foreach collection="oredCriteria" item="criteria" separator="or" >
  30. <if test="criteria.valid" >
  31. <trim prefix="(" suffix=")" prefixOverrides="and" >
  32. <foreach collection="criteria.criteria" item="criterion" >
  33. <choose >
  34. <when test="criterion.noValue" >
  35. and ${criterion.condition}
  36. </when>
  37. <when test="criterion.singleValue" >
  38. and ${criterion.condition} #{criterion.value}
  39. </when>
  40. <when test="criterion.betweenValue" >
  41. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  42. </when>
  43. <when test="criterion.listValue" >
  44. and ${criterion.condition}
  45. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  46. #{listItem}
  47. </foreach>
  48. </when>
  49. </choose>
  50. </foreach>
  51. </trim>
  52. </if>
  53. </foreach>
  54. </where>
  55. </sql>
  56. <sql id="Update_By_Example_Where_Clause" >
  57. <where >
  58. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  59. <if test="criteria.valid" >
  60. <trim prefix="(" suffix=")" prefixOverrides="and" >
  61. <foreach collection="criteria.criteria" item="criterion" >
  62. <choose >
  63. <when test="criterion.noValue" >
  64. and ${criterion.condition}
  65. </when>
  66. <when test="criterion.singleValue" >
  67. and ${criterion.condition} #{criterion.value}
  68. </when>
  69. <when test="criterion.betweenValue" >
  70. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  71. </when>
  72. <when test="criterion.listValue" >
  73. and ${criterion.condition}
  74. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  75. #{listItem}
  76. </foreach>
  77. </when>
  78. </choose>
  79. </foreach>
  80. </trim>
  81. </if>
  82. </foreach>
  83. </where>
  84. </sql>
  85. <sql id="Base_Column_List" >
  86. id, org_id, user_id, user_zh, user_name, user_role, user_address, dl_time, zx_time,
  87. func_id, func_name, btn_id, method_name, oper_result, parameter, rtn_param, describes,
  88. type, device_ip, system_identify, operation_time
  89. </sql>
  90. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.system.model.SystemLogTwoExample" >
  91. select
  92. <if test="distinct" >
  93. distinct
  94. </if>
  95. <include refid="Base_Column_List" />
  96. from system_log_two
  97. <if test="_parameter != null" >
  98. <include refid="Example_Where_Clause" />
  99. </if>
  100. <if test="orderByClause != null" >
  101. order by ${orderByClause}
  102. </if>
  103. </select>
  104. <delete id="deleteByExample" parameterType="com.chinaitop.depot.system.model.SystemLogTwoExample" >
  105. delete from system_log_two
  106. <if test="_parameter != null" >
  107. <include refid="Example_Where_Clause" />
  108. </if>
  109. </delete>
  110. <insert id="insert" parameterType="com.chinaitop.depot.system.model.SystemLogTwo" >
  111. insert into system_log_two (id, org_id, user_id,
  112. user_zh, user_name, user_role,
  113. user_address, dl_time, zx_time,
  114. func_id, func_name, btn_id,
  115. method_name, oper_result, parameter,
  116. rtn_param, describes, type,
  117. device_ip, system_identify, operation_time
  118. )
  119. values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER},
  120. #{userZh,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{userRole,jdbcType=VARCHAR},
  121. #{userAddress,jdbcType=VARCHAR}, #{dlTime,jdbcType=TIMESTAMP}, #{zxTime,jdbcType=TIMESTAMP},
  122. #{funcId,jdbcType=INTEGER}, #{funcName,jdbcType=VARCHAR}, #{btnId,jdbcType=INTEGER},
  123. #{methodName,jdbcType=VARCHAR}, #{operResult,jdbcType=VARCHAR}, #{parameter,jdbcType=VARCHAR},
  124. #{rtnParam,jdbcType=VARCHAR}, #{describes,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
  125. #{deviceIp,jdbcType=VARCHAR}, #{systemIdentify,jdbcType=VARCHAR}, #{operationTime,jdbcType=TIMESTAMP}
  126. )
  127. </insert>
  128. <insert id="insertSelective" parameterType="com.chinaitop.depot.system.model.SystemLogTwo" >
  129. insert into system_log_two
  130. <trim prefix="(" suffix=")" suffixOverrides="," >
  131. <if test="id != null" >
  132. id,
  133. </if>
  134. <if test="orgId != null" >
  135. org_id,
  136. </if>
  137. <if test="userId != null" >
  138. user_id,
  139. </if>
  140. <if test="userZh != null" >
  141. user_zh,
  142. </if>
  143. <if test="userName != null" >
  144. user_name,
  145. </if>
  146. <if test="userRole != null" >
  147. user_role,
  148. </if>
  149. <if test="userAddress != null" >
  150. user_address,
  151. </if>
  152. <if test="dlTime != null" >
  153. dl_time,
  154. </if>
  155. <if test="zxTime != null" >
  156. zx_time,
  157. </if>
  158. <if test="funcId != null" >
  159. func_id,
  160. </if>
  161. <if test="funcName != null" >
  162. func_name,
  163. </if>
  164. <if test="btnId != null" >
  165. btn_id,
  166. </if>
  167. <if test="methodName != null" >
  168. method_name,
  169. </if>
  170. <if test="operResult != null" >
  171. oper_result,
  172. </if>
  173. <if test="parameter != null" >
  174. parameter,
  175. </if>
  176. <if test="rtnParam != null" >
  177. rtn_param,
  178. </if>
  179. <if test="describes != null" >
  180. describes,
  181. </if>
  182. <if test="type != null" >
  183. type,
  184. </if>
  185. <if test="deviceIp != null" >
  186. device_ip,
  187. </if>
  188. <if test="systemIdentify != null" >
  189. system_identify,
  190. </if>
  191. <if test="operationTime != null" >
  192. operation_time,
  193. </if>
  194. </trim>
  195. <trim prefix="values (" suffix=")" suffixOverrides="," >
  196. <if test="id != null" >
  197. #{id,jdbcType=VARCHAR},
  198. </if>
  199. <if test="orgId != null" >
  200. #{orgId,jdbcType=INTEGER},
  201. </if>
  202. <if test="userId != null" >
  203. #{userId,jdbcType=INTEGER},
  204. </if>
  205. <if test="userZh != null" >
  206. #{userZh,jdbcType=VARCHAR},
  207. </if>
  208. <if test="userName != null" >
  209. #{userName,jdbcType=VARCHAR},
  210. </if>
  211. <if test="userRole != null" >
  212. #{userRole,jdbcType=VARCHAR},
  213. </if>
  214. <if test="userAddress != null" >
  215. #{userAddress,jdbcType=VARCHAR},
  216. </if>
  217. <if test="dlTime != null" >
  218. #{dlTime,jdbcType=TIMESTAMP},
  219. </if>
  220. <if test="zxTime != null" >
  221. #{zxTime,jdbcType=TIMESTAMP},
  222. </if>
  223. <if test="funcId != null" >
  224. #{funcId,jdbcType=INTEGER},
  225. </if>
  226. <if test="funcName != null" >
  227. #{funcName,jdbcType=VARCHAR},
  228. </if>
  229. <if test="btnId != null" >
  230. #{btnId,jdbcType=INTEGER},
  231. </if>
  232. <if test="methodName != null" >
  233. #{methodName,jdbcType=VARCHAR},
  234. </if>
  235. <if test="operResult != null" >
  236. #{operResult,jdbcType=VARCHAR},
  237. </if>
  238. <if test="parameter != null" >
  239. #{parameter,jdbcType=VARCHAR},
  240. </if>
  241. <if test="rtnParam != null" >
  242. #{rtnParam,jdbcType=VARCHAR},
  243. </if>
  244. <if test="describes != null" >
  245. #{describes,jdbcType=VARCHAR},
  246. </if>
  247. <if test="type != null" >
  248. #{type,jdbcType=VARCHAR},
  249. </if>
  250. <if test="deviceIp != null" >
  251. #{deviceIp,jdbcType=VARCHAR},
  252. </if>
  253. <if test="systemIdentify != null" >
  254. #{systemIdentify,jdbcType=VARCHAR},
  255. </if>
  256. <if test="operationTime != null" >
  257. #{operationTime,jdbcType=TIMESTAMP},
  258. </if>
  259. </trim>
  260. </insert>
  261. <select id="countByExample" parameterType="com.chinaitop.depot.system.model.SystemLogTwoExample" resultType="java.lang.Integer" >
  262. select count(*) from system_log_two
  263. <if test="_parameter != null" >
  264. <include refid="Example_Where_Clause" />
  265. </if>
  266. </select>
  267. <update id="updateByExampleSelective" parameterType="map" >
  268. update system_log_two
  269. <set >
  270. <if test="record.id != null" >
  271. id = #{record.id,jdbcType=VARCHAR},
  272. </if>
  273. <if test="record.orgId != null" >
  274. org_id = #{record.orgId,jdbcType=INTEGER},
  275. </if>
  276. <if test="record.userId != null" >
  277. user_id = #{record.userId,jdbcType=INTEGER},
  278. </if>
  279. <if test="record.userZh != null" >
  280. user_zh = #{record.userZh,jdbcType=VARCHAR},
  281. </if>
  282. <if test="record.userName != null" >
  283. user_name = #{record.userName,jdbcType=VARCHAR},
  284. </if>
  285. <if test="record.userRole != null" >
  286. user_role = #{record.userRole,jdbcType=VARCHAR},
  287. </if>
  288. <if test="record.userAddress != null" >
  289. user_address = #{record.userAddress,jdbcType=VARCHAR},
  290. </if>
  291. <if test="record.dlTime != null" >
  292. dl_time = #{record.dlTime,jdbcType=TIMESTAMP},
  293. </if>
  294. <if test="record.zxTime != null" >
  295. zx_time = #{record.zxTime,jdbcType=TIMESTAMP},
  296. </if>
  297. <if test="record.funcId != null" >
  298. func_id = #{record.funcId,jdbcType=INTEGER},
  299. </if>
  300. <if test="record.funcName != null" >
  301. func_name = #{record.funcName,jdbcType=VARCHAR},
  302. </if>
  303. <if test="record.btnId != null" >
  304. btn_id = #{record.btnId,jdbcType=INTEGER},
  305. </if>
  306. <if test="record.methodName != null" >
  307. method_name = #{record.methodName,jdbcType=VARCHAR},
  308. </if>
  309. <if test="record.operResult != null" >
  310. oper_result = #{record.operResult,jdbcType=VARCHAR},
  311. </if>
  312. <if test="record.parameter != null" >
  313. parameter = #{record.parameter,jdbcType=VARCHAR},
  314. </if>
  315. <if test="record.rtnParam != null" >
  316. rtn_param = #{record.rtnParam,jdbcType=VARCHAR},
  317. </if>
  318. <if test="record.describes != null" >
  319. describes = #{record.describes,jdbcType=VARCHAR},
  320. </if>
  321. <if test="record.type != null" >
  322. type = #{record.type,jdbcType=VARCHAR},
  323. </if>
  324. <if test="record.deviceIp != null" >
  325. device_ip = #{record.deviceIp,jdbcType=VARCHAR},
  326. </if>
  327. <if test="record.systemIdentify != null" >
  328. system_identify = #{record.systemIdentify,jdbcType=VARCHAR},
  329. </if>
  330. <if test="record.operationTime != null" >
  331. operation_time = #{record.operationTime,jdbcType=TIMESTAMP},
  332. </if>
  333. </set>
  334. <if test="_parameter != null" >
  335. <include refid="Update_By_Example_Where_Clause" />
  336. </if>
  337. </update>
  338. <update id="updateByExample" parameterType="map" >
  339. update system_log_two
  340. set id = #{record.id,jdbcType=VARCHAR},
  341. org_id = #{record.orgId,jdbcType=INTEGER},
  342. user_id = #{record.userId,jdbcType=INTEGER},
  343. user_zh = #{record.userZh,jdbcType=VARCHAR},
  344. user_name = #{record.userName,jdbcType=VARCHAR},
  345. user_role = #{record.userRole,jdbcType=VARCHAR},
  346. user_address = #{record.userAddress,jdbcType=VARCHAR},
  347. dl_time = #{record.dlTime,jdbcType=TIMESTAMP},
  348. zx_time = #{record.zxTime,jdbcType=TIMESTAMP},
  349. func_id = #{record.funcId,jdbcType=INTEGER},
  350. func_name = #{record.funcName,jdbcType=VARCHAR},
  351. btn_id = #{record.btnId,jdbcType=INTEGER},
  352. method_name = #{record.methodName,jdbcType=VARCHAR},
  353. oper_result = #{record.operResult,jdbcType=VARCHAR},
  354. parameter = #{record.parameter,jdbcType=VARCHAR},
  355. rtn_param = #{record.rtnParam,jdbcType=VARCHAR},
  356. describes = #{record.describes,jdbcType=VARCHAR},
  357. type = #{record.type,jdbcType=VARCHAR},
  358. device_ip = #{record.deviceIp,jdbcType=VARCHAR},
  359. system_identify = #{record.systemIdentify,jdbcType=VARCHAR},
  360. operation_time = #{record.operationTime,jdbcType=TIMESTAMP}
  361. <if test="_parameter != null" >
  362. <include refid="Update_By_Example_Where_Clause" />
  363. </if>
  364. </update>
  365. </mapper>