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.
26 lines
828 B
26 lines
828 B
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.thing.carbontrack.ck.datacleaning.mapper.CkOrderMapper">
|
|
|
|
|
|
<select id="getOrderList" resultType="com.thing.carbontrack.ck.datacleaning.dto.CkOrderDto">
|
|
SELECT
|
|
加工单编号 AS orderNo,
|
|
SUM ( 加工单生产工时 ) AS hours,
|
|
SUM ( 产成品数量 ) AS qty,
|
|
MAX ( 产品名称型号 ) AS productInfo,
|
|
MAX(项目订货方) AS customerName
|
|
FROM
|
|
成套碳足迹生产加工单
|
|
WHERE 月度= #{month}
|
|
AND 产品名称型号 LIKE '%柜%'
|
|
AND 加工单生产工时 != 0
|
|
GROUP BY
|
|
加工单编号
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|