You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.0 KiB

1 year ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  3. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  4. <mapper namespace="com.spring.modules.part.mapper.WorkCenterMapper">
  5. <select id="selectWorkCenter" resultType="com.spring.modules.part.vo.WorkCenterVo">
  6. select
  7. wc.site,
  8. wc.work_center_no,
  9. wc.work_center_desc,
  10. wc.work_center_type,
  11. wc.work_center_type_db,
  12. wc.average_capacity,
  13. wc.efficiency,
  14. wc.utilization,
  15. wc.capacity_type_db,
  16. wc.capacity_type,
  17. wc.um_id,
  18. wc.active,
  19. wc.remark,
  20. wc.created_date,
  21. wc.pro_line_no,
  22. wc.can_create_new_roll_flag,
  23. wc.need_setup_flag
  24. from dbo.work_center wc where site = #{site} and active = 'Y'
  25. <if test="workCenterNo != null and workCenterNo != ''">
  26. and wc.work_center_no = #{workCenterNo}
  27. </if>
  28. <if test="workCenterDesc != null and workCenterDesc != ''">
  29. and wc.work_center_desc like #{workCenterDesc}
  30. </if>
  31. <if test="workCenterType != null and workCenterType != ''">
  32. and wc.work_center_type like #{workCenterType}
  33. </if>
  34. </select>
  35. <select id="queryPartListAll" resultType="com.spring.modules.part.entity.WorkCenter">
  36. Select work_center_no,
  37. work_center_desc,
  38. work_center_type
  39. from work_center
  40. <where>
  41. active = 'Y'
  42. <if test="data.site != null and data.site != ''">
  43. and site = #{data.site}
  44. </if>
  45. <if test="data.workCenterNo != null and data.workCenterNo != ''">
  46. and work_center_no like concat('%', #{data.workCenterNo}, '%')
  47. </if>
  48. <if test="data.workCenterDesc != null and data.workCenterDesc != ''">
  49. and work_center_desc like concat('%', #{data.workCenterDesc}, '%')
  50. </if>
  51. </where>
  52. </select>
  53. </mapper>