| | |
| | | field: 'processId', width: 140, title: t('processCard.processId'),filters:[{ data: '' }],slots: { filter: 'num1_filter' } |
| | | }, |
| | | {field: 'orderNumber', width: 60, title: t('order.OrderNum')}, |
| | | {field: 'code', width: 60, title: t('reportingWorks.glassNumber')}, |
| | | {field: 'width', width: 100, title: t('order.width')}, |
| | | {field: 'height', width: 100, title: t('order.height')}, |
| | | {field: 'shape', width: 90, title: t('order.shape')}, |
| | |
| | | {field: 'completedArea', width: 120,title: t('reportingWorks.completedArea'), }, |
| | | {field: 'thisWornQuantity',width: 120, title: t('reportingWorks.thisWornQuantity'), }, |
| | | {field: 'wornArea',width: 120, title: t('reportingWorks.wornArea'), }, |
| | | {field: 'deviceName', width: 100,title: t('reportingWorks.deviceType'), }, |
| | | {field: 'teamsGroupsName',width: 120, title: t('reportingWorks.teamsType'), }, |
| | | {field: 'deviceName', width: 100,title: t('reportingWorks.deviceType'),filters:[{ data: '' }],slots: { filter: 'num1_filter' } }, |
| | | {field: 'teamsGroupsName',width: 120, title: t('reportingWorks.teamsType'),filters:[{ data: '' }],slots: { filter: 'num1_filter' } }, |
| | | {field: 'reviewedState',width: 120, title: t('processCard.reviewedState'), }, |
| | | |
| | | ],//表头按钮 |
| | |
| | | private String area; |
| | | @ExcelProperty("产品名称") |
| | | private String productName; |
| | | @ExcelProperty("编号") |
| | | private String code; |
| | | } |
| | |
| | | <result column="completed_quantity" property="completedQuantity"/> |
| | | <result column="area" property="area"/> |
| | | <result column="product_name" property="productName"/> |
| | | <result column="code" property="code"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="scheduleProductionScheduleMap" type="com.example.erp.dto.pp.ScheduleProductionScheduleDTO"> |
| | |
| | | od.edging_type, |
| | | rwd.completed_quantity, |
| | | ROUND(MAX( ogd.child_width )*MAX( ogd.child_height )*rwd.completed_quantity/1000000,2) as area, |
| | | od.product_name |
| | | od.product_name, |
| | | JSON_UNQUOTE( JSON_EXTRACT( od.other_columns, '$.S01' )) AS code |
| | | FROM |
| | | reporting_work AS rw |
| | | LEFT JOIN reporting_work_detail AS rwd ON rw.reporting_work_id = rwd.reporting_work_id |
| | |
| | | SELECT |
| | | bdp.id, |
| | | bdp.basic_type, |
| | | bdp.basic_name, |
| | | rw.teams as basic_name, |
| | | bd.basic_name,bd.id AS basic_category, |
| | | rw.process |
| | | FROM |
| | | sd.basic_data AS bd |
| | | LEFT JOIN `basic_data_produce` AS bdp |
| | | ON bd.id = bdp.basic_category |
| | | right join ( |
| | | select distinct process from |
| | | ( select distinct rw.this_process as process |
| | | from reporting_work as rw where rw.process_id=#{processIdStr} |
| | | UNION |
| | | select #{process} |
| | | ) as t |
| | | ) as rw |
| | | on rw.process=bd.basic_name |
| | | LEFT JOIN `basic_data_produce` AS bdp |
| | | ON bd.id = bdp.basic_category |
| | | right join ( |
| | | select distinct process,teams from |
| | | ( select distinct rw.this_process as process,rw.teams_groups_name as teams |
| | | from reporting_work as rw where rw.process_id='NG24071501A002' |
| | | |
| | | ) as t |
| | | ) as rw |
| | | on rw.process=bd.basic_name |
| | | WHERE |
| | | bdp.basic_type = 'teamsgroups' |
| | | bdp.basic_type = 'teamsgroups' |
| | | GROUP BY rw.teams |
| | | </select> |
| | | |
| | | <select id="SelectHistoryProcessMp"> |
| | |
| | | <if test="reportingWork.thisProcess != null and reportingWork.thisProcess != ''"> |
| | | and rw.this_process regexp #{reportingWork.thisProcess} |
| | | </if> |
| | | <if test="reportingWork.deviceName != null and reportingWork.deviceName != ''"> |
| | | and rw.device_name regexp #{reportingWork.deviceName} |
| | | </if> |
| | | <if test="reportingWork.teamsGroupsName != null and reportingWork.teamsGroupsName != ''"> |
| | | and rw.teams_groups_name regexp #{reportingWork.teamsGroupsName} |
| | | </if> |
| | | GROUP BY rw.reporting_work_id |
| | | ORDER BY rw.reporting_work_id desc |
| | | limit #{offset},#{pageSize}; |
| | |
| | | <if test="reportingWork.thisProcess != null and reportingWork.thisProcess != ''"> |
| | | and rw.this_process regexp #{reportingWork.thisProcess} |
| | | </if> |
| | | <if test="reportingWork.deviceName != null and reportingWork.deviceName != ''"> |
| | | and rw.device_name regexp #{reportingWork.deviceName} |
| | | </if> |
| | | <if test="reportingWork.teamsGroupsName != null and reportingWork.teamsGroupsName != ''"> |
| | | and rw.teams_groups_name regexp #{reportingWork.teamsGroupsName} |
| | | </if> |
| | | ORDER BY rw.reporting_work_id desc |
| | | limit #{offset},#{pageSize}; |
| | | </select> |