改生产单元
This commit is contained in:
parent
1c2637dc3a
commit
af6c6b4344
@ -25,7 +25,7 @@ namespace APT.SK.WebApi.Controllers.Api
|
|||||||
{
|
{
|
||||||
return SafeExecute<bool>(() =>
|
return SafeExecute<bool>(() =>
|
||||||
{
|
{
|
||||||
var olds = this.GetEntity<T_SK_CHECK_TYPE>(t => !t.IS_DELETED && t.MineType == entity.MineType && t.NAME == entity.NAME && t.ID != entity.ID);
|
var olds = this.GetEntity<T_SK_CHECK_TYPE>(t => !t.IS_DELETED && t.PRODUCTION_UNIT_ID == entity.PRODUCTION_UNIT_ID && t.NAME == entity.NAME && t.ID != entity.ID);
|
||||||
if (olds != null)
|
if (olds != null)
|
||||||
{
|
{
|
||||||
throw new Exception("该生产单元检查类型已存在,请先修改");
|
throw new Exception("该生产单元检查类型已存在,请先修改");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user