| | |
| | | public interface ProjectMaintenanceOrderMapper extends BaseMapper<ProjectMaintenanceOrder> { |
| | | |
| | | |
| | | @Select("select t1.id as value,t1.name as text, t1.name as title from mom_base_supplier t1 where t1.del_flag = '0' GROUP by t1.name ORDER BY t1.create_time desc") |
| | | @Select("select t1.id as value,t1.name as text, t1.name as title from mom_base_supplier t1 where t1.del_flag = '0' ORDER BY t1.create_time desc") |
| | | List<SupplierVo> getSupplier(); |
| | | |
| | | @Select("select t1.id as value,t1.name as text, t1.name as title from mom_base_team t1 where t1.del_flag = '0' ORDER BY t1.create_time desc") |
| | |
| | | t1.outbound_order_detail_id outboundOrderDetailId, |
| | | t8.id equipmentId, |
| | | t1.is_lock isLock, |
| | | IFNULL(t5.use_quantity,0) useQuantity, |
| | | IFNULL(t5.outbound_main_quantity,0) mainQuantity, |
| | | (IFNULL(t5.outbound_main_quantity,0)-IFNULL(t5.use_quantity,0)) as availableQuantity |
| | | ISNULL(t5.use_quantity,0) useQuantity, |
| | | ISNULL(t5.outbound_main_quantity,0) mainQuantity, |
| | | (ISNULL(t5.outbound_main_quantity,0)-ISNULL(t5.use_quantity,0)) as availableQuantity |
| | | |
| | | |
| | | FROM mom_eam_repair_order_actual_material t1 |
| | |
| | | t1.actual_hour, |
| | | t2.username username, |
| | | t2.realname as realname, |
| | | t4.name as teamName, |
| | | -- t4.name as teamName, |
| | | concat(t6.num, '/', t6.name, '/', t6.model) as equipmentId |
| | | FROM mom_eam_repair_order_actual_work_hours t1 |
| | | LEFT JOIN sys_user t2 on t2.id = t1.user_id |
| | | LEFT JOIN mom_base_team_class t3 on t3.id = t2.team_class_id |
| | | LEFT JOIN mom_base_team t4 on t4.id = t3.team_id |
| | | -- LEFT JOIN mom_base_team_class t3 on t3.id = t2.team_class_id |
| | | -- LEFT JOIN mom_base_team t4 on t4.id = t3.team_id |
| | | LEFT JOIN mom_eam_repair_order t5 on t5.id = t1.repair_order_id |
| | | LEFT JOIN mom_eam_equipment t6 on t6.id = t5.equipment_id |
| | | WHERE t1.repair_order_id = #{mainId} |
| | |
| | | t3.depart_name departName, |
| | | t4.name outsourcingUnitName, |
| | | t5.realname responsibilityName, |
| | | t6.`name` teamName |
| | | t6.name teamName |
| | | from mom_eam_repair_order t1 |
| | | left join(select * from mom_eam_equipment where del_flag = 0 and status = 1) t2 on t1.equipment_id= t2.id |
| | | left join sys_depart t3 on t3.id = t1.depart_id |
| | |
| | | <if test="status != null and status != ''"> |
| | | and t1.status = #{status} |
| | | </if> |
| | | and t1.repair_order_type = #{repairOrderType} order by t1.create_time desc |
| | | and t1.repair_order_type = #{repairOrderType} |
| | | order by t1.create_time desc |
| | | </select> |
| | | |
| | | |
| | |
| | | select |
| | | t1.id, |
| | | t1.spare_part_id as sparePartId, |
| | | IFNULL(t1.use_quantity,0) as useQuantity, |
| | | ISNULL(t1.use_quantity,0) as useQuantity, |
| | | t2.num, |
| | | t2.id as outboundOrderId, |
| | | IFNULL(t1.outbound_main_quantity,0) as mainQuantity, |
| | | (IFNULL(t1.outbound_main_quantity,0)-IFNULL(t1.use_quantity,0)) as availableQuantity, |
| | | ISNULL(t1.outbound_main_quantity,0) as mainQuantity, |
| | | (ISNULL(t1.outbound_main_quantity,0)-ISNULL(t1.use_quantity,0)) as availableQuantity, |
| | | t3.num as spareNum, |
| | | t3.name as spareName, |
| | | t3.model, |
| | |
| | | LEFT JOIN mom_eam_spare_part t3 on t3.id =t1.spare_part_id |
| | | LEFT JOIN mom_base_constructor t4 on t4.id =t3.constructor_id |
| | | LEFT JOIN mom_base_unit t5 on t5.id =t1.main_unit_id |
| | | where t1.del_flag = 0 and t1.outbound_main_quantity != 0 and (IFNULL(t1.outbound_main_quantity,0)-IFNULL(t1.use_quantity,0)) != 0 |
| | | where t1.del_flag = 0 and t1.outbound_main_quantity != 0 and (ISNULL(t1.outbound_main_quantity,0)-ISNULL(t1.use_quantity,0)) != 0 |
| | | <if test="status != null and status != ''"> |
| | | and t1.status = #{status} |
| | | </if> |
| | |
| | | t1.actual_start_time actualStartTime, |
| | | t1.actual_end_time actualEndTime, |
| | | t1.remark remark, |
| | | t1.`status` status, |
| | | t1.status status, |
| | | t1.audit_status auditStatus, |
| | | t1.create_by createBy, |
| | | t1.create_time createTime, |
| | |
| | | t3.depart_name departName, |
| | | t4.item_text maintenanceMethodName, |
| | | t5.item_text auditStatusName, |
| | | t6.`name` teamName, |
| | | t6.name teamName, |
| | | t7.realname responsibilityName, |
| | | t8.`name` outsourcingUnitName, |
| | | t8.name outsourcingUnitName, |
| | | t9.realname reportUserName |
| | | FROM |
| | | mom_eam_report_after_repair t1 |
| | |
| | | </if> |
| | | ORDER BY t1.create_time desc |
| | | </select> |
| | | </mapper> |
| | | </mapper> |