diff --git a/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkConsumeMapper.xml b/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkConsumeMapper.xml new file mode 100644 index 000000000..80811a628 --- /dev/null +++ b/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkConsumeMapper.xml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + select record_id, workorder_code, material_code, material_name, material_spc, quantity, unit, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, factory_code from mes_report_work_consume + + + + + + + + insert into mes_report_work_consume + + record_id, + workorder_code, + material_code, + material_name, + material_spc, + quantity, + unit, + remark, + attr1, + attr2, + attr3, + attr4, + create_by, + create_time, + update_by, + update_time, + factory_code, + + + #{recordId}, + #{workorderCode}, + #{materialCode}, + #{materialName}, + #{materialSpc}, + #{quantity}, + #{unit}, + #{remark}, + #{attr1}, + #{attr2}, + #{attr3}, + #{attr4}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{factoryCode}, + + + + + update mes_report_work_consume + + workorder_code = #{workorderCode}, + material_code = #{materialCode}, + material_name = #{materialName}, + material_spc = #{materialSpc}, + quantity = #{quantity}, + unit = #{unit}, + remark = #{remark}, + attr1 = #{attr1}, + attr2 = #{attr2}, + attr3 = #{attr3}, + attr4 = #{attr4}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + factory_code = #{factoryCode}, + + where record_id = #{recordId} + + + + delete from mes_report_work_consume where record_id = #{recordId} + + + + delete from mes_report_work_consume where record_id in + + #{recordId} + + + \ No newline at end of file