Authored by qinchao

绑定的支付宝信息 html

... ... @@ -61,6 +61,13 @@ public class TradeBillsController {
return new ApiResponse.ApiResponseBuilder().code(200).message("查询成功").data(result).build();
}
@RequestMapping(value = "/unbindingAuthorizeInfoByUid")
public ApiResponse unbindingAuthorizeInfoByUid(Integer uid) {
LOGGER.info("unbindingAuthorizeInfoByUid in. uid is {}", uid);
return new ApiResponse.ApiResponseBuilder().code(200).message("已解绑").build();
}
/**
* 人工退款
* @param req
... ...
... ... @@ -14,6 +14,8 @@ public interface ITradeBillsService {
AuthorizeResultRespVO queryAuthorizeInfoByUid(Integer uid);
void unbindingAuthorizeInfoByUid(Integer uid);
/**
*
* @param req
... ...
... ... @@ -15,6 +15,7 @@ import com.yoho.ufo.order.constant.TradeStatusEnum;
import com.yoho.ufo.order.response.StoredSellerRespVo;
import com.yoho.ufo.order.service.ITradeBillsService;
import com.yoho.ufo.service.IQNDownloadService;
import com.yoho.ufo.service.impl.UserHelper;
import com.yoho.ufo.service.model.PageResponseBO;
import com.yoho.ufo.util.CollectionUtil;
import com.yoho.ufo.util.KeyWordHiddenUtil;
... ... @@ -248,6 +249,19 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
return result;
}
public void unbindingAuthorizeInfoByUid(Integer uid) {
UserHelper userInfo= new UserHelper();
LOGGER.info("unbindingAuthorizeInfoByUid service in. unbinding uid is {},operator user id {} ,user name {},userInfo {}", uid,userInfo.getUserId(),userInfo.getUserName(),userInfo);
//TODO 记录解绑日志 ,调用解绑接口,并且清理本地local cache缓存
/*AuthorizeInfoReq req = new AuthorizeInfoReq();
req.setUid(uid);
req.setOperatorUid(userInfo.getUserId());
req.setOperatorName(userInfo.getUserName());
localUidAlipayAccountCache.invalidate(uid);*/
}
private List<TradeBillsResp> convertToResp(List<TradeBills> tradeBillsList){
List<TradeBillsResp> respList = Lists.newArrayList();
... ...
... ... @@ -89,10 +89,9 @@ function getAuthorizeInfoList(param){
width: 40,
align: "center",
formatter: function (value, rowData, rowIndex) {
if (rowData.tradeStatus != 100) {
var btn= "解绑";
return btn;
}
var btn= "<a role='unbindingConfirm' onclick='openUnbindingConfirmDialog(\"%s\")' style='margin-left:10px;background-color: #d9534f !important;'>解绑</a>";
btn = btn.replace("%s",rowData.uid);
return btn;
}
}]],
cache: false,
... ... @@ -100,7 +99,31 @@ function getAuthorizeInfoList(param){
idField: "id",
singleSelect: true,
onLoadSuccess: function (data) {
//$(this).datagrid("getPanel").find("a[role='refundsConfirm']").linkbutton({});
$(this).datagrid("getPanel").find("a[role='unbindingConfirm']").linkbutton({});
}
});
}
function openUnbindingConfirmDialog(uid) {
alert("开发中...");
return ;
$.messager.confirm("确认解绑", "是否确认解绑[uid="+uid+"]", function(flag) {
if (flag) {
$.post(contextPath + "/tradeBills/unbindingAuthorizeInfoByUid", {
uid : uid
}, function(data) {
if (data.code == 200) {
$("#authorizeInfoListTable").datagrid("load", {
uid : uid
});
window.self.$.messager.show({
title : "提示",
msg : "解绑完成!"
});
}else {
window.self.$.messager.alert("失败", "失败!", "error");
}
});
}
});
}
... ...