数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class CertificateService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取特岗证书
|
||||
@@ -28,7 +28,7 @@ namespace BLL
|
||||
/// <param name="certificate"></param>
|
||||
public static void AddCertificate(Model.Base_Certificate certificate)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Base_Certificate newCertificate = new Model.Base_Certificate
|
||||
{
|
||||
CertificateId = certificate.CertificateId,
|
||||
@@ -48,7 +48,7 @@ namespace BLL
|
||||
/// <param name="certificate"></param>
|
||||
public static void UpdateCertificate(Model.Base_Certificate certificate)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Base_Certificate newCertificate = db.Base_Certificate.FirstOrDefault(e => e.CertificateId == certificate.CertificateId);
|
||||
if (newCertificate != null)
|
||||
{
|
||||
@@ -67,7 +67,7 @@ namespace BLL
|
||||
/// <param name="certificateId"></param>
|
||||
public static void DeleteCertificateById(string certificateId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Base_Certificate certificate = db.Base_Certificate.FirstOrDefault(e => e.CertificateId == certificateId);
|
||||
if (certificate != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user