Commit e6c18caf by jiawei.su

someupdate

parent ca66dc14
...@@ -141,6 +141,8 @@ namespace Siger.ApiACC.Controllers ...@@ -141,6 +141,8 @@ namespace Siger.ApiACC.Controllers
var result = new ResponsePlanlFixtureInfo var result = new ResponsePlanlFixtureInfo
{ {
OrderNumber = monitor.ordernumber, OrderNumber = monitor.ordernumber,
FixtureGuid=monitor.fixtureguid,
FixtureName=monitor.fixturename,
ProductCode=monitor.productCode, ProductCode=monitor.productCode,
ProductName=monitor.productName, ProductName=monitor.productName,
Sn=monitor.sn, Sn=monitor.sn,
...@@ -251,6 +253,7 @@ namespace Siger.ApiACC.Controllers ...@@ -251,6 +253,7 @@ namespace Siger.ApiACC.Controllers
_automationFixtureMonitor.Insert(new siger_automation_fixture_tools_monitor _automationFixtureMonitor.Insert(new siger_automation_fixture_tools_monitor
{ {
fixtureguid=fixtureToolsObj.FixtureGuid, fixtureguid=fixtureToolsObj.FixtureGuid,
fixturename=fixtureToolsObj.FixtureName,
projectId=ProjectId, projectId=ProjectId,
section=loading.section, section=loading.section,
sn=sn, sn=sn,
......
...@@ -11,6 +11,10 @@ namespace Siger.Middlelayer.AccRepository.Entities ...@@ -11,6 +11,10 @@ namespace Siger.Middlelayer.AccRepository.Entities
/// </summary> /// </summary>
public string fixtureguid { get; set; } public string fixtureguid { get; set; }
/// <summary> /// <summary>
/// 工装名称
/// </summary>
public string fixturename { get; set; }
/// <summary>
/// 当前工站ID /// 当前工站ID
/// </summary> /// </summary>
public int section { get; set; } public int section { get; set; }
......
...@@ -28,7 +28,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories ...@@ -28,7 +28,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
where q.projectId == projectId && q.productcode==productCode && q.status == (int)RowState.Valid && t.status == (int)RowState.Valid where q.projectId == projectId && q.productcode==productCode && q.status == (int)RowState.Valid && t.status == (int)RowState.Valid
select new ResponseProductFixtureInfo select new ResponseProductFixtureInfo
{ {
FixtureId=t.id, FixtureName=t.name,
FixtureGuid=t.guid, FixtureGuid=t.guid,
ProductCode=q.productcode, ProductCode=q.productcode,
Location=l.locationid, Location=l.locationid,
......
...@@ -113,7 +113,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories ...@@ -113,7 +113,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
select new ResponseProductFixtureInfo select new ResponseProductFixtureInfo
{ {
FixtureGuid=q.guid, FixtureGuid=q.guid,
FixtureId=q.id, FixtureName=q.name,
Location=l.locationid Location=l.locationid
}; };
return query.FirstOrDefault(); return query.FirstOrDefault();
......
...@@ -7,9 +7,10 @@ namespace Siger.Middlelayer.AccRepository.Response ...@@ -7,9 +7,10 @@ namespace Siger.Middlelayer.AccRepository.Response
public class ResponseProductFixtureInfo public class ResponseProductFixtureInfo
{ {
/// <summary> /// <summary>
/// 工装ID /// 工装名称
/// </summary> /// </summary>
public int FixtureId { get; set; } public string FixtureName { get; set; }
/// <summary> /// <summary>
/// GUID /// GUID
/// </summary> /// </summary>
......
...@@ -417,6 +417,7 @@ CREATE TABLE `siger_automation_fixture_tools_moniter` ( ...@@ -417,6 +417,7 @@ CREATE TABLE `siger_automation_fixture_tools_moniter` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`projectid` int(11) NOT NULL DEFAULT 0, `projectid` int(11) NOT NULL DEFAULT 0,
`fixtureguid` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工装ID', `fixtureguid` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工装ID',
`fixturename` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工装名称',
`section` int(11) NOT NULL DEFAULT 0 COMMENT '当前工站ID', `section` int(11) NOT NULL DEFAULT 0 COMMENT '当前工站ID',
`sn` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前绑定工件', `sn` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前绑定工件',
`route` int(1) NOT NULL DEFAULT 1 COMMENT '工序ID', `route` int(1) NOT NULL DEFAULT 1 COMMENT '工序ID',
......
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