修改质量接口
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user