EquipmentRepairJoinChildJoinSparepart.java 755 字节
package com.skua.modules.equipment.pojo;

import com.skua.modules.equipment.entity.EquipmentRepair;
import com.skua.modules.equipment.entity.EquipmentRepairChild;
import com.skua.modules.equipment.entity.EquipmentSparepart;
import com.skua.tool.annotation.JoinSqlAnno;
import lombok.Data;

/**
 * @author sonin
 * @date 2021/11/9 14:51
 */
public class EquipmentRepairJoinChildJoinSparepart {

    @JoinSqlAnno(targetClass = EquipmentRepairChild.class, foreignKey = "repairId")
    private EquipmentRepair equipmentRepair;

    @JoinSqlAnno(primaryKey = "sparepartId", targetClass = EquipmentSparepart.class, foreignKey = "id")
    private EquipmentRepairChild equipmentRepairChild;

    @JoinSqlAnno
    private EquipmentSparepart equipmentSparepart;

}