This commit is contained in:
杨红卫 2023-03-29 11:01:39 +08:00
commit 0d9136361b
1 changed files with 13 additions and 2 deletions

View File

@ -421,7 +421,7 @@ namespace Mvc.Controllers
}
[HttpGet]
public ResponseData<string> getDefaultCode(string projectId, string type)
public ResponseData<string> getDefaultCode(string projectId, string type, string unitId)
{
ResponseData<string> res = new ResponseData<string>();
res.successful = true;
@ -460,7 +460,18 @@ namespace Mvc.Controllers
res.resultValue = BLL.SQLHelper.RunProcNewId("SpGetNewCode5", "dbo.Check_SpotCheck", "DocCode", prefix);
}
break;
case "monthMeeting":
{
string prefix = BLL.ProjectService.GetProjectCodeByProjectId(projectId) + "-" + BLL.UnitService.GetUnitCodeByUnitId(unitId) + "-ZLYLH-";
res.resultValue = BLL.SQLHelper.RunProcNewId("SpGetThreeNumber", "Meeting_CQMSMeeting", "MeetingCode", projectId, prefix);
}
break;
case "specialMeeting":
{
string prefix = BLL.ProjectService.GetProjectCodeByProjectId(projectId) + "-" + BLL.UnitService.GetUnitCodeByUnitId(unitId) + "-ZLZTH-";
res.resultValue = BLL.SQLHelper.RunProcNewId("SpGetThreeNumber", "Meeting_CQMSMeeting", "MeetingCode", projectId, prefix);
}
break;
}
return res;
}