ProductDao.dql 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. -- [selectProductInfoList]
  2. select * from $table$;
  3. -- [initFile]
  4. select 0;
  5. -- [selectWorkProcess]
  6. select * from $table$;
  7. -- [addWorkProcess]
  8. insert into $table$ (
  9. id, processName, specialFlag, workProcessIds,
  10. plateFlag, platePDFIndex,
  11. selectFlag, queueFlag, feedBackFlag,
  12. isFeedBack, feedBackContent, voidFlag,
  13. remark,materialTypeIds,sortNum, baseMoney, price,
  14. createBy, createTime,createTimeLong,
  15. updateBy, updateTime,updateTimeLong )
  16. values (
  17. #{id},#{processname},#{specialflag},#{workprocessids},
  18. #{plateflag},#{platepdfindex},
  19. #{selectflag},#{queueflag},#{feedbackflag},
  20. #{isfeedback}, #{feedbackcontent},#{voidflag},
  21. #{remark},#{materialtypeids},#{sortnum}, #{basemoney}, #{price},
  22. #{createby},#{createtime},#{createtimelong},
  23. #{updateby},#{updatetime}, #{updatetimelong} );
  24. -- [updateWorkProcess]
  25. update $table$ set processName = #{processname},specialFlag = #{specialflag},
  26. plateFlag = #{plateflag},workProcessIds = #{workprocessids},
  27. platePDFIndex = #{platepdfindex},selectFlag = #{selectflag},
  28. queueFlag = #{queueflag},feedBackFlag = #{feedbackflag},
  29. isFeedBack = #{isfeedback},feedBackContent = #{feedbackcontent},
  30. voidFlag = #{voidflag},remark = #{remark},sortNum = #{sortnum},
  31. materialTypeIds = #{materialtypeids},updateBy = #{updateby},
  32. updateTime = #{updatetime},updateTimeLong = #{updatetimelong},
  33. baseMoney = #{basemoney}, price = #{price}
  34. where id = #{id};
  35. -- [voidWorkProcess]
  36. update $table$ set
  37. voidFlag = #{voidflag},
  38. updateBy = #{updateby},
  39. updateTime = #{updatetime}
  40. where id = #{id};
  41. -- [selectProductType]
  42. select *
  43. from $table$
  44. -- trim prefix=WHERE prefixOverrides=AND|OR
  45. -- if voidFlag >= 0
  46. voidFlag = #{voidFlag}
  47. -- end
  48. -- isNotEmpty productTypeName
  49. and productTypeName LIKE #{Like:productTypeName}
  50. -- end
  51. -- end
  52. -- isEmpty orderBy
  53. order by createTime desc
  54. -- else
  55. order by #{orderBy}
  56. -- end
  57. ;
  58. -- [addProductType]
  59. insert into $table$ (id, productTypeName, parentId, voidFlag,
  60. createBy, createTime, createTimeLong,
  61. updateBy, updateTime, updateTimeLong ) values ( #{id}, #{producttypename}, #{parentid}, #{voidflag},
  62. #{createby}, #{createtime}, #{createtimelong},
  63. #{updateby}, #{updatetime}, #{updatetimelong} );
  64. -- [updateProductType]
  65. update $table$ set productTypeName = #{producttypename},parentId = #{parentid},voidFlag = #{voidflag},
  66. updateBy = #{updateby},updateTime = #{updatetime},
  67. updateTimeLong = #{updatetimelong} where id = #{id};
  68. -- [voidProductType]
  69. update $table$ set
  70. voidFlag = #{voidflag},
  71. updateBy = #{updateby},
  72. updateTime = #{updatetime}
  73. where id = #{id};
  74. -- [selectProductParameter]
  75. select *
  76. from $table$;
  77. -- [addProductParameter]
  78. insert into $table$
  79. (id, parameterName, parameterFieldPart,
  80. parameterFieldOrder, fieldType, selectKind,
  81. idDictType, parameterUnit, defaultValue,
  82. voidFlag, createBy, createTime,
  83. updateBy, updateTime)
  84. values (
  85. #{id}, #{parametername}, #{parameterfieldpart},
  86. #{parameterfieldorder}, #{fieldtype}, #{selectkind},
  87. #{iddicttype}, #{parameterunit}, #{defaultvalue},
  88. #{voidflag}, #{createby}, #{createtime},
  89. #{updateby}, #{updatetime}
  90. );
  91. -- [updateProductParameter]
  92. update $table$ set
  93. parameterName = #{parametername},
  94. parameterFieldPart = #{parameterfieldpart},
  95. parameterFieldOrder = #{parameterfieldorder},
  96. fieldType = #{fieldtype},
  97. selectKind = #{selectkind},
  98. idDictType = #{iddicttype},
  99. parameterUnit = #{parameterunit},
  100. defaultValue = #{defaultvalue},
  101. updateBy = #{updateby},
  102. updateTime = #{updatetime}
  103. where id = #{id};
  104. -- [voidProductParameter]
  105. update $table$ set
  106. voidFlag = #{voidflag},
  107. updateBy = #{updateby},
  108. updateTime = #{updatetime}
  109. where id = #{id};
  110. -- [deleteProductParameter]
  111. delete from $table$
  112. where id = #{id};
  113. --[deleteProductParameterByIds]
  114. delete from $table$ where id in (/* in ids */)
  115. -- [selectProductInfo]
  116. select * from $table$ where id = #{id};
  117. -- [addProductInfo]
  118. insert into $table$ (
  119. id, idType, productName,
  120. productUnit, makeUpType, billPrefix, billCodeTimeKind,
  121. orderPrefix, isSelfHelp,compageVisibleFlag,
  122. productImage, photoFixFlag,
  123. voidFlag, saleFlag, idPartner,
  124. idProductPriceInfo,minDeliveryDay,systemType,
  125. createBy, createTime, createTimeLong,
  126. updateBy, updateTime, updateTimeLong) values (
  127. #{id}, #{idtype}, #{productname},
  128. #{productunit}, #{makeuptype}, #{billprefix}, #{billcodetimekind},
  129. #{orderprefix}, #{isselfhelp},#{compagevisibleflag},
  130. #{productimage}, #{photofixflag},
  131. #{voidflag}, #{saleflag},#{idpartner},
  132. #{idproductpriceinfo},#{mindeliveryday},#{systemtype},
  133. #{createby}, #{createtime}, #{createtimelong},
  134. #{updateby}, #{updatetime}, #{updatetimelong});
  135. -- [updateProductInfo]
  136. update $table$ set
  137. idType = #{idtype},
  138. productName = #{productname},
  139. productUnit = #{productunit},
  140. compageVisibleFlag = #{compagevisibleflag},
  141. makeUpType = #{makeuptype},
  142. billPrefix = #{billprefix},
  143. billCodeTimeKind = #{billcodetimekind},
  144. orderPrefix = #{orderprefix},
  145. productImage = #{productimage},
  146. isSelfHelp = #{isselfhelp},
  147. photoFixFlag = #{photofixflag},
  148. idProductPriceInfo = #{idproductpriceinfo},
  149. saleFlag = #{saleflag},
  150. idPartner = #{idpartner},
  151. updateBy = #{updateby},
  152. updateTime = #{updatetime},
  153. updateTimeLong = #{updatetimelong},
  154. minDeliveryDay = #{mindeliveryday},
  155. systemType = #{systemtype}
  156. where id = #{id};
  157. -- [voidProductInfo]
  158. update $table$ set
  159. voidFlag = #{voidflag},
  160. updateBy = #{updateby},
  161. updateTime = #{updatetime}
  162. where id = #{id};
  163. -- [saveSaleFlag]
  164. update $table$ set
  165. saleFlag = #{saleflag},
  166. updateBy = #{updateby},
  167. updateTime = #{updatetime}
  168. where id = #{id};
  169. -- [insertProductImage]
  170. insert into $table$ (id, idProduct, idUser, userName,
  171. srcFileName, fileDescription, viewImageUrl,
  172. sortNum, createBy, createTime,
  173. createTimeLong, updateBy, updateTime,
  174. updateTimeLong ) values ( #{id}, #{idproduct}, #{iduser}, #{username},
  175. #{srcfilename}, #{filedescription}, #{viewimageurl},
  176. #{sortnum}, #{createby}, #{createtime},
  177. #{createtimelong}, #{updateby}, #{updatetime},
  178. #{updatetimelong} );
  179. -- [selectProductImageList]
  180. select * from $table$
  181. order by idProduct, sortNum;
  182. -- [deleteProductImage]
  183. delete from $table$
  184. where idProduct = #{idproduct};
  185. -- [selectPartInfo]
  186. select *
  187. from $table$
  188. where idProduct = #{idproduct};
  189. -- [addPartInfo]
  190. insert into $table$ (id, idProduct, partName, partBlood,
  191. sortNum, voidFlag, saleUnit,idPaperType,transformCoefficient,defaultBasePaper,
  192. printUnit, partFace, createBy,
  193. createTime, createTimeLong, updateBy,
  194. updateTime, updateTimeLong,mainFlag,partDesc) values ( #{id}, #{idproduct}, #{partname}, #{partblood},
  195. #{sortnum}, #{voidflag}, #{saleunit},#{idpapertype},#{transformcoefficient},#{defaultbasepaper},
  196. #{printunit}, #{partface}, #{createby},
  197. #{createtime}, #{createtimelong}, #{updateby},
  198. #{updatetime}, #{updatetimelong},#{mainflag},#{partdesc});
  199. -- [updatePartInfo]
  200. update $table$ set idProduct = #{idproduct},partName = #{partname},partBlood = #{partblood},sortNum = #{sortnum},
  201. voidFlag = #{voidflag},saleUnit = #{saleunit},printUnit = #{printunit},partFace = #{partface},
  202. idPaperType = #{idpapertype},transformCoefficient = #{transformcoefficient},
  203. updateBy = #{updateby},updateTime = #{updatetime},mainFlag=#{mainflag},
  204. partDesc = #{partdesc},defaultBasePaper = #{defaultbasepaper},
  205. updateTimeLong = #{updatetimelong} where id = #{id};
  206. -- [voidPartInfo]
  207. update $table$ set
  208. voidFlag = #{voidflag},
  209. updateBy = #{updateby},
  210. updateTime = #{updatetime}
  211. where id = #{id};
  212. -- [deletePartInfo]
  213. delete from $table$
  214. where id = #{id};
  215. -- [selectPartParameter]
  216. select *
  217. from $table$
  218. where idPartInfo = #{idpartinfo}
  219. order by sortNum;
  220. -- [addPartParameter]
  221. insert into $table$ (
  222. id, idParameter, parameterName, idProduct,
  223. productName, idPartInfo, partName,
  224. defaultValue, sortNum,
  225. parameterHint,selectKind,
  226. cssType, placeHolder,
  227. createBy, createTime, createTimeLong,
  228. updateBy, updateTime, updateTimeLong )
  229. values (
  230. #{id}, #{idparameter}, #{parametername}, #{idproduct},
  231. #{productname}, #{idpartinfo}, #{partname},
  232. #{defaultvalue}, #{sortnum},
  233. #{parameterhint},#{selectkind},
  234. #{csstype}, #{placeholder},
  235. #{createby}, #{createtime},#{createtimelong},
  236. #{updateby}, #{updatetime},#{updatetimelong} );
  237. -- [updatePartParameter]
  238. update $table$ set
  239. idParameter = #{idparameter},
  240. parameterName = #{parametername},
  241. idProduct = #{idproduct},
  242. productName = #{productname},
  243. idPartInfo = #{idpartinfo},
  244. partName = #{partname},
  245. defaultValue = #{defaultvalue},
  246. sortNum = #{sortnum},
  247. parameterHint = #{parameterhint},
  248. selectKind = #{selectkind},
  249. cssType = #{csstype},
  250. placeHolder = #{placeholder},
  251. updateBy = #{updateby},
  252. updateTime = #{updatetime},
  253. updateTimeLong = #{updatetimelong}
  254. where id = #{id};
  255. -- [savePartParameter]
  256. update $table$ set defaultValue = #{defaultvalue},
  257. isDefaultValue = #{isdefaultvalue},
  258. updateBy = #{updateby},updateTime = #{updatetime},updateTimeLong = #{updatetimelong} where id = #{id};
  259. -- [deletePartParameter]
  260. delete from $table$
  261. where id = #{id};
  262. -- [deletePartParameterByPart]
  263. delete from $table$
  264. where idPartInfo = #{id};
  265. -- [deletePartParameterByParentId]
  266. delete from $table$
  267. where parentId = #{parentid};
  268. -- [deletePartParameterItemByPart]
  269. delete from $table$
  270. where idPartInfo = #{id};
  271. -- [deletePartParameterItemByProductParameter]
  272. delete from $table$
  273. where idParameter = #{idparameter} and idPartInfo = #{idpartinfo};
  274. -- [addPartParameterItem]
  275. insert into $table$
  276. (id, idProduct, idPartInfo, idParameter,
  277. itemName, itemValue, itemControl,
  278. sortNum,
  279. createBy, createTime,createTimeLong,
  280. updateBy, updateTime,updateTimeLong )
  281. values ( #{id}, #{idproduct}, #{idpartinfo}, #{idparameter},
  282. #{itemname}, #{itemvalue}, #{itemcontrol},
  283. #{sortnum},
  284. #{createby}, #{createtime}, #{createtimelong},
  285. #{updateby}, #{updatetime}, #{updatetimelong} );
  286. -- [updatePartParameterItem]
  287. update $table$ set
  288. itemName = #{itemname},
  289. itemValue = #{itemvalue},
  290. sortNum = #{sortnum},
  291. updateBy = #{updateby},updateTime = #{updatetime},
  292. updateTimeLong = #{updatetimelong}
  293. where id = #{id};
  294. -- [configPartParameterItemControl]
  295. update $table$ set
  296. itemControl = #{itemcontrol},
  297. updateBy = #{updateby},updateTime = #{updatetime},
  298. updateTimeLong = #{updatetimelong}
  299. where id = #{id};
  300. -- [deletePartParameterItem]
  301. delete from $table$
  302. where id = #{id};
  303. -- [selectPartWorkProcess]
  304. select *
  305. from $table$
  306. where idPartInfo = #{idpartinfo}
  307. order by sortNum;
  308. -- [addPartWorkProcess]
  309. insert into $table$ (id, idProduct, productName, idPartInfo,
  310. partInfoName, idWorkProcess, sortNum,isDefault,
  311. workProcessName, isRequired, cssType,
  312. createBy, createTime, createTimeLong,
  313. updateBy, updateTime, updateTimeLong ) values ( #{id}, #{idproduct}, #{productname}, #{idpartinfo},
  314. #{partinfoname}, #{idworkprocess}, #{sortnum},#{isdefault},
  315. #{workprocessname}, #{isrequired}, #{csstype},
  316. #{createby}, #{createtime},
  317. #{createtimelong}, #{updateby}, #{updatetime},
  318. #{updatetimelong} );
  319. -- [updatePartWorkProcess]
  320. update $table$ set idProduct = #{idproduct},productName = #{productname},idPartInfo = #{idpartinfo},partInfoName = #{partinfoname},
  321. idWorkProcess = #{idworkprocess},sortNum = #{sortnum},workProcessName = #{workprocessname},isRequired = #{isrequired},isDefault = #{isdefault},
  322. cssType = #{csstype},createBy = #{createby},createTime = #{createtime},
  323. createTimeLong = #{createtimelong},updateBy = #{updateby},updateTime = #{updatetime},updateTimeLong = #{updatetimelong}
  324. where id = #{id};
  325. -- [deletePartWorkProcess]
  326. delete from $table$
  327. where id = #{id};
  328. -- [deletePartWorkProcessByPart]
  329. delete from $table$
  330. where idPartInfo = #{id};
  331. -- [queryAllSkuProductCategory]
  332. select *
  333. from $table$
  334. order by parentId, sortNum;
  335. -- [selectSkuProductCategoryInfo]
  336. select * from $table$ where id = #{id};
  337. -- [addSkuProductCategory]
  338. insert into $table$ (id, parentId, categoryName,
  339. sortNum, voidFlag, createBy,
  340. createTime, createTimeLong, updateBy,
  341. updateTime, updateTimeLong ) values ( #{id}, #{parentid}, #{categoryname},
  342. #{sortnum}, #{voidflag},
  343. #{createby}, #{createtime}, #{createtimelong},
  344. #{updateby}, #{updatetime}, #{updatetimelong} );
  345. -- [updateSkuProductCategory]
  346. update $table$ set parentId = #{parentid},categoryName = #{categoryname},sortNum = #{sortnum},
  347. voidFlag = #{voidflag},createBy = #{createby},createTime = #{createtime},
  348. createTimeLong = #{createtimelong},updateBy = #{updateby},updateTime = #{updatetime},updateTimeLong = #{updatetimelong}
  349. where id = #{id};
  350. -- [voidSkuProductCategory]
  351. update $table$ set
  352. voidFlag = #{voidflag},
  353. updateBy = #{updateby},
  354. updateTime = #{updatetime}
  355. where id = #{id};
  356. -- [selectSkuCategorySpec]
  357. select *
  358. from $table$
  359. where categoryId = #{categoryid}
  360. order by sortNum;
  361. -- [addSkuCategorySpec]
  362. insert into $table$ (id, categoryId, categoryName, specName,
  363. saleFlag, sortNum, voidFlag,
  364. createBy, createTime, createTimeLong,
  365. updateBy, updateTime, updateTimeLong ) values ( #{id}, #{categoryid}, #{categoryname}, #{specname},
  366. #{saleflag}, #{sortnum}, #{voidflag},
  367. #{createby}, #{createtime},
  368. #{createtimelong}, #{updateby}, #{updatetime},
  369. #{updatetimelong} );
  370. -- [updateSkuCategorySpec]
  371. update $table$ set categoryId = #{categoryid},categoryName = #{categoryname},specName = #{specname},saleFlag = #{saleflag},
  372. sortNum = #{sortnum},voidFlag = #{voidflag},createBy = #{createby},
  373. createTime = #{createtime},createTimeLong = #{createtimelong},updateBy = #{updateby},updateTime = #{updatetime},
  374. updateTimeLong = #{updatetimelong} where id = #{id};
  375. -- [voidSkuCategorySpec]
  376. update $table$ set
  377. voidFlag = #{voidflag},
  378. updateBy = #{updateby},
  379. updateTime = #{updatetime}
  380. where id = #{id};
  381. -- [selectSkuCategorySpecValue]
  382. select *
  383. from $table$
  384. where specId = #{specid}
  385. order by sortNum;
  386. -- [addSkuCategorySpecValue]
  387. insert into $table$ (id, specId, categoryId, infoName,
  388. sortNum, voidFlag, createBy,
  389. createTime, createTimeLong, updateBy,
  390. updateTime, updateTimeLong ) values ( #{id}, #{specid}, #{categoryid}, #{infoname},
  391. #{sortnum}, #{voidflag}, #{createby},
  392. #{createtime}, #{createtimelong}, #{updateby},
  393. #{updatetime}, #{updatetimelong} );
  394. -- [updateSkuCategorySpecValue]
  395. update $table$ set specId = #{specid},categoryId = #{categoryid},infoName = #{infoname},sortNum = #{sortnum},
  396. voidFlag = #{voidflag},createBy = #{createby},createTime = #{createtime},createTimeLong = #{createtimelong},
  397. updateBy = #{updateby},updateTime = #{updatetime},updateTimeLong = #{updatetimelong} where id = #{id};
  398. -- [voidSkuCategorySpecValue]
  399. update $table$ set
  400. voidFlag = #{voidflag},
  401. updateBy = #{updateby},
  402. updateTime = #{updatetime}
  403. where id = #{id};
  404. -- [selectProductSkuPrice]
  405. select * from $table$
  406. where idProduct = #{idProduct}
  407. order by sortNum;
  408. -- [insertProductSkuPrice]
  409. insert into $table$ (id, idProduct, skuCode, skuName,
  410. skuPrice, skuPriceValue, skuQuantity,
  411. skuImageUrl, sortNum, createBy,
  412. createTime, createTimeLong, updateBy,
  413. updateTime, updateTimeLong ) values ( #{id}, #{idproduct}, #{skucode}, #{skuname},
  414. #{skuprice}, #{skupricevalue}, #{skuquantity},
  415. #{skuimageurl}, #{sortnum}, #{createby},
  416. #{createtime}, #{createtimelong},#{updateby},
  417. #{updatetime}, #{updatetimelong} );
  418. -- [deleteProductSkuPrice]
  419. delete from $table$
  420. where idProduct = #{idproduct};
  421. -- [selectProductSkuPriceValue]
  422. select * from $table$
  423. where idProduct = #{idproduct}
  424. and skuCode = #{skucode};
  425. -- [insertProductSkuPriceValue]
  426. insert into $table$ (id, idProduct, skuCode, specId,
  427. valueId, createBy, createTime,
  428. createTimeLong, updateBy, updateTime,
  429. updateTimeLong ) values ( #{id}, #{idproduct}, #{skucode}, #{specid},
  430. #{valueid}, #{createby}, #{createtime},
  431. #{createtimelong}, #{updateby}, #{updatetime},
  432. #{updatetimelong} );
  433. -- [deleteProductSkuPriceValue]
  434. delete from $table$
  435. where idProduct = #{id};
  436. -- [selectProductSkuSpec]
  437. select * from $table$
  438. where idProduct = #{idProduct}
  439. order by sortNum;
  440. -- [insertProductSkuSpec]
  441. insert into $table$ (id, idProduct, specId, specName,
  442. sortNum, createBy, createTime,
  443. createTimeLong, updateBy, updateTime,
  444. updateTimeLong ) values ( #{id}, #{idproduct}, #{specid}, #{specname},
  445. #{sortnum}, #{createby},
  446. #{createtime}, #{createtimelong}, #{updateby},
  447. #{updatetime}, #{updatetimelong} );
  448. -- [deleteProductSkuSpec]
  449. delete from $table$
  450. where idProduct = #{idProduct};
  451. -- [selectProductSkuValue]
  452. select * from $table$
  453. where idProduct = #{idproduct}
  454. and specId = #{specid}
  455. order by sortNum;
  456. -- [insertProductSkuValue]
  457. insert into $table$ (id, idProduct, categoryId, specId,
  458. specName, valueId, valueName,
  459. sortNum, createBy, createTime,
  460. createTimeLong, updateBy, updateTime,
  461. updateTimeLong ) values ( #{id}, #{idproduct}, #{categoryid}, #{specid},
  462. #{specname}, #{valueid}, #{valuename},
  463. #{sortnum}, #{createby}, #{createtime},
  464. #{createtimelong}, #{updateby}, #{updatetime},
  465. #{updatetimelong} );
  466. -- [deleteProductSkuValue]
  467. delete from $table$
  468. where idProduct = #{id};
  469. -- [selectPartParameterItem]
  470. select * from $table$ where idPartInfo = #{idPartInfo} and idParameter = #{idParameter};
  471. --[queryAllMachineGroups]
  472. select * from $table$
  473. --[addMachineGroup]
  474. insert into $table$ (id, machineGroupCode, machineGroupName, capacity,
  475. machineDetail, voidFlag, createBy,
  476. createTime, createTimeLong, updateBy,
  477. updateTime, updateTimeLong ) values ( #{id}, #{machinegroupcode}, #{machinegroupname}, #{capacity},
  478. #{machinedetail}, #{voidflag}, #{createby},
  479. #{createtime}, #{createtimelong}, #{updateby},
  480. #{updatetime}, #{updatetimelong} );
  481. -- [updateMachineGroup]
  482. update $table$ set machineGroupCode = #{machinegroupcode},machineGroupName = #{machinegroupname},capacity = #{capacity},machineDetail = #{machinedetail},
  483. voidFlag = #{voidflag},createBy = #{createby},createTime = #{createtime},createTimeLong = #{createtimelong},
  484. updateBy = #{updateby},updateTime = #{updatetime},updateTimeLong = #{updatetimelong} where id = #{id};
  485. -- [selectAllProductPagePrice]
  486. select * from $table$;
  487. -- [insertProductPagePrice]
  488. insert into $table$ (
  489. id, priceName, price, voidFlag,
  490. createBy, createTime, createTimeLong,
  491. updateBy, updateTime, updateTimeLong )
  492. values (
  493. #{id}, #{pricename}, #{price}, #{voidflag},
  494. #{createby}, #{createtime}, #{createtimelong},
  495. #{updateby}, #{updatetime}, #{updatetimelong}
  496. );
  497. -- [updateProductPagePrice]
  498. update $table$ set
  499. priceName = #{pricename},
  500. price = #{price},
  501. updateBy = #{updateby},
  502. updateTime = #{updatetime},
  503. updateTimeLong = #{updatetimelong}
  504. where id = #{id};
  505. -- [voidProductPagePrice]
  506. update $table$ set
  507. voidFlag = #{voidflag},
  508. updateBy = #{updateby},
  509. updateTime = #{updatetime},
  510. updateTimeLong = #{updatetimelong}
  511. where id = #{id};
  512. -- [selectPartInfosByProduct]
  513. select * from $table$ where voidFlag = 0 and idProduct in (/* in idProducts */);
  514. -- [insertProductRoom]
  515. insert into $table$ (id, roomName, sortIndex, maxVolume,
  516. volumeRatio, memos, voidFlag,
  517. createBy, createTime, createTimeLong,
  518. updateBy, updateTime, updateTimeLong ) values ( #{id}, #{roomname}, #{sortindex}, #{maxvolume},
  519. #{volumeratio}, #{memos}, #{voidflag},
  520. #{createby}, #{createtime}, #{createtimelong},
  521. #{updateby}, #{updatetime}, #{updatetimelong});
  522. -- [updateProductRoom]
  523. update $table$ set roomName = #{roomname},sortIndex = #{sortindex},maxVolume = #{maxvolume},volumeRatio = #{volumeratio},
  524. memos = #{memos},voidFlag = #{voidflag},createBy = #{createby},createTime = #{createtime},
  525. createTimeLong = #{createtimelong},updateBy = #{updateby},updateTime = #{updatetime},updateTimeLong = #{updatetimelong}
  526. where id = #{id};
  527. -- [voidProductRoom]
  528. update $table$ set
  529. voidFlag = #{voidflag},
  530. updateBy = #{updateby},
  531. updateTime = #{updatetime},
  532. updateTimeLong = #{updatetimelong}
  533. where id = #{id};
  534. -- [queryAllProductRoom]
  535. select * from $table$;