ftmsorderbillsMapper.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  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.mapper.FtmsorderbillsMapper">
  6. <resultMap type="ftmsorderbills" id="ftmsorderbillsResult">
  7. <result property="id" column="id"/>
  8. <result property="billNo" column="bill_no"/>
  9. <result property="actId" column="act_id"/>
  10. <result property="corpId" column="corp_id"/>
  11. <result property="transUserName" column="trans_user_name"/>
  12. <result property="planUserId" column="plan_user_id"/>
  13. <result property="planUserName" column="plan_user_name"/>
  14. <result property="billType" column="bill_type"/>
  15. <result property="transUserId" column="trans_user_id"/>
  16. <result property="transType" column="trans_type"/>
  17. <result property="transProp" column="trans_prop"/>
  18. <result property="ifContracted" column="if_contracted"/>
  19. <result property="contractNo" column="contract_no"/>
  20. <result property="refNo" column="ref_no"/>
  21. <result property="accstlType" column="accstl_type"/>
  22. <result property="accdays" column="accdays"/>
  23. <result property="goodsId" column="goods_id"/>
  24. <result property="goodsPrice" column="goods_price"/>
  25. <result property="goodsLossType" column="goods_loss_type"/>
  26. <result property="goodsLossStd" column="goods_loss_std"/>
  27. <result property="mblno" column="mblno"/>
  28. <result property="ysl" column="ysl"/>
  29. <result property="voy" column="voy"/>
  30. <result property="polId" column="pol_id"/>
  31. <result property="podId" column="pod_id"/>
  32. <result property="qtyPlan" column="qty_plan"/>
  33. <result property="qtyDisPatch" column="qty_dis_patch"/>
  34. <result property="weightPlan" column="weight_plan"/>
  35. <result property="cntrDesc" column="cntr_desc"/>
  36. <result property="carNoList" column="car_no_list"/>
  37. <result property="loadAddr" column="load_addr"/>
  38. <result property="loadAttn" column="load_attn"/>
  39. <result property="loadAttntel" column="load_attntel"/>
  40. <result property="loadDate" column="load_date"/>
  41. <result property="mdLoadAddr" column="md_load_addr"/>
  42. <result property="mdLoadAttn" column="md_load_attn"/>
  43. <result property="mdLoadAttnTel" column="md_load_attn_tel"/>
  44. <result property="mdLoadDate" column="md_load_date"/>
  45. <result property="unLoadAddr" column="un_load_addr"/>
  46. <result property="unLoadAttn" column="un_load_attn"/>
  47. <result property="unLoadAttnTel" column="un_load_attn_tel"/>
  48. <result property="unLoadDate" column="un_load_date"/>
  49. <result property="routeId" column="route_id"/>
  50. <result property="routeDesc" column="route_desc"/>
  51. <result property="ifWaybill" column="if_waybill"/>
  52. <result property="ifNeedinvDr" column="if_needinv_dr"/>
  53. <result property="postDate" column="post_date"/>
  54. <result property="billStatus" column="bill_status"/>
  55. <result property="delFlag" column="del_flag"/>
  56. <result property="createBy" column="create_by"/>
  57. <result property="createTime" column="create_time"/>
  58. <result property="updateBy" column="update_by"/>
  59. <result property="updateTime" column="update_time"/>
  60. <result property="remarks" column="remarks"/>
  61. </resultMap>
  62. <sql id="selectftmsorderbillsVo">
  63. select id, bill_no, act_id, corp_id, trans_user_name, plan_user_id, plan_user_name, bill_type, trans_user_id, trans_type,
  64. trans_prop, if_contracted, contract_no, ref_no, accstl_type, accdays, goods_id, goods_price, goods_loss_type, goods_loss_std,
  65. mblno, ysl, voy, pol_id, pod_id, qty_plan, qty_dis_patch, weight_plan, cntr_desc, car_no_list, load_addr, load_attn, load_attntel,
  66. load_date, md_load_addr, md_load_attn, md_load_attn_tel, md_load_date, un_load_addr, un_load_attn, un_load_attn_tel, un_load_date,
  67. route_id, route_desc, if_waybill, if_needinv_dr, post_date, bill_status, del_flag, create_by, create_time, update_by, update_time,
  68. remarks from F_TMSORDERBILLS
  69. </sql>
  70. <select id="selectftmsorderbillsList" parameterType="ftmsorderbills" resultMap="ftmsorderbillsResult">
  71. <include refid="selectftmsorderbillsVo"/>
  72. <where>
  73. <if test="billNo != null and billNo != ''"> and bill_no = #{billNo}</if>
  74. <if test="actId != null "> and act_id = #{actId}</if>
  75. <if test="corpId != null "> and corp_id = #{corpId}</if>
  76. <if test="transUserName != null and transUserName != ''"> and trans_user_name like concat('%', #{transUserName}, '%')</if>
  77. <if test="planUserId != null "> and plan_user_id = #{planUserId}</if>
  78. <if test="planUserName != null and planUserName != ''"> and plan_user_name like concat('%', #{planUserName}, '%')</if>
  79. <if test="billType != null "> and bill_type = #{billType}</if>
  80. <if test="transUserId != null "> and trans_user_id = #{transUserId}</if>
  81. <if test="transType != null and transType != ''"> and trans_type = #{transType}</if>
  82. <if test="transProp != null and transProp != ''"> and trans_prop = #{transProp}</if>
  83. <if test="ifContracted != null and ifContracted != ''"> and if_contracted = #{ifContracted}</if>
  84. <if test="contractNo != null and contractNo != ''"> and contract_no = #{contractNo}</if>
  85. <if test="refNo != null and refNo != ''"> and ref_no = #{refNo}</if>
  86. <if test="accstlType != null "> and accstl_type = #{accstlType}</if>
  87. <if test="accdays != null "> and accdays = #{accdays}</if>
  88. <if test="goodsId != null "> and goods_id = #{goodsId}</if>
  89. <if test="goodsPrice != null "> and goods_price = #{goodsPrice}</if>
  90. <if test="goodsLossType != null and goodsLossType != ''"> and goods_loss_type = #{goodsLossType}</if>
  91. <if test="goodsLossStd != null "> and goods_loss_std = #{goodsLossStd}</if>
  92. <if test="mblno != null and mblno != ''"> and mblno = #{mblno}</if>
  93. <if test="ysl != null and ysl != ''"> and ysl = #{ysl}</if>
  94. <if test="voy != null and voy != ''"> and voy = #{voy}</if>
  95. <if test="polId != null "> and pol_id = #{polId}</if>
  96. <if test="podId != null "> and pod_id = #{podId}</if>
  97. <if test="qtyPlan != null "> and qty_plan = #{qtyPlan}</if>
  98. <if test="qtyDisPatch != null "> and qty_dis_patch = #{qtyDisPatch}</if>
  99. <if test="weightPlan != null "> and weight_plan = #{weightPlan}</if>
  100. <if test="cntrDesc != null and cntrDesc != ''"> and cntr_desc = #{cntrDesc}</if>
  101. <if test="carNoList != null and carNoList != ''"> and car_no_list = #{carNoList}</if>
  102. <if test="loadAddr != null and loadAddr != ''"> and load_addr = #{loadAddr}</if>
  103. <if test="loadAttn != null and loadAttn != ''"> and load_attn = #{loadAttn}</if>
  104. <if test="loadAttntel != null and loadAttntel != ''"> and load_attntel = #{loadAttntel}</if>
  105. <if test="loadDate != null "> and load_date = #{loadDate}</if>
  106. <if test="mdLoadAddr != null and mdLoadAddr != ''"> and md_load_addr = #{mdLoadAddr}</if>
  107. <if test="mdLoadAttn != null and mdLoadAttn != ''"> and md_load_attn = #{mdLoadAttn}</if>
  108. <if test="mdLoadAttnTel != null and mdLoadAttnTel != ''"> and md_load_attn_tel = #{mdLoadAttnTel}</if>
  109. <if test="mdLoadDate != null "> and md_load_date = #{mdLoadDate}</if>
  110. <if test="unLoadAddr != null and unLoadAddr != ''"> and un_load_addr = #{unLoadAddr}</if>
  111. <if test="unLoadAttn != null and unLoadAttn != ''"> and un_load_attn = #{unLoadAttn}</if>
  112. <if test="unLoadAttnTel != null and unLoadAttnTel != ''"> and un_load_attn_tel = #{unLoadAttnTel}</if>
  113. <if test="unLoadDate != null "> and un_load_date = #{unLoadDate}</if>
  114. <if test="routeId != null "> and route_id = #{routeId}</if>
  115. <if test="routeDesc != null and routeDesc != ''"> and route_desc = #{routeDesc}</if>
  116. <if test="ifWaybill != null and ifWaybill != ''"> and if_waybill = #{ifWaybill}</if>
  117. <if test="ifNeedinvDr != null and ifNeedinvDr != ''"> and if_needinv_dr = #{ifNeedinvDr}</if>
  118. <if test="postDate != null "> and post_date = #{postDate}</if>
  119. <if test="billStatus != null "> and bill_status = #{billStatus}</if>
  120. <if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
  121. </where>
  122. </select>
  123. <select id="selectftmsorderbillsMapList" parameterType="ftmsorderbills" resultType="Map">
  124. SELECT
  125. f.id,
  126. f.bill_no AS billNo,
  127. f.act_id AS actId,
  128. c.f_name AS corpId,
  129. p.nick_name AS planUserId,
  130. a.nick_name AS transUserId,
  131. type.dict_label AS billType,
  132. trans.dict_label AS transType,
  133. prop.dict_label AS transProp,
  134. f.if_contracted AS ifContracted,
  135. f.contract_no AS contractNo,
  136. f.accstl_type AS accstlType,
  137. f.accdays,
  138. f.load_addr AS loadAddr,
  139. f.md_load_addr AS mdLoadAddr,
  140. f.un_load_addr AS unLoadAddr,
  141. g.f_name AS goodsId,
  142. f.goods_price AS goodsPrice,
  143. f.mblno,
  144. f.qty_plan AS qtyPlan,
  145. f.qty_dis_patch AS qtyDisPatch,
  146. f.weight_plan AS weightPlan,
  147. f.cntr_desc AS cntrDesc,
  148. f.car_no_list AS carNoList,
  149. f.bill_status AS billStatus,
  150. u.nick_name AS createBy,
  151. f.create_time AS createTime
  152. FROM
  153. F_TMSORDERBILLS f
  154. LEFT JOIN sys_dict_data type ON type.dict_type = 'data_billType'
  155. AND type.dict_value = f.bill_type
  156. LEFT JOIN sys_dict_data trans ON trans.dict_type = 'data_transType'
  157. AND trans.dict_value = f.trans_type
  158. LEFT JOIN sys_dict_data prop ON prop.dict_type = 'data_transProp'
  159. AND prop.dict_value = f.trans_prop
  160. LEFT JOIN t_corps c ON c.f_id = f.corp_id
  161. LEFT JOIN sys_user p ON p.user_id = f.plan_user_id
  162. LEFT JOIN sys_user a ON a.user_id = f.trans_user_id
  163. LEFT JOIN t_goods g ON g.f_id = f.goods_id
  164. LEFT JOIN sys_user u ON u.user_name = f.create_by
  165. WHERE
  166. f.id != ''
  167. <if test="corpId != null and corpId != ''">
  168. AND f.corp_id = #{corpId}
  169. </if>
  170. <if test="actId != null and actId != 0">
  171. AND f.act_id = #{actId}
  172. </if>
  173. <if test="billType != null and billType != ''">
  174. AND f.bill_type = #{billType}
  175. </if>
  176. <if test="transType != null and transType != ''">
  177. AND f.trans_type = #{transType}
  178. </if>
  179. <if test="transProp != null and transProp != ''">
  180. AND f.trans_prop = #{transProp}
  181. </if>
  182. <if test="goodsId != null and goodsId != 0">
  183. AND f.goods_id = #{goodsId}
  184. </if>
  185. <if test="mblno != null and mblno != ''">
  186. AND f.mblno LIKE "%${mblno}%"
  187. </if>
  188. <if test="loadAddr != null and loadAddr != ''">
  189. AND f.load_addr LIKE "%${loadAddr}%"
  190. </if>
  191. <if test="mdLoadAddr != null and mdLoadAddr != ''">
  192. AND f.md_load_addr LIKE "%${mdLoadAddr}%"
  193. </if>
  194. <if test="unLoadAddr != null and unLoadAddr != ''">
  195. AND f.un_load_addr LIKE "%${unLoadAddr}%"
  196. </if>
  197. <if test="billStatus != null and billStatus != ''">
  198. AND f.bill_status LIKE "%${billStatus}%"
  199. </if>
  200. </select>
  201. <select id="selectftmsorderbillsById" parameterType="Long" resultMap="ftmsorderbillsResult">
  202. <include refid="selectftmsorderbillsVo"/>
  203. where id = #{id}
  204. </select>
  205. <insert id="insertftmsorderbills" parameterType="ftmsorderbills" useGeneratedKeys="true" keyProperty="id">
  206. insert into F_TMSORDERBILLS
  207. <trim prefix="(" suffix=")" suffixOverrides=",">
  208. <if test="billNo != null">bill_no,</if>
  209. <if test="actId != null">act_id,</if>
  210. <if test="corpId != null">corp_id,</if>
  211. <if test="transUserName != null">trans_user_name,</if>
  212. <if test="planUserId != null">plan_user_id,</if>
  213. <if test="planUserName != null">plan_user_name,</if>
  214. <if test="billType != null">bill_type,</if>
  215. <if test="transUserId != null">trans_user_id,</if>
  216. <if test="transType != null">trans_type,</if>
  217. <if test="transProp != null">trans_prop,</if>
  218. <if test="ifContracted != null">if_contracted,</if>
  219. <if test="contractNo != null">contract_no,</if>
  220. <if test="refNo != null">ref_no,</if>
  221. <if test="accstlType != null">accstl_type,</if>
  222. <if test="accdays != null">accdays,</if>
  223. <if test="goodsId != null">goods_id,</if>
  224. <if test="goodsPrice != null">goods_price,</if>
  225. <if test="goodsLossType != null">goods_loss_type,</if>
  226. <if test="goodsLossStd != null">goods_loss_std,</if>
  227. <if test="mblno != null">mblno,</if>
  228. <if test="ysl != null">ysl,</if>
  229. <if test="voy != null">voy,</if>
  230. <if test="polId != null">pol_id,</if>
  231. <if test="podId != null">pod_id,</if>
  232. <if test="qtyPlan != null">qty_plan,</if>
  233. <if test="qtyDisPatch != null">qty_dis_patch,</if>
  234. <if test="weightPlan != null">weight_plan,</if>
  235. <if test="cntrDesc != null">cntr_desc,</if>
  236. <if test="carNoList != null">car_no_list,</if>
  237. <if test="loadAddr != null">load_addr,</if>
  238. <if test="loadAttn != null">load_attn,</if>
  239. <if test="loadAttntel != null">load_attntel,</if>
  240. <if test="loadDate != null">load_date,</if>
  241. <if test="mdLoadAddr != null">md_load_addr,</if>
  242. <if test="mdLoadAttn != null">md_load_attn,</if>
  243. <if test="mdLoadAttnTel != null">md_load_attn_tel,</if>
  244. <if test="mdLoadDate != null">md_load_date,</if>
  245. <if test="unLoadAddr != null">un_load_addr,</if>
  246. <if test="unLoadAttn != null">un_load_attn,</if>
  247. <if test="unLoadAttnTel != null">un_load_attn_tel,</if>
  248. <if test="unLoadDate != null">un_load_date,</if>
  249. <if test="routeId != null">route_id,</if>
  250. <if test="routeDesc != null">route_desc,</if>
  251. <if test="ifWaybill != null">if_waybill,</if>
  252. <if test="ifNeedinvDr != null">if_needinv_dr,</if>
  253. <if test="postDate != null">post_date,</if>
  254. <if test="billStatus != null">bill_status,</if>
  255. <if test="delFlag != null">del_flag,</if>
  256. <if test="createBy != null">create_by,</if>
  257. <if test="createTime != null">create_time,</if>
  258. <if test="updateBy != null">update_by,</if>
  259. <if test="updateTime != null">update_time,</if>
  260. <if test="remarks != null">remarks,</if>
  261. </trim>
  262. <trim prefix="values (" suffix=")" suffixOverrides=",">
  263. <if test="billNo != null">#{billNo},</if>
  264. <if test="actId != null">#{actId},</if>
  265. <if test="corpId != null">#{corpId},</if>
  266. <if test="transUserName != null">#{transUserName},</if>
  267. <if test="planUserId != null">#{planUserId},</if>
  268. <if test="planUserName != null">#{planUserName},</if>
  269. <if test="billType != null">#{billType},</if>
  270. <if test="transUserId != null">#{transUserId},</if>
  271. <if test="transType != null">#{transType},</if>
  272. <if test="transProp != null">#{transProp},</if>
  273. <if test="ifContracted != null">#{ifContracted},</if>
  274. <if test="contractNo != null">#{contractNo},</if>
  275. <if test="refNo != null">#{refNo},</if>
  276. <if test="accstlType != null">#{accstlType},</if>
  277. <if test="accdays != null">#{accdays},</if>
  278. <if test="goodsId != null">#{goodsId},</if>
  279. <if test="goodsPrice != null">#{goodsPrice},</if>
  280. <if test="goodsLossType != null">#{goodsLossType},</if>
  281. <if test="goodsLossStd != null">#{goodsLossStd},</if>
  282. <if test="mblno != null">#{mblno},</if>
  283. <if test="ysl != null">#{ysl},</if>
  284. <if test="voy != null">#{voy},</if>
  285. <if test="polId != null">#{polId},</if>
  286. <if test="podId != null">#{podId},</if>
  287. <if test="qtyPlan != null">#{qtyPlan},</if>
  288. <if test="qtyDisPatch != null">#{qtyDisPatch},</if>
  289. <if test="weightPlan != null">#{weightPlan},</if>
  290. <if test="cntrDesc != null">#{cntrDesc},</if>
  291. <if test="carNoList != null">#{carNoList},</if>
  292. <if test="loadAddr != null">#{loadAddr},</if>
  293. <if test="loadAttn != null">#{loadAttn},</if>
  294. <if test="loadAttntel != null">#{loadAttntel},</if>
  295. <if test="loadDate != null">#{loadDate},</if>
  296. <if test="mdLoadAddr != null">#{mdLoadAddr},</if>
  297. <if test="mdLoadAttn != null">#{mdLoadAttn},</if>
  298. <if test="mdLoadAttnTel != null">#{mdLoadAttnTel},</if>
  299. <if test="mdLoadDate != null">#{mdLoadDate},</if>
  300. <if test="unLoadAddr != null">#{unLoadAddr},</if>
  301. <if test="unLoadAttn != null">#{unLoadAttn},</if>
  302. <if test="unLoadAttnTel != null">#{unLoadAttnTel},</if>
  303. <if test="unLoadDate != null">#{unLoadDate},</if>
  304. <if test="routeId != null">#{routeId},</if>
  305. <if test="routeDesc != null">#{routeDesc},</if>
  306. <if test="ifWaybill != null">#{ifWaybill},</if>
  307. <if test="ifNeedinvDr != null">#{ifNeedinvDr},</if>
  308. <if test="postDate != null">#{postDate},</if>
  309. <if test="billStatus != null">#{billStatus},</if>
  310. <if test="delFlag != null">#{delFlag},</if>
  311. <if test="createBy != null">#{createBy},</if>
  312. <if test="createTime != null">#{createTime},</if>
  313. <if test="updateBy != null">#{updateBy},</if>
  314. <if test="updateTime != null">#{updateTime},</if>
  315. <if test="remarks != null">#{remarks},</if>
  316. </trim>
  317. </insert>
  318. <update id="updateftmsorderbills" parameterType="ftmsorderbills">
  319. update F_TMSORDERBILLS
  320. <trim prefix="SET" suffixOverrides=",">
  321. <if test="billNo != null">bill_no = #{billNo},</if>
  322. <if test="actId != null">act_id = #{actId},</if>
  323. <if test="corpId != null">corp_id = #{corpId},</if>
  324. <if test="transUserName != null">trans_user_name = #{transUserName},</if>
  325. <if test="planUserId != null">plan_user_id = #{planUserId},</if>
  326. <if test="planUserName != null">plan_user_name = #{planUserName},</if>
  327. <if test="billType != null">bill_type = #{billType},</if>
  328. <if test="transUserId != null">trans_user_id = #{transUserId},</if>
  329. <if test="transType != null">trans_type = #{transType},</if>
  330. <if test="transProp != null">trans_prop = #{transProp},</if>
  331. <if test="ifContracted != null">if_contracted = #{ifContracted},</if>
  332. <if test="contractNo != null">contract_no = #{contractNo},</if>
  333. <if test="refNo != null">ref_no = #{refNo},</if>
  334. <if test="accstlType != null">accstl_type = #{accstlType},</if>
  335. <if test="accdays != null">accdays = #{accdays},</if>
  336. <if test="goodsId != null">goods_id = #{goodsId},</if>
  337. <if test="goodsPrice != null">goods_price = #{goodsPrice},</if>
  338. <if test="goodsLossType != null">goods_loss_type = #{goodsLossType},</if>
  339. <if test="goodsLossStd != null">goods_loss_std = #{goodsLossStd},</if>
  340. <if test="mblno != null">mblno = #{mblno},</if>
  341. <if test="ysl != null">ysl = #{ysl},</if>
  342. <if test="voy != null">voy = #{voy},</if>
  343. <if test="polId != null">pol_id = #{polId},</if>
  344. <if test="podId != null">pod_id = #{podId},</if>
  345. <if test="qtyPlan != null">qty_plan = #{qtyPlan},</if>
  346. <if test="qtyDisPatch != null">qty_dis_patch = #{qtyDisPatch},</if>
  347. <if test="weightPlan != null">weight_plan = #{weightPlan},</if>
  348. <if test="cntrDesc != null">cntr_desc = #{cntrDesc},</if>
  349. <if test="carNoList != null">car_no_list = #{carNoList},</if>
  350. <if test="loadAddr != null">load_addr = #{loadAddr},</if>
  351. <if test="loadAttn != null">load_attn = #{loadAttn},</if>
  352. <if test="loadAttntel != null">load_attntel = #{loadAttntel},</if>
  353. <if test="loadDate != null">load_date = #{loadDate},</if>
  354. <if test="mdLoadAddr != null">md_load_addr = #{mdLoadAddr},</if>
  355. <if test="mdLoadAttn != null">md_load_attn = #{mdLoadAttn},</if>
  356. <if test="mdLoadAttnTel != null">md_load_attn_tel = #{mdLoadAttnTel},</if>
  357. <if test="mdLoadDate != null">md_load_date = #{mdLoadDate},</if>
  358. <if test="unLoadAddr != null">un_load_addr = #{unLoadAddr},</if>
  359. <if test="unLoadAttn != null">un_load_attn = #{unLoadAttn},</if>
  360. <if test="unLoadAttnTel != null">un_load_attn_tel = #{unLoadAttnTel},</if>
  361. <if test="unLoadDate != null">un_load_date = #{unLoadDate},</if>
  362. <if test="routeId != null">route_id = #{routeId},</if>
  363. <if test="routeDesc != null">route_desc = #{routeDesc},</if>
  364. <if test="ifWaybill != null">if_waybill = #{ifWaybill},</if>
  365. <if test="ifNeedinvDr != null">if_needinv_dr = #{ifNeedinvDr},</if>
  366. <if test="postDate != null">post_date = #{postDate},</if>
  367. <if test="billStatus != null">bill_status = #{billStatus},</if>
  368. <if test="delFlag != null">del_flag = #{delFlag},</if>
  369. <if test="createBy != null">create_by = #{createBy},</if>
  370. <if test="createTime != null">create_time = #{createTime},</if>
  371. <if test="updateBy != null">update_by = #{updateBy},</if>
  372. <if test="updateTime != null">update_time = #{updateTime},</if>
  373. <if test="remarks != null">remarks = #{remarks},</if>
  374. </trim>
  375. where id = #{id}
  376. </update>
  377. <delete id="deleteftmsorderbillsById" parameterType="Long">
  378. delete from F_TMSORDERBILLS where id = #{id}
  379. </delete>
  380. <delete id="deleteftmsorderbillsByIds" parameterType="String">
  381. delete from F_TMSORDERBILLS where id in
  382. <foreach item="id" collection="array" open="(" separator="," close=")">
  383. #{id}
  384. </foreach>
  385. </delete>
  386. </mapper>