| | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 公司收藏工人 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Authorize] |
| | | [HttpPost] |
| | | public async Task<bool> ShoucangGongren(ShoucangDto shoucangDto) |
| | | { |
| | | |
| | | var UserID = App.User?.FindFirstValue("UserID"); |
| | | int userid = 0; |
| | | string NickName = App.User?.FindFirstValue("NickName"); |
| | | if (!string.IsNullOrEmpty(UserID)) |
| | | { |
| | | userid = int.Parse(UserID); |
| | | } |
| | | |
| | | var orderBiddingRes = new BaseRepository<OrderBidding>(); |
| | | |
| | | var orderBidding = await orderBiddingRes.GetByIdAsync(shoucangDto.OrderBiddingId); |
| | | if (orderBidding == null || orderBidding.IsEn != true || orderBidding.IsDeleted == true) |
| | | { |
| | | throw Oops.Oh("该投递已经无效!"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | bool res; |
| | | |
| | | orderBidding.IsCollect = shoucangDto.IsCollect; |
| | | |
| | | orderBidding.UpDataBy = NickName; |
| | | orderBidding.UpDataTime = DateTime.Now; |
| | | |
| | | |
| | | res = await orderBiddingRes.UpdateAsync(orderBidding); |
| | | |
| | | |
| | | |
| | | return res; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 公司修改工人工价 |