采标程度连表查询
This commit is contained in:
@@ -40,6 +40,10 @@ public class EsStandRelation extends BaseEntity {
|
||||
@TableField("use_level")
|
||||
private String useLevel;
|
||||
|
||||
@ApiModelProperty(value = "采用程度名称")
|
||||
@TableField(exist = false)
|
||||
private String useLevelName;
|
||||
|
||||
@ApiModelProperty(value = "简述技术指标依据")
|
||||
@TableField("technologic")
|
||||
private String technologic;
|
||||
|
||||
+2
-1
@@ -5,9 +5,10 @@
|
||||
<select id="getDatas" resultType="com.adc.da.slrs.esStandRelation.entity.EsStandRelation">
|
||||
select es_stand_relation.id , es_stand_relation.stand_id , es_stand_relation.stand_type,sar_standards_info.STAND_NAME as standName,
|
||||
concat(sar_standards_info.STAND_SORT,concat(' ',concat(concat(sar_standards_info.STAND_NUMBER,concat('-',sar_standards_info.STAND_YEAR))))) as standNumber,
|
||||
es_stand_relation.is_relate as isRelate,es_stand_relation.technologic,es_stand_relation.use_level as useLevel
|
||||
es_stand_relation.is_relate as isRelate,es_stand_relation.technologic,es_stand_relation.use_level as useLevel,ts_dictype.DIC_TYPE_NAME as useLevelName
|
||||
from es_stand_relation
|
||||
left join sar_standards_info on es_stand_relation.stand_id = sar_standards_info.ID
|
||||
left join ts_dictype on es_stand_relation.use_level = ts_dictype.DIC_TYPE_CODE
|
||||
where es_stand_relation.es_id=#{id}
|
||||
union all
|
||||
select es_stand_relation.id , es_stand_relation.stand_id , es_stand_relation.stand_type,sar_bussioness_stand.STAND_NAME as standName,
|
||||
|
||||
Reference in New Issue
Block a user