FleetCarManageMapper.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.orderManagement.BasicData.mapper.FleetCarManageMapper">
  6. <resultMap type="FleetCarManage" id="FleetCarManageResult">
  7. <result property="id" column="id" />
  8. <result property="fleetCompanyId" column="fleet_company_id" />
  9. <result property="carNum" column="car_num" />
  10. <result property="driverName" column="driver_name" />
  11. <result property="hangNum" column="hang_num" />
  12. <result property="fuelType" column="fuel_type" />
  13. <result property="carType" column="car_type" />
  14. <result property="carName" column="car_name" />
  15. <result property="carBrand" column="car_brand" />
  16. <result property="manufactureUnit" column="manufacture_unit" />
  17. <result property="officeOfCertificate" column="office_of_certificate" />
  18. <result property="pullCarType" column="pull_car_type" />
  19. <result property="pullCarShelfNum" column="pull_car_shelf_num" />
  20. <result property="mountCarType" column="mount_car_type" />
  21. <result property="mountCarNum" column="mount_car_num" />
  22. <result property="engine" column="engine" />
  23. <result property="carLoadPersion" column="car_load_persion" />
  24. <result property="buyCarDate" column="buy_car_date" />
  25. <result property="regiestDate" column="regiest_date" />
  26. <result property="abandonDate" column="abandon_date" />
  27. <result property="outerSize" column="outer_size" />
  28. <result property="sumWeight" column="sum_weight" />
  29. <result property="vouchWeight" column="vouch_weight" />
  30. <result property="equipWeight" column="equip_weight" />
  31. <result property="drivingLicenseSrc" column="driving_license_src" />
  32. <result property="drivingPendantSrc" column="driving_pendant_src" />
  33. <result property="operationLicenseSrc" column="operation_license_src" />
  34. <result property="technologySrc" column="technology_src" />
  35. <result property="drivingLoadSrc" column="driving_load_src" />
  36. <result property="secondLvMaintainSrc" column="second_lv_maintain_src" />
  37. <result property="tafficConstranintInsuranceSrc" column="taffic_constranint_insurance_src" />
  38. <result property="businessInsuranceSrc" column="business_insurance_src" />
  39. <result property="accpetCarrageInsuranceSrc" column="accpet_carrage_insurance_src" />
  40. <result property="creatTime" column="creat_time" />
  41. <result property="modificationTime" column="modification_time" />
  42. <result property="billStatus" column="bill_status" />
  43. <result property="delFlag" column="del_flag" />
  44. <result property="createBy" column="create_by" />
  45. <result property="updateBy" column="update_by" />
  46. <result property="updateTime" column="update_time" />
  47. <result property="remarks" column="remarks" />
  48. </resultMap>
  49. <sql id="selectFleetCarManageVo">
  50. select id, fleet_company_id, car_num, driver_name ,hang_num, fuel_type, car_type, car_name, car_brand, manufacture_unit, office_of_certificate, pull_car_type, pull_car_shelf_num, mount_car_type, mount_car_num, engine, car_load_persion, buy_car_date, regiest_date, abandon_date, outer_size, sum_weight, vouch_weight, equip_weight, driving_license_src, driving_pendant_src, operation_license_src, technology_src, driving_load_src, second_lv_maintain_src, taffic_constranint_insurance_src, business_insurance_src, accpet_carrage_insurance_src, creat_time, modification_time, bill_status, del_flag, create_by, update_by, update_time, remarks from fleet_car_manage
  51. </sql>
  52. <select id="selectFleetCarManageList" parameterType="FleetCarManage" resultMap="FleetCarManageResult">
  53. <include refid="selectFleetCarManageVo"/>
  54. <where>
  55. <if test="fleetCompanyId != null "> and fleet_company_id = #{fleetCompanyId}</if>
  56. <if test="carNum != null and carNum != ''"> and car_num = #{carNum}</if>
  57. <if test="driverName != null and driverName != ''"> and driver_name = #{driverName}</if>
  58. <if test="hangNum != null and hangNum != ''"> and hang_num = #{hangNum}</if>
  59. <if test="fuelType != null and fuelType != ''"> and fuel_type = #{fuelType}</if>
  60. <if test="carType != null and carType != ''"> and car_type = #{carType}</if>
  61. <if test="carName != null and carName != ''"> and car_name like concat('%', #{carName}, '%')</if>
  62. <if test="carBrand != null and carBrand != ''"> and car_brand = #{carBrand}</if>
  63. <if test="manufactureUnit != null and manufactureUnit != ''"> and manufacture_unit = #{manufactureUnit}</if>
  64. <if test="officeOfCertificate != null and officeOfCertificate != ''"> and office_of_certificate = #{officeOfCertificate}</if>
  65. <if test="pullCarType != null and pullCarType != ''"> and pull_car_type = #{pullCarType}</if>
  66. <if test="pullCarShelfNum != null and pullCarShelfNum != ''"> and pull_car_shelf_num = #{pullCarShelfNum}</if>
  67. <if test="mountCarType != null and mountCarType != ''"> and mount_car_type = #{mountCarType}</if>
  68. <if test="mountCarNum != null and mountCarNum != ''"> and mount_car_num = #{mountCarNum}</if>
  69. <if test="engine != null and engine != ''"> and engine = #{engine}</if>
  70. <if test="carLoadPersion != null "> and car_load_persion = #{carLoadPersion}</if>
  71. <if test="buyCarDate != null "> and buy_car_date = #{buyCarDate}</if>
  72. <if test="regiestDate != null "> and regiest_date = #{regiestDate}</if>
  73. <if test="abandonDate != null "> and abandon_date = #{abandonDate}</if>
  74. <if test="outerSize != null "> and outer_size = #{outerSize}</if>
  75. <if test="sumWeight != null "> and sum_weight = #{sumWeight}</if>
  76. <if test="vouchWeight != null "> and vouch_weight = #{vouchWeight}</if>
  77. <if test="equipWeight != null "> and equip_weight = #{equipWeight}</if>
  78. <if test="drivingLicenseSrc != null and drivingLicenseSrc != ''"> and driving_license_src = #{drivingLicenseSrc}</if>
  79. <if test="drivingPendantSrc != null and drivingPendantSrc != ''"> and driving_pendant_src = #{drivingPendantSrc}</if>
  80. <if test="operationLicenseSrc != null and operationLicenseSrc != ''"> and operation_license_src = #{operationLicenseSrc}</if>
  81. <if test="technologySrc != null and technologySrc != ''"> and technology_src = #{technologySrc}</if>
  82. <if test="drivingLoadSrc != null and drivingLoadSrc != ''"> and driving_load_src = #{drivingLoadSrc}</if>
  83. <if test="secondLvMaintainSrc != null and secondLvMaintainSrc != ''"> and second_lv_maintain_src = #{secondLvMaintainSrc}</if>
  84. <if test="tafficConstranintInsuranceSrc != null and tafficConstranintInsuranceSrc != ''"> and taffic_constranint_insurance_src = #{tafficConstranintInsuranceSrc}</if>
  85. <if test="businessInsuranceSrc != null and businessInsuranceSrc != ''"> and business_insurance_src = #{businessInsuranceSrc}</if>
  86. <if test="accpetCarrageInsuranceSrc != null and accpetCarrageInsuranceSrc != ''"> and accpet_carrage_insurance_src = #{accpetCarrageInsuranceSrc}</if>
  87. <if test="creatTime != null "> and creat_time = #{creatTime}</if>
  88. <if test="modificationTime != null "> and modification_time = #{modificationTime}</if>
  89. <if test="billStatus != null "> and bill_status = #{billStatus}</if>
  90. <if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
  91. </where>
  92. </select>
  93. <select id="selectFleetCarManageById" parameterType="Long" resultMap="FleetCarManageResult">
  94. <include refid="selectFleetCarManageVo"/>
  95. where id = #{id}
  96. </select>
  97. <insert id="insertFleetCarManage" parameterType="FleetCarManage" useGeneratedKeys="true" keyProperty="id">
  98. insert into fleet_car_manage
  99. <trim prefix="(" suffix=")" suffixOverrides=",">
  100. <if test="fleetCompanyId != null">fleet_company_id,</if>
  101. <if test="carNum != null">car_num,</if>
  102. <if test="driverName != null">driver_name,</if>
  103. <if test="hangNum != null">hang_num,</if>
  104. <if test="fuelType != null">fuel_type,</if>
  105. <if test="carType != null">car_type,</if>
  106. <if test="carName != null">car_name,</if>
  107. <if test="carBrand != null">car_brand,</if>
  108. <if test="manufactureUnit != null">manufacture_unit,</if>
  109. <if test="officeOfCertificate != null">office_of_certificate,</if>
  110. <if test="pullCarType != null">pull_car_type,</if>
  111. <if test="pullCarShelfNum != null">pull_car_shelf_num,</if>
  112. <if test="mountCarType != null">mount_car_type,</if>
  113. <if test="mountCarNum != null">mount_car_num,</if>
  114. <if test="engine != null">engine,</if>
  115. <if test="carLoadPersion != null">car_load_persion,</if>
  116. <if test="buyCarDate != null">buy_car_date,</if>
  117. <if test="regiestDate != null">regiest_date,</if>
  118. <if test="abandonDate != null">abandon_date,</if>
  119. <if test="outerSize != null">outer_size,</if>
  120. <if test="sumWeight != null">sum_weight,</if>
  121. <if test="vouchWeight != null">vouch_weight,</if>
  122. <if test="equipWeight != null">equip_weight,</if>
  123. <if test="drivingLicenseSrc != null">driving_license_src,</if>
  124. <if test="drivingPendantSrc != null">driving_pendant_src,</if>
  125. <if test="operationLicenseSrc != null">operation_license_src,</if>
  126. <if test="technologySrc != null">technology_src,</if>
  127. <if test="drivingLoadSrc != null">driving_load_src,</if>
  128. <if test="secondLvMaintainSrc != null">second_lv_maintain_src,</if>
  129. <if test="tafficConstranintInsuranceSrc != null">taffic_constranint_insurance_src,</if>
  130. <if test="businessInsuranceSrc != null">business_insurance_src,</if>
  131. <if test="accpetCarrageInsuranceSrc != null">accpet_carrage_insurance_src,</if>
  132. <if test="creatTime != null">creat_time,</if>
  133. <if test="modificationTime != null">modification_time,</if>
  134. <if test="billStatus != null">bill_status,</if>
  135. <if test="delFlag != null">del_flag,</if>
  136. <if test="createBy != null">create_by,</if>
  137. <if test="updateBy != null">update_by,</if>
  138. <if test="updateTime != null">update_time,</if>
  139. <if test="remarks != null">remarks,</if>
  140. </trim>
  141. <trim prefix="values (" suffix=")" suffixOverrides=",">
  142. <if test="fleetCompanyId != null">#{fleetCompanyId},</if>
  143. <if test="carNum != null">#{carNum},</if>
  144. <if test="driverName != null">#{driverName},</if>
  145. <if test="hangNum != null">#{hangNum},</if>
  146. <if test="fuelType != null">#{fuelType},</if>
  147. <if test="carType != null">#{carType},</if>
  148. <if test="carName != null">#{carName},</if>
  149. <if test="carBrand != null">#{carBrand},</if>
  150. <if test="manufactureUnit != null">#{manufactureUnit},</if>
  151. <if test="officeOfCertificate != null">#{officeOfCertificate},</if>
  152. <if test="pullCarType != null">#{pullCarType},</if>
  153. <if test="pullCarShelfNum != null">#{pullCarShelfNum},</if>
  154. <if test="mountCarType != null">#{mountCarType},</if>
  155. <if test="mountCarNum != null">#{mountCarNum},</if>
  156. <if test="engine != null">#{engine},</if>
  157. <if test="carLoadPersion != null">#{carLoadPersion},</if>
  158. <if test="buyCarDate != null">#{buyCarDate},</if>
  159. <if test="regiestDate != null">#{regiestDate},</if>
  160. <if test="abandonDate != null">#{abandonDate},</if>
  161. <if test="outerSize != null">#{outerSize},</if>
  162. <if test="sumWeight != null">#{sumWeight},</if>
  163. <if test="vouchWeight != null">#{vouchWeight},</if>
  164. <if test="equipWeight != null">#{equipWeight},</if>
  165. <if test="drivingLicenseSrc != null">#{drivingLicenseSrc},</if>
  166. <if test="drivingPendantSrc != null">#{drivingPendantSrc},</if>
  167. <if test="operationLicenseSrc != null">#{operationLicenseSrc},</if>
  168. <if test="technologySrc != null">#{technologySrc},</if>
  169. <if test="drivingLoadSrc != null">#{drivingLoadSrc},</if>
  170. <if test="secondLvMaintainSrc != null">#{secondLvMaintainSrc},</if>
  171. <if test="tafficConstranintInsuranceSrc != null">#{tafficConstranintInsuranceSrc},</if>
  172. <if test="businessInsuranceSrc != null">#{businessInsuranceSrc},</if>
  173. <if test="accpetCarrageInsuranceSrc != null">#{accpetCarrageInsuranceSrc},</if>
  174. <if test="creatTime != null">#{creatTime},</if>
  175. <if test="modificationTime != null">#{modificationTime},</if>
  176. <if test="billStatus != null">#{billStatus},</if>
  177. <if test="delFlag != null">#{delFlag},</if>
  178. <if test="createBy != null">#{createBy},</if>
  179. <if test="updateBy != null">#{updateBy},</if>
  180. <if test="updateTime != null">#{updateTime},</if>
  181. <if test="remarks != null">#{remarks},</if>
  182. </trim>
  183. </insert>
  184. <update id="updateFleetCarManage" parameterType="FleetCarManage">
  185. update fleet_car_manage
  186. <trim prefix="SET" suffixOverrides=",">
  187. <if test="fleetCompanyId != null">fleet_company_id = #{fleetCompanyId},</if>
  188. <if test="carNum != null">car_num = #{carNum},</if>
  189. <if test="driverName != null">driver_name = #{driverName},</if>
  190. <if test="hangNum != null">hang_num = #{hangNum},</if>
  191. <if test="fuelType != null">fuel_type = #{fuelType},</if>
  192. <if test="carType != null">car_type = #{carType},</if>
  193. <if test="carName != null">car_name = #{carName},</if>
  194. <if test="carBrand != null">car_brand = #{carBrand},</if>
  195. <if test="manufactureUnit != null">manufacture_unit = #{manufactureUnit},</if>
  196. <if test="officeOfCertificate != null">office_of_certificate = #{officeOfCertificate},</if>
  197. <if test="pullCarType != null">pull_car_type = #{pullCarType},</if>
  198. <if test="pullCarShelfNum != null">pull_car_shelf_num = #{pullCarShelfNum},</if>
  199. <if test="mountCarType != null">mount_car_type = #{mountCarType},</if>
  200. <if test="mountCarNum != null">mount_car_num = #{mountCarNum},</if>
  201. <if test="engine != null">engine = #{engine},</if>
  202. <if test="carLoadPersion != null">car_load_persion = #{carLoadPersion},</if>
  203. <if test="buyCarDate != null">buy_car_date = #{buyCarDate},</if>
  204. <if test="regiestDate != null">regiest_date = #{regiestDate},</if>
  205. <if test="abandonDate != null">abandon_date = #{abandonDate},</if>
  206. <if test="outerSize != null">outer_size = #{outerSize},</if>
  207. <if test="sumWeight != null">sum_weight = #{sumWeight},</if>
  208. <if test="vouchWeight != null">vouch_weight = #{vouchWeight},</if>
  209. <if test="equipWeight != null">equip_weight = #{equipWeight},</if>
  210. <if test="drivingLicenseSrc != null">driving_license_src = #{drivingLicenseSrc},</if>
  211. <if test="drivingPendantSrc != null">driving_pendant_src = #{drivingPendantSrc},</if>
  212. <if test="operationLicenseSrc != null">operation_license_src = #{operationLicenseSrc},</if>
  213. <if test="technologySrc != null">technology_src = #{technologySrc},</if>
  214. <if test="drivingLoadSrc != null">driving_load_src = #{drivingLoadSrc},</if>
  215. <if test="secondLvMaintainSrc != null">second_lv_maintain_src = #{secondLvMaintainSrc},</if>
  216. <if test="tafficConstranintInsuranceSrc != null">taffic_constranint_insurance_src = #{tafficConstranintInsuranceSrc},</if>
  217. <if test="businessInsuranceSrc != null">business_insurance_src = #{businessInsuranceSrc},</if>
  218. <if test="accpetCarrageInsuranceSrc != null">accpet_carrage_insurance_src = #{accpetCarrageInsuranceSrc},</if>
  219. <if test="creatTime != null">creat_time = #{creatTime},</if>
  220. <if test="modificationTime != null">modification_time = #{modificationTime},</if>
  221. <if test="billStatus != null">bill_status = #{billStatus},</if>
  222. <if test="delFlag != null">del_flag = #{delFlag},</if>
  223. <if test="createBy != null">create_by = #{createBy},</if>
  224. <if test="updateBy != null">update_by = #{updateBy},</if>
  225. <if test="updateTime != null">update_time = #{updateTime},</if>
  226. <if test="remarks != null">remarks = #{remarks},</if>
  227. </trim>
  228. where id = #{id}
  229. </update>
  230. <delete id="deleteFleetCarManageById" parameterType="Long">
  231. delete from fleet_car_manage where id = #{id}
  232. </delete>
  233. <delete id="deleteFleetCarManageByIds" parameterType="String">
  234. delete from fleet_car_manage where id in
  235. <foreach item="id" collection="array" open="(" separator="," close=")">
  236. #{id}
  237. </foreach>
  238. </delete>
  239. <select id="selectFleetCarManageListMap" parameterType="FleetCarManage" resultType="Map">
  240. SELECT
  241. car.id AS Id,
  242. com.company_name AS fleetCompanyName,
  243. car.car_num AS carNum,
  244. car.driver_name AS driverName,
  245. car.hang_num AS hangNum,
  246. car.fuel_type AS fuelType,
  247. car.car_type AS carType,
  248. car.car_name AS carName,
  249. car.manufacture_unit AS carBrand,
  250. car.car_brand AS manufactureUnit,
  251. car.office_of_certificate AS officeOfCertificate,
  252. car.pull_car_type AS pullCarType,
  253. car.pull_car_shelf_num AS pullCarShelfNum,
  254. car.mount_car_type AS mountCarType,
  255. car.mount_car_num AS mountCarNum,
  256. car.`engine` AS `engine`,
  257. car.car_load_persion AS carLoadPersion,
  258. car.buy_car_date AS buyCarDate,
  259. car.regiest_date AS regiestDate,
  260. car.abandon_date AS abandonDate,
  261. car.outer_size AS outerSize,
  262. car.sum_weight AS sumWeight,
  263. car.vouch_weight AS vouchWeight,
  264. car.equip_weight AS equipWeight,
  265. car.driving_license_src AS drivingLicenseSrc,
  266. car.driving_pendant_src AS drivingPendantSrc,
  267. car.operation_license_src AS operationLicenseSrc,
  268. car.technology_src AS technologySrc,
  269. car.driving_load_src AS drivingLoadSrc,
  270. car.second_lv_maintain_src AS secondLvMaintainSrc,
  271. car.taffic_constranint_insurance_src AS tafficConstranintInsuranceSrc,
  272. car.business_insurance_src AS businessInsuranceSrc,
  273. car.accpet_carrage_insurance_src AS accpetCarrageInsuranceSrc,
  274. car.creat_time AS creatTime,
  275. car.modification_time AS modificationTime,
  276. car.bill_status AS billStatus,
  277. car.del_flag AS delFlag,
  278. car.create_by AS createBy,
  279. car.update_by AS updateBy,
  280. car.update_time AS updateTime,
  281. car.remarks AS remarks
  282. FROM
  283. fleet_car_manage AS car
  284. LEFT JOIN
  285. fleet_company_msg AS com
  286. ON
  287. car.fleet_company_id = com.id
  288. <where>
  289. <if test="fleetCompanyId != null "> and fleet_company_id = #{fleetCompanyId}</if>
  290. <if test="carNum != null and carNum != ''"> and car_num = #{carNum}</if>
  291. <if test="driverName != null and driverName != ''"> and driver_name = #{driverName}</if>
  292. <if test="hangNum != null and hangNum != ''"> and hang_num = #{hangNum}</if>
  293. <if test="fuelType != null and fuelType != ''"> and fuel_type = #{fuelType}</if>
  294. <if test="carType != null and carType != ''"> and car_type = #{carType}</if>
  295. <if test="carName != null and carName != ''"> and car_name like concat('%', #{carName}, '%')</if>
  296. <if test="carBrand != null and carBrand != ''"> and car_brand = #{carBrand}</if>
  297. <if test="manufactureUnit != null and manufactureUnit != ''"> and manufacture_unit = #{manufactureUnit}</if>
  298. <if test="officeOfCertificate != null and officeOfCertificate != ''"> and office_of_certificate = #{officeOfCertificate}</if>
  299. <if test="pullCarType != null and pullCarType != ''"> and pull_car_type = #{pullCarType}</if>
  300. <if test="pullCarShelfNum != null and pullCarShelfNum != ''"> and pull_car_shelf_num = #{pullCarShelfNum}</if>
  301. <if test="mountCarType != null and mountCarType != ''"> and mount_car_type = #{mountCarType}</if>
  302. <if test="mountCarNum != null and mountCarNum != ''"> and mount_car_num = #{mountCarNum}</if>
  303. <if test="engine != null and engine != ''"> and engine = #{engine}</if>
  304. <if test="carLoadPersion != null "> and car_load_persion = #{carLoadPersion}</if>
  305. <if test="buyCarDate != null "> and buy_car_date = #{buyCarDate}</if>
  306. <if test="regiestDate != null "> and regiest_date = #{regiestDate}</if>
  307. <if test="abandonDate != null "> and abandon_date = #{abandonDate}</if>
  308. <if test="outerSize != null "> and outer_size = #{outerSize}</if>
  309. <if test="sumWeight != null "> and sum_weight = #{sumWeight}</if>
  310. <if test="vouchWeight != null "> and vouch_weight = #{vouchWeight}</if>
  311. <if test="equipWeight != null "> and equip_weight = #{equipWeight}</if>
  312. <if test="drivingLicenseSrc != null and drivingLicenseSrc != ''"> and driving_license_src = #{drivingLicenseSrc}</if>
  313. <if test="drivingPendantSrc != null and drivingPendantSrc != ''"> and driving_pendant_src = #{drivingPendantSrc}</if>
  314. <if test="operationLicenseSrc != null and operationLicenseSrc != ''"> and operation_license_src = #{operationLicenseSrc}</if>
  315. <if test="technologySrc != null and technologySrc != ''"> and technology_src = #{technologySrc}</if>
  316. <if test="drivingLoadSrc != null and drivingLoadSrc != ''"> and driving_load_src = #{drivingLoadSrc}</if>
  317. <if test="secondLvMaintainSrc != null and secondLvMaintainSrc != ''"> and second_lv_maintain_src = #{secondLvMaintainSrc}</if>
  318. <if test="tafficConstranintInsuranceSrc != null and tafficConstranintInsuranceSrc != ''"> and taffic_constranint_insurance_src = #{tafficConstranintInsuranceSrc}</if>
  319. <if test="businessInsuranceSrc != null and businessInsuranceSrc != ''"> and business_insurance_src = #{businessInsuranceSrc}</if>
  320. <if test="accpetCarrageInsuranceSrc != null and accpetCarrageInsuranceSrc != ''"> and accpet_carrage_insurance_src = #{accpetCarrageInsuranceSrc}</if>
  321. <if test="creatTime != null "> and creat_time = #{creatTime}</if>
  322. <if test="modificationTime != null "> and modification_time = #{modificationTime}</if>
  323. <if test="billStatus != null "> and bill_status = #{billStatus}</if>
  324. <if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
  325. </where>
  326. </select>
  327. </mapper>