Commit b1cff347 by xin.yang

some update

parent 51c9aabc
...@@ -55,7 +55,7 @@ namespace Siger.ApiACC.Controllers ...@@ -55,7 +55,7 @@ namespace Siger.ApiACC.Controllers
var category = _toolsCategoryRepository.Get(q => q.id == req.categoryid.ToInt() && q.projectId == ProjectId && q.status == (int)RowState.Valid); var category = _toolsCategoryRepository.Get(q => q.id == req.categoryid.ToInt() && q.projectId == ProjectId && q.status == (int)RowState.Valid);
if(category == null) if(category == null)
{ {
throw new BadRequestException(RequestEnum.FixtureToolNotFound); throw new BadRequestException(RequestEnum.FixtureToolCatgeoryNotFound);
} }
var entity = new siger_automation_fixture_tools var entity = new siger_automation_fixture_tools
...@@ -106,7 +106,7 @@ namespace Siger.ApiACC.Controllers ...@@ -106,7 +106,7 @@ namespace Siger.ApiACC.Controllers
var category = _toolsCategoryRepository.Get(q => q.id == req.categoryid.ToInt() && q.projectId == ProjectId && q.status == (int)RowState.Valid); var category = _toolsCategoryRepository.Get(q => q.id == req.categoryid.ToInt() && q.projectId == ProjectId && q.status == (int)RowState.Valid);
if (category == null) if (category == null)
{ {
throw new BadRequestException(RequestEnum.FixtureToolNotFound); throw new BadRequestException(RequestEnum.FixtureToolCatgeoryNotFound);
} }
entity.category = category.guid; entity.category = category.guid;
......
...@@ -52,7 +52,7 @@ namespace Siger.ApiACC.Controllers ...@@ -52,7 +52,7 @@ namespace Siger.ApiACC.Controllers
var fixtureTool = _toolsRepository.Get(q => q.projectId == ProjectId && q.status == (int)RowState.Valid && q.id == req.fixturetoolid.ToInt()); var fixtureTool = _toolsRepository.Get(q => q.projectId == ProjectId && q.status == (int)RowState.Valid && q.id == req.fixturetoolid.ToInt());
if(fixtureTool == null) if(fixtureTool == null)
{ {
throw new BadRequestException(RequestEnum.FixtureToolCatgeoryNotFound); throw new BadRequestException(RequestEnum.FixtureToolNotFound);
} }
var product = _productRepository.Get(q => q.projectid == ProjectId && q.status == (int)RowState.Valid && q.id == req.productid.ToInt()); var product = _productRepository.Get(q => q.projectid == ProjectId && q.status == (int)RowState.Valid && q.id == req.productid.ToInt());
if(product == null) if(product == null)
...@@ -104,7 +104,7 @@ namespace Siger.ApiACC.Controllers ...@@ -104,7 +104,7 @@ namespace Siger.ApiACC.Controllers
var fixtureTool = _toolsRepository.Get(q => q.projectId == ProjectId && q.status == (int)RowState.Valid && q.id == req.fixturetoolid.ToInt()); var fixtureTool = _toolsRepository.Get(q => q.projectId == ProjectId && q.status == (int)RowState.Valid && q.id == req.fixturetoolid.ToInt());
if (fixtureTool == null) if (fixtureTool == null)
{ {
throw new BadRequestException(RequestEnum.FixtureToolCatgeoryNotFound); throw new BadRequestException(RequestEnum.FixtureToolNotFound);
} }
var product = _productRepository.Get(q => q.projectid == ProjectId && q.status == (int)RowState.Valid && q.id == req.productid.ToInt()); var product = _productRepository.Get(q => q.projectid == ProjectId && q.status == (int)RowState.Valid && q.id == req.productid.ToInt());
if (product == null) if (product == null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment