package com.steering.pss.sale.order.DAL;

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

/**
 * 数据库表PLN_ORDER_ZG_S所对应的Java类（生成工具：代码生成工具4.0   访问地址：http://172.16.2.128/tool/）
 * @author tgcx-test   date 2017-01-10
 */
public class PlnOrderZgSDAL extends DBCommon{

 /**
     * 通用查询
     */
    public CoreReturnObject Query(String[] parms){
        SqlBuilder b = new SqlBuilder("PlnOrderZgSDAL.Query");
        b.Fill(parms);
        return this.getData(b.toString());
    }

    /**
     * 通过主键查询
     */
    public CoreReturnObject QueryByPk(String proPlanId, String gxPlanNo){
        String sqlQuery = CoreXmlSqlParsersFactory.getSql("PlnOrderZgSDAL.QueryByPk");
        return this.getData(sqlQuery);
    }
}
