DeviceStatus替换DeviceStatusBycl
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("Insert")] |
| | | public ResponseResult Add([FromBody] DeviceStatus data) |
| | | public ResponseResult Add([FromBody] DeviceStatusBycl data) |
| | | { |
| | | try |
| | | { |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("InsertReturnIdentity")] |
| | | public ResponseResult InsertReturnIdentity([FromBody] DeviceStatus data) |
| | | public ResponseResult InsertReturnIdentity([FromBody] DeviceStatusBycl data) |
| | | { |
| | | try |
| | | { |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("Update")] |
| | | public ResponseResult Update([FromBody] DeviceStatus data) |
| | | public ResponseResult Update([FromBody] DeviceStatusBycl data) |
| | | { |
| | | try |
| | | { |
| | |
| | | |
| | | namespace PadApplication.Services; |
| | | |
| | | public class DeviceStatusManager : Repository<DeviceStatus> |
| | | public class DeviceStatusManager : Repository<DeviceStatusBycl> |
| | | { |
| | | //当前类已经继承了 Repository 增、删、查、改的方法 |
| | | } |
| | |
| | | { |
| | | var date = DateTime.Now.ToString("yyyy-MM-dd"); |
| | | |
| | | var count = Db.Queryable<DeviceStatus>() |
| | | var count = Db.Queryable<DeviceStatusBycl>() |
| | | .Where(b => b.OrderNo == query.orderNo && b.EditDate == date) |
| | | .Count(); |
| | | |