| | |
| | | |
| | | private bool DeleteSupplier(decimal supplierId) |
| | | { |
| | | if (base.DeleteById(supplierId)) return true; |
| | | var deleteById = Db.Deleteable<MesSupplier>() |
| | | .Where(s => s.Id == supplierId).ExecuteCommand(); |
| | | if (deleteById > 0) |
| | | return true; |
| | | |
| | | throw new NotImplementedException("删除失败"); |
| | | } |
| | |
| | | private bool UpdateOrganizetatus(SqlSugarScope db, string number, |
| | | string status) |
| | | { |
| | | var equals = status.Equals("A"); |
| | | var result = db.Updateable<SysOrganization>() |
| | | .SetColumns(s => s.IsStatus == status.Equals("A")) |
| | | .SetColumns(s => s.IsStatus == equals) |
| | | .Where(s => s.FNumber == number).ExecuteCommand(); |
| | | |
| | | if (result > 0) |