PcCompanyMapper.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  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.hz.employmentsite.mapper.PcCompanyMapper">
  4. <resultMap id="BaseResultMap" type="com.hz.employmentsite.model.PcCompany">
  5. <id column="CompanyID" jdbcType="VARCHAR" property="companyID" />
  6. <result column="SiteID" jdbcType="VARCHAR" property="siteID" />
  7. <result column="RegionCode" jdbcType="VARCHAR" property="regionCode" />
  8. <result column="InsuredCount" jdbcType="INTEGER" property="insuredCount" />
  9. <result column="StreetCode" jdbcType="VARCHAR" property="streetCode" />
  10. <result column="CompanyName" jdbcType="VARCHAR" property="companyName" />
  11. <result column="CompanyCode" jdbcType="VARCHAR" property="companyCode" />
  12. <result column="CompanyModel" jdbcType="INTEGER" property="companyModel" />
  13. <result column="WorkSituation" jdbcType="VARCHAR" property="workSituation" />
  14. <result column="CompanyType" jdbcType="VARCHAR" property="companyType" />
  15. <result column="Address" jdbcType="VARCHAR" property="address" />
  16. <result column="UserName" jdbcType="VARCHAR" property="userName" />
  17. <result column="UserMobile" jdbcType="VARCHAR" property="userMobile" />
  18. <result column="CompanyEmail" jdbcType="VARCHAR" property="companyEmail" />
  19. <result column="FrName" jdbcType="VARCHAR" property="frName" />
  20. <result column="ValidTime" jdbcType="VARCHAR" property="validTime" />
  21. <result column="RecordStatus" jdbcType="INTEGER" property="recordStatus" />
  22. <result column="CreateUserID" jdbcType="VARCHAR" property="createUserID" />
  23. <result column="CreateTime" jdbcType="TIMESTAMP" property="createTime" />
  24. <result column="ModifyUserID" jdbcType="VARCHAR" property="modifyUserID" />
  25. <result column="ModifyTime" jdbcType="TIMESTAMP" property="modifyTime" />
  26. </resultMap>
  27. <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hz.employmentsite.model.PcCompanyWithBLOBs">
  28. <result column="BusinScope" jdbcType="LONGVARCHAR" property="businScope" />
  29. <result column="CompanyDesc" jdbcType="LONGVARCHAR" property="companyDesc" />
  30. </resultMap>
  31. <sql id="Example_Where_Clause">
  32. <where>
  33. <foreach collection="oredCriteria" item="criteria" separator="or">
  34. <if test="criteria.valid">
  35. <trim prefix="(" prefixOverrides="and" suffix=")">
  36. <foreach collection="criteria.criteria" item="criterion">
  37. <choose>
  38. <when test="criterion.noValue">
  39. and ${criterion.condition}
  40. </when>
  41. <when test="criterion.singleValue">
  42. and ${criterion.condition} #{criterion.value}
  43. </when>
  44. <when test="criterion.betweenValue">
  45. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  46. </when>
  47. <when test="criterion.listValue">
  48. and ${criterion.condition}
  49. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  50. #{listItem}
  51. </foreach>
  52. </when>
  53. </choose>
  54. </foreach>
  55. </trim>
  56. </if>
  57. </foreach>
  58. </where>
  59. </sql>
  60. <sql id="Update_By_Example_Where_Clause">
  61. <where>
  62. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  63. <if test="criteria.valid">
  64. <trim prefix="(" prefixOverrides="and" suffix=")">
  65. <foreach collection="criteria.criteria" item="criterion">
  66. <choose>
  67. <when test="criterion.noValue">
  68. and ${criterion.condition}
  69. </when>
  70. <when test="criterion.singleValue">
  71. and ${criterion.condition} #{criterion.value}
  72. </when>
  73. <when test="criterion.betweenValue">
  74. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  75. </when>
  76. <when test="criterion.listValue">
  77. and ${criterion.condition}
  78. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  79. #{listItem}
  80. </foreach>
  81. </when>
  82. </choose>
  83. </foreach>
  84. </trim>
  85. </if>
  86. </foreach>
  87. </where>
  88. </sql>
  89. <sql id="Base_Column_List">
  90. CompanyID, SiteID, RegionCode, InsuredCount, StreetCode, CompanyName, CompanyCode,
  91. CompanyModel, WorkSituation, CompanyType, Address, UserName, UserMobile, CompanyEmail,
  92. FrName, ValidTime, RecordStatus, CreateUserID, CreateTime, ModifyUserID, ModifyTime
  93. </sql>
  94. <sql id="Blob_Column_List">
  95. BusinScope, CompanyDesc
  96. </sql>
  97. <select id="selectByExampleWithBLOBs" parameterType="com.hz.employmentsite.model.PcCompanyExample" resultMap="ResultMapWithBLOBs">
  98. select
  99. <if test="distinct">
  100. distinct
  101. </if>
  102. <include refid="Base_Column_List" />
  103. ,
  104. <include refid="Blob_Column_List" />
  105. from pc_company
  106. <if test="_parameter != null">
  107. <include refid="Example_Where_Clause" />
  108. </if>
  109. <if test="orderByClause != null">
  110. order by ${orderByClause}
  111. </if>
  112. </select>
  113. <select id="selectByExample" parameterType="com.hz.employmentsite.model.PcCompanyExample" resultMap="BaseResultMap">
  114. select
  115. <if test="distinct">
  116. distinct
  117. </if>
  118. <include refid="Base_Column_List" />
  119. from pc_company
  120. <if test="_parameter != null">
  121. <include refid="Example_Where_Clause" />
  122. </if>
  123. <if test="orderByClause != null">
  124. order by ${orderByClause}
  125. </if>
  126. </select>
  127. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
  128. select
  129. <include refid="Base_Column_List" />
  130. ,
  131. <include refid="Blob_Column_List" />
  132. from pc_company
  133. where CompanyID = #{companyID,jdbcType=VARCHAR}
  134. </select>
  135. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  136. delete from pc_company
  137. where CompanyID = #{companyID,jdbcType=VARCHAR}
  138. </delete>
  139. <delete id="deleteByExample" parameterType="com.hz.employmentsite.model.PcCompanyExample">
  140. delete from pc_company
  141. <if test="_parameter != null">
  142. <include refid="Example_Where_Clause" />
  143. </if>
  144. </delete>
  145. <insert id="insert" parameterType="com.hz.employmentsite.model.PcCompanyWithBLOBs">
  146. insert into pc_company (CompanyID, SiteID, RegionCode,
  147. InsuredCount, StreetCode, CompanyName,
  148. CompanyCode, CompanyModel, WorkSituation,
  149. CompanyType, Address, UserName,
  150. UserMobile, CompanyEmail, FrName,
  151. ValidTime, RecordStatus, CreateUserID,
  152. CreateTime, ModifyUserID, ModifyTime,
  153. BusinScope, CompanyDesc)
  154. values (#{companyID,jdbcType=VARCHAR}, #{siteID,jdbcType=VARCHAR}, #{regionCode,jdbcType=VARCHAR},
  155. #{insuredCount,jdbcType=INTEGER}, #{streetCode,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR},
  156. #{companyCode,jdbcType=VARCHAR}, #{companyModel,jdbcType=INTEGER}, #{workSituation,jdbcType=VARCHAR},
  157. #{companyType,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR},
  158. #{userMobile,jdbcType=VARCHAR}, #{companyEmail,jdbcType=VARCHAR}, #{frName,jdbcType=VARCHAR},
  159. #{validTime,jdbcType=VARCHAR}, #{recordStatus,jdbcType=INTEGER}, #{createUserID,jdbcType=VARCHAR},
  160. #{createTime,jdbcType=TIMESTAMP}, #{modifyUserID,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP},
  161. #{businScope,jdbcType=LONGVARCHAR}, #{companyDesc,jdbcType=LONGVARCHAR})
  162. </insert>
  163. <insert id="insertSelective" parameterType="com.hz.employmentsite.model.PcCompanyWithBLOBs">
  164. insert into pc_company
  165. <trim prefix="(" suffix=")" suffixOverrides=",">
  166. <if test="companyID != null">
  167. CompanyID,
  168. </if>
  169. <if test="siteID != null">
  170. SiteID,
  171. </if>
  172. <if test="regionCode != null">
  173. RegionCode,
  174. </if>
  175. <if test="insuredCount != null">
  176. InsuredCount,
  177. </if>
  178. <if test="streetCode != null">
  179. StreetCode,
  180. </if>
  181. <if test="companyName != null">
  182. CompanyName,
  183. </if>
  184. <if test="companyCode != null">
  185. CompanyCode,
  186. </if>
  187. <if test="companyModel != null">
  188. CompanyModel,
  189. </if>
  190. <if test="workSituation != null">
  191. WorkSituation,
  192. </if>
  193. <if test="companyType != null">
  194. CompanyType,
  195. </if>
  196. <if test="address != null">
  197. Address,
  198. </if>
  199. <if test="userName != null">
  200. UserName,
  201. </if>
  202. <if test="userMobile != null">
  203. UserMobile,
  204. </if>
  205. <if test="companyEmail != null">
  206. CompanyEmail,
  207. </if>
  208. <if test="frName != null">
  209. FrName,
  210. </if>
  211. <if test="validTime != null">
  212. ValidTime,
  213. </if>
  214. <if test="recordStatus != null">
  215. RecordStatus,
  216. </if>
  217. <if test="createUserID != null">
  218. CreateUserID,
  219. </if>
  220. <if test="createTime != null">
  221. CreateTime,
  222. </if>
  223. <if test="modifyUserID != null">
  224. ModifyUserID,
  225. </if>
  226. <if test="modifyTime != null">
  227. ModifyTime,
  228. </if>
  229. <if test="businScope != null">
  230. BusinScope,
  231. </if>
  232. <if test="companyDesc != null">
  233. CompanyDesc,
  234. </if>
  235. </trim>
  236. <trim prefix="values (" suffix=")" suffixOverrides=",">
  237. <if test="companyID != null">
  238. #{companyID,jdbcType=VARCHAR},
  239. </if>
  240. <if test="siteID != null">
  241. #{siteID,jdbcType=VARCHAR},
  242. </if>
  243. <if test="regionCode != null">
  244. #{regionCode,jdbcType=VARCHAR},
  245. </if>
  246. <if test="insuredCount != null">
  247. #{insuredCount,jdbcType=INTEGER},
  248. </if>
  249. <if test="streetCode != null">
  250. #{streetCode,jdbcType=VARCHAR},
  251. </if>
  252. <if test="companyName != null">
  253. #{companyName,jdbcType=VARCHAR},
  254. </if>
  255. <if test="companyCode != null">
  256. #{companyCode,jdbcType=VARCHAR},
  257. </if>
  258. <if test="companyModel != null">
  259. #{companyModel,jdbcType=INTEGER},
  260. </if>
  261. <if test="workSituation != null">
  262. #{workSituation,jdbcType=VARCHAR},
  263. </if>
  264. <if test="companyType != null">
  265. #{companyType,jdbcType=VARCHAR},
  266. </if>
  267. <if test="address != null">
  268. #{address,jdbcType=VARCHAR},
  269. </if>
  270. <if test="userName != null">
  271. #{userName,jdbcType=VARCHAR},
  272. </if>
  273. <if test="userMobile != null">
  274. #{userMobile,jdbcType=VARCHAR},
  275. </if>
  276. <if test="companyEmail != null">
  277. #{companyEmail,jdbcType=VARCHAR},
  278. </if>
  279. <if test="frName != null">
  280. #{frName,jdbcType=VARCHAR},
  281. </if>
  282. <if test="validTime != null">
  283. #{validTime,jdbcType=VARCHAR},
  284. </if>
  285. <if test="recordStatus != null">
  286. #{recordStatus,jdbcType=INTEGER},
  287. </if>
  288. <if test="createUserID != null">
  289. #{createUserID,jdbcType=VARCHAR},
  290. </if>
  291. <if test="createTime != null">
  292. #{createTime,jdbcType=TIMESTAMP},
  293. </if>
  294. <if test="modifyUserID != null">
  295. #{modifyUserID,jdbcType=VARCHAR},
  296. </if>
  297. <if test="modifyTime != null">
  298. #{modifyTime,jdbcType=TIMESTAMP},
  299. </if>
  300. <if test="businScope != null">
  301. #{businScope,jdbcType=LONGVARCHAR},
  302. </if>
  303. <if test="companyDesc != null">
  304. #{companyDesc,jdbcType=LONGVARCHAR},
  305. </if>
  306. </trim>
  307. </insert>
  308. <select id="countByExample" parameterType="com.hz.employmentsite.model.PcCompanyExample" resultType="java.lang.Long">
  309. select count(*) from pc_company
  310. <if test="_parameter != null">
  311. <include refid="Example_Where_Clause" />
  312. </if>
  313. </select>
  314. <update id="updateByExampleSelective" parameterType="map">
  315. update pc_company
  316. <set>
  317. <if test="row.companyID != null">
  318. CompanyID = #{row.companyID,jdbcType=VARCHAR},
  319. </if>
  320. <if test="row.siteID != null">
  321. SiteID = #{row.siteID,jdbcType=VARCHAR},
  322. </if>
  323. <if test="row.regionCode != null">
  324. RegionCode = #{row.regionCode,jdbcType=VARCHAR},
  325. </if>
  326. <if test="row.insuredCount != null">
  327. InsuredCount = #{row.insuredCount,jdbcType=INTEGER},
  328. </if>
  329. <if test="row.streetCode != null">
  330. StreetCode = #{row.streetCode,jdbcType=VARCHAR},
  331. </if>
  332. <if test="row.companyName != null">
  333. CompanyName = #{row.companyName,jdbcType=VARCHAR},
  334. </if>
  335. <if test="row.companyCode != null">
  336. CompanyCode = #{row.companyCode,jdbcType=VARCHAR},
  337. </if>
  338. <if test="row.companyModel != null">
  339. CompanyModel = #{row.companyModel,jdbcType=INTEGER},
  340. </if>
  341. <if test="row.workSituation != null">
  342. WorkSituation = #{row.workSituation,jdbcType=VARCHAR},
  343. </if>
  344. <if test="row.companyType != null">
  345. CompanyType = #{row.companyType,jdbcType=VARCHAR},
  346. </if>
  347. <if test="row.address != null">
  348. Address = #{row.address,jdbcType=VARCHAR},
  349. </if>
  350. <if test="row.userName != null">
  351. UserName = #{row.userName,jdbcType=VARCHAR},
  352. </if>
  353. <if test="row.userMobile != null">
  354. UserMobile = #{row.userMobile,jdbcType=VARCHAR},
  355. </if>
  356. <if test="row.companyEmail != null">
  357. CompanyEmail = #{row.companyEmail,jdbcType=VARCHAR},
  358. </if>
  359. <if test="row.frName != null">
  360. FrName = #{row.frName,jdbcType=VARCHAR},
  361. </if>
  362. <if test="row.validTime != null">
  363. ValidTime = #{row.validTime,jdbcType=VARCHAR},
  364. </if>
  365. <if test="row.recordStatus != null">
  366. RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
  367. </if>
  368. <if test="row.createUserID != null">
  369. CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
  370. </if>
  371. <if test="row.createTime != null">
  372. CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
  373. </if>
  374. <if test="row.modifyUserID != null">
  375. ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
  376. </if>
  377. <if test="row.modifyTime != null">
  378. ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
  379. </if>
  380. <if test="row.businScope != null">
  381. BusinScope = #{row.businScope,jdbcType=LONGVARCHAR},
  382. </if>
  383. <if test="row.companyDesc != null">
  384. CompanyDesc = #{row.companyDesc,jdbcType=LONGVARCHAR},
  385. </if>
  386. </set>
  387. <if test="example != null">
  388. <include refid="Update_By_Example_Where_Clause" />
  389. </if>
  390. </update>
  391. <update id="updateByExampleWithBLOBs" parameterType="map">
  392. update pc_company
  393. set CompanyID = #{row.companyID,jdbcType=VARCHAR},
  394. SiteID = #{row.siteID,jdbcType=VARCHAR},
  395. RegionCode = #{row.regionCode,jdbcType=VARCHAR},
  396. InsuredCount = #{row.insuredCount,jdbcType=INTEGER},
  397. StreetCode = #{row.streetCode,jdbcType=VARCHAR},
  398. CompanyName = #{row.companyName,jdbcType=VARCHAR},
  399. CompanyCode = #{row.companyCode,jdbcType=VARCHAR},
  400. CompanyModel = #{row.companyModel,jdbcType=INTEGER},
  401. WorkSituation = #{row.workSituation,jdbcType=VARCHAR},
  402. CompanyType = #{row.companyType,jdbcType=VARCHAR},
  403. Address = #{row.address,jdbcType=VARCHAR},
  404. UserName = #{row.userName,jdbcType=VARCHAR},
  405. UserMobile = #{row.userMobile,jdbcType=VARCHAR},
  406. CompanyEmail = #{row.companyEmail,jdbcType=VARCHAR},
  407. FrName = #{row.frName,jdbcType=VARCHAR},
  408. ValidTime = #{row.validTime,jdbcType=VARCHAR},
  409. RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
  410. CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
  411. CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
  412. ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
  413. ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
  414. BusinScope = #{row.businScope,jdbcType=LONGVARCHAR},
  415. CompanyDesc = #{row.companyDesc,jdbcType=LONGVARCHAR}
  416. <if test="example != null">
  417. <include refid="Update_By_Example_Where_Clause" />
  418. </if>
  419. </update>
  420. <update id="updateByExample" parameterType="map">
  421. update pc_company
  422. set CompanyID = #{row.companyID,jdbcType=VARCHAR},
  423. SiteID = #{row.siteID,jdbcType=VARCHAR},
  424. RegionCode = #{row.regionCode,jdbcType=VARCHAR},
  425. InsuredCount = #{row.insuredCount,jdbcType=INTEGER},
  426. StreetCode = #{row.streetCode,jdbcType=VARCHAR},
  427. CompanyName = #{row.companyName,jdbcType=VARCHAR},
  428. CompanyCode = #{row.companyCode,jdbcType=VARCHAR},
  429. CompanyModel = #{row.companyModel,jdbcType=INTEGER},
  430. WorkSituation = #{row.workSituation,jdbcType=VARCHAR},
  431. CompanyType = #{row.companyType,jdbcType=VARCHAR},
  432. Address = #{row.address,jdbcType=VARCHAR},
  433. UserName = #{row.userName,jdbcType=VARCHAR},
  434. UserMobile = #{row.userMobile,jdbcType=VARCHAR},
  435. CompanyEmail = #{row.companyEmail,jdbcType=VARCHAR},
  436. FrName = #{row.frName,jdbcType=VARCHAR},
  437. ValidTime = #{row.validTime,jdbcType=VARCHAR},
  438. RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
  439. CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
  440. CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
  441. ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
  442. ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP}
  443. <if test="example != null">
  444. <include refid="Update_By_Example_Where_Clause" />
  445. </if>
  446. </update>
  447. <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.PcCompanyWithBLOBs">
  448. update pc_company
  449. <set>
  450. <if test="siteID != null">
  451. SiteID = #{siteID,jdbcType=VARCHAR},
  452. </if>
  453. <if test="regionCode != null">
  454. RegionCode = #{regionCode,jdbcType=VARCHAR},
  455. </if>
  456. <if test="insuredCount != null">
  457. InsuredCount = #{insuredCount,jdbcType=INTEGER},
  458. </if>
  459. <if test="streetCode != null">
  460. StreetCode = #{streetCode,jdbcType=VARCHAR},
  461. </if>
  462. <if test="companyName != null">
  463. CompanyName = #{companyName,jdbcType=VARCHAR},
  464. </if>
  465. <if test="companyCode != null">
  466. CompanyCode = #{companyCode,jdbcType=VARCHAR},
  467. </if>
  468. <if test="companyModel != null">
  469. CompanyModel = #{companyModel,jdbcType=INTEGER},
  470. </if>
  471. <if test="workSituation != null">
  472. WorkSituation = #{workSituation,jdbcType=VARCHAR},
  473. </if>
  474. <if test="companyType != null">
  475. CompanyType = #{companyType,jdbcType=VARCHAR},
  476. </if>
  477. <if test="address != null">
  478. Address = #{address,jdbcType=VARCHAR},
  479. </if>
  480. <if test="userName != null">
  481. UserName = #{userName,jdbcType=VARCHAR},
  482. </if>
  483. <if test="userMobile != null">
  484. UserMobile = #{userMobile,jdbcType=VARCHAR},
  485. </if>
  486. <if test="companyEmail != null">
  487. CompanyEmail = #{companyEmail,jdbcType=VARCHAR},
  488. </if>
  489. <if test="frName != null">
  490. FrName = #{frName,jdbcType=VARCHAR},
  491. </if>
  492. <if test="validTime != null">
  493. ValidTime = #{validTime,jdbcType=VARCHAR},
  494. </if>
  495. <if test="recordStatus != null">
  496. RecordStatus = #{recordStatus,jdbcType=INTEGER},
  497. </if>
  498. <if test="createUserID != null">
  499. CreateUserID = #{createUserID,jdbcType=VARCHAR},
  500. </if>
  501. <if test="createTime != null">
  502. CreateTime = #{createTime,jdbcType=TIMESTAMP},
  503. </if>
  504. <if test="modifyUserID != null">
  505. ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
  506. </if>
  507. <if test="modifyTime != null">
  508. ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
  509. </if>
  510. <if test="businScope != null">
  511. BusinScope = #{businScope,jdbcType=LONGVARCHAR},
  512. </if>
  513. <if test="companyDesc != null">
  514. CompanyDesc = #{companyDesc,jdbcType=LONGVARCHAR},
  515. </if>
  516. </set>
  517. where CompanyID = #{companyID,jdbcType=VARCHAR}
  518. </update>
  519. <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.hz.employmentsite.model.PcCompanyWithBLOBs">
  520. update pc_company
  521. set SiteID = #{siteID,jdbcType=VARCHAR},
  522. RegionCode = #{regionCode,jdbcType=VARCHAR},
  523. InsuredCount = #{insuredCount,jdbcType=INTEGER},
  524. StreetCode = #{streetCode,jdbcType=VARCHAR},
  525. CompanyName = #{companyName,jdbcType=VARCHAR},
  526. CompanyCode = #{companyCode,jdbcType=VARCHAR},
  527. CompanyModel = #{companyModel,jdbcType=INTEGER},
  528. WorkSituation = #{workSituation,jdbcType=VARCHAR},
  529. CompanyType = #{companyType,jdbcType=VARCHAR},
  530. Address = #{address,jdbcType=VARCHAR},
  531. UserName = #{userName,jdbcType=VARCHAR},
  532. UserMobile = #{userMobile,jdbcType=VARCHAR},
  533. CompanyEmail = #{companyEmail,jdbcType=VARCHAR},
  534. FrName = #{frName,jdbcType=VARCHAR},
  535. ValidTime = #{validTime,jdbcType=VARCHAR},
  536. RecordStatus = #{recordStatus,jdbcType=INTEGER},
  537. CreateUserID = #{createUserID,jdbcType=VARCHAR},
  538. CreateTime = #{createTime,jdbcType=TIMESTAMP},
  539. ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
  540. ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
  541. BusinScope = #{businScope,jdbcType=LONGVARCHAR},
  542. CompanyDesc = #{companyDesc,jdbcType=LONGVARCHAR}
  543. where CompanyID = #{companyID,jdbcType=VARCHAR}
  544. </update>
  545. <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.PcCompany">
  546. update pc_company
  547. set SiteID = #{siteID,jdbcType=VARCHAR},
  548. RegionCode = #{regionCode,jdbcType=VARCHAR},
  549. InsuredCount = #{insuredCount,jdbcType=INTEGER},
  550. StreetCode = #{streetCode,jdbcType=VARCHAR},
  551. CompanyName = #{companyName,jdbcType=VARCHAR},
  552. CompanyCode = #{companyCode,jdbcType=VARCHAR},
  553. CompanyModel = #{companyModel,jdbcType=INTEGER},
  554. WorkSituation = #{workSituation,jdbcType=VARCHAR},
  555. CompanyType = #{companyType,jdbcType=VARCHAR},
  556. Address = #{address,jdbcType=VARCHAR},
  557. UserName = #{userName,jdbcType=VARCHAR},
  558. UserMobile = #{userMobile,jdbcType=VARCHAR},
  559. CompanyEmail = #{companyEmail,jdbcType=VARCHAR},
  560. FrName = #{frName,jdbcType=VARCHAR},
  561. ValidTime = #{validTime,jdbcType=VARCHAR},
  562. RecordStatus = #{recordStatus,jdbcType=INTEGER},
  563. CreateUserID = #{createUserID,jdbcType=VARCHAR},
  564. CreateTime = #{createTime,jdbcType=TIMESTAMP},
  565. ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
  566. ModifyTime = #{modifyTime,jdbcType=TIMESTAMP}
  567. where CompanyID = #{companyID,jdbcType=VARCHAR}
  568. </update>
  569. </mapper>