package com.steering.pss.judge.DAL;

import com.steering.comm.db.DBCommon;
import com.steering.comm.tools.StringTool;
import CoreFS.SA06.CoreReturnObject;
import CoreFS.SA08.CoreXmlSqlParsersFactory;

/**
 * 数据库表QCM_ZG_CHEMJUDGE_EXCEPTION所对应的Java类（生成工具：代码生成工具4.0   访问地址：http://172.16.2.128/tool/）
 * @author DESKTOP-6099KAF   date 2016-06-15
 */
public class QcmZgChemjudgeExceptionDAL extends DBCommon{

 /**
     * 通过炉号查询
     */
    public CoreReturnObject QueryByJudgeStoveNo(String judgeStoveNo){
        String sqlQuery = CoreXmlSqlParsersFactory.getSql("QcmZgChemjudgeExceptionDAL.QueryByJudgeStoveNo");
        sqlQuery = StringTool.ReplaceAll(sqlQuery, "#JUDGE_STOVE_NO#", judgeStoveNo);
        return this.getData(sqlQuery);
    }

    /**
     * 通过主键查询
     */
    public CoreReturnObject QueryByPk(String chemJudgeId, String judgeStoveNo, String planProorder, String ordLnPk){
        String sqlQuery = CoreXmlSqlParsersFactory.getSql("QcmZgChemjudgeExceptionDAL.QueryByPk");
        return this.getData(sqlQuery);
    }
}
