物管理后端
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.

25 lines
828 B

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.thing.carbontrack.ck.datacleaning.mapper.CkOrderMapper">
  4. <select id="getOrderList" resultType="com.thing.carbontrack.ck.datacleaning.dto.CkOrderDto">
  5. SELECT
  6. 加工单编号 AS orderNo,
  7. SUM ( 加工单生产工时 ) AS hours,
  8. SUM ( 产成品数量 ) AS qty,
  9. MAX ( 产品名称型号 ) AS productInfo,
  10. MAX(项目订货方) AS customerName
  11. FROM
  12. 成套碳足迹生产加工单
  13. WHERE 月度= #{month}
  14. AND 产品名称型号 LIKE '%柜%'
  15. AND 加工单生产工时 != 0
  16. GROUP BY
  17. 加工单编号
  18. </select>
  19. </mapper>