PrintBillDao.dql 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. -- [selectPrintBill]
  2. select *
  3. from $table$;
  4. -- [selectPrintPart]
  5. select *
  6. from $table$;
  7. -- [selectPrintProcess]
  8. select *
  9. from $table$;
  10. -- [selectPrintBreed]
  11. select *
  12. from $table$;
  13. -- [selectPrintBillStep]
  14. select *
  15. from $table$;
  16. -- [newPrintBill]
  17. insert into $table$ (id, billYear, billCode, productName,
  18. billName, clientName, processText,
  19. outSourceProcessText, deliveryDate, printTime,
  20. voidFlag, billNote, billState, billType,
  21. billMoneyPlate, billMoneyPaper, billMoneyPrint,
  22. billMoneyProcess, billMoneyTotal, billMoneyAdjust,
  23. orderMoneyTotal, containsOrderIds, containsOrderCodes,
  24. breedFileUrl, idCompany, autoPDFFlag, idProduct, createManName,
  25. orderPrintRequire, orderSendKind, assembleBreedRequire, importantBill, idClientLevel,
  26. createBy, createTime,
  27. updateBy, updateTime)
  28. values ( #{id}, #{billyear}, #{billcode}, #{productname},
  29. #{billname}, #{clientname}, #{processtext},
  30. #{outsourceprocesstext}, #{deliverydate}, #{printtime},
  31. #{voidflag}, #{billnote}, #{billstate}, #{billtype},
  32. #{billmoneyplate}, #{billmoneypaper}, #{billmoneyprint},
  33. #{billmoneyprocess}, #{billmoneytotal}, #{billmoneyadjust},
  34. #{ordermoneytotal}, #{containsorderids}, #{containsordercodes}, #{breedfileurl},
  35. #{idcompany}, #{autopdfflag}, #{idproduct}, #{createmanname}, #{orderprintrequire}, #{ordersendkind}, #{assemblebreedrequire}, #{importantbill}, #{idclientlevel},
  36. #{createby},
  37. #{createtime}, #{updateby},
  38. #{updatetime} );
  39. -- [newPrintBillPart]
  40. insert into $table$ (id, billYear, idProduct, idPartInfo,
  41. idPrintBill, idPrintBreed, idOrder,
  42. idOrderPart, idWorkPart, partHeight,
  43. partWidth, locationX, locationY,
  44. rotationAngle, productName, orderName, orderCode,
  45. productPartName, semiFeedbackStatus, semiFeedbackContent,
  46. idSemiFeedbackMan, semiFeedbackTime, semiFeedbackTimeLong, cropRect ) values ( #{id}, #{billyear}, #{idproduct}, #{idpartinfo},
  47. #{idprintbill}, #{idprintbreed}, #{idorder},
  48. #{idorderpart}, #{idworkpart}, #{partheight},
  49. #{partwidth}, #{locationx}, #{locationy},
  50. #{rotationangle}, #{productname}, #{ordername}, #{ordercode},
  51. #{productpartname}, #{semifeedbackstatus}, #{semifeedbackcontent},
  52. #{idsemifeedbackman}, #{semifeedbacktime}, #{semifeedbacktimelong}, #{croprect} );
  53. -- [semiFeedback]
  54. update $table$ set semiFeedbackStatus = #{semifeedbackstatus}, semiFeedbackContent = #{semifeedbackcontent},
  55. idSemiFeedbackMan = #{idsemifeedbackman}, semiFeedbackTime = #{semifeedbacktime}, semiFeedbackTimeLong = #{semifeedbacktimelong}
  56. where id = #{id};
  57. -- [newPrintBillBreed]
  58. insert into $table$ (id, billYear, idPrintBill, breedName,
  59. breedTypeName, selfProvidedPaper, wholePaperSize,
  60. paperBand, idPaperBaseInfo, paperName,
  61. idPaperCutInfo, cutName, cutCount,
  62. cutSize, partCount, breedNo, partPrintTotalQty,
  63. breedSets, printCount, printFlowCount,
  64. craftFlowCount, wholePaperCount, originWholePaperCount, paperPrice,
  65. breedPaperPrice, idActualPaperInfo, actualPaperName,
  66. idMachineType, machineTypeName, idMachine,
  67. machineName, colorCount, specialColor,
  68. breedFlipType, breedSize, psSize,
  69. psGroupCount, psCount, completeCount,
  70. printCount1000, printCosts, breedProcess,
  71. breedStatus, printRequire, preOutStockState,
  72. preOutStockLockIdRoom, preOutStockLockQty, preOutLockState,
  73. preOutLockManId, preOutLockManName, idPlateSizeTemplate,
  74. voidFlag, containsOrderIds, idCompany, preOutStockUnlocked, paperRequireFlag, createBy, createTime,
  75. updateBy, updateTime, pickPaperCount, paperPreRequestFlag, paperStockInFlag, paperPickingFlag, paperStockOutFlag) values ( #{id}, #{billyear}, #{idprintbill}, #{breedname},
  76. #{breedtypename}, #{selfprovidedpaper}, #{wholepapersize},
  77. #{paperband}, #{idpaperbaseinfo}, #{papername},
  78. #{idpapercutinfo}, #{cutname}, #{cutcount},
  79. #{cutsize}, #{partcount}, #{breedno}, #{partprinttotalqty},
  80. #{breedsets}, #{printcount}, #{printflowcount},
  81. #{craftflowcount}, #{wholepapercount}, #{originwholepapercount}, #{paperprice},
  82. #{breedpaperprice}, #{idactualpaperinfo}, #{actualpapername},
  83. #{idmachinetype}, #{machinetypename}, #{idmachine},
  84. #{machinename}, #{colorcount}, #{specialcolor},
  85. #{breedfliptype}, #{breedsize}, #{pssize},
  86. #{psgroupcount}, #{pscount}, #{completecount},
  87. #{printcount1000}, #{printcosts}, #{breedprocess},
  88. #{breedstatus}, #{printrequire}, #{preoutstockstate},
  89. #{preoutstocklockidroom}, #{preoutstocklockqty}, #{preoutlockstate},
  90. #{preoutlockmanid}, #{preoutlockmanname}, #{idplatesizetemplate},
  91. #{voidflag}, #{containsorderids}, #{idcompany}, #{preoutstockunlocked}, #{paperrequireflag}, #{createby}, #{createtime},
  92. #{updateby}, #{updatetime}, #{pickpapercount}, #{paperprerequestflag}, #{paperstockinflag}, #{paperpickingflag}, #{paperstockoutflag});
  93. -- [updatePrintBillBreed]
  94. update $table$ set billYear = #{billyear},idPrintBill = #{idprintbill},breedName = #{breedname},breedTypeName = #{breedtypename},
  95. selfProvidedPaper = #{selfprovidedpaper},wholePaperSize = #{wholepapersize},paperBand = #{paperband},idPaperBaseInfo = #{idpaperbaseinfo},
  96. paperName = #{papername},idPaperCutInfo = #{idpapercutinfo},cutName = #{cutname},cutCount = #{cutcount},
  97. cutSize = #{cutsize},partCount = #{partcount},breedNo = #{breedno},breedSets = #{breedsets},
  98. printCount = #{printcount},printFlowCount = #{printflowcount},craftFlowCount = #{craftflowcount},wholePaperCount = #{wholepapercount}, originWholePaperCount = #{originwholepapercount},
  99. paperPrice = #{paperprice},breedPaperPrice = #{breedpaperprice},idActualPaperInfo = #{idactualpaperinfo},actualPaperName = #{actualpapername},
  100. idMachineType = #{idmachinetype},machineTypeName = #{machinetypename},idMachine = #{idmachine},machineName = #{machinename},
  101. colorCount = #{colorcount},specialColor = #{specialcolor},breedFlipType = #{breedfliptype},breedSize = #{breedsize},
  102. psSize = #{pssize},psGroupCount = #{psgroupcount},psCount = #{pscount},completeCount = #{completecount},
  103. printCount1000 = #{printcount1000},printCosts = #{printcosts},breedProcess = #{breedprocess},breedStatus = #{breedstatus},
  104. printRequire = #{printrequire},preOutStockState = #{preoutstockstate},preOutStockLockIdRoom = #{preoutstocklockidroom},preOutStockLockQty = #{preoutstocklockqty},
  105. preOutLockState = #{preoutlockstate},preOutLockManId = #{preoutlockmanid},preOutLockManName = #{preoutlockmanname},idPlateSizeTemplate = #{idplatesizetemplate},
  106. containsOrderIds = #{containsorderids},updateBy = #{updateby},updateTime = #{updatetime}, idCompany = #{idcompany}, preOutStockUnlocked = #{preoutstockunlocked},
  107. paperRequireFlag = #{paperrequireflag}, paperPreRequestFlag = #{paperprerequestflag}, paperStockInFlag = #{paperstockinflag}, paperPickingFlag = #{paperpickingflag},
  108. paperStockOutFlag = #{paperstockoutflag}, partPrintTotalQty = #{partprinttotalqty}
  109. where id = #{id};
  110. -- [newPrintBillProcess]
  111. insert into $table$ (id, billYear, idPrintBill, idPrintBreed,
  112. idOrder, idProcess, processName,
  113. feedbackStatus, feedbackCount, totalCount,
  114. completeTime, completeTimeLong, isOutAssisted,
  115. idOutAssistBill, outAssistBillCode, idMaterial,
  116. materialName, orderProcessMemo ) values ( #{id}, #{billyear}, #{idprintbill}, #{idprintbreed},
  117. #{idorder}, #{idprocess}, #{processname},
  118. #{feedbackstatus}, #{feedbackcount}, #{totalcount},
  119. #{completetime}, #{completetimelong}, #{isoutassisted},
  120. #{idoutassistbill}, #{outassistbillcode}, #{idmaterial},
  121. #{materialname}, #{orderprocessmemo} );
  122. -- [newPrintBillStep]
  123. insert into $table$ ( billYear, idPrintBill, idWorkMan, workMan,
  124. workTime, workTimeLong, workMemo,
  125. workExplain ) values ( #{billyear}, #{idprintbill}, #{idworkman}, #{workman},
  126. #{worktime}, #{worktimelong}, #{workmemo},
  127. #{workexplain} );
  128. -- [newBreedPlateSize]
  129. insert into $table$ (id, idPlateSizeTemplate, idBreed, idPrintBill,
  130. billYear, pageBlankTop, pageBlankLeft,
  131. pageBlankBottom, pageBlankRight, distanceHoldVertocal,
  132. distancePlateVertocal, distanceWidthVertocal, distanceHeightVertocal,
  133. distanceHoldHorizontal, distancePlateHorizontal, distanceWidthHorizontal,
  134. distanceHeightHorizontal, drawTChiPDF, tchiPDFFile,
  135. tchiPDFSize, holdPlace, sidePlace,
  136. faceCount, moqieArea, fumoArea,
  137. createBy, createTime,
  138. updateBy, updateTime ) values ( #{id}, #{idplatesizetemplate}, #{idbreed}, #{idprintbill},
  139. #{billyear}, #{pageblanktop}, #{pageblankleft},
  140. #{pageblankbottom}, #{pageblankright}, #{distanceholdvertocal},
  141. #{distanceplatevertocal}, #{distancewidthvertocal}, #{distanceheightvertocal},
  142. #{distanceholdhorizontal}, #{distanceplatehorizontal}, #{distancewidthhorizontal},
  143. #{distanceheighthorizontal}, #{drawtchipdf}, #{tchipdffile},
  144. #{tchipdfsize}, #{holdplace}, #{sideplace},
  145. #{facecount}, #{moqiearea}, #{fumoarea},
  146. #{createby}, #{createtime},
  147. #{updateby}, #{updatetime} );
  148. -- [workPartBuild]
  149. update $table$ set workPartState = #{workpartstate},
  150. updateBy = #{updateby},updateTime = #{updatetime} where id = #{id};
  151. -- [addOrderStep]
  152. insert into $table$ (id, idOrder, idWorkMan, workMan,
  153. workTime, workMemo,
  154. workExplain, orderYear ) values ( #{id}, #{idorder}, #{idworkman}, #{workman},
  155. #{worktime}, #{workmemo},
  156. #{workexplain}, #{orderyear} );
  157. -- [updatePrintBillState]
  158. update $table$ set billState = #{billstate},
  159. updateBy = #{updateby},updateTime = #{updatetime} where id = #{id};
  160. -- [updatePrintBreedState]
  161. update $table$ set breedStatus = #{breedstatus},
  162. updateBy = #{updateby},updateTime = #{updatetime} where id = #{id};
  163. -- [voidPrintBill]
  164. update $table$ set voidFlag = #{voidflag},
  165. updateBy = #{updateby},updateTime = #{updatetime} where id = #{id};
  166. -- [voidPrintBillBreed]
  167. update $table$ set voidFlag = #{voidflag},
  168. updateBy = #{updateby},updateTime = #{updatetime} where id = #{id};
  169. -- [updatePrintBill]
  170. update $table$ set processText = #{processtext},outSourceProcessText = #{outsourceprocesstext},deliveryDate = #{deliverydate},
  171. billNote = #{billnote},billState = #{billstate},idCompany = #{idcompany}, orderPrintRequire = #{orderprintrequire}, orderSendKind = #{ordersendkind},
  172. billMoneyPlate = #{billmoneyplate}, billMoneyPaper = #{billmoneypaper}, billMoneyPrint = #{billmoneyprint}, billMoneyTotal = #{billmoneytotal}, idClientLevel = #{idclientlevel},
  173. updateBy = #{updateby},updateTime = #{updatetime}
  174. where id = #{id};
  175. -- [deletePrintBreed]
  176. delete from $table$ where idPrintBill = #{id};
  177. -- [deletePrintBreedPart]
  178. delete from $table$ where idPrintBill = #{id};
  179. -- [deletePrintBreedProcess]
  180. delete from $table$ where idPrintBill = #{id};
  181. -- [schedulePrintBreed]
  182. update $table$ set idMachine = #{idmachine}, machineName = #{machinename}, breedStatus = #{breedstatus},
  183. updateBy = #{updateby},updateTime = #{updatetime} where id = #{id};
  184. -- [selectMachineBreedTasks]
  185. select * from $table$;
  186. -- [newMachineBreedTask]
  187. insert into $table$ (id, billYear, idMachineInfo, idProcess, idPrintBreed, idPrintBill, expectedWorkTime,
  188. beginAt, completeAt, scheduleStatus, pauseStatus,
  189. taskStatus, sortIndex,
  190. lastOperateManId, lastOperateManName,taskMemo, voidFlag, assembleBreedId, madeBreedId, cutPaperId, printId, createBy, createTime,
  191. updateBy, updateTime ) values ( #{id}, #{billyear}, #{idmachineinfo}, #{idprocess}, #{idprintbreed}, #{idprintbill},
  192. #{expectedworktime}, #{beginat},
  193. #{completeat}, #{schedulestatus}, #{pausestatus}, #{taskstatus},
  194. #{sortindex}, #{lastoperatemanid}, #{lastoperatemanname}, #{taskmemo}, #{voidflag}, #{assemblebreedid}, #{madebreedid}, #{cutpaperid}, #{printid}, #{createby},
  195. #{createtime}, #{updateby},
  196. #{updatetime} );
  197. -- [newOrderProcessTask]
  198. insert into $table$ (id, billYear, idOrder, idPrintBill,
  199. idBreed, idProcess, processName,
  200. orderSize, idWorkTeam, workTeamName,
  201. scheduleStatus, pauseStatus, taskStatus,
  202. sortIndex, beginAt, beginAtLong,
  203. completeAt, completeAtLong, idFeedbackMan,
  204. feedbackTime, feedbackTimeLong, taskMemo,
  205. voidFlag, createBy, createTime,
  206. createTimeLong, updateBy, updateTime,
  207. updateTimeLong ) values ( #{id}, #{billyear}, #{idorder}, #{idprintbill},
  208. #{idbreed}, #{idprocess}, #{processname},
  209. #{ordersize}, #{idworkteam}, #{workteamname},
  210. #{schedulestatus}, #{pausestatus}, #{taskstatus},
  211. #{sortindex}, #{beginat}, #{beginatlong},
  212. #{completeat}, #{completeatlong}, #{idfeedbackman},
  213. #{feedbacktime}, #{feedbacktimelong}, #{taskmemo},
  214. #{voidflag}, #{createby}, #{createtime},
  215. #{createtimelong}, #{updateby}, #{updatetime},
  216. #{updatetimelong} );
  217. -- [scheduleMachineBreedTask]
  218. update $table$ set idMachineInfo = #{idmachineinfo}, expectedWorkTime = #{expectedworktime}, scheduleStatus = #{schedulestatus}, taskStatus = #{taskstatus}, sortIndex = #{sortindex},
  219. lastOperateManId = #{lastoperatemanid}, lastOperateManName = #{lastoperatemanname}, updateBy = #{updateby},updateTime = #{updatetime}
  220. where id = #{id};
  221. -- [voidMachineTask]
  222. update $table$ set voidFlag = #{voidflag},
  223. updateBy = #{updateby},updateTime = #{updatetime} where id = #{id};
  224. -- [voidOrderProcessTask]
  225. update $table$ set voidFlag = #{voidflag},
  226. updateBy = #{updateby},updateTime = #{updatetime} where id = #{id};
  227. -- [deleteMachineTask]
  228. delete from $table$ where idPrintBreed = #{id};
  229. -- [scheduleBreedTasksBack]
  230. update $table$ set idMachineInfo = #{idmachineinfo}, expectedWorkTime = #{expectedworktime}, scheduleStatus = #{schedulestatus}, taskStatus = #{taskstatus}, sortIndex = #{sortindex},
  231. lastOperateManId = #{lastoperatemanid}, lastOperateManName = #{lastoperatemanname}, beginAt = #{beginat}, updateBy = #{updateby},updateTime = #{updatetime}
  232. where id = #{id};
  233. -- [feedbackBreedTask]
  234. update $table$ set taskStatus = #{taskstatus}, beginAt = #{beginat}, completeAt = #{completeat}, taskMemo = #{taskmemo}, sortIndex = #{sortindex},
  235. lastOperateManId = #{lastoperatemanid}, lastOperateManName = #{lastoperatemanname}, updateBy = #{updateby},updateTime = #{updatetime}
  236. where id = #{id};
  237. -- [feedbackOrderTask]
  238. update $table$ set taskStatus = #{taskstatus}, feedbackTime = #{feedbacktime}, taskMemo = #{taskmemo},
  239. idFeedbackMan = #{idfeedbackman}, updateBy = #{updateby},updateTime = #{updatetime}
  240. where id = #{id};
  241. -- [selectOrderProcessTasks]
  242. select * from $table$;
  243. -- [pauseBreedTask]
  244. update $table$ set pauseStatus = #{pausestatus}, taskMemo = #{taskmemo},
  245. lastOperateManId = #{lastoperatemanid}, lastOperateManName = #{lastoperatemanname}, updateBy = #{updateby},updateTime = #{updatetime}
  246. where id = #{id};
  247. -- [pauseOrderTask]
  248. update $table$ set pauseStatus = #{pausestatus}, taskMemo = #{taskmemo},
  249. updateBy = #{updateby},updateTime = #{updatetime}
  250. where id = #{id};
  251. -- [addFeedbackRecord]
  252. insert into $table$ (id, billYear, idTask, recordType,
  253. idProcess, processName, idReference,
  254. feedbackCount, feedbackBegin, feedbackComplete,
  255. feedbackManId, feedbackMan, feedbackTime,
  256. feedbackTimeLong, feedbackMemo, createBy,
  257. createTime, updateBy,
  258. updateTime ) values ( #{id}, #{billyear}, #{idtask}, #{recordtype},
  259. #{idprocess}, #{processname}, #{idreference},
  260. #{feedbackcount}, #{feedbackbegin}, #{feedbackcomplete},
  261. #{feedbackmanid}, #{feedbackman}, #{feedbacktime},
  262. #{feedbacktimelong}, #{feedbackmemo}, #{createby},
  263. #{createtime}, #{updateby},
  264. #{updatetime} );
  265. -- [lockPreOutStockBreed]
  266. update $table$ set idActualPaperInfo = #{idactualpaperinfo}, actualPaperName = #{actualpapername}, preOutStockLockQty = #{preoutstocklockqty},
  267. preOutStockLockIdRoom = #{preoutstocklockidroom}, preOutStockState = #{preoutstockstate}, updateBy = #{updateby}, updateTime = #{updatetime}
  268. where id = #{id};
  269. -- [preOutStockComplete]
  270. update $table$ set preOutStockState = #{preoutstockstate}, updateBy = #{updateby}, updateTime = #{updatetime}
  271. where id = #{id};
  272. -- [lockPreOutStockBreedV2]
  273. update $table$ set preOutLockState = #{preoutlockstate}, preOutLockManId = #{preoutlockmanid}, preOutLockManName = #{preoutlockmanname},
  274. updateBy = #{updateby}, updateTime = #{updatetime}
  275. where id = #{id};
  276. -- [preOutStockCompleteV2]
  277. update $table$ set
  278. preOutStockState = #{preoutstockstate},
  279. idActualPaperInfo = #{idactualpaperinfo},
  280. actualPaperName = #{actualpapername},
  281. preOutStockLockIdRoom = #{preoutstocklockidroom},
  282. preOutStockLockQty = #{preoutstocklockqty},
  283. preOutStockUnlocked = #{preoutstockunlocked},
  284. wholePaperCount = #{wholepapercount},
  285. pickPaperCount = #{pickpapercount},
  286. updateBy = #{updateby},
  287. updateTime = #{updatetime}
  288. where id = #{id};
  289. -- [preOutStockBackV2]
  290. update $table$ set preOutStockState = #{preoutstockstate}, preOutLockManId = #{preoutlockmanid}, preOutLockManName = #{preoutlockmanname},
  291. preOutLockState = #{preoutlockstate}, preOutStockUnlocked = #{preoutstockunlocked}, idActualPaperInfo = #{idactualpaperinfo}, actualPaperName = #{actualpapername},
  292. preOutStockLockQty = #{preoutstocklockqty}, wholePaperCount = #{wholepapercount}, updateBy = #{updateby}, updateTime = #{updatetime}
  293. where id = #{id};
  294. -- [breedPickPaperIn]
  295. update $table$ set
  296. pickPaperCount = pickPaperCount + 1
  297. where id = #{id};
  298. -- [breedPickPaperOut]
  299. update $table$ set
  300. pickPaperCount = pickPaperCount - 1
  301. where id = #{id};
  302. -- [newPrintBillLifeCycle]
  303. insert into $table$ (id, idPrintBill, idBreed, lifeNodeId,
  304. lifeNodeName, lifeNodeState, billYear,
  305. referenceMasterId, referenceSlaveId, createManName,
  306. updateManName, createBy, createTime,
  307. createTimeLong, updateBy, updateTime,
  308. updateTimeLong ) values ( #{id}, #{idprintbill}, #{idbreed}, #{lifenodeid},
  309. #{lifenodename}, #{lifenodestate}, #{billyear},
  310. #{referencemasterid}, #{referenceslaveid}, #{createmanname},
  311. #{updatemanname}, #{createby}, #{createtime},
  312. #{createtimelong}, #{updateby}, #{updatetime},
  313. #{updatetimelong} );
  314. -- [updatePrintBillLifeCycle]
  315. update $table$ set lifeNodeState = #{lifenodestate},
  316. updateBy = #{updateby}, updateManName = #{updatemanname}, updateTime = #{updatetime}, updateTimeLong = #{updatetimelong}
  317. where idPrintBill = #{idprintbill} and idBreed = #{idbreed} and lifeNodeId = #{lifenodeid};
  318. -- [updatePrintBillLifeCycleByParam]
  319. update $table$ set lifeNodeState = #{lifenodestate},
  320. updateBy = #{updateby}, updateManName = #{updatemanname}, updateTime = #{updatetime}, updateTimeLong = #{updatetimelong}
  321. where idPrintBill = #{idprintbill}
  322. -- [selectPrintBillLifeCycle]
  323. select * from $table$;
  324. -- [voidPrintBillLifeCycle]
  325. update $table$ set lifeNodeState = #{lifenodestate},
  326. updateBy = #{updateby}, updateManName = #{updatemanname}, updateTime = #{updatetime}, updateTimeLong = #{updatetimelong}
  327. where idPrintBill = #{idprintbill}
  328. -- [stockOutBillBreedWithPreState]
  329. update $table$ set
  330. idActualPaperInfo = #{idactualpaperinfo},
  331. actualPaperName = #{actualpapername},
  332. preOutStockUnlocked = #{preoutstockunlocked}
  333. where id = #{id};
  334. -- [stockOutBillBreed]
  335. update $table$ set
  336. idActualPaperInfo = #{idactualpaperinfo},
  337. actualPaperName = #{actualpapername}
  338. where id = #{id};
  339. -- [stockOutBillBreedHidePreState]
  340. update $table$ set
  341. preOutStockUnlocked = #{preoutstockunlocked}
  342. where id = #{id};
  343. -- [deleteBreedPlateSize]
  344. delete from $table$ where idBreed = #{idbreed};
  345. -- [insertBreedPlateSize]
  346. insert into $table$ (idBreed, idPlateSizeTemplate, idPrintBill, billYear,
  347. pageBlankTop, pageBlankLeft, pageBlankBottom,
  348. pageBlankRight, distanceHoldVertocal, distancePlateVertocal,
  349. distanceWidthVertocal, distanceHeightVertocal, distanceHoldHorizontal,
  350. distancePlateHorizontal, distanceWidthHorizontal, distanceHeightHorizontal,
  351. drawTChiPDF, tchiPDFFile, tchiPDFSize,
  352. holdPlace, sidePlace, faceCount,
  353. moqieArea, fumoArea, exchangeHoldPlace,
  354. createBy, createTime, createTimeLong,
  355. updateBy, updateTime, updateTimeLong ) values ( #{idbreed}, #{idplatesizetemplate}, #{idprintbill}, #{billyear},
  356. #{pageblanktop}, #{pageblankleft}, #{pageblankbottom},
  357. #{pageblankright}, #{distanceholdvertocal}, #{distanceplatevertocal},
  358. #{distancewidthvertocal}, #{distanceheightvertocal}, #{distanceholdhorizontal},
  359. #{distanceplatehorizontal}, #{distancewidthhorizontal}, #{distanceheighthorizontal},
  360. #{drawtchipdf}, #{tchipdffile}, #{tchipdfsize},
  361. #{holdplace}, #{sideplace}, #{facecount},
  362. #{moqiearea}, #{fumoarea}, #{exchangeholdplace},
  363. #{createby}, #{createtime}, #{createtimelong},
  364. #{updateby}, #{updatetime}, #{updatetimelong} );
  365. -- [selectBreedPlateSize]
  366. select * from $table$ where idBreed = #{idbreed};
  367. -- [updatePrintBillAssembleBreedRequire]
  368. update $table$ set
  369. assembleBreedRequire = #{assemblebreedrequire}
  370. where id = #{id};
  371. -- [forceUpdatePrintBill_PrintInfo]
  372. update $table$ set
  373. billNote = #{billnote},
  374. billMoneyPlate = #{billmoneyplate},
  375. billMoneyPaper = #{billmoneypaper},
  376. billMoneyPrint = #{billmoneyprint},
  377. billMoneyProcess = #{billmoneyprocess},
  378. billMoneyTotal = #{billmoneytotal},
  379. billMoneyAdjust = #{billmoneyadjust},
  380. updateBy = #{updateby},
  381. updateTime = #{updatetime}
  382. where id = #{id};
  383. -- [forceUpdatePrintBreed_PrintInfo]
  384. update $table$ set
  385. idMachineType = #{idmachinetype},
  386. colorCount = #{colorcount},
  387. specialColor = #{specialcolor},
  388. breedFlipType = #{breedfliptype},
  389. psGroupCount = #{psgroupcount},
  390. psSize = #{pssize},
  391. psCount = #{pscount},
  392. printCount1000 = #{printcount1000},
  393. updateBy = #{updateby},
  394. updateTime = #{updatetime}
  395. where id = #{id};
  396. -- [recoverDataBaseFromEs_PrintBill]
  397. insert into $table$
  398. (id,billYear,billCode,productName,billName,clientName,processText,outSourceProcessText,deliveryDate,printTime,voidFlag,billNote,billState,billMoneyPlate,billMoneyPaper,billMoneyPrint,billMoneyProcess,billMoneyTotal,billMoneyAdjust,orderMoneyTotal,containsOrderIds,breedFileUrl,idCompany,createBy,createTime,updateBy,updateTime,billType,containsOrderCodes,idProduct,autoPDFFlag,createManName,orderPrintRequire,orderSendKind,assembleBreedRequire)
  399. values(#{id},#{billyear},#{billcode},#{productname},#{billname},#{clientname},#{processtext},#{outsourceprocesstext},#{deliverydate},#{printtime},#{voidflag},#{billnote},#{billstate},#{billmoneyplate},#{billmoneypaper},#{billmoneyprint},#{billmoneyprocess},#{billmoneytotal},#{billmoneyadjust},#{ordermoneytotal},#{containsorderids},#{breedfileurl},#{idcompany},#{createby},#{createtime},#{updateby},#{updatetime},#{billtype},#{containsordercodes},#{idproduct},#{autopdfflag},#{createmanname},#{orderprintrequire},#{ordersendkind},#{assemblebreedrequire});
  400. -- [recoverDataBaseFromEs_PrintBreed]
  401. insert into $table$
  402. (id,billYear,idPrintBill,breedName,breedTypeName,selfProvidedPaper,wholePaperSize,paperBand,idPaperBaseInfo,paperName,cutCount,cutSize,partCount,breedNo,printCount,printFlowCount,craftFlowCount,wholePaperCount,paperPrice,breedPaperPrice,idActualPaperInfo,idMachineType,idMachine,colorCount,specialColor,breedFlipType,breedSize,PSSize,PSGroupCount,PSCount,completeCount,printCount1000,printCosts,breedProcess,breedStatus,createBy,createTime,updateBy,updateTime,printRequire,machineName,machineTypeName,actualPaperName,cutName,preOutStockState,preOutStockLockQty,preOutStockLockIdRoom,preOutLockState,preOutLockManId,preOutLockManName,breedSets,idPlateSizeTemplate,idPaperCutInfo,voidFlag,containsOrderIds,idCompany,preOutStockUnlocked,pickPaperCount,paperRequireFlag,paperPreRequestFlag,paperStockInFlag,paperPickingFlag,paperStockOutFlag)
  403. values(#{id},#{billyear},#{idprintbill},#{breedname},#{breedtypename},#{selfprovidedpaper},#{wholepapersize},#{paperband},#{idpaperbaseinfo},#{papername},#{cutcount},#{cutsize},#{partcount},#{breedno},#{printcount},#{printflowcount},#{craftflowcount},#{wholepapercount},#{paperprice},#{breedpaperprice},#{idactualpaperinfo},#{idmachinetype},#{idmachine},#{colorcount},#{specialcolor},#{breedfliptype},#{breedsize},#{pssize},#{psgroupcount},#{pscount},#{completecount},#{printcount1000},#{printcosts},#{breedprocess},#{breedstatus},#{createby},#{createtime},#{updateby},#{updatetime},#{printrequire},#{machinename},#{machinetypename},#{actualpapername},#{cutname},#{preoutstockstate},#{preoutstocklockqty},#{preoutstocklockidroom},#{preoutlockstate},#{preoutlockmanid},#{preoutlockmanname},#{breedsets},#{idplatesizetemplate},#{idpapercutinfo},#{voidflag},#{containsorderids},#{idcompany},#{preoutstockunlocked},#{pickpapercount},#{paperrequireflag},#{paperprerequestflag},#{paperstockinflag},#{paperpickingflag},#{paperstockoutflag});
  404. -- [recoverDataBaseFromEs_PrintBreedPart]
  405. insert into $table$
  406. (id,billYear,idPrintBill,idPrintBreed,idOrder,idOrderPart,idWorkPart,partHeight,partWidth,locationX,locationY,rotationAngle,idProduct,idPartInfo,productName,orderName,productPartName,semiFeedbackStatus,semiFeedbackContent,idSemiFeedbackMan,semiFeedbackTime,semiFeedbackTimeLong,orderCode)
  407. values(#{id},#{billyear},#{idprintbill},#{idprintbreed},#{idorder},#{idorderpart},#{idworkpart},#{partheight},#{partwidth},#{locationx},#{locationy},#{rotationangle},#{idproduct},#{idpartinfo},#{productname},#{ordername},#{productpartname},#{semifeedbackstatus},#{semifeedbackcontent},#{idsemifeedbackman},#{semifeedbacktime},#{semifeedbacktimelong},#{ordercode});
  408. -- [recoverDataBaseFromEs_MachineBreedTask]
  409. insert into $table$
  410. (id,billYear,idMachineInfo,idProcess,idPrintBreed,idPrintBill,expectedWorkTime,beginAt,beginAtLong,completeAt,completeAtLong,taskStatus,sortIndex,lastOperateManId,lastOperateManName,taskMemo,createBy,createTime,updateBy,updateTime,scheduleStatus,pauseStatus,voidFlag)
  411. values(#{id},#{billyear},#{idmachineinfo},#{idprocess},#{idprintbreed},#{idprintbill},#{expectedworktime},#{beginat},#{beginatlong},#{completeat},#{completeatlong},#{taskstatus},#{sortindex},#{lastoperatemanid},#{lastoperatemanname},#{taskmemo},#{createby},#{createtime},#{updateby},#{updatetime},#{schedulestatus},#{pausestatus},#{voidflag});
  412. -- [recoverDataBaseFromEs_FeedbackRecord]
  413. insert into $table$
  414. (id,billYear,idTask,recordType,idProcess,processName,idReference,feedbackCount,feedbackComplete,feedbackManId,feedbackMan,feedbackTime,feedbackTimeLong,feedbackMemo,createBy,createTime,updateBy,updateTime,feedbackBegin)
  415. values(#{id},#{billyear},#{idtask},#{recordtype},#{idprocess},#{processname},#{idreference},#{feedbackcount},#{feedbackcomplete},#{feedbackmanid},#{feedbackman},#{feedbacktime},#{feedbacktimelong},#{feedbackmemo},#{createby},#{createtime},#{updateby},#{updatetime},#{feedbackbegin});
  416. -- [recoverDataBaseFromEs_BillStep]
  417. insert into $table$
  418. (billYear,idPrintBill,idWorkMan,workMan,workTime,workTimeLong,workMemo,workExplain)
  419. values(#{billyear},#{idprintbill},#{idworkman},#{workman},#{worktime},#{worktimelong},#{workmemo},#{workexplain});
  420. -- [recoverDataBaseFromEs_BreedProcess]
  421. insert into $table$
  422. (id,billYear,idPrintBill,idPrintBreed,idOrder,idProcess,processName,feedbackStatus,feedbackCount,totalCount,completeTime,completeTimeLong,isOutAssisted,idOutAssistBill,outAssistBillCode,idMaterial,materialName,orderProcessMemo)
  423. values(#{id},#{billyear},#{idprintbill},#{idprintbreed},#{idorder},#{idprocess},#{processname},#{feedbackstatus},#{feedbackcount},#{totalcount},#{completetime},#{completetimelong},#{isoutassisted},#{idoutassistbill},#{outassistbillcode},#{idmaterial},#{materialname},#{orderprocessmemo});
  424. -- [backDoor_updateBreedPreOutLockState]
  425. update $table$ set preOutStockUnlocked = #{preoutstockunlocked} where id = #{id};
  426. -- [selectExclusiveBillSpliceTask]
  427. select * from $table$;
  428. -- [addExclusiveBillSpliceTask]
  429. insert into $table$ (id, billYear, idPrintBill, printBillCode,
  430. productName, breedCount, taskStatus,
  431. voidFlag, idSpliceMan, spliceManName,
  432. idAssignMan, assignManName, taskBeginTime,
  433. taskCompleteTime, processedCount, backReason, currentVersion, pauseStatus, pauseMemo,
  434. createBy, createTime, createTimeLong,
  435. updateBy, updateTime, updateTimeLong ) values ( #{id}, #{billyear}, #{idprintbill}, #{printbillcode},
  436. #{productname}, #{breedcount}, #{taskstatus},
  437. #{voidflag}, #{idspliceman}, #{splicemanname},
  438. #{idassignman}, #{assignmanname}, #{taskbegintime},
  439. #{taskcompletetime}, #{processedcount}, #{backreason}, #{currentversion}, #{pausestatus}, #{pausememo},
  440. #{createby}, #{createtime}, #{createtimelong},
  441. #{updateby}, #{updatetime}, #{updatetimelong} );
  442. -- [updateExclusiveBillSpliceTask]
  443. update $table$ set billYear = #{billyear},taskStatus = #{taskstatus},idSpliceMan = #{idspliceman},
  444. spliceManName = #{splicemanname},idAssignMan = #{idassignman},assignManName = #{assignmanname},taskBeginTime = #{taskbegintime},
  445. taskCompleteTime = #{taskcompletetime},processedCount = #{processedcount},backReason = #{backreason}, currentVersion = #{currentversion}, createBy = #{createby},
  446. createTime = #{createtime},createTimeLong = #{createtimelong},updateBy = #{updateby},updateTime = #{updatetime},
  447. updateTimeLong = #{updatetimelong} where id = #{id};
  448. -- [voidExclusiveBillSpliceTask]
  449. update $table$ set voidFlag = #{voidflag}, updateBy = #{updateby},updateTime = #{updatetime},
  450. updateTimeLong = #{updatetimelong} where id = #{id};
  451. -- [assignExclusiveTask]
  452. update $table$ set taskStatus = #{taskstatus},idSpliceMan = #{idspliceman},
  453. spliceManName = #{splicemanname},idAssignMan = #{idassignman},assignManName = #{assignmanname},
  454. assignTime = #{assigntime}, backReason = #{backreason},
  455. updateBy = #{updateby},updateTime = #{updatetime},
  456. updateTimeLong = #{updatetimelong} where id = #{id};
  457. -- [feedbackExclusiveTask]
  458. update $table$ set taskStatus = #{taskstatus}, taskBeginTime = #{taskbegintime}, taskCompleteTime = #{taskcompletetime}, processedCount = #{processedcount},
  459. backReason = #{backreason},
  460. updateBy = #{updateby},updateTime = #{updatetime},
  461. updateTimeLong = #{updatetimelong} where id = #{id};
  462. -- [pauseExclusiveTask]
  463. update $table$ set pauseStatus = #{pausestatus}, pauseMemo = #{pausememo},
  464. updateBy = #{updateby},updateTime = #{updatetime},
  465. updateTimeLong = #{updatetimelong} where id = #{id};
  466. -- [backDoor_updateMachineTaskAssortIds]
  467. update $table$ set cutPaperId = #{cutpaperid}, madeBreedId = #{madebreedid},
  468. assembleBreedId = #{assemblebreedid}, printId = #{printid}
  469. where id = #{id};