新增功率档位 统计报表
This commit is contained in:
@@ -154,72 +154,65 @@
|
||||
LEFT JOIN er_order eo ON tu.ORDER_ID = eo.ID
|
||||
WHERE
|
||||
tu.NAME IN (
|
||||
'30110012302232616',
|
||||
'30110012302181619',
|
||||
'30110012302250549',
|
||||
'30110012302233506',
|
||||
'30110012302231424',
|
||||
'30110012302243219',
|
||||
'30110012302260016',
|
||||
'30110012302233325',
|
||||
'30110012302231486',
|
||||
'30110012302242632',
|
||||
'30110012302233332',
|
||||
'30110012302243231',
|
||||
'30110012302221955',
|
||||
'30110012302233340',
|
||||
'30110012302243234',
|
||||
'30110012302181963',
|
||||
'30110012302240054',
|
||||
'30110012302233339',
|
||||
'30110012302233336',
|
||||
'30110012302250041',
|
||||
'30110012302240846',
|
||||
'30110012302242395',
|
||||
'30110012302233328',
|
||||
'30110012302242648',
|
||||
'30110012302232905',
|
||||
'30110012302232659',
|
||||
'30110012302233329',
|
||||
'30110012302231417',
|
||||
'30110012302250331',
|
||||
'30110012302251165',
|
||||
'30110012302192079',
|
||||
'30110012302260005',
|
||||
'30110012302250817',
|
||||
'30110012302233312',
|
||||
'30110012302271020',
|
||||
'30110012302231495',
|
||||
'30110012302233216',
|
||||
'30110012302271022',
|
||||
'30110012302183386',
|
||||
'30110012302240164',
|
||||
'30110012302272191',
|
||||
'30110012302131618',
|
||||
'30110012303012944',
|
||||
'30110012303020207',
|
||||
'30110012302241261',
|
||||
'30110012302241398',
|
||||
'30110012302230861',
|
||||
'30110012302233064',
|
||||
'30110012302250040',
|
||||
'30110012302251285',
|
||||
'30110012302221930',
|
||||
'30110012302182351',
|
||||
'30110012302250036',
|
||||
'30110012302251263',
|
||||
'30110012302232697',
|
||||
'30110012302242148',
|
||||
'30110012302190531',
|
||||
'30110012302242780',
|
||||
'30110012302240623',
|
||||
'30110012302281480',
|
||||
'30110012302282683',
|
||||
'30110012302240071',
|
||||
'30110012302250901',
|
||||
'30110012303011030',
|
||||
'30110012302250913',
|
||||
'30110012302270254',
|
||||
'30110012302092199',
|
||||
'30110012303020200',
|
||||
'30110012303012545',
|
||||
'30110012302142542',
|
||||
'30110012302232978',
|
||||
'30110012303020850',
|
||||
'30110012303020177',
|
||||
'30110012302250223',
|
||||
'30110012302232990',
|
||||
'30110012303013332',
|
||||
'30110012302232986',
|
||||
'30110012302232985',
|
||||
'30110012302284455',
|
||||
'30110012302233312',
|
||||
'30110012303020358',
|
||||
'30110012302282341',
|
||||
'30110012303020199',
|
||||
'30110012302272331',
|
||||
'30110012303021196',
|
||||
'30110012302233336',
|
||||
'30110012303020006',
|
||||
'30110012302242395',
|
||||
'30110012302233328',
|
||||
'30110012303012521',
|
||||
'30110012302233506',
|
||||
'30110012302242632',
|
||||
'30110012302233332',
|
||||
'30110012302232981',
|
||||
'30110012303020183',
|
||||
'30110012302283758',
|
||||
'30110012302280081',
|
||||
'30110012303020128',
|
||||
'30110012302241074',
|
||||
'30110012302182357',
|
||||
'30110012302233324',
|
||||
'30110012302172333',
|
||||
'30110012302193103',
|
||||
'30110012302192897',
|
||||
'30110012302233139',
|
||||
'30110012302241645',
|
||||
'30110012302250035',
|
||||
'30110012302232516',
|
||||
'30110012302270854'
|
||||
'30110012303020008',
|
||||
'30110012303020088',
|
||||
'30110012302232982',
|
||||
'30110012303012916',
|
||||
'30110012302230019',
|
||||
'30110012302271634',
|
||||
'30110012302251127',
|
||||
'30110012302230021',
|
||||
'30110012303010971',
|
||||
'30110012302251123',
|
||||
'30110012302140610'
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -53,6 +53,13 @@
|
||||
<id column="UOC_FL2" property="uocFl2" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="ResultMapPowerRe" type="com.cnbm.packing.dto.PowerReportDTO">
|
||||
<result column="sub_num" property="subNum" />
|
||||
<result column="sub_level" property="subLevel" />
|
||||
<result column="sum_pmpp" property="sumPMPP" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
<select id="list" resultType="com.cnbm.packing.dto.WoPackagingBoxSubstrateDTO">
|
||||
select * from t_wo_packaging_box_substrate
|
||||
<where>
|
||||
@@ -81,5 +88,35 @@
|
||||
where WO_SUBSTRATE_ID = #{woSubstrateId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<select id="powerReport" resultMap="ResultMapPowerRe">
|
||||
select
|
||||
COUNT(twpbs.WO_SUBSTRATE_ID) as sub_num,twpbs.POWER_LEVEL as sub_level,sum(twpbs.PMPP) as sum_pmpp
|
||||
from t_wo_packaging_box_substrate twpbs
|
||||
left join t_wo_packaging_box twpb on twpbs.PACKAGING_BOX_ID = twpb.BOX_NO
|
||||
<where>
|
||||
twpbs.PACKAGING_BOX_ID != '0'
|
||||
<if test="queryParam.begin != null and queryParam.end != null">
|
||||
and twpb.CREATE_TIME between #{queryParam.begin} AND #{queryParam.end}
|
||||
</if>
|
||||
<if test="queryParam.orderName != null">
|
||||
and twpbs.ORDER_NAME = #{queryParam.orderName}
|
||||
</if>
|
||||
<if test="queryParam.model != null">
|
||||
and twpb.model = #{queryParam.model}
|
||||
</if>
|
||||
</where>
|
||||
group by twpbs.POWER_LEVEL
|
||||
</select>
|
||||
|
||||
<select id="orderNameList" resultType="string">
|
||||
select
|
||||
twpbs.ORDER_NAME as orderName
|
||||
from t_wo_packaging_box_substrate twpbs
|
||||
where
|
||||
twpbs.PACKAGING_BOX_ID != '0'
|
||||
and twpbs.ORDER_NAME != ''
|
||||
group by twpbs.ORDER_NAME
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user