PlanTaskDetailsMapper.xml 27 KB

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