| | |
| | | {field: 'breakageQuantity', width: 100,title: t('reportingWorks.quantityBroken'), sortable: true}, |
| | | {field: 'responsiblePersonnel', width: 120,title: t('rework.responsibilityInformation'), sortable: true,showOverflow:"ellipsis",filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'area',width: 100, title: t('reportingWorks.wornArea'), sortable: true}, |
| | | {field: 'creator',width: 120, title: t('product.creator'), sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'project', width: 120,title: t('order.project'), sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'orderId',width: 120, title: t('order.orderId'), sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'glassChild',width: 120, title: t('reportingWorks.glassChild'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | |
| | | {field: 'responsibleEquipment', width: 120, title: t('reportingWorks.responsibleEquipment'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'breakageType', width: 120, title: t('reportingWorks.breakageType'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'breakageReason', width: 120, title: t('reportingWorks.breakageReason'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'thisProcess',width: 120, title: t('reportingWorks.reportingProcess'), sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'creator',width: 120, title: t('product.creator'), sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'childWidth', width: 100, title: t('order.width'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'childHeight', width: 100, title: t('order.height'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'breakageQuantity', width: 120, title: t('reportingWorks.quantityBroken')}, |
| | |
| | | }, |
| | | {field: 'quantityMax', width: 120, title: t('report.quantityMax'), showOverflow: "ellipsis"}, |
| | | {field: 'breakage_quantity', width: 100, title: t('reportingWorks.quantityBroken')}, |
| | | {field: 'patch_num', width: 120, title: t('reportingWorks.quantityBroken')}, |
| | | {field: 'received_quantity', width: 120, title: t('report.patchNum')}, |
| | | {field: 'patch_num', width: 120, title: t('report.patchNum')}, |
| | | {field: 'received_quantity', width: 120, title: t('report.inventoryNum')}, |
| | | {field: 'finished', width: 120, title: t('report.finished')}, |
| | | ],//表头按钮 |
| | | |
| | |
| | | private String glassChild; |
| | | @ExcelProperty("编号") |
| | | private String code; |
| | | @ExcelProperty("创建人") |
| | | private String creator; |
| | | } |
| | |
| | | private Double childWidth; |
| | | @ExcelProperty("高") |
| | | private Double childHeight; |
| | | @ExcelProperty("报工工序") |
| | | private String thisProcess; |
| | | @ExcelProperty("创建人") |
| | | private String creator; |
| | | |
| | | } |
| | |
| | | <result column="glassNumber" property="glassNumber"/> |
| | | <result column="child_width" property="childWidth"/> |
| | | <result column="child_height" property="childHeight"/> |
| | | <result column="this_process" property="thisProcess"/> |
| | | <result column="creator" property="creator"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="teamOutputMap" type="com.example.erp.dto.pp.TeamOutputDTO"> |
| | |
| | | ogd.glass_child, |
| | | rw.this_process, |
| | | JSON_UNQUOTE( JSON_EXTRACT( od.other_columns, '$.S01' )) AS code, |
| | | CONCAT(rw.process_id,'/',GROUP_CONCAT(distinct dd.technology_number SEPARATOR '')) as process_id |
| | | CONCAT(rw.process_id,'/',GROUP_CONCAT(distinct dd.technology_number SEPARATOR '')) as process_id, |
| | | rw.creator |
| | | from |
| | | sd.`order` as o left join sd.order_detail as od on o.order_id=od.order_id |
| | | left join sd.order_glass_detail as ogd on ogd.order_id=od.order_id and ogd.order_number=od.order_number |
| | |
| | | </if> |
| | | <if test="crossProcessBreakingDTO.responsiblePersonnel != null and crossProcessBreakingDTO.responsiblePersonnel != ''"> |
| | | and dd.responsible_personnel regexp #{crossProcessBreakingDTO.responsiblePersonnel} |
| | | </if> |
| | | <if test="crossProcessBreakingDTO.creator != null and crossProcessBreakingDTO.creator != ''"> |
| | | and rw.creator regexp #{crossProcessBreakingDTO.creator} |
| | | </if> |
| | | GROUP BY dd.id |
| | | order by dd.id desc |
| | |
| | | ogd.glass_child, |
| | | ogd.child_width, |
| | | ogd.child_height, |
| | | ifnull(JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S01')),'') AS glassNumber |
| | | ifnull(JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S01')),'') AS glassNumber, |
| | | rw.this_process, |
| | | rw.creator |
| | | FROM |
| | | sd.ORDER AS o |
| | | LEFT JOIN sd.order_glass_detail AS ogd ON ogd.order_id = o.order_id |
| | |
| | | <if test="damageReportDTO.glassNumber != null and damageReportDTO.glassNumber != ''"> |
| | | and ifnull(JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S01')),'') regexp #{damageReportDTO.glassNumber} |
| | | </if> |
| | | <if test="damageReportDTO.thisProcess != null and damageReportDTO.thisProcess != ''"> |
| | | and rw.this_process regexp #{damageReportDTO.thisProcess} |
| | | </if> |
| | | <if test="damageReportDTO.creator != null and damageReportDTO.creator != ''"> |
| | | and rw.creator regexp #{damageReportDTO.creator} |
| | | </if> |
| | | GROUP BY |
| | | dd.id |
| | | limit #{offset},#{pageSize}; |