Commit 0282940a authored by tangf's avatar tangf

添加修改公司消息

parent 60ce941b
...@@ -311,7 +311,7 @@ public class PangdingManagementController { ...@@ -311,7 +311,7 @@ public class PangdingManagementController {
} }
@RequestMapping(value = "updateCompanyMoney",produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "updateCompanyMoney",produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult<String> updateCompanyMoney(UpdateCompanyMoneyReqVo req){ public ResponseResult<String> updateCompanyMoney(@RequestBody UpdateCompanyMoneyReqVo req){
CheckerHelper.newInstance() CheckerHelper.newInstance()
.notBlankCheck("companyId",req.getCompanyId()) .notBlankCheck("companyId",req.getCompanyId())
.notBlankCheck("money", req.getMoney()) .notBlankCheck("money", req.getMoney())
......
...@@ -956,8 +956,8 @@ public class CompanyServiceImpl implements CompanyService { ...@@ -956,8 +956,8 @@ public class CompanyServiceImpl implements CompanyService {
try{ try{
// 可提现余额 // 可提现余额
double companyMoney = companyExtendVo.getWithdrawTotalCash(); double companyMoney = companyExtendVo.getWithdrawTotalCash();
req = new UpdateCompanyMoneyReqVo(); // req = new UpdateCompanyMoneyReqVo();
req.setCompanyId(companyVo.getId()); // req.setCompanyId(companyVo.getId());
if(CompanyConstant.MONEY_TYPE_FZ == req.getMoneyType() if(CompanyConstant.MONEY_TYPE_FZ == req.getMoneyType()
|| CompanyConstant.MONEY_TYPE_ZZ == req.getMoneyType() || CompanyConstant.MONEY_TYPE_ZZ == req.getMoneyType()
...@@ -965,8 +965,9 @@ public class CompanyServiceImpl implements CompanyService { ...@@ -965,8 +965,9 @@ public class CompanyServiceImpl implements CompanyService {
// 分账 转账 充值 // 分账 转账 充值
companyMoney += req.getMoney(); companyMoney += req.getMoney();
} }
if(CompanyConstant.MONEY_TYPE_REFUND == req.getMoneyType()){ if(CompanyConstant.MONEY_TYPE_REFUND == req.getMoneyType()
// 退款 || CompanyConstant.MONEY_TYPE_TX == req.getMoneyType()){
// 退款 提现
companyMoney -= req.getMoney(); companyMoney -= req.getMoney();
} }
// int orderMoneyType = 0; // int orderMoneyType = 0;
......
package com.pangding.web.authority.vo.resvo; package com.pangding.web.authority.vo.resvo;
import com.pangding.web.authority.vo.MsgVo;
public class GetCompanyMsgResVo extends MsgVo{ public class GetCompanyMsgResVo{
private String companyId; private String companyId;
private String companyName; private String companyName;
private String msgId;
private String msgTitle;
private String msgContent;
private String msgUrl;
private String msgPicUrl;
private int msgType;
private int msgStatus;
private int msgSort;
public String getCompanyId() { public String getCompanyId() {
return companyId; return companyId;
} }
...@@ -23,4 +38,68 @@ public class GetCompanyMsgResVo extends MsgVo{ ...@@ -23,4 +38,68 @@ public class GetCompanyMsgResVo extends MsgVo{
public void setCompanyName(String companyName) { public void setCompanyName(String companyName) {
this.companyName = companyName; this.companyName = companyName;
} }
public String getMsgId() {
return msgId;
}
public void setMsgId(String msgId) {
this.msgId = msgId;
}
public String getMsgTitle() {
return msgTitle;
}
public void setMsgTitle(String msgTitle) {
this.msgTitle = msgTitle;
}
public String getMsgContent() {
return msgContent;
}
public void setMsgContent(String msgContent) {
this.msgContent = msgContent;
}
public String getMsgUrl() {
return msgUrl;
}
public void setMsgUrl(String msgUrl) {
this.msgUrl = msgUrl;
}
public String getMsgPicUrl() {
return msgPicUrl;
}
public void setMsgPicUrl(String msgPicUrl) {
this.msgPicUrl = msgPicUrl;
}
public int getMsgType() {
return msgType;
}
public void setMsgType(int msgType) {
this.msgType = msgType;
}
public int getMsgStatus() {
return msgStatus;
}
public void setMsgStatus(int msgStatus) {
this.msgStatus = msgStatus;
}
public int getMsgSort() {
return msgSort;
}
public void setMsgSort(int msgSort) {
this.msgSort = msgSort;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment