修改外部联系人

This commit is contained in:
459816669@qq.com 2021-11-04 22:16:00 +08:00
parent eeadef6dfd
commit ebc3c05e53
7 changed files with 15 additions and 14 deletions

View File

@ -45,6 +45,7 @@ public class ExtContactUserController extends BaseController {
@RequiresPermissions("system:extContactUser:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo getList() {
startPage();
List<ExtContactUserRequest> extContactUserList = extContactUserService.getExtContactUserList(null,null);
@ -70,10 +71,10 @@ public class ExtContactUserController extends BaseController {
}
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String userId, ModelMap mmap)
public String edit(@PathVariable("id") String userid, ModelMap mmap)
{
ExtContactUserRequest extContactUserDetail = extContactUserService.getExtContactUserDetail(userId);
SysUser sysUser = userService.selectUserByDingUserId(userId);
ExtContactUserRequest extContactUserDetail = extContactUserService.getExtContactUserDetail(userid);
SysUser sysUser = userService.selectUserByDingUserId(userid);
if(ObjectUtil.isNotNull(sysUser)){
extContactUserDetail.setFollowerUserId(sysUser.getUserName());
}

View File

@ -92,7 +92,7 @@
<div class="row" th:each="dict : ${label}">
<label class="col-xs-2 control-label" th:text="${dict.name}"></label>
<div class="radio-box" th:each="label : ${dict.labels}">
<input type="radio" th:id="${'faqType_' + label.id}" name="labelIds" th:value="${label.name}">
<input type="radio" th:id="${'faqType_' + label.id}" name="labelIds" th:value="${label.id}">
<label th:for="${'faqType_' + label.id}" th:text="${label.name}"></label>
</div>
</div>
@ -122,7 +122,7 @@
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<script>
var prefix = ctx + "/ding/extContactUser";
var prefix = ctx + "ding/extContactUser";
function submitHandler() {
if ($.validate.form()) {

View File

@ -6,7 +6,6 @@
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m-t" id="signupForm">
<h4 class="form-header h4">基本信息</h4>
<div class="form-group">
<label class="col-sm-3 control-label">姓名:</label>
<div class="form-control-static" th:text="${extContactUser.name}">
@ -34,7 +33,7 @@
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="form-control-static" th:text="${sysOaLeave.remark}">
<div class="form-control-static" th:text="${extContactUser.remark}">
</div>
</div>
</form>

View File

@ -7,7 +7,7 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-dept-edit" th:object="${extContactUser}">
<h4 class="form-header h4">基本信息</h4>
<input class="form-control" type="hidden" name="userId" th:field="*{userId}">
<input class="form-control" type="hidden" name="userId" th:field="*{userid}">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
@ -98,7 +98,7 @@
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
var prefix = ctx + "/ding/extContactUser";
var prefix = ctx + "ding/extContactUser";
function submitHandler() {
if ($.validate.form()) {

View File

@ -59,7 +59,7 @@
printIgnore: true
},
{
field: 'userId',
field: 'userid',
title: '用户id',
visible: false,
printIgnore: true
@ -86,9 +86,9 @@
printIgnore: true,
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.userId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-info btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.userId + '\')"><i class="fa fa-search-plus"></i>详情</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.userId + '\')"><i class="fa fa-remove"></i>删除</a>');
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.userid + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-info btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.userid + '\')"><i class="fa fa-search-plus"></i>详情</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.userid + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]

View File

@ -22,7 +22,7 @@ public class ExtContactUserRequest implements Serializable {
/**
* 用户id
*/
private String userId;
private String userid;
/**
* 地址
*/

View File

@ -39,6 +39,7 @@ public class ExtContactUserServiceImpl extends BaseService implements ExtContact
DingTalkClient client = new DefaultDingTalkClient(BaseConstantUrl.CREATE_EXT_CONTACT_USER);
OapiExtcontactCreateRequest req = new OapiExtcontactCreateRequest();
OapiExtcontactCreateRequest.OpenExtContact contact = BeanUtil.copyProperties(extContactUserRequest, OapiExtcontactCreateRequest.OpenExtContact .class);
contact.setStateCode("86");
req.setContact(contact);
try {
OapiExtcontactCreateResponse rsp = client.execute(req, getDingTalkToken());