tijian_tieying/web/dccdc.BLL/InfectionOpenUserBll.cs
2025-02-20 12:14:39 +08:00

126 lines
3.6 KiB
C#

using dccdc.DAL;
using dccdc.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace dccdc.BLL
{
public class InfectionOpenUserBll
{
private InfectionOpenUserDal dal = new InfectionOpenUserDal();
public void updateOpenUserInfection(InfectionOpenUserModel ou)
{
//throw new NotImplementedException();
new DAL.InfectionOpenUserDal().updateOpenUserInfection(ou);
}
public void updateRemarkInfection(string openid,string remark)
{
//throw new NotImplementedException();
new DAL.InfectionOpenUserDal().updateRemarkInfection(openid, remark);
}
public int getGZCountInfection(string nc, string bz)
{
//throw new NotImplementedException();
return new DAL.InfectionOpenUserDal().getGZCountInfection(nc, bz);
}
public List<InfectionOpenUserModel> getGZListInfection(string nc, string bz, int page, int pagesize)
{
return new DAL.InfectionOpenUserDal().getGZListInfection(nc, bz, page, pagesize);
}
public int remarkGZInfection(string openid, string bz)
{
//throw new NotImplementedException();
return new DAL.InfectionOpenUserDal().remarkGZInfection(openid, bz);
}
public string GetDataByOpenid(string openid)
{
string user_id = string.Empty;
List<InfectionOpenUserModel> models = new DAL.InfectionOpenUserDal().GetDataByOpenid(openid);
if (models.Count > 1 || models.Count == 0)
{
return user_id;
}
else
{
for (int i = 0; i < models.Count; i++)
{
user_id = models[i].id.ToString();
}
}
return user_id;
}
public string GetDataByOpenid2(string openid)
{
string remark = string.Empty;
List<InfectionOpenUserModel> models = new DAL.InfectionOpenUserDal().GetDataByOpenid(openid);
if (models.Count > 1 || models.Count == 0)
{
return remark;
}
else
{
for (int i = 0; i < models.Count; i++)
{
remark = models[i].remark.ToString();
}
}
return remark;
}
public int updateAdminById(string id, string type, string oaId)
{
return new DAL.InfectionOpenUserDal().updateAdminById(id, type, oaId);
}
public string GetTypeByID(string id)
{
return new DAL.InfectionOpenUserDal().GetTypeByID(id);
}
public InfectionOpenUserModel GetDataByID(string id)
{
return new DAL.InfectionOpenUserDal().GetDataByID(id);
}
public int updateUserStateById(int id)
{
return new DAL.InfectionOpenUserDal().updateUserStateById(id);
}
public int checkUserIdent(string ident, string user_id)
{
return new DAL.InfectionOpenUserDal().checkUserIdent(ident, user_id);
}
public int getMonthOne()
{
return dal.getMonthOne();
}
public int getMonthTwo()
{
return dal.getMonthTwo();
}
public int getAllOne()
{
return dal.getAllOne();
}
public int getAllTwo()
{
return dal.getAllTwo();
}
}
}