Commit cf54b542 by zhangkb

添加短板筛选规则和考核指标关系表

parent 289a3d00
package com.keymobile.indicators.model.entity.shortboard;
import java.io.Serializable;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import lombok.Data;
/**
* author:zhangkb time:2020-6-11 desc:新增短板筛选规则和考核指标关系中间表
*/
@Data
@Document(collection="short_board_drive_ind_rel")
public class ShortboardDriveIndRel implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
private String id;
private String shortboardRuleId;//短板规则id
private String driveIndDefId;//考核指标id
public ShortboardDriveIndRel(String driveIndDefId,String shortboardRuleId) {
this.driveIndDefId = driveIndDefId;
this.shortboardRuleId = shortboardRuleId;
}
}
package com.keymobile.indicators.persistence.hyindicators;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.keymobile.indicators.model.entity.shortboard.ShortboardDriveIndRel;
public interface ShortboardDriveIndRelRepository extends MongoRepository<ShortboardDriveIndRel,String>{
List<ShortboardDriveIndRel> findByDriveIndDefId(String driveIndDefId);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment