| | |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using MES.Service.DB; |
| | | using MES.Service.DB; |
| | | using MES.Service.Dto.webApi; |
| | | using MES.Service.Modes; |
| | | using MES.Service.util; |
| | | using SqlSugar; |
| | | |
| | | namespace MES.Service.service |
| | | { |
| | | namespace MES.Service.service.BasicData; |
| | | |
| | | public class EmployeeInfoManager : Repository<EmployeeInfo> |
| | | { |
| | | public bool Save(ErpEmployeeInfo unit) |
| | |
| | | |
| | | var executeCommand = |
| | | db.Insertable(entityEmployeeInfo).ExecuteCommand(); |
| | | var command = db.Insertable(entityEmployeeItems).PageSize(1).IgnoreColumnsNull().ExecuteCommand(); |
| | | var command = db.Insertable(entityEmployeeItems).PageSize(1) |
| | | .IgnoreColumnsNull().ExecuteCommand(); |
| | | |
| | | return executeCommand > 0 && command > 0; |
| | | } |
| | |
| | | } |
| | | |
| | | return (items, employeeItems); |
| | | } |
| | | } |
| | | } |