package com.steering.pss.qcm.DAL;

import com.steering.comm.db.DBCommon;
import com.steering.comm.tools.EntityTool;
import com.steering.pss.qcm.model.ComMscGradeEntity;

import CoreFS.SA06.CoreReturnObject;
import CoreFS.SA08.CoreXmlSqlParsersFactory;

public class ComMscGradeDAL extends DBCommon{
	
	/**
	 * 查询钢种
	 * @param strMscGradeJSON
	 * @return
	 */
	public CoreReturnObject query(String strMscGradeJSON){
		ComMscGradeEntity mscGradeEntity = EntityTool.getEntityByJSONStr(strMscGradeJSON, ComMscGradeEntity.class);
		String sql = CoreXmlSqlParsersFactory.getSql("ComMscGrade.query");
		sql = EntityTool.fillSqlByEntity(sql, mscGradeEntity);
		return this.getData(sql);
	}
}
