| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | // |
| | | |
| | | /// <summary> |
| | | /// éè¿çç»æ¥è¯¢èåä¿¡æ¯ |
| | | ///åæ°ï¼string sqlã |
| | |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "产åå¨å
·æªéæ©"; |
| | | objJsonResult.Message = "çç»æªéæ©"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | |
| | | [Route("Pay_WorkTimesBill/calcAvgMoney")] |
| | | [HttpPost] |
| | | public object GetEmployeeByHGroup([FromBody] JObject msg) { |
| | | try |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | List<object> list = new List<object>(); |
| | | DataSet ds; |
| | | string sql = string.Format($"exec h_p_CalcAvgMoney '{msg["msg"]}'"); |
| | | ds = oCN.RunProcReturn(sql, "h_p_CalcAvgMoney"); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è·åä¿¡æ¯æåï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼" + ex.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | } |