天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 1330|回复: 2

[其他] Web Service无法更新数据

[复制链接]
江苏邮电 发表于 2014-12-15 17:13:37 | 显示全部楼层 |阅读模式
本帖最后由 jack 于 2014-12-16 10:34 编辑

下面是代码:
#region Update Single Status By Document Id
        public int UpdateStatusByDocumentId(string documentId, string domainUserId, string applicationId, string status)
        {
            string Json = ConstuctJsonString(status);
            int success = -1;
            DocumentServiceReader dsr = new DocumentServiceReader();
            try
            {
                success = dsr.updateDocumentByDomainUser(documentId, Json, domainUserId, applicationId);
            }
            catch (Exception ex)
            {
                string mesg = "Update single construction info encount an error,Application id:" + applicationId + ",documentId:" + documentId;
                logger.Error(mesg, ex);
            }
            return success;
        }
        #endregion
复制代码
updateDocumentByDomainUser方法:


参数1DocumentId为:11e4-7c56-12edbf0c-8d75-1396b2579bb8

参数2Json为:{'STATELABEL':'已出版'}

参数3,4是有效参数。


为什么无法更新呢
 楼主| 江苏邮电 发表于 2014-12-15 17:20:26 | 显示全部楼层
我的QQ:479175365,联系电话:15380797361
jack 发表于 2014-12-16 10:35:26 | 显示全部楼层
建议增加名为STATELABEL的字段。等用户测试结果

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-12 14:06

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表