南骏 池
2025-05-19 07a9b9127da141cbc8afcb2932ed31208cf31af1
Controllers/base/MessageCenterController.cs
@@ -36,6 +36,27 @@
        }
    }
    //getBadge
    [HttpPost("getBadge")]
    public ResponseResult getBadge()
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.getBadge();
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
    //Resend
    [HttpPost("Resend")]
    public ResponseResult Resend(MessageCenter data)
@@ -43,7 +64,7 @@
        try
        {
            dynamic resultInfos = new ExpandoObject();
            //resultInfos.tbBillList = ErpParametersServer.Resend(data);
            resultInfos.tbBillList = ErpParametersServer.Resend(data);
            return new ResponseResult
            {
                status = 0,
@@ -81,13 +102,26 @@
    [HttpPost("GetByPid")]
    public ResponseResult ResetUpdate([FromBody] JObject data)
    {
        var pid = Convert.ToDecimal(data["pid"].ToString());
        var pid = data["pid"].ToString();
        try
        {
            dynamic resultInfos = new ExpandoObject();
            var parsedGuid = Guid.Empty;
            if (string.IsNullOrEmpty(pid))
                return new ResponseResult
                {
                    status = 0,
                    message = "OK",
                    data = resultInfos
                };
            var isValid = Guid.TryParse(pid, out parsedGuid);
            if (!isValid)
                throw new ApplicationException("GUID转换错误");
            var messageCenter = m.GetById(pid);
            var messageCenters = m.GetList(it => it.Pid == pid);
            var messageCenters = m.GetList(it => it.Pid == parsedGuid);
            messageCenters.Add(messageCenter);
            resultInfos.tbBillList = messageCenters;
            return new ResponseResult