PlanTaskDetailsMapper.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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.zkqy.amichi.mapper.PlanTaskDetailsMapper">
  6. <resultMap type="com.zkqy.amichi.domain.PlanTaskDetails" id="PlanTaskDetailsResult">
  7. <result property="id" column="id" />
  8. <result property="quantity" column="quantity" />
  9. <result property="documentType" column="document_type"/>
  10. <result property="shopCoding" column="shop_coding"/>
  11. <result property="remark" column="remark" />
  12. <result property="createById" column="create_by_id" />
  13. <result property="createBy" column="create_by" />
  14. <result property="createTime" column="create_time" />
  15. <result property="updateById" column="update_by_id" />
  16. <result property="updateBy" column="update_by" />
  17. <result property="updateTime" column="update_time" />
  18. <result property="delFlag" column="del_flag" />
  19. <result property="dataApprovalStatus" column="data_approval_status" />
  20. <result property="processKey" column="process_key" />
  21. <result property="taskProcessKey" column="task_process_key" />
  22. <result property="taskNodeKey" column="task_node_key" />
  23. <result property="planId" column="plan_id" />
  24. <result property="materialId" column="material_id" />
  25. <result property="materialName" column="material_name" />
  26. <result property="modelNumber" column="model_number" />
  27. <result property="specification" column="specification" />
  28. <result property="materialUnit" column="material_unit" />
  29. <result property="demandDocument" column="demand_document" />
  30. <result property="timeOfRequest" column="time_of_request" />
  31. <result property="customerModel" column="customer_model" />
  32. <result property="power" column="power" />
  33. <result property="colour" column="colour" />
  34. <result property="mingpai" column="mingpai" />
  35. <result property="shuomingshu" column="shuomingshu" />
  36. <result property="hegezheng" column="hegezheng" />
  37. <result property="description" column="description" />
  38. <result property="baozhuangxiang" column="baozhuangxiang" />
  39. <result property="status" column="status" />
  40. <result property="fid" column="fid" />
  41. <result property="fbomIdFnumber" column="fbomIdFnumber" />
  42. <result property="ftreeEntityFentryid" column="ftreeEntity_fentryid" />
  43. <result property="funitidfNumber" column="funitidfNumber" />
  44. <result property="fbillno" column="fbillno" />
  45. <result property="fsrcbillno" column="fsrcbillno" />
  46. </resultMap>
  47. <resultMap type="com.zkqy.amichi.domain.vo.PlanTaskDetailsVo" id="PlanTaskDetailsResultVo">
  48. <result property="id" column="id" />
  49. <result property="planId" column="plan_id" />
  50. <result property="materialId" column="material_id" />
  51. <result property="documentType" column="document_type"/>
  52. <result property="materialName" column="material_name" />
  53. <result property="modelNumber" column="model_number" />
  54. <result property="specification" column="specification" />
  55. <result property="materialUnit" column="material_unit" />
  56. <result property="quantity" column="quantity" />
  57. <result property="remark" column="remark" />
  58. <result property="createById" column="create_by_id" />
  59. <result property="createBy" column="create_by" />
  60. <result property="createTime" column="create_time" />
  61. <result property="updateById" column="update_by_id" />
  62. <result property="updateBy" column="update_by" />
  63. <result property="updateTime" column="update_time" />
  64. <result property="delFlag" column="del_flag" />
  65. <result property="dataApprovalStatus" column="data_approval_status"/>
  66. <result property="processKey" column="process_key" />
  67. <result property="taskProcessKey" column="task_process_key"/>
  68. <result property="taskNodeKey" column="task_node_key" />
  69. <result property="demandDocument" column="demand_document"/>
  70. <result property="orderNumber" column="order_number"/>
  71. <result property="completionTime" column="completion_time"/>
  72. <result property="timeOfRequest" column="time_of_request"/>
  73. <result property="status" column="status" />
  74. <result property="fid" column="fid" />
  75. <result property="fbomIdFnumber" column="fbomIdFnumber" />
  76. <result property="ftreeEntityFentryid" column="ftreeEntity_fentryid" />
  77. <result property="funitidfNumber" column="funitidfNumber" />
  78. <result property="fbillno" column="fbillno" />
  79. <result property="fsrcbillno" column="fsrcbillno" />
  80. </resultMap>
  81. <sql id="selectPlanTaskDetailsVo">
  82. select fid,fbomIdFnumber,ftreeEntity_fentryid,funitidfNumber,fbillno,fsrcbillno,id, quantity, remark, document_type,
  83. create_by_id, create_by, create_time, update_by_id, update_by, update_time, del_flag, data_approval_status, process_key,
  84. task_process_key, task_node_key, plan_id, material_id, material_name, model_number, specification, material_unit, demand_document,
  85. time_of_request, customer_model, power, colour, mingpai, shuomingshu, hegezheng, description, baozhuangxiang,status,shop_coding
  86. from fjqydb.plan_task_details
  87. </sql>
  88. <select id="selectPlanTaskDetailsList" parameterType="com.zkqy.amichi.domain.PlanTaskDetails" resultMap="PlanTaskDetailsResult">
  89. <include refid="selectPlanTaskDetailsVo"/>
  90. <where>
  91. <if test="quantity != null and quantity != ''"> and quantity = #{quantity}</if>
  92. <if test="createById != null "> and create_by_id = #{createById}</if>
  93. <if test="updateById != null "> and update_by_id = #{updateById}</if>
  94. <if test="dataApprovalStatus != null and dataApprovalStatus != ''"> and data_approval_status = #{dataApprovalStatus}</if>
  95. <if test="processKey != null and processKey != ''"> and process_key = #{processKey}</if>
  96. <if test="taskProcessKey != null and taskProcessKey != ''"> and task_process_key = #{taskProcessKey}</if>
  97. <if test="taskNodeKey != null and taskNodeKey != ''"> and task_node_key = #{taskNodeKey}</if>
  98. <if test="planId != null "> and plan_id = #{planId}</if>
  99. <if test="materialId != null and materialId != ''"> and material_id = #{materialId}</if>
  100. <if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
  101. <if test="modelNumber != null and modelNumber != ''"> and model_number = #{modelNumber}</if>
  102. <if test="specification != null and specification != ''"> and specification = #{specification}</if>
  103. <if test="materialUnit != null and materialUnit != ''"> and material_unit = #{materialUnit}</if>
  104. <if test="demandDocument != null and demandDocument != ''"> and demand_document = #{demandDocument}</if>
  105. <if test="timeOfRequest != null "> and time_of_request = #{timeOfRequest}</if>
  106. <if test="customerModel != null and customerModel != ''"> and customer_model = #{customerModel}</if>
  107. <if test="power != null and power != ''"> and power = #{power}</if>
  108. <if test="colour != null and colour != ''"> and colour = #{colour}</if>
  109. <if test="mingpai != null and mingpai != ''"> and mingpai = #{mingpai}</if>
  110. <if test="shuomingshu != null and shuomingshu != ''"> and shuomingshu = #{shuomingshu}</if>
  111. <if test="hegezheng != null and hegezheng != ''"> and hegezheng = #{hegezheng}</if>
  112. <if test="description != null and description != ''"> and description = #{description}</if>
  113. <if test="baozhuangxiang != null and baozhuangxiang != ''"> and baozhuangxiang = #{baozhuangxiang}</if>
  114. <if test="status != null and status != ''"> and status = #{status}</if>
  115. </where>
  116. </select>
  117. <select id="selectPlanTaskDetailsById" parameterType="Long" resultMap="PlanTaskDetailsResult">
  118. <include refid="selectPlanTaskDetailsVo"/>
  119. where id = #{id}
  120. </select>
  121. <insert id="insertPlanTaskDetails" parameterType="com.zkqy.amichi.domain.PlanTaskDetails" useGeneratedKeys="true" keyProperty="id">
  122. insert into fjqydb.plan_task_details
  123. <trim prefix="(" suffix=")" suffixOverrides=",">
  124. <if test="quantity != null">quantity,</if>
  125. <if test="documentType != null">document_type,</if>
  126. <if test="shopCoding != null">shop_coding,</if>
  127. <if test="remark != null">remark,</if>
  128. <if test="createById != null">create_by_id,</if>
  129. <if test="createBy != null">create_by,</if>
  130. <if test="createTime != null">create_time,</if>
  131. <if test="updateById != null">update_by_id,</if>
  132. <if test="updateBy != null">update_by,</if>
  133. <if test="updateTime != null">update_time,</if>
  134. <if test="delFlag != null">del_flag,</if>
  135. <if test="dataApprovalStatus != null">data_approval_status,</if>
  136. <if test="processKey != null">process_key,</if>
  137. <if test="taskProcessKey != null">task_process_key,</if>
  138. <if test="taskNodeKey != null">task_node_key,</if>
  139. <if test="planId != null">plan_id,</if>
  140. <if test="materialId != null">material_id,</if>
  141. <if test="materialName != null">material_name,</if>
  142. <if test="modelNumber != null">model_number,</if>
  143. <if test="specification != null">specification,</if>
  144. <if test="materialUnit != null">material_unit,</if>
  145. <if test="demandDocument != null">demand_document,</if>
  146. <if test="timeOfRequest != null">time_of_request,</if>
  147. <if test="customerModel != null">customer_model,</if>
  148. <if test="power != null">power,</if>
  149. <if test="colour != null">colour,</if>
  150. <if test="mingpai != null">mingpai,</if>
  151. <if test="shuomingshu != null">shuomingshu,</if>
  152. <if test="hegezheng != null">hegezheng,</if>
  153. <if test="description != null">description,</if>
  154. <if test="baozhuangxiang != null">baozhuangxiang,</if>
  155. <if test="switchBox != null">switch_box,</if>
  156. <if test="scheduledCommencement != null">scheduled_commencement,</if>
  157. <if test="scheduledCompletion != null">scheduled_completion,</if>
  158. <if test="status != null and status != ''">status</if>
  159. <if test="ftreeEntityFentryid != null and ftreeEntityFentryid != ''">ftreeEntity_fentryid,</if>
  160. <if test="fid != null and fid != ''">fid,</if>
  161. <if test="fbillno != null and fbillno != ''">fbillno,</if>
  162. <if test="fsrcbillno != null and fsrcbillno != ''">fsrcbillno,</if>
  163. <if test="funitidfNumber != null and funitidfNumber != ''">funitidfNumber,</if>
  164. <if test="fbomIdFnumber != null and fbomIdFnumber != ''">fbomIdFnumber,</if>
  165. </trim>
  166. <trim prefix="values (" suffix=")" suffixOverrides=",">
  167. <if test="quantity != null">#{quantity},</if>
  168. <if test="documentType != null">#{documentType},</if>
  169. <if test="shopCoding != null">#{shopCoding},</if>
  170. <if test="remark != null">#{remark},</if>
  171. <if test="createById != null">#{createById},</if>
  172. <if test="createBy != null">#{createBy},</if>
  173. <if test="createTime != null">#{createTime},</if>
  174. <if test="updateById != null">#{updateById},</if>
  175. <if test="updateBy != null">#{updateBy},</if>
  176. <if test="updateTime != null">#{updateTime},</if>
  177. <if test="delFlag != null">#{delFlag},</if>
  178. <if test="dataApprovalStatus != null">#{dataApprovalStatus},</if>
  179. <if test="processKey != null">#{processKey},</if>
  180. <if test="taskProcessKey != null">#{taskProcessKey},</if>
  181. <if test="taskNodeKey != null">#{taskNodeKey},</if>
  182. <if test="planId != null">#{planId},</if>
  183. <if test="materialId != null">#{materialId},</if>
  184. <if test="materialName != null">#{materialName},</if>
  185. <if test="modelNumber != null">#{modelNumber},</if>
  186. <if test="specification != null">#{specification},</if>
  187. <if test="materialUnit != null">#{materialUnit},</if>
  188. <if test="demandDocument != null">#{demandDocument},</if>
  189. <if test="timeOfRequest != null">#{timeOfRequest},</if>
  190. <if test="customerModel != null">#{customerModel},</if>
  191. <if test="power != null">#{power},</if>
  192. <if test="colour != null">#{colour},</if>
  193. <if test="mingpai != null">#{mingpai},</if>
  194. <if test="shuomingshu != null">#{shuomingshu},</if>
  195. <if test="hegezheng != null">#{hegezheng},</if>
  196. <if test="description != null">#{description},</if>
  197. <if test="baozhuangxiang != null">#{baozhuangxiang},</if>
  198. <if test="switchBox != null">#{switchBox},</if>
  199. <if test="scheduledCommencement != null">#{scheduledCommencement},</if>
  200. <if test="scheduledCompletion != null">#{scheduledCompletion},</if>
  201. <if test="status != null and status != ''">#{status},</if>
  202. <if test="ftreeEntityFentryid != null and ftreeEntityFentryid != ''">#{ftreeEntityFentryid},</if>
  203. <if test="fid != null and fid != ''">#{fid},</if>
  204. <if test="fbillno != null and fbillno != ''">#{fbillno},</if>
  205. <if test="fsrcbillno != null and fsrcbillno != ''">#{fsrcbillno},</if>
  206. <if test="funitidfNumber != null and funitidfNumber != ''">#{funitidfNumber},</if>
  207. <if test="fbomIdFnumber != null and fbomIdFnumber != ''">#{fbomIdFnumber},</if>
  208. </trim>
  209. </insert>
  210. <!--查询生产订单号 -->
  211. <update id="updatePlanTaskDetailsByDemandDocument" parameterType="com.zkqy.amichi.domain.PlanTaskDetails">
  212. update fjqydb.plan_task_details
  213. <trim prefix="SET" suffixOverrides=",">
  214. <if test="quantity != null">quantity = #{quantity},</if>
  215. <if test="documentType != null">document_type = #{documentType},</if>
  216. <if test="remark != null">remark = #{remark},</if>
  217. <if test="createById != null">create_by_id = #{createById},</if>
  218. <if test="createBy != null">create_by = #{createBy},</if>
  219. <if test="createTime != null">create_time = #{createTime},</if>
  220. <if test="updateById != null">update_by_id = #{updateById},</if>
  221. <if test="updateBy != null">update_by = #{updateBy},</if>
  222. <if test="updateTime != null">update_time = #{updateTime},</if>
  223. <if test="delFlag != null">del_flag = #{delFlag},</if>
  224. <if test="dataApprovalStatus != null">data_approval_status = #{dataApprovalStatus},</if>
  225. <if test="processKey != null">process_key = #{processKey},</if>
  226. <if test="taskProcessKey != null">task_process_key = #{taskProcessKey},</if>
  227. <if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
  228. <if test="planId != null">plan_id = #{planId},</if>
  229. <if test="materialId != null">material_id = #{materialId},</if>
  230. <if test="materialName != null">material_name = #{materialName},</if>
  231. <if test="modelNumber != null">model_number = #{modelNumber},</if>
  232. <if test="specification != null">specification = #{specification},</if>
  233. <if test="materialUnit != null">material_unit = #{materialUnit},</if>
  234. <if test="demandDocument != null">demand_document = #{demandDocument},</if>
  235. <if test="timeOfRequest != null">time_of_request = #{timeOfRequest},</if>
  236. <if test="customerModel != null">customer_model = #{customerModel},</if>
  237. <if test="power != null">power = #{power},</if>
  238. <if test="colour != null">colour = #{colour},</if>
  239. <if test="mingpai != null">mingpai = #{mingpai},</if>
  240. <if test="shuomingshu != null">shuomingshu = #{shuomingshu},</if>
  241. <if test="hegezheng != null">hegezheng = #{hegezheng},</if>
  242. <if test="description != null">description = #{description},</if>
  243. <if test="baozhuangxiang != null">baozhuangxiang = #{baozhuangxiang},</if>
  244. <if test="status != null and status != ''">status=#{status},</if>
  245. </trim>
  246. where demand_document = #{demandDocument}
  247. </update>
  248. <update id="updatePlanTaskDetails" parameterType="com.zkqy.amichi.domain.PlanTaskDetails">
  249. update {DBNAME}.plan_task_details
  250. <trim prefix="SET" suffixOverrides=",">
  251. <if test="quantity != null">quantity = #{quantity},</if>
  252. <if test="documentType != null">document_type = #{documentType},</if>
  253. <if test="remark != null">remark = #{remark},</if>
  254. <if test="createById != null">create_by_id = #{createById},</if>
  255. <if test="createBy != null">create_by = #{createBy},</if>
  256. <if test="createTime != null">create_time = #{createTime},</if>
  257. <if test="updateById != null">update_by_id = #{updateById},</if>
  258. <if test="updateBy != null">update_by = #{updateBy},</if>
  259. <if test="updateTime != null">update_time = #{updateTime},</if>
  260. <if test="delFlag != null">del_flag = #{delFlag},</if>
  261. <if test="dataApprovalStatus != null">data_approval_status = #{dataApprovalStatus},</if>
  262. <if test="processKey != null">process_key = #{processKey},</if>
  263. <if test="taskProcessKey != null">task_process_key = #{taskProcessKey},</if>
  264. <if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
  265. <if test="planId != null">plan_id = #{planId},</if>
  266. <if test="materialId != null">material_id = #{materialId},</if>
  267. <if test="materialName != null">material_name = #{materialName},</if>
  268. <if test="modelNumber != null">model_number = #{modelNumber},</if>
  269. <if test="specification != null">specification = #{specification},</if>
  270. <if test="materialUnit != null">material_unit = #{materialUnit},</if>
  271. <if test="demandDocument != null">demand_document = #{demandDocument},</if>
  272. <if test="timeOfRequest != null">time_of_request = #{timeOfRequest},</if>
  273. <if test="customerModel != null">customer_model = #{customerModel},</if>
  274. <if test="power != null">power = #{power},</if>
  275. <if test="colour != null">colour = #{colour},</if>
  276. <if test="mingpai != null">mingpai = #{mingpai},</if>
  277. <if test="shuomingshu != null">shuomingshu = #{shuomingshu},</if>
  278. <if test="hegezheng != null">hegezheng = #{hegezheng},</if>
  279. <if test="description != null">description = #{description},</if>
  280. <if test="baozhuangxiang != null">baozhuangxiang = #{baozhuangxiang},</if>
  281. <if test="status != null and status != ''">status=#{status},</if>
  282. </trim>
  283. where id = #{id}
  284. </update>
  285. <delete id="deletePlanTaskDetailsById" parameterType="Long">
  286. delete from {DBNAME}.plan_task_details where id = #{id}
  287. </delete>
  288. <delete id="deletePlanTaskDetailsByIds" parameterType="String">
  289. delete from {DBNAME}.plan_task_details where id in
  290. <foreach item="id" collection="array" open="(" separator="," close=")">
  291. #{id}
  292. </foreach>
  293. </delete>
  294. <delete id="deletePlanTaskDetailsByDemandDocument" parameterType="String">
  295. delete from {DBNAME}.plan_task_details where demand_document in
  296. <foreach item="id" collection="list" open="(" separator="," close=")">
  297. #{id}
  298. </foreach>
  299. </delete>
  300. <delete id="removeMistakeDocumentByFsrcbillno">
  301. delete from {DBNAME}.plan_task_details where fsrcbillno in
  302. <foreach item="id" collection="list" open="(" separator="," close=")">
  303. #{id}
  304. </foreach>
  305. </delete>
  306. <select id="selectPlanTaskDetailsListInPlanId" parameterType="String" resultMap="PlanTaskDetailsResultVo">
  307. select ptd.id,ptd.document_type,ptd.material_id,ptd.material_name,ptd.model_number,ptd.specification,ptd.material_unit, ptd.quantity, ptd.remark,
  308. ptd.create_by_id, ptd.create_by, ptd.create_time, ptd.update_by_id, ptd.update_by, ptd.update_time, ptd.del_flag, ptd.data_approval_status, ptd.process_key,
  309. ptd.task_process_key, ptd.task_node_key, ptd.plan_id,ptd.demand_document,ppm.order_number from fjqydb.plan_task_details as ptd
  310. left join fjqydb.production_planning_management ppm
  311. on (ptd.plan_id=ppm.id)
  312. where plan_id in
  313. <foreach item="id" collection="array" open="(" separator="," close=")">
  314. #{id}
  315. </foreach>
  316. </select>
  317. <select id="selectPlanTaskDetailsListByOrderNumber" parameterType="String" resultMap="PlanTaskDetailsResultVo">
  318. select ptd.id,
  319. ptd.document_type,
  320. ptd.material_id,
  321. ptd.material_name,
  322. ptd.model_number,
  323. ptd.specification,
  324. ptd.material_unit,
  325. FORMAT(ptd.quantity,2) as quantity,
  326. ptd.remark,
  327. ptd.create_by_id,
  328. ptd.create_by,
  329. ptd.create_time,
  330. ptd.update_by_id,
  331. ptd.update_by,
  332. ptd.update_time,
  333. ptd.del_flag,
  334. ptd.data_approval_status,
  335. ptd.process_key,
  336. ptd.task_process_key,
  337. ptd.task_node_key,
  338. ptd.plan_id,
  339. ptd.demand_document,
  340. ppm.completion_time,
  341. ptd.time_of_request,
  342. ppm.order_number from fjqydb.plan_task_details as ptd
  343. left join fjqydb.production_planning_management ppm
  344. on (ptd.plan_id=ppm.id)
  345. where ppm.order_number=#{orderNumber} and is_weld_sheet=2
  346. order by material_name
  347. </select>
  348. <!--流转卡数据查询-->
  349. <resultMap type="com.zkqy.amichi.domain.vo.PlanTaskDetailsListAndFlowCardDataVo" id="PlanTaskDetailsListAndFlowCardDataVoRp">
  350. <result property="orderNumber" column="production_order_list_id" />
  351. <result property="serialNumber" column="serial_number" />
  352. <result property="materialCode" column="material_id" />
  353. <result property="model" column="model" />
  354. <result property="power" column="power" />
  355. <result property="colour" column="colour" />
  356. <result property="mingPai" column="mingpai" />
  357. <result property="packingBox" column="baozhuangxiang" />
  358. <result property="switchBox" column="switch_box" />
  359. <result property="coreLength" column="core_length" />
  360. <result property="voltageFrequency" column="voltage_frequency" />
  361. <result property="caseEndCover" column="case_end_cover"/>
  362. <result property="platterInterface" column="platter_interface" />
  363. <result property="dataInfo" column="data_info"/>
  364. <result property="specificationBook" column="specification_book" />
  365. <result property="certificateOfConformity" column="certificate_of_conformity"/>
  366. <result property="specialRequirements" column="special_requirements"/>
  367. <result property="remark" column="remark"/>
  368. <result property="xqrq" column="time_of_request"/>
  369. <result property="documentType" column="document_type"/>
  370. </resultMap>
  371. <select id="selectPlanTaskDetailsListAndFlowCardData" parameterType="String" resultMap="PlanTaskDetailsListAndFlowCardDataVoRp">
  372. select
  373. pcf.production_order_list_id,
  374. pcf.serial_number,
  375. ptd.material_id,
  376. mbi.model,
  377. ptd.power,
  378. ptd.document_type,
  379. ptd.colour,
  380. ptd.mingpai,
  381. ptd.baozhuangxiang,
  382. ptd.switch_box,
  383. mbi.core_length,
  384. mbi.voltage_frequency,
  385. mbi.case_end_cover,
  386. mbi.platter_interface,
  387. CONCAT(
  388. IFNULL(mbi.data_info, '无'),
  389. '/',
  390. IFNULL(mbi.phase_number, '无')
  391. ) AS data_info,
  392. mbi.specification_book,
  393. mbi.certificate_of_conformity,
  394. ppm.special_requirements,
  395. ppm.remark,
  396. ptd.time_of_request as time_of_request
  397. from
  398. fjqydb.production_card_flow as pcf
  399. left join
  400. fjqydb.plan_task_details as ptd on ptd.demand_document=pcf.demand_document_number
  401. left join
  402. fjqydb.material_base_info mbi
  403. on ptd.material_id=mbi.material_code
  404. left join fjqydb.production_planning_management as ppm
  405. on pcf.production_order_list_id =ppm.order_number
  406. where ppm.is_weld_sheet=1 and pcf.demand_document_number in
  407. <foreach item="orderNumber" collection="list" open="(" separator="," close=")">
  408. #{orderNumber}
  409. </foreach>
  410. order by pcf.serial_number
  411. </select>
  412. </mapper>