Ver código fonte

查询属性返回 组件数据

huangxingxing 3 meses atrás
pai
commit
4ed36a2631

+ 39 - 0
generated/com/miniframe/generate/comm/es/D_ES0009.java

@@ -23,4 +23,43 @@ public class D_ES0009 extends BaseMapModel implements Serializable {
 	public List <D_ES0009_ROWS_RECODE> getRows() {
 		return this.rows;
 	}
+	String pcId;//项目组件Id
+	/**
+	 *项目组件Id
+	 */
+	public void setPcId(String pcId) {
+		this.pcId=pcId;
+	}
+	/**
+	 *项目组件Id
+	 */
+	public String getPcId() {
+		return this.pcId;
+	}
+	String comId;//组件ID
+	/**
+	 *组件ID
+	 */
+	public void setComId(String comId) {
+		this.comId=comId;
+	}
+	/**
+	 *组件ID
+	 */
+	public String getComId() {
+		return this.comId;
+	}
+	String name;//组件name
+	/**
+	 *组件name
+	 */
+	public void setName(String name) {
+		this.name=name;
+	}
+	/**
+	 *组件name
+	 */
+	public String getName() {
+		return this.name;
+	}
 }

+ 4 - 1
generated/validator/resources_d_es0009Form_validator.properties

@@ -1 +1,4 @@
-d_es0009Form = false
+d_es0009.pcId = \u9879\u76EE\u7EC4\u4EF6Id
+d_es0009.comId = \u7EC4\u4EF6ID
+d_es0009.name = \u7EC4\u4EF6name
+d_es0009Form = true

+ 4 - 1
generated/validator/resources_d_es0009Form_validator_zh_CN.properties

@@ -1 +1,4 @@
-d_es0009Form = false
+d_es0009.pcId = \u9879\u76EE\u7EC4\u4EF6Id
+d_es0009.comId = \u7EC4\u4EF6ID
+d_es0009.name = \u7EC4\u4EF6name
+d_es0009Form = true

+ 10 - 0
src/main/java/com/miniframe/bisiness/es/ES0009Service.java

@@ -10,9 +10,11 @@ import com.miniframe.generate.business.es.model.ES0009BaseModel;
 import com.miniframe.generate.comm.es.D_ES0009_ROWS_RECODE;
 import com.miniframe.mappers.es.dao.EsMapper;
 import com.miniframe.mappers.es.model.ProComAttDto;
+import com.miniframe.model.es.EsCom;
 import com.miniframe.model.es.EsProCom;
 import com.miniframe.model.es.EsProComAtt;
 import com.miniframe.model.es.EsProComAttSQLBuilder;
+import com.miniframe.model.es.dao.EsComMapper;
 import com.miniframe.model.es.dao.EsProComAttMapper;
 import com.miniframe.model.es.dao.EsProComMapper;
 
@@ -44,6 +46,14 @@ public class ES0009Service extends ES0009BaseModel implements ExecProcessFlow {
 			row.setDataType(dto.getDataType()==null?-1: dto.getDataType());
 			rows.add(row);
 		}
+		EsProComMapper pcdao =UtilTools.getBean(EsProComMapper.class);
+		EsProCom pc = pcdao.selectByPrimaryKey(pcId);
+		EsComMapper cdao =UtilTools.getBean(EsComMapper.class);
+		EsCom c = cdao.selectByPrimaryKey(pc.getComId());
+		this.getD_es0009().setComId(c.getComId());
+		this.getD_es0009().setName(c.getName());
+		this.getD_es0009().setPcId(pcId);
+
 		this.getD_es0009().setRows(rows);
 	}
 	

+ 4 - 1
系统设计/通信设计/通讯报文/es(无锡发动机)/报文体/ES0009_D(项目组件属性查询).csv

@@ -8,4 +8,7 @@
 1.6,code,属性编码,string,,,,,,,,,,,
 1.7,valueType,值类型,int,,,,,,,,,,,
 1.8,valueDef,默认值,string,,,,,,,,,,,
-1.9,dataType,值数据类型,int,,,,,,,,,,,
+1.9,dataType,值数据类型,int,,,,,,,,,,,
+2,pcId,项目组件Id,string,,,,,,,,,,,
+3,comId,组件ID,string,,,,,,,,,,,
+4,name,组件name,string,,,,,,,,,,,