| | |
| | | return resultEntity; |
| | | } |
| | | |
| | | public ResultEntity SaveCheckSalary(HrSalaryDTO dto) |
| | | public ResultEntity SaveCheckSalary(HrSalaryUpDTO dto) |
| | | { |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | try |
| | |
| | | var updatepltRole = _context.HrSalaries.Where(c=>c.Id==dto.Id).SingleOrDefault(); |
| | | if(updatepltRole!=null) |
| | | { |
| | | //更新电话费用状态 |
| | | var sim = _context.SimCost.Where(c => c.bill_year == updatepltRole.Year && c.bill_month <= updatepltRole.Month && c.user_id == updatepltRole.Userid && c.status == "0").ToList(); |
| | | foreach(var item in sim) |
| | | { |
| | | item.status = "1"; |
| | | } |
| | | |
| | | var user = _context.PltUsers.Where(c => c.Id == updatepltRole.Userid).SingleOrDefault(); |
| | | |
| | | updatepltRole.Jiangjin = dto.Jiangjin; |